/* ============================================================
   NINA'S COFFEE CAFE — photo-led, restrained (Buvette-inspired)
   HTML + CSS only. Mobile-first. WCAG-AA.
   ============================================================ */

:root{
  --espresso:#241510; --soft-black:#15100c;
  --brick:#9e3f2f; --brick-deep:#7c2d20;
  --cream:#f4ecda; --cream-2:#efe3c8; --paper:#faf5e9;
  --brass:#b98a3e; --brass-text:#8a6320;
  --green:#26382e;
  --ink:#2a1c14; --ink-2:#5a4633; --ink-3:#6f5942;
  --line:rgba(42,28,20,.14);

  --serif:"Cormorant Garamond","Georgia",serif;   /* display — elegant, old-world */
  --body:"Spectral","Georgia",serif;              /* reading */
  --sans:"Jost","Helvetica Neue",sans-serif;      /* labels, nav, buttons */

  --maxw:1180px;
  --gutter:clamp(1.25rem,5vw,3rem);
  --space:clamp(4rem,10vw,9rem);
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{font-family:var(--body);font-size:1.06rem;line-height:1.7;color:var(--ink);background:var(--paper)}
img{display:block;max-width:100%}
a{color:inherit}
::selection{background:var(--brick);color:var(--cream)}
:focus-visible{outline:2.5px solid var(--brass);outline-offset:3px}
.skip{position:absolute;left:.5rem;top:-3rem;z-index:200;background:var(--espresso);color:var(--cream);padding:.7rem 1.1rem;font-family:var(--sans);border-radius:3px;transition:top .2s}
.skip:focus{top:.5rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- Type ---------- */
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.05;color:var(--espresso)}
.display{font-size:clamp(2.4rem,6vw,4.4rem);font-weight:600;letter-spacing:-.01em}
.h2{font-size:clamp(2rem,4.6vw,3.2rem)}
.eyebrow{font-family:var(--sans);font-size:.72rem;font-weight:600;letter-spacing:.28em;text-transform:uppercase;color:var(--brass-text)}
.lede{font-family:var(--serif);font-size:clamp(1.3rem,2.4vw,1.8rem);font-weight:500;line-height:1.4;color:var(--ink-2)}
.muted{color:var(--ink-2)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;font-family:var(--sans);font-weight:600;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;padding:1.05rem 2.1rem;min-height:56px;border:1.5px solid var(--espresso);background:var(--espresso);color:var(--cream);text-decoration:none;border-radius:2px;transition:background .18s,color .18s,border-color .18s}
.btn:hover,.btn:focus-visible{background:transparent;color:var(--espresso)}
.btn--light{border-color:var(--cream);background:var(--cream);color:var(--espresso)}
.btn--light:hover,.btn--light:focus-visible{background:transparent;color:var(--cream)}
.btn--outline{background:transparent;color:var(--espresso);border-color:var(--espresso)}
.btn--outline:hover,.btn--outline:focus-visible{background:var(--espresso);color:var(--cream)}
.btn--outline-light{background:transparent;color:var(--cream);border-color:rgba(244,236,218,.55)}
.btn--outline-light:hover,.btn--outline-light:focus-visible{background:var(--cream);color:var(--espresso);border-color:var(--cream)}
.textlink{font-family:var(--sans);font-weight:600;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;text-decoration:none;color:var(--brick-deep);border-bottom:1.5px solid currentColor;padding-bottom:3px}
.textlink:hover,.textlink:focus-visible{color:var(--espresso)}

/* ---------- Layout helpers ---------- */
.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:var(--gutter)}
.section{padding-block:var(--space)}
.center{text-align:center}
.stack{display:flex;flex-direction:column}

/* ============================================================
   Header
   ============================================================ */
.site-header{position:absolute;top:0;left:0;right:0;z-index:50}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;padding-block:1.25rem;gap:1rem}
.brand{display:inline-flex;align-items:center;text-decoration:none;line-height:0}
.brand img{height:clamp(46px,7vw,60px);width:auto}
.nav{display:flex;align-items:center;gap:clamp(1.1rem,2.4vw,2.2rem)}
.nav a{font-family:var(--sans);font-weight:600;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;text-decoration:none;color:var(--cream);padding:.4rem 0;position:relative}
.nav a[aria-current="page"]::after,.nav a:hover::after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:1.5px;background:var(--brass)}
/* header over a light section flips colours */
.site-header.on-light .nav a{color:var(--espresso)}
.site-header.on-light .brand .logo-cream{display:none}
.site-header:not(.on-light) .brand .logo-ink{display:none}

