/* ===========================================================
   Greenleaf Hotel & Resort — Gallery page
   =========================================================== */

   :root{
    --green-950:#0e1f16;
    --green-900:#14301f;
    --green-800:#1c4029;
    --green-700:#26522f;
  
    --cream:#f7f3ea;
    --cream-dim:#efe8d8;
    --ink:#1c1a15;
    --ink-soft:#54503f;
    --paper:#fffdf8;
  
    --gold-100:#f6e6b8;
    --gold-300:#e9c877;
    --gold-500:#c9a24a;
    --gold-600:#a9812f;
  
    --font-display:'Cormorant Garamond', serif;
    --font-body:'Jost', sans-serif;
    --ease:cubic-bezier(.16,.8,.3,1);
  }
  
  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0;
    font-family:var(--font-body);
    color:var(--ink);
    background:var(--cream);
    -webkit-font-smoothing:antialiased;
  }
  img{ max-width:100%; display:block; }
  a{ color:inherit; text-decoration:none; }
  h1,h2,h3{ font-family:var(--font-display); font-weight:600; margin:0; }
  button{ font-family:inherit; }
  
  @media (prefers-reduced-motion: reduce){
    *{ animation-duration:.001ms !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  }
  
  /* ---------- shared ---------- */
  .eyebrow{
    letter-spacing:.22em; text-transform:uppercase; font-size:.72rem; font-weight:500;
    color:var(--gold-300); margin:0 0 14px;
  }
  .eyebrow-dark{ color:var(--gold-600); }
  
  /* .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    padding:14px 30px; border-radius:2px; font-size:.85rem; font-weight:500; letter-spacing:.04em;
    border:1px solid transparent; cursor:pointer;
    transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  } */
  .btn-gold{ background:linear-gradient(180deg, var(--gold-300), var(--gold-500)); color:var(--green-950); }
  .btn-gold:hover{ transform:translateY(-2px); box-shadow:0 14px 26px -12px rgba(201,162,74,.55); }
  
  .reveal{ opacity:0; transform:translateY(28px); transition:opacity .8s var(--ease), transform .8s var(--ease); transition-delay:calc(var(--stagger,0) * 90ms); }
  .reveal.in-view{ opacity:1; transform:translateY(0); }
  .reveal-fade{ opacity:0; transform:translateY(16px); transition:opacity .9s var(--ease) var(--d,0s), transform .9s var(--ease) var(--d,0s); }
  .reveal-fade.in-view{ opacity:1; transform:translateY(0); }
  
  .head-divider{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:18px; }
  .head-divider i{ width:26px; height:1px; background:var(--gold-500); }
  .head-divider b{ width:6px; height:6px; border-radius:50%; background:var(--gold-500); transform:rotate(45deg); }

  
  
  /* ===========================================================
     HERO
     =========================================================== */
  .hero{ position:relative; height:78vh; min-height:520px; display:flex; align-items:center; overflow:hidden; background:var(--green-950); }
  .hero-media{ position:absolute; inset:0; }
  .hero-media img{ width:100%; height:100%; object-fit:cover; transform:scale(1.1); animation:heroZoom 20s ease-out forwards; }
  @keyframes heroZoom{ to{ transform:scale(1); } }
  .hero-overlay{
    position:absolute; inset:0;
    background:linear-gradient(90deg, rgba(14,31,22,.96) 0%, rgba(14,31,22,.82) 32%, rgba(14,31,22,.35) 62%, rgba(14,31,22,.15) 100%);
  }
  .hero-content{ position:relative; z-index:2; max-width:600px; padding:70px 5vw 0; color:var(--cream); }
  .hero-title .line{ overflow:hidden; display:block; }
  .hero-title .line span{
    display:block; font-family:var(--font-display); font-size:clamp(3rem, 7vw, 5.6rem); font-weight:600;
    color:var(--cream); transform:translateY(112%); transition:transform 1s var(--ease) .18s;
  }
  .hero-title.in-view .line span{ transform:translateY(0); }
  .hero-rule{ display:block; width:70px; height:2px; background:var(--gold-500); margin:22px 0 22px; }
  .hero-sub{ font-size:1rem; line-height:1.75; color:rgba(247,243,234,.82); max-width:440px; font-weight:300; }
  
  /* ===========================================================
     OUR SPACES
     =========================================================== */
  .spaces-section{ background:var(--cream); padding:110px 5vw 120px; }
  .section-head{ max-width:640px; margin:0 auto; text-align:center; }
  .section-head h2{ font-size:clamp(2rem, 4vw, 2.8rem); color:var(--green-900); }
  
  .spaces-grid{
    display:grid; grid-template-columns:repeat(4, 1fr); gap:28px;
    max-width:1240px; margin:56px auto 0;
  }
  .space-card{ text-align:center; }
  .space-card p{ margin:26px 0 0; font-size:.86rem; letter-spacing:.1em; text-transform:uppercase; color:var(--green-900); font-weight:500; }
  
  .space-media{ position:relative; aspect-ratio:4/5; border-radius:8px; overflow:hidden; box-shadow:0 20px 40px -24px rgba(20,48,31,.35); }
  .space-media img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
  .space-card:hover .space-media img{ transform:scale(1.08); }
  .space-media::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(14,31,22,.55) 100%); }
  
  .space-icon{
    position:absolute; left:50%; bottom:0; transform:translate(-50%, 50%);
    width:52px; height:52px; border-radius:50%; z-index:2;
    display:flex; align-items:center; justify-content:center;
    background:var(--green-900); border:3px solid var(--cream);
    transition:background .3s ease, transform .3s ease;
  }
  .space-card:hover .space-icon{ background:var(--gold-500); transform:translate(-50%, 50%) scale(1.08); }
  .space-icon svg{ width:22px; height:22px; fill:none; stroke:var(--gold-300); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:stroke .3s ease; }
  .space-card:hover .space-icon svg{ stroke:var(--green-950); }
  
  /* ===========================================================
     PHOTO GALLERY
     =========================================================== */
  .gallery-section{ background:var(--cream-dim); padding:110px 5vw 120px; }
  .gallery-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    grid-auto-rows:230px;
    gap:18px;
    max-width:1240px; margin:56px auto 0;
  }
  .gallery-item{
    position:relative; padding:0; border:0; border-radius:6px; overflow:hidden; cursor:pointer;
    background:var(--green-900);
  }
  .g-wide{ grid-column:span 1; }
  .gallery-item img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease), filter .5s ease; }
  .gallery-item:hover img{ transform:scale(1.1); }
  .gallery-item::after{
    content:'\002B'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-size:1.8rem; color:var(--cream); background:rgba(14,31,22,0); opacity:0;
    transition:opacity .35s ease, background .35s ease;
  }
  .gallery-item:hover::after{ opacity:1; background:rgba(14,31,22,.32); }
  
  /* ===========================================================
     CTA BAR
     =========================================================== */
  .cta-bar{
    position:relative; overflow:hidden;
    background:var(--green-950);
    padding:46px 6vw;
    display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
  }
  .cta-leaf{ position:absolute; right:-40px; top:50%; transform:translateY(-50%); width:280px; opacity:.06; pointer-events:none; }
  .cta-leaf svg{ width:100%; fill:none; stroke:var(--gold-300); stroke-width:2; }
  
  .cta-left{ display:flex; align-items:center; gap:22px; position:relative; z-index:1; max-width:520px; }
  .cta-icon{
    width:60px; height:60px; flex:none; border-radius:50%; border:1.5px solid var(--gold-500);
    display:flex; align-items:center; justify-content:center;
  }
  .cta-icon svg{ width:24px; height:24px; fill:none; stroke:var(--gold-300); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
  .cta-left h3{ color:var(--cream); font-size:1.5rem; margin-bottom:8px; }
  .cta-left p{ color:rgba(247,243,234,.65); font-size:.88rem; line-height:1.6; margin:0; font-weight:300; }
  
  .cta-divider{ width:1px; height:56px; background:rgba(247,243,234,.18); }
  
  .cta-right{ display:flex; align-items:center; gap:30px; position:relative; z-index:1; }
  .cta-phone{ display:flex; align-items:center; gap:10px; color:var(--cream); font-size:.92rem; letter-spacing:.02em; }
  .cta-phone svg{ width:17px; height:17px; fill:none; stroke:var(--gold-300); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
  .cta-phone:hover{ color:var(--gold-300); }
  
  /* ===========================================================
     LIGHTBOX
     =========================================================== */
  .lightbox{
    position:fixed; inset:0; z-index:200; background:rgba(14,31,22,.96);
    display:flex; align-items:center; justify-content:center;
    opacity:0; visibility:hidden; transition:opacity .35s ease, visibility .35s;
  }
  .lightbox.open{ opacity:1; visibility:visible; }
  .lightbox img{ max-width:86vw; max-height:82vh; border-radius:4px; box-shadow:0 40px 80px -30px rgba(0,0,0,.7); }
  .lightbox-close{
    position:absolute; top:26px; right:32px; background:none; border:0; color:var(--cream);
    font-size:2.2rem; line-height:1; cursor:pointer; opacity:.8;
  }
  .lightbox-close:hover{ opacity:1; color:var(--gold-300); }
  .lightbox-nav{
    position:absolute; top:50%; transform:translateY(-50%);
    width:52px; height:52px; border-radius:50%; border:1px solid rgba(247,243,234,.3);
    background:rgba(247,243,234,.05); color:var(--cream); font-size:1.8rem; cursor:pointer;
    display:flex; align-items:center; justify-content:center; transition:background .3s ease, border-color .3s ease;
  }
  .lightbox-nav:hover{ background:var(--gold-500); color:var(--green-950); border-color:var(--gold-500); }
  .lightbox-prev{ left:26px; }
  .lightbox-next{ right:26px; }
  
  /* ===========================================================
     BACK TO TOP
     =========================================================== */
  .back-to-top{
    position:fixed; right:26px; bottom:26px; z-index:90;
    width:46px; height:46px; border-radius:50%;
    background:var(--green-900); color:var(--gold-300); border:1px solid var(--gold-600);
    font-size:1.1rem; cursor:pointer; display:flex; align-items:center; justify-content:center;
    opacity:0; visibility:hidden; transform:translateY(10px);
    transition:opacity .35s ease, transform .35s ease, visibility .35s;
    box-shadow:0 12px 24px -12px rgba(0,0,0,.5);
  }
  .back-to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
  .back-to-top:hover{ background:var(--gold-500); color:var(--green-950); }
  
  /* ===========================================================
     RESPONSIVE
     =========================================================== */
  @media (max-width: 980px){
    .spaces-grid{ grid-template-columns:1fr 1fr; }
    .gallery-grid{ grid-template-columns:repeat(2, 1fr); grid-auto-rows:210px; }
  }
  @media (max-width: 720px){
    .spaces-grid{ grid-template-columns:1fr 1fr; gap:20px; }
    .gallery-grid{ grid-template-columns:1fr 1fr; }
    .hero-overlay{ background:linear-gradient(180deg, rgba(14,31,22,.55) 10%, rgba(14,31,22,.95) 90%); }
    .cta-bar{ flex-direction:column; align-items:flex-start; }
    .cta-divider{ display:none; }
    .spaces-section, .gallery-section{ padding:90px 6vw 100px; }
  }