/* =========================================================
   NOVA BARACCA — Cabană pe malul lacului Colibița
   Stylesheet comun pentru toate paginile
   ========================================================= */

:root {
  --lake:      #1f6f78;   /* teal lac */
  --lake-dark: #14343b;   /* verde-albastru profund */
  --wood:      #b98a55;   /* lemn cald */
  --wood-dark: #8a6236;
  --cream:     #f7f2e9;   /* crem */
  --sand:      #efe7d6;
  --charcoal:  #1a1c1e;   /* aproape negru */
  --ink:       #2b2f31;   /* text principal */
  --muted:     #6b7378;   /* text secundar */
  --white:     #ffffff;
  --line:      #e4ddcf;

  --shadow-sm: 0 2px 10px rgba(20,52,59,.08);
  --shadow-md: 0 10px 30px rgba(20,52,59,.12);
  --shadow-lg: 0 24px 60px rgba(20,52,59,.18);

  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1180px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; color: var(--lake-dark); letter-spacing: .3px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: .74rem;
  font-weight: 500;
  color: var(--wood-dark);
  margin-bottom: 14px;
  display: inline-block;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--sand); }
.section--dark { background: var(--lake-dark); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .eyebrow { color: var(--wood); }
.text-center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.text-center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  line-height: 1.1;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .4px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--lake); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--lake-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--wa { background: #25D366; color: #06331c; }
.btn--wa:hover { background: #1fb457; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--lake-dark); border-color: var(--lake-dark); }
.btn--ghost:hover { background: var(--lake-dark); color: var(--white); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; color: var(--lake-dark); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: padding .35s ease;
  padding: 18px 0;
}
/* IMPORTANT: blur-ul sta pe un pseudo-element, NU pe header.
   backdrop-filter aplicat direct pe header l-ar transforma in bloc de
   referinta pentru position:fixed, iar meniul mobil s-ar pozitiona fata
   de bara de sus in loc de fereastra — si ar aparea peste continut. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(247,242,233,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .35s ease;
  pointer-events: none;
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled { padding: 10px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: flex; align-items: center; flex-shrink: 0;
  height: 42px; background: none; border: 0; border-radius: 0; box-shadow: none;
}
.brand__mark img { height: 100%; width: auto; display: block; }
/* peste fotografie, emblema primeste o umbra fina ca sa se desprinda */
.site-header:not(.scrolled):not(.on-light) .brand__mark img {
  filter: drop-shadow(0 1px 6px rgba(0,0,0,.55));
}
@media (max-width: 560px) { .brand__mark { height: 34px; } }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; letter-spacing: 2px; color: var(--lake-dark); line-height: 1; }
.brand__sub  { font-family: var(--sans); font-size: .66rem; letter-spacing: 3px; text-transform: uppercase; color: var(--wood-dark); }
.site-header:not(.scrolled) .brand__name { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.site-header:not(.scrolled) .brand__sub  { color: #f0e6d2; text-shadow: 0 1px 10px rgba(0,0,0,.45); }
.site-header:not(.scrolled).on-light .brand__name { color: var(--lake-dark); text-shadow: none; }
.site-header:not(.scrolled).on-light .brand__sub  { color: var(--wood-dark); text-shadow: none; }

.nav__menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-size: .95rem; letter-spacing: .5px; font-weight: 400; position: relative; padding: 4px 0;
  color: var(--lake-dark);
}
.site-header:not(.scrolled) .nav__menu a { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.site-header:not(.scrolled).on-light .nav__menu a { color: var(--lake-dark); text-shadow: none; }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--wood); transition: width .25s ease; }
.nav__menu a:hover::after, .nav__menu a.active::after { width: 100%; }

/* Butonul de Rezervă din meniu NU trebuie să preia stilul de link */
.nav__menu a.btn.nav__cta {
  margin-left: 8px;
  padding: 11px 26px;
  font-size: .9rem;
  line-height: 1;
  color: #fff;
  text-shadow: none;
}
.nav__menu a.btn.nav__cta::after { content: none; display: none; }
.site-header:not(.scrolled) .nav__menu a.btn.nav__cta,
.site-header:not(.scrolled).on-light .nav__menu a.btn.nav__cta { color: #fff; text-shadow: none; }
.nav__menu a.btn.nav__cta:hover { color: #fff; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--lake-dark); margin: 5px 0; transition: .3s; border-radius: 2px; }
.site-header:not(.scrolled):not(.on-light) .nav__toggle span { background: #fff; }

/* ---------- Mobile nav ---------- */
@media (max-width: 900px) {
  /* position:relative e OBLIGATORIU — pe un element static, z-index nu are
     niciun efect, iar butonul ar ramane sub panoul meniului. */
  .nav__toggle { display: block; position: relative; z-index: 120; }
  .nav__menu {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(78vw, 320px); max-width: 320px; z-index: 110;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: var(--lake-dark); padding: 40px 36px;
    transform: translateX(105%); transition: transform .35s ease, visibility .35s;
    box-shadow: var(--shadow-lg);
    /* plasa de siguranta: complet inert cand e inchis */
    visibility: hidden;
  }
  .nav__menu.open { transform: translateX(0); visibility: visible; }
  .nav__menu a, .site-header:not(.scrolled) .nav__menu a { color: #fff; text-shadow: none; font-size: 1.3rem; font-family: var(--serif); }
  .nav__menu a.btn.nav__cta { margin: 10px 0 0; font-family: var(--sans); font-size: 1.05rem; padding: 13px 30px; align-self: flex-start; }
  body.menu-open { overflow: hidden; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Cand meniul e deschis, in spatele butonului e mereu panoul inchis la
     culoare — deci liniile trebuie sa fie albe INDIFERENT daca pagina e
     derulata sau nu. Altfel ies verde-inchis pe verde-inchis: invizibile. */
  .site-header .nav__toggle.open span,
  .site-header.scrolled .nav__toggle.open span,
  .site-header:not(.scrolled) .nav__toggle.open span { background: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,26,30,.55) 0%, rgba(10,26,30,.25) 40%, rgba(10,26,30,.7) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 120px 0 80px; max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.4); margin-bottom: .3em; }
.hero__sub { font-size: 1.25rem; color: #f2ece0; max-width: 52ch; text-shadow: 0 2px 16px rgba(0,0,0,.4); margin-bottom: 2rem; }
.hero .eyebrow { color: #f0d9b0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: #fff; font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; opacity: .85; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll span { width: 1px; height: 40px; background: rgba(255,255,255,.7); animation: scrollpulse 1.8s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

/* page hero (interior pages) */
.pagehero { position: relative; padding: 160px 0 90px; color: #fff; overflow: hidden; }
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,26,30,.55), rgba(10,26,30,.72)); }
.pagehero__inner { position: relative; z-index: 2; max-width: 720px; }
.pagehero h1 { color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.pagehero p { color: #f0ece2; font-size: 1.15rem; max-width: 56ch; }
.breadcrumb { font-size: .8rem; letter-spacing: 1px; color: #e6dcc7; margin-bottom: 14px; text-transform: uppercase; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media { order: 0; } }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media-frame:hover img { transform: scale(1.04); }
.media-frame--tall { aspect-ratio: 3/4; }

/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  background: var(--white); border-radius: 14px;
  padding: 42px 32px 36px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(20,52,59,.05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
/* linie fină de accent care se desenează la hover */
.card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--wood), var(--lake));
  transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.card:hover::before { width: 100%; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(20,52,59,.12); border-color: #dcd3c0; }

.card__icon {
  width: auto; height: 44px; background: none; border-radius: 0;
  display: flex; align-items: center; justify-content: flex-start;
  color: var(--wood); margin-bottom: 22px;
  transition: color .3s ease, transform .3s ease;
}
.card__icon svg { width: 38px; height: 38px; stroke-width: 1.15; }
.card:hover .card__icon { color: var(--lake); transform: translateY(-2px); }

.card h3 {
  position: relative; font-size: 1.44rem;
  margin-bottom: 16px; padding-bottom: 16px;
}
.card h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 1px; background: var(--wood); opacity: .55;
  transition: width .4s ease;
}
.card:hover h3::after { width: 60px; }
.card p { color: var(--muted); font-size: .97rem; line-height: 1.72; margin: 0; }

/* varianta centrată (pagina Cabana) */
.card.text-center .card__icon { justify-content: center; }
.card.text-center h3::after { left: 50%; transform: translateX(-50%); }

/* stat bar — integrată în banda cu poza lacului, deasupra CTA-ului */
.statbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 900px; margin: 0 auto 46px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.statbar__item { text-align: center; position: relative; padding: 0 12px; }
.statbar__item::after {
  content: ""; position: absolute; right: 0; top: 12%; height: 76%;
  width: 1px; background: rgba(255,255,255,.2);
}
.statbar__item:last-child::after { display: none; }
.statbar__icon { color: var(--wood); margin-bottom: 10px; display: grid; place-items: center; opacity: .95; }
.statbar__icon svg { width: 24px; height: 24px; }
.statbar__num { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.5rem); line-height: 1; color: #fff; }
.statbar__label { font-size: .68rem; letter-spacing: 1.6px; text-transform: uppercase; color: #ddd2bb; margin-top: 6px; }
@media (max-width: 700px) {
  .statbar { grid-template-columns: repeat(2, 1fr); gap: 30px 10px; margin-bottom: 36px; padding-bottom: 32px; }
  .statbar__item:nth-child(2)::after { display: none; }
}
@media (max-width: 380px) {
  .statbar__num { font-size: 1.7rem; }
  .statbar__label { font-size: .62rem; letter-spacing: 1.2px; }
}

/* amenity list */
.amenities { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; }
.amenities li { break-inside: avoid; padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line); }
.amenities li::before { content: ""; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; background: var(--lake); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 620px) { .amenities { columns: 1; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 240px; gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); cursor: pointer; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; color: #fff; font-size: .9rem; letter-spacing: .5px; background: linear-gradient(180deg, transparent, rgba(10,26,30,.7)); opacity: 0; transition: opacity .3s ease; }
.gallery__item:hover .gallery__cap { opacity: 1; }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; } .gallery__item--wide { grid-column: span 2; } .gallery__item--tall { grid-row: span 1; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; } .gallery__item--wide { grid-column: span 1; } }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,20,23,.92); display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__prev { left: 20px; } .lightbox__next { right: 20px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: .85rem; letter-spacing: .5px; margin-bottom: 7px; color: var(--lake-dark); font-weight: 500; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1rem; background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--lake); box-shadow: 0 0 0 3px rgba(31,111,120,.12); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--sand); color: var(--lake); display: grid; place-items: center; flex-shrink: 0; }
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin: 0 0 3px; font-weight: 600; }
.contact-item a, .contact-item p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.contact-item a:hover { color: var(--lake); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-frame iframe { display: block; width: 100%; height: 340px; border: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; }
.cta-band__bg { position: absolute; inset: 0; z-index: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,52,59,.82), rgba(20,52,59,.9)); }
.cta-band__inner { position: relative; z-index: 2; padding: clamp(70px, 10vw, 120px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7e0d2; max-width: 54ch; margin-left: auto; margin-right: auto; }
.cta-band .hero__actions { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
.footer { background: var(--charcoal); color: #cfd3d4; padding: 70px 0 30px; }
.footer a { color: #cfd3d4; }
.footer a:hover { color: var(--wood); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__sub { color: var(--wood); }
.footer p { color: #9aa1a3; font-size: .95rem; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 10px; font-size: .95rem; }
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; transition: background .2s, transform .2s; }
.socials a:hover { background: var(--wood); color: #1a1c1e; transform: translateY(-3px); border-color: var(--wood); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .85rem; color: #7f8688; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #06331c; display: grid; place-items: center; box-shadow: var(--shadow-md); transition: transform .2s; }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 30px; height: 30px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Image placeholder (până se adaugă pozele) ---------- */
.ph { background: linear-gradient(135deg, #2c4a4f, #14343b); }

/* utility spacing */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-0 { margin-bottom: 0; }


/* =========================================================
   RESPONSIVE — strat complet, de la desktop la telefon mic
   ========================================================= */

/* --- 1. Anti-overflow: cauzele reale ale barei orizontale ---
   minmax(0,1fr) impiedica o coloana sa fie impinsa de continut.
   ATENTIE: aceste reguli sunt la finalul fisierului, deci trebuie
   sa reia si pragurile responsive, altfel le-ar anula pe cele de sus. */
html, body { max-width: 100%; }
h1, h2, h3, h4, p, li, a, .statbar__num { overflow-wrap: break-word; }
.media-frame, .card, .contact-card, .gallery__item { min-width: 0; }

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split   { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --- 2. Titluri: minime mai mici, ca sa nu sparga ecranele inguste --- */
h1 { font-size: clamp(2.05rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); }

/* --- 3. Tablete (≤ 1024px) --- */
@media (max-width: 1024px) {
  .container { padding: 0 22px; }
  .hero__inner { padding: 110px 0 76px; }
  .pagehero { padding: 140px 0 78px; }
}

/* --- 4. Sub 900px: meniul devine hamburger (vezi si blocul de mai sus) --- */
@media (max-width: 900px) {
  .card { padding: 34px 26px 30px; }
  .lead { font-size: 1.08rem; }
}

/* --- 5. Telefoane mari / tablete mici (≤ 700px) --- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .section { padding: clamp(52px, 11vw, 80px) 0; }

  .eyebrow { letter-spacing: 1.8px; font-size: .7rem; }

  .hero { min-height: 88svh; }
  .hero__inner { padding: 104px 0 72px; }
  .hero__sub { font-size: 1.06rem; margin-bottom: 1.6rem; }
  .hero__scroll { display: none; }

  .pagehero { padding: 116px 0 60px; }
  .pagehero p { font-size: 1.02rem; }

  .media-frame--tall { aspect-ratio: 4/3; }

  .contact-card { padding: 24px 20px; }
  .map-frame iframe { height: 260px; }

  .footer { padding: 54px 0 26px; }
  .footer__bottom { flex-direction: column; gap: 6px; }

  /* butonul flotant WhatsApp: mai mic si ferit de bara de sistem */
  .fab-wa {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px; height: 52px;
  }
  .fab-wa svg { width: 26px; height: 26px; }

  /* lightbox: sagetile jos, sa nu acopere poza */
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 44px; height: 44px; top: auto; bottom: 18px; transform: none; }
  .lightbox__prev { left: calc(50% - 56px); }
  .lightbox__next { right: calc(50% - 56px); }
  .lightbox img { max-height: 76vh; }
  .lightbox__close { top: 12px; right: 14px; }
}

/* --- 6. Telefoane (≤ 520px) --- */
@media (max-width: 520px) {
  .container { padding: 0 16px; }

  /* butoanele pe toata latimea: tinte de atins corecte */
  .hero__actions { flex-direction: column; align-items: stretch; gap: 11px; }
  .hero__actions .btn { width: 100%; padding: 15px 22px; }
  .cta-band .hero__actions { align-items: stretch; }

  .btn { font-size: .92rem; }
  .card { padding: 30px 22px 26px; }
  .card__icon svg { width: 34px; height: 34px; }

  .gallery { gap: 12px; }
  .statbar { margin-bottom: 30px; padding-bottom: 26px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-field input, .form-field textarea, .form-field select { font-size: 16px; } /* previne zoom-ul pe iOS */

  .contact-item { padding: 14px 0; gap: 12px; }
  .map-frame iframe { height: 220px; }
  .socials a { width: 40px; height: 40px; }
}

/* --- 7. Telefoane mici (≤ 380px) --- */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  h1 { font-size: 1.92rem; }
  .hero__sub { font-size: 1rem; }
  .brand__name { font-size: 1.16rem; letter-spacing: 1.2px; }
  .brand__sub { font-size: .58rem; letter-spacing: 2px; }
  .card { padding: 26px 18px 24px; }
}

/* --- 8. Telefon in landscape: hero-ul nu trebuie sa ocupe tot ecranul --- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; }
  .hero__inner { padding: 104px 0 64px; }
  .hero__scroll { display: none; }
  .nav__menu { justify-content: flex-start; padding-top: 70px; overflow-y: auto; }
}

/* --- 9. Ecrane cu notch (iPhone) --- */
@supports (padding: env(safe-area-inset-left)) {
  @media (max-width: 700px) {
    .container {
      padding-left: calc(18px + env(safe-area-inset-left, 0px));
      padding-right: calc(18px + env(safe-area-inset-right, 0px));
    }
  }
}

/* --- 10. Tinte de atins minime pe touch + fara hover fals --- */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: 0 1px 3px rgba(20,52,59,.05); }
  .card:hover::before { width: 0; }
  .media-frame:hover img { transform: none; }
  .gallery__cap { opacity: 1; }
}

/* --- 11. Respecta preferinta de miscare redusa --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