/* ============================================================
   HERO — the building, arrival
   ============================================================ */
.hero{position:relative;min-height:100svh;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--cream);overflow:hidden}
.hero__bg{position:absolute;inset:0;z-index:-2}
.hero__bg img{width:100%;height:100%;object-fit:cover;object-position:center 60%}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(20,12,8,.62) 0%,rgba(20,12,8,.34) 34%,rgba(20,12,8,.52) 72%,rgba(20,12,8,.78) 100%)}
.hero__inner{padding:8rem var(--gutter) 4rem;display:flex;flex-direction:column;align-items:center;gap:1.7rem;max-width:760px}
.hero__logo{width:clamp(190px,26vw,300px);height:auto;filter:drop-shadow(0 8px 26px rgba(0,0,0,.5))}
.hero__line{font-family:var(--serif);font-weight:500;font-size:clamp(1.25rem,2.5vw,1.9rem);line-height:1.4;color:var(--cream);max-width:22ch;text-shadow:0 2px 16px rgba(0,0,0,.55)}
.hero__cta{display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem;margin-top:.3rem}
.hero__cta .btn{min-width:14rem}
.hero__addr{font-family:var(--sans);font-size:.72rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:rgba(247,240,224,.96);text-shadow:0 1px 3px rgba(0,0,0,.9),0 2px 14px rgba(0,0,0,.75);display:flex;flex-wrap:wrap;justify-content:center;gap:.1rem .2rem}
.hero__addr .dot{color:var(--brass);padding:0 .5rem}
.hero__scroll{position:absolute;bottom:1.6rem;left:50%;transform:translateX(-50%);font-family:var(--sans);font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:rgba(247,240,224,.95);padding:.4rem .9rem;border-radius:2rem;background:rgba(18,11,7,.42);backdrop-filter:blur(2px);text-shadow:0 1px 3px rgba(0,0,0,.8)}

/* ============================================================
   Full-bleed image moment (coffee)
   ============================================================ */
.imgmoment{position:relative;min-height:82svh;display:flex;align-items:flex-end;color:var(--cream);overflow:hidden}
.imgmoment__bg{position:absolute;inset:0;z-index:-2}
.imgmoment__bg img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.imgmoment::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(20,12,8,.2) 0%,transparent 30%,rgba(20,12,8,.5) 62%,rgba(20,12,8,.85) 100%)}
.imgmoment__text{position:relative;padding:clamp(1.4rem,3vw,2rem) clamp(1.4rem,3vw,2.2rem) clamp(1.4rem,3vw,2rem);margin:0 var(--gutter) clamp(3rem,7vw,6rem);max-width:600px;border-radius:3px}
.imgmoment__text::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(120deg,rgba(18,11,7,.72),rgba(18,11,7,.42));backdrop-filter:blur(1.5px)}
.imgmoment__text .eyebrow{color:var(--brass);text-shadow:0 1px 8px rgba(0,0,0,.85)}
.imgmoment__text h2{color:var(--cream);margin:.6rem 0 0}
.imgmoment__text p{color:rgba(244,236,218,.92);margin-top:1rem;font-size:1.1rem;max-width:34ch}

/* ============================================================
   Editorial trio (offerings)
   ============================================================ */
.trio{display:grid;gap:clamp(2rem,5vw,3.2rem)}
@media(min-width:760px){.trio{grid-template-columns:repeat(3,1fr)}}
.trio__item .ph,.trio__item img{aspect-ratio:4/5;width:100%;object-fit:cover;border-radius:2px}
.trio__item h3{font-size:1.5rem;margin:1rem 0 .3rem}
.trio__item p{color:var(--ink-2);font-size:1rem}

/* image placeholder — clean, labeled, easy to swap */
.ph{background:var(--cream-2);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.ph::before{content:"";position:absolute;inset:0;background:
  repeating-linear-gradient(135deg,transparent 0 22px,rgba(42,28,20,.03) 22px 44px)}
.ph span{position:relative;font-family:var(--sans);font-size:.66rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-3);text-align:center;padding:.5rem 1rem}
.ph svg{position:relative;width:34px;height:34px;color:var(--brass);opacity:.7}
.ph .ph__in{display:flex;flex-direction:column;align-items:center;gap:.6rem}

