/* =========================
   CHEILE BRANISTEI — FINAL CSS
   (MATCHES YOUR HTML: nav, .nav-inner, .nav-logo, .nav-links)
   Desktop + Mobile (Lux Cabin) + Hero reveal classes
   ========================= */

:root{
  --bg:#102a21;
  --bg2:#0b1f19;
  --card:rgba(255,255,255,.06);
  --text:#f5f1e8;
  --muted:rgba(245,241,232,.74);
  --line:rgba(245,241,232,.14);
  --accent:#d6b36a;
  --shadow: 0 18px 55px rgba(0,0,0,.38);
  --radius:18px;
  --max:1050px;
}

*{box-sizing:border-box; scroll-behavior:smooth}
html,body{margin:0;padding:0}

body{
  font-family:'Montserrat', sans-serif;
  background:
    radial-gradient(1100px 600px at 15% 0%, rgba(214,179,106,.10), transparent 62%),
    radial-gradient(900px 520px at 90% 10%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
  line-height:1.6;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.wrap{
  width:min(var(--max), 92vw);
  margin:0 auto;
}

h1,h2,h3{
  font-family:'Prata', serif;
  font-weight:400;
  letter-spacing:1.2px;
  color:var(--accent);
  margin:0;
}

/* =========================
   NAV (logo bigger + links one line)
   ========================= */

nav{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(8,18,14,.55);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}


.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  padding:6px 0;
}

/* logo */
.nav-logo{
  display:flex;
  align-items:center;
  gap:10px;
  flex:0 0 auto;
  min-width:0;
}

.brand-mark{
  height: 92px;
  width: auto;
  transform: translateY(10px);
  filter:brightness(0) invert(1);
}

.nav-logo img{
  height:92px;              /* ✅ desktop logo bigger */
  width:auto;
  filter:brightness(0) invert(1);
}

/* links single line + scroll if needed */
.nav-links{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex:1 1 auto;
  min-width:0;

  flex-wrap:nowrap;          /* ✅ always one line */
  overflow-x:auto;           /* ✅ scroll if too many */
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.nav-links::-webkit-scrollbar{display:none;}

.nav-links a{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid transparent;
  color:var(--muted);
  font-size:.78rem;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:700;
  transition:.18s ease;
  white-space:nowrap;
  flex:0 0 auto;
}
.nav-links a:hover{
  color:var(--text);
  border-color:var(--line);
  background:rgba(0,0,0,.10);
}

/* NAV SOCIAL ICONS */
.nav-social{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:10px;
}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:.9rem 1.15rem;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  color: var(--text);
  font-size:.78rem;
  letter-spacing:2px;
  text-transform:uppercase;
  font-weight:700;
  transition:.18s ease;
  cursor:pointer;
}
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(214,179,106,.45);
  box-shadow: var(--shadow);
}
.btn.primary{
  border-color: rgba(214,179,106,.55);
  background: linear-gradient(180deg, rgba(214,179,106,.22), rgba(214,179,106,.10));
}
.btn.full{
  width:100%;
}

/* =========================
   HERO (clean photo on load + reveal card on scroll)
   Needs JS to add: .hero-scrolled and .show
   ========================= */

.hero{
  min-height: calc(100vh - 74px);
  display:flex;
  justify-content:flex-end;
  align-items:center;
  flex-direction:column;
  padding: 0 0 14vh;
  text-align:center;
  position:relative;

  /* clean photo at start */
  background:
    linear-gradient(rgba(0,0,0,.06), rgba(0,0,0,.28)),
    url('hero.jpeg') top center / cover no-repeat;
}

/* slightly darker after scroll (JS adds .hero-scrolled) */
.hero.hero-scrolled{
  background:
    linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.60)),
    url('hero.jpeg') center/cover no-repeat;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: radial-gradient(900px 520px at 20% 0%, rgba(214,179,106,.10), transparent 65%);
  opacity:.9;
}

/* hero card */
.hero-box{
  position:relative;
  z-index:2;
  background: linear-gradient(rgba(0,0,0,.48), rgba(0,0,0,.20));
  padding:28px 22px;
  border-radius: var(--radius);
  max-width: 560px;
  width: min(92vw, 560px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(245,241,232,.10);
  box-shadow: var(--shadow);
}

/* reveal behavior: hidden until JS adds .show */
.reveal-hero{
  opacity:0;
  transform: translateY(26px);
  filter: blur(2px);
  pointer-events:none;
  transition: opacity .6s ease, transform .6s ease, filter .6s ease;
}
.reveal-hero.show{
  opacity:1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events:auto;
}

.hero-logo{
  max-width:180px;
  margin:0 auto 14px;
  filter:brightness(0) invert(1);
}

.hero h1{
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height:1.05;
  color:#fff;
  letter-spacing:.5px;
}
.hero h1 .small{
  display:block;
  font-size:.68em;
  opacity:.86;
  margin-bottom:4px;
}

.hero-tagline{
  margin: 14px 0 0;
  font-size: .72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(214,179,106,.92);
  font-weight: 700;
}

.hero-actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:18px;
}

/* =========================
   SECTIONS
   ========================= */

.section{
  padding: 64px 0;
  text-align:center;
  position:relative;
}
.section::before{
  content:"";
  position:absolute;
  top:0; left:50%;
  transform: translateX(-50%);
  width:min(920px, 86vw);
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(214,179,106,.22), transparent);
}

.section h2{
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.divider{
  width:72px;
  height:2px;
  background: rgba(214,179,106,.85);
  margin:16px auto 20px;
  border-radius:2px;
}

.section p{
  max-width: 62ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 300;
}

.section.alt{
  background: rgba(255,255,255,.03);
}

/* =========================
   FEATURES
   ========================= */
.features{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:26px;
}
.feature{
  text-align:left;
  padding:18px 16px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.12);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  transition:.18s ease;
  position:relative;
  overflow:hidden;
}
.feature::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.10), transparent 55%);
  opacity:0;
  transition:.25s ease;
}
.feature:hover{
  transform: translateY(-2px);
  border-color: rgba(214,179,106,.40);
  box-shadow: var(--shadow);
}
.feature:hover::after{opacity:1}

.feature-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.feature i{
  width:40px;height:40px;
  display:grid;place-items:center;
  border-radius: 14px;
  border:1px solid rgba(214,179,106,.28);
  background: rgba(214,179,106,.10);
  color: var(--accent);
  font-size: 18px;
  flex: 0 0 40px;
}
.feature h3{
  font-family:'Montserrat', sans-serif;
  font-weight:700;
  letter-spacing:.6px;
  color: var(--text);
  font-size:.95rem;
  margin:0;
  text-transform:uppercase;
}
.feature p{
  margin:0;
  max-width:none;
  font-size:.96rem;
  line-height:1.6;
  color: var(--muted);
  font-weight:300;
}

/* =========================
   RESERVE CARD
   ========================= */
.reserve-card{
  margin: 26px auto 0;
  max-width: 860px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.14);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.reserve-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:0;
}
.reserve-left{
  padding:22px 20px;
  text-align:left;
}
.reserve-left .kicker{
  color: rgba(214,179,106,.92);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size:.78rem;
  margin-bottom:8px;
  font-weight:700;
}
.reserve-left h3{
  color: var(--text);
  font-family:'Prata', serif;
  letter-spacing: .6px;
  margin-bottom:10px;
  font-size: 1.35rem;
}
.reserve-left ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-weight:300;
}
.reserve-right{
  padding:22px 20px;
  border-left:1px solid var(--line);
  background: rgba(255,255,255,.03);
  text-align:left;
}
.field{
  display:grid;
  gap:6px;
  margin-bottom:12px;
}
.field label{
  font-size:.82rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color: rgba(245,241,232,.72);
  font-weight:700;
}
.field input,
.field select,
.field textarea{
  width:100%;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid rgba(245,241,232,.16);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
  font-family:'Montserrat', sans-serif;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: rgba(214,179,106,.55);
}
.field textarea{min-height:92px; resize:vertical}

/* =========================
   GALLERY
   ========================= */
/* === GALLERY thumbnails FIX (for .g-item background images) === */
.gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  margin-top:26px;
}

.g-item{
  height: 180px;                 /* thumbnail height */
  border-radius: 14px;
  border: 1px solid rgba(245,241,232,.14);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  display:block;
}

.img1{ background-image:url('camera1.png'); }
.img2{ background-image:url('camera2.png'); }
.img3{ background-image:url('camera3.png'); }
.img4{ background-image:url('camera4.png'); }
.img5{ background-image:url('camera5.png'); }
.img6{ background-image:url('camera6.png'); }


/* optional premium shine on hover */
.g-item::after{
  content:"";
  position:absolute;
  inset:-40%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.15), transparent 55%);
  opacity:0;
  transition:.25s ease;
}
.g-item:hover{
  transform: translateY(-2px);
  border-color: rgba(214,179,106,.40);
}
.g-item:hover::after{ opacity:1; }