/* ============================================================
   Split (seat by the window / find us)
   ============================================================ */
.split{display:grid;gap:clamp(1.6rem,4vw,3rem);align-items:center}
@media(min-width:820px){.split{grid-template-columns:1fr 1fr}.split.rev .split__media{order:2}}
.split__media img,.split__media .ph{width:100%;aspect-ratio:5/4;object-fit:cover;border-radius:2px}
.split__body{max-width:44ch}
.split__body h2{margin:.5rem 0 .8rem}
.split__body p{color:var(--ink-2)}
.split__body .btn,.split__body .textlink{margin-top:1.4rem}

/* Section tones */
.tone-cream{background:var(--cream)}
.tone-paper{background:var(--paper)}
.tone-espresso{background:var(--espresso);color:var(--cream)}
.tone-espresso h2,.tone-espresso h3{color:var(--cream)}
.tone-espresso .muted,.tone-espresso p{color:rgba(244,236,218,.85)}
.tone-espresso .eyebrow{color:var(--brass)}
.tone-brick{background:var(--brick);color:var(--cream)}
.tone-brick h2{color:var(--cream)}
.tone-brick p{color:rgba(244,236,218,.92)}
.tone-brick .eyebrow{color:var(--cream)}

/* ============================================================
   Eat & Drink gallery
   ============================================================ */
.gallery{display:grid;gap:clamp(1.5rem,3.5vw,2.6rem)}
@media(min-width:680px){.gallery{grid-template-columns:1fr 1fr}}
.gcard{position:relative;overflow:hidden;border-radius:2px}
.gcard>img,.gcard>.ph{width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.gcard>.ph{background:var(--green)}
.gcard>.ph::before{background:repeating-linear-gradient(135deg,transparent 0 22px,rgba(255,255,255,.045) 22px 44px)}
.gcard>.ph span,.gcard>.ph svg{color:rgba(244,236,218,.72)}


.gcard__label{position:absolute;left:0;bottom:0;right:0;padding:clamp(2rem,4vw,2.4rem) clamp(1.1rem,3vw,1.8rem) clamp(1.2rem,3vw,1.6rem);
  background:linear-gradient(180deg,transparent 0%,rgba(16,9,5,.55) 28%,rgba(16,9,5,.88) 62%,rgba(16,9,5,.96) 100%);color:var(--cream)}
.gcard__label h3{color:var(--cream);font-size:clamp(1.4rem,2.6vw,1.9rem)}
.gcard__label p{color:rgba(244,236,218,.9);font-size:.98rem;margin-top:.2rem;max-width:36ch}

/* ============================================================
   Visit
   ============================================================ */
.visit-grid{display:grid;gap:clamp(1.8rem,4vw,3rem)}
@media(min-width:840px){.visit-grid{grid-template-columns:1.1fr .9fr}}
.info dl{display:grid;gap:1.5rem;margin-top:1.5rem}
.info dt{font-family:var(--sans);font-size:.7rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--brass-text);margin-bottom:.35rem}
.info dd{font-family:var(--serif);font-size:1.35rem;color:var(--espresso);line-height:1.4}
.info dd a{color:var(--espresso)}
.hours{list-style:none;margin-top:.4rem}
.hours li{display:flex;justify-content:space-between;gap:1.5rem;padding:.55rem 0;border-bottom:1px solid var(--line);font-family:var(--sans);font-size:.92rem}
.hours li:last-child{border-bottom:0}
.hours .day{letter-spacing:.06em;text-transform:uppercase;font-size:.76rem;font-weight:600;color:var(--ink-2)}
.hours .time{color:var(--espresso);font-weight:500}
.note-tag{font-family:var(--sans);font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);border:1px dashed var(--line);padding:.35rem .6rem;display:inline-block;margin-top:1rem}
.maplink{display:block;position:relative;overflow:hidden;border-radius:2px;aspect-ratio:4/3;background:var(--green);text-decoration:none}
.mapembed{position:relative;aspect-ratio:4/3;border-radius:2px;overflow:hidden;background:var(--green);border:1px solid var(--line)}
.mapembed iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
@media(max-width:840px){.mapembed{aspect-ratio:3/2}}
.maplink .ph{position:absolute;inset:0;aspect-ratio:auto;background:var(--green);border:0}
.maplink .ph::before{background:repeating-linear-gradient(135deg,transparent 0 22px,rgba(255,255,255,.04) 22px 44px)}
.maplink .ph span,.maplink .ph svg{color:var(--cream)}
.maplink .pin{position:relative;color:var(--cream);text-align:center;font-family:var(--sans);display:flex;flex-direction:column;align-items:center;gap:.7rem}
.maplink .pin b{font-size:.82rem;letter-spacing:.16em;text-transform:uppercase}
.maplink:hover .pin b{text-decoration:underline;text-underline-offset:4px}