@media (max-width: 980px){
  .gallery{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-item{ height:170px; }
}
@media (max-width: 600px){
  .gallery{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; }
  .g-item{ height:150px; }
}


/* =========================
   CONTACT
   ========================= */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:26px;
}
.contact-btn{
  padding:16px 14px;
  border:1px solid var(--line);
  border-radius: 14px;
  color:var(--text);
  letter-spacing:2px;
  font-size:.78rem;
  text-transform:uppercase;
  font-weight:700;
  background: rgba(0,0,0,.12);
  transition:.18s ease;
}
.contact-btn:hover{
  border-color: rgba(214,179,106,.45);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.contact-social{
  margin-top:22px;
  display:flex;
  justify-content:center;
  gap:16px;
}

.contact-social a{
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid var(--line);
  color:var(--muted);
  font-size:20px;
  transition:.2s ease;
  background: rgba(0,0,0,.12);
}

.contact-social a:hover{
  color:#fff;
  border-color:rgba(214,179,106,.55);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* WhatsApp floating */
.whatsapp{
  position:fixed;
  right:18px;
  bottom:18px;
  width:56px;
  height:56px;
  background:#25d366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
  color:#fff;
  z-index:2000;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* Footer */
footer{
  padding:42px 0;
  text-align:center;
  font-size:.75rem;
  letter-spacing:2px;
  color: var(--muted);
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.10);
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(6px);
  z-index:3000;
  padding: 4vh 4vw;
}
.lightbox.open{display:grid}
.lightbox img{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
}
.lb-close{
  position:fixed;
  top:16px;
  right:16px;
  width:44px;
  height:44px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  font-size: 18px;
}

/* Focus */
a:focus, button:focus{
  outline: 2px solid rgba(214,179,106,.35);
  outline-offset: 3px;
  border-radius: 12px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .gallery{grid-template-columns: repeat(2, 1fr)}
  .g-item{height:170px}
  .features{grid-template-columns: repeat(2, minmax(0, 1fr))}
  .reserve-grid{grid-template-columns: 1fr}
  .reserve-right{border-left:none; border-top:1px solid var(--line)}
}

@media (max-width: 600px){
  /* bigger logo on mobile */
  .nav-logo img{height:78px;}

  .nav-links a{
    padding:9px 10px;
    font-size:.74rem;
    letter-spacing:1.7px;
  }

  .hero{padding-bottom:12vh;}
  .hero-box{
    padding:24px 18px;
    border-radius: 16px;
  }

  .contact-grid{grid-template-columns: 1fr;}
  .section{padding: 56px 0;}
  .section p{font-size: 1rem;}
  .features{grid-template-columns: 1fr;}

  .hero-tagline{
    letter-spacing: 4px;
    font-size: .68rem;
    opacity: .9;
  }
}

@media (prefers-reduced-motion: reduce){
  .reveal-hero, .reveal-hero.show{
    transition:none;
    transform:none;
    filter:none;
  }
}

/* ===== DESKTOP: nav mai subtire ===== */
@media (min-width: 601px){
  .nav-inner{
    padding: 10px 0;   /* ajusteaza aici (8–12) */
    gap: 10px;
  }

  .nav-logo img{
    height: 74px;      /* din 92 -> 74 (ajusteaza 70–78) */
  }
}

/* ===== DESKTOP: shrink on scroll (cu JS) ===== */
@media (min-width: 601px){
  nav{ transition: background .25s ease; }
  .nav-inner{ transition: padding .25s ease, gap .25s ease; }
  .nav-logo img{ transition: height .25s ease; }

  nav.nav-scrolled{
    background: rgba(8,18,14,.72);
  }
  nav.nav-scrolled .nav-inner{
    padding: 6px 0;     /* cat de slim devine */
    gap: 6px;
  }
  nav.nav-scrolled .nav-logo img{
    height: 58px;       /* logo mai mic cand scrolezi */
  }
}

  /* =========================
   SCROLL REVEAL – FEATURES
   ========================= */

.feature{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}

.feature.show{
  opacity: 1;
  transform: translateY(0);
}

/* stagger */
.feature:nth-child(1){ transition-delay: .05s }
.feature:nth-child(2){ transition-delay: .12s }
.feature:nth-child(3){ transition-delay: .19s }
.feature:nth-child(4){ transition-delay: .26s }
.feature:nth-child(5){ transition-delay: .33s }
.feature:nth-child(6){ transition-delay: .40s }


/* =========================
   SCROLL REVEAL – GLOBAL
   ========================= */

.reveal{
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
  will-change: opacity, transform;
}

.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* delay din HTML */
.reveal[data-delay]{
  transition-delay: var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    transition:none;
    transform:none;
    opacity:1;
  }
}


/* =========================
   CAROUSEL – DESKTOP
   ========================= */

.carousel{
  position: relative;
  margin-top: 22px;
}

.car-track{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 14px;

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;

  padding: 8px 54px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar{ display:none; }

.car-card{
  scroll-snap-align: start;
  border: 1px solid rgba(245,241,232,.14);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.10);
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  cursor: pointer;
  padding: 0;
  transition: .18s ease;
}

.car-card:hover{
  transform: translateY(-2px);
  border-color: rgba(214,179,106,.40);
}

.car-card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.car-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(245,241,232,.18);
  background: rgba(0,0,0,.35);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
}

.car-btn.prev{ left: 8px; }
.car-btn.next{ right: 8px; }


/* =========================
   MOBILE FIX (FINAL)
   ========================= */

@media (max-width: 600px){

  /* NAV */
  .nav-inner{
    padding: 8px 0;
    gap: 8px;
  }

  .nav-logo img{
    height: 54px;
  }

  .nav-links a{
    padding: 8px 10px;
    font-size: .72rem;
    letter-spacing: 1.4px;
  }

  /* CAROUSEL */
  .car-track{
    display:flex;
    flex-wrap: nowrap;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0 14px;
  }

  .car-card{
    flex: 0 0 auto;
    width: 78vw;
    max-width: 340px;
    height: 230px;
    scroll-snap-align: start;
  }

  .car-card img{
    width:100%;
    height:100%;
    object-fit:cover;
  }

  .car-btn{
    display:none;
  }
}