/* ============================================================
   Footer — strong colour block
   ============================================================ */
.site-footer{background:var(--brick-deep);color:var(--cream)}
.site-footer .wrap{padding-block:clamp(3rem,7vw,5rem) 1.6rem}
.f-top{display:grid;gap:2.2rem}
@media(min-width:760px){.f-top{grid-template-columns:1.4fr 1fr 1fr}}
.f-brand img{height:64px;width:auto;margin-bottom:1rem}
.f-brand p{color:rgba(244,236,218,.85);max-width:26ch}
.f-col h4{font-family:var(--sans);font-size:.7rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--brass);margin-bottom:1rem}
.f-col ul{list-style:none;display:grid;gap:.6rem}
.f-col a,.f-col li{color:rgba(244,236,218,.9);text-decoration:none}
.f-col a:hover{color:var(--cream);text-decoration:underline;text-underline-offset:3px}
.f-social{display:flex;gap:.6rem;margin-top:.2rem}
.f-social a{width:42px;height:42px;border:1px solid rgba(244,236,218,.35);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--cream)}
.f-social a:hover{background:var(--cream);color:var(--brick-deep);border-color:var(--cream)}
.f-social svg{width:18px;height:18px}
.f-base{margin-top:2.4rem;padding-top:1.3rem;border-top:1px solid rgba(244,236,218,.22);display:flex;flex-wrap:wrap;gap:.5rem 1.4rem;justify-content:space-between;font-family:var(--sans);font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(244,236,218,.7)}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* ============================================================
   HOME — Buvette-style chapter rhythm
   ============================================================ */
/* Chapter 2: quiet editorial pause — generous air, no cards */
.intro{padding-block:clamp(5rem,13vw,10rem)}
.intro .display{font-size:clamp(2.2rem,5.5vw,4rem)}

/* Chapter 4: Eat & Drink preview as an editorial list, not a card grid */
.offer-list{list-style:none;max-width:640px;margin-inline:auto;border-top:1px solid var(--line)}
.offer-list li{display:flex;align-items:baseline;gap:clamp(1rem,3vw,2.2rem);padding:clamp(1.5rem,4vw,2.4rem) 0;border-bottom:1px solid var(--line)}
.offer-list__k{font-family:var(--sans);font-size:.72rem;font-weight:600;letter-spacing:.2em;color:var(--brass-text);flex:none;padding-top:.5rem;min-width:2ch}
.offer-list h3{font-size:clamp(1.6rem,3.4vw,2.2rem);margin-bottom:.2rem}
.offer-list p{color:var(--ink-2);font-size:1.02rem;max-width:38ch}

/* Chapter 5: compact visit strip */
.visit-strip{padding-block:clamp(4rem,10vw,7rem)}

/* ============================================================
   HOME — ONE shared sticky stage, continuous parallax reveal
   Both images live as overlapping layers in a single pinned stage.
   A single JS progress value (0..1) cross-dissolves + drifts them,
   so building -> mugs swaps underneath the cream cover panel with
   no second sticky context and no catch.
   ============================================================ */
.parallax-sequence{position:relative;background:var(--soft-black)}
/* tall enough for 4 panels of scroll distance */
.parallax-sequence{min-height:400vh}

.sticky-stage{
  position:sticky;top:0;height:100vh;width:100%;overflow:hidden;z-index:0;
}
.stage-image{
  position:absolute;inset:0;width:100%;height:128%;top:-14%;
  object-fit:cover;object-position:center 55%;
  transform:translate3d(0,var(--py,0px),0) scale(1.02);
  will-change:transform,opacity;
}
.building-image{object-position:center 60%;opacity:1}
.mugs-image{object-position:center 42%;opacity:0}
.stage-scrim{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(20,12,8,.66) 0%,rgba(20,12,8,.3) 32%,rgba(20,12,8,.5) 68%,rgba(20,12,8,.8) 100%)}

/* panels ride above the stage; pulled up so the hero panel overlays the
   pinned stage from the very first frame (logo visible immediately) */
.scroll-panels{position:relative;z-index:3;margin-top:-100vh}
.panel{position:relative;min-height:100vh;display:grid;place-items:center}
.panel.cover-panel{min-height:135vh}

/* image panels are transparent — the sticky stage shows through */
.panel.image-panel,.panel.hero-panel{background:transparent}
/* cover panels are solid and physically cover the stage as they scroll up */
.panel.cover-panel{z-index:4}
.panel.cover-panel.tone-paper{background:var(--paper)}
.panel.cover-panel.tone-cream{background:var(--cream)}

/* hero content (over building) */
.hero-panel .hero-content{
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:1.7rem;
  padding-inline:var(--gutter);color:var(--cream);width:100%;max-width:760px;
}
.hero-panel .hero__logo{width:clamp(190px,26vw,300px);height:auto;filter:drop-shadow(0 8px 26px rgba(0,0,0,.5))}

/* coffee caption (over mugs) — bottom-anchored with its own soft wash */
.coffee-panel{align-items:end}
.coffee-panel .image-caption{width:100%;max-width:var(--maxw);margin-inline:auto;padding:0 var(--gutter) clamp(3rem,8vw,6rem)}
.coffee-panel .image-caption__inner{position:relative;max-width:560px;padding:clamp(1.2rem,3vw,1.8rem) clamp(1.3rem,3vw,2rem);border-radius:3px}
.coffee-panel .image-caption__inner::before{content:"";position:absolute;inset:0;z-index:-1;border-radius:inherit;
  background:linear-gradient(120deg,rgba(14,8,4,.86),rgba(14,8,4,.66));backdrop-filter:blur(2px)}
.coffee-panel .eyebrow{color:#c99a4e;text-shadow:0 1px 8px rgba(0,0,0,.9)}
.coffee-panel h2{color:var(--cream);margin-top:.6rem;text-shadow:0 2px 18px rgba(0,0,0,.6)}

/* trailing sections cover the stage cleanly */
.visit-strip{position:relative;z-index:5;background:var(--espresso)}
.site-footer{position:relative;z-index:5}

/* intro panel spacing */
.intro-panel{padding-block:clamp(4rem,10vw,8rem)}

/* ---- MOBILE: keep the continuous stage, tuned smaller; svh for toolbar ---- */
@media(max-width:768px){
  .sticky-stage{height:100svh}
  .panel{min-height:100svh}
  .coffee-panel .image-caption__inner{max-width:none}
  .intro-panel{padding-block:clamp(3.5rem,14vw,5rem)}
  /* hero (logo + CTAs + address): anchored below the nav with generous air.
     padding-top clears the ~86px header. */
  .hero-panel{align-items:start}
  .hero-panel .hero-content{gap:1.8rem;padding-top:calc(86px + clamp(3.5rem,13vh,7rem));padding-bottom:2rem}
  .hero-panel .hero__logo{width:clamp(168px,46vw,240px)}
}
@media(max-width:768px) and (max-height:720px){
  /* very short screens: trim gaps but keep the logo clear of the nav */
  .hero-panel .hero-content{gap:1.25rem;padding-top:calc(86px + clamp(2rem,7vh,3.5rem))}
  .hero-panel .hero__logo{width:clamp(150px,40vw,200px)}
}
/* ---- reduced motion: static stacked images, no pin ---- */
@media(prefers-reduced-motion:reduce){
  .parallax-sequence{min-height:0}
  .sticky-stage{position:relative;height:auto;overflow:visible}
  .stage-image{position:relative;height:auto;top:0;transform:none;opacity:1!important;aspect-ratio:16/10}
  .mugs-image{margin-top:0}
  .scroll-panels{margin-top:0}
  .panel.image-panel,.panel.hero-panel{background:var(--espresso)}
}

/* Coffee card: portrait latte shot in a wide tile — favour the cup + latte art */
/* per-photo framing so the subject survives the 4:5 crop */
.gcard .shot-latte{object-position:center 58%}
.gcard .shot-pastries{object-position:center 55%}
.gcard .shot-breakfast{object-position:center 55%}
.gcard .shot-lunch{object-position:center 60%}
.gcard .shot-seasonal{object-position:center 45%}
.gcard .shot-counter{object-position:center 45%}
