/* ============================================================
   PointBreak Cafe & Co — coastal hospitality brand system
   Beachfront brunch · Coolangatta, Gold Coast
   ------------------------------------------------------------
   Palette : sandy cream base · deep ocean teal · muted aqua
             sun-warmed terracotta + golden amber highlights
   Type    : Schibsted Grotesk (display) · Hanken Grotesk (body)
   ============================================================ */

:root {
  /* --- surfaces --- */
  --cream:        #FBF5E8;   /* page base — sun-bleached off-white */
  --cream-2:      #F4EAD6;   /* alt section */
  --sand:         #EADCC1;   /* warm divider / cards */
  --sand-deep:    #E0CDA9;

  /* --- ink --- */
  --ink:          #1B2420;   /* deep charcoal w/ green cast */
  --ink-soft:     #4C5752;
  --ink-faint:    #7C857F;

  /* --- ocean --- */
  --teal:         #154641;   /* logo deep teal */
  --teal-700:     #1E5750;
  --teal-500:     #2E726A;
  --aqua:         #6FB1A6;   /* wave aqua */
  --aqua-soft:    #AED4CC;
  --aqua-wash:    #DCEBE6;

  /* --- golden hour --- */
  --terracotta:   #C56746;
  --terracotta-d: #A8512F;
  --amber:        #E0A24A;
  --amber-d:      #C9852B;

  /* --- semantic accents (switchable via Tweaks) --- */
  --accent:       var(--teal);     /* primary buttons, structural */
  --accent-ink:   #FBF5E8;         /* text on accent */
  --highlight:    var(--terracotta); /* underlines, kickers, hover */

  /* --- type --- */
  --font-display: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-script:  'Kaushan Script', 'Snell Roundhand', cursive;

  /* --- rhythm --- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 3px rgba(27,36,32,.07), 0 6px 20px -12px rgba(27,36,32,.18);
  --shadow:    0 18px 50px -28px rgba(21,70,65,.45);
  --nav-h: 80px;
}

/* ---- accent emphasis variants (Tweaks) ---- */
body[data-accent="terracotta"] { --accent: var(--terracotta); --highlight: var(--teal); }
body[data-accent="amber"]      { --accent: var(--amber-d);    --accent-ink:#1B2420; --highlight: var(--teal); }

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* paper grain overlay (toggle via data-grain) */
body[data-grain="on"]::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--terracotta); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; color: var(--ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-500);
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--highlight); display: inline-block;
}
.eyebrow.center::before { display: none; }

/* handwritten script flourish for section heads (echoes the logo) */
.script-kicker {
  font-family: var(--font-script); font-weight: 400;
  color: var(--terracotta); line-height: 1;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  display: block; margin: 4px 0 -2px;
}
.functions__body .script-kicker { color: var(--amber); }
/* faint signature watermark */
.signature-mark {
  font-family: var(--font-script); color: var(--teal);
  opacity: .10; font-size: clamp(4rem, 14vw, 11rem); line-height: .8;
  position: absolute; right: -2%; bottom: -6%; pointer-events: none;
  z-index: 0; white-space: nowrap; transform: rotate(-4deg);
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 15px 26px; border-radius: 999px;
  line-height: 1; min-height: 52px;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(21,70,65,.6); }
.btn--solid-tc { background: var(--terracotta); color: #fff; box-shadow: var(--shadow-sm); }
.btn--solid-tc:hover { background: var(--terracotta-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid rgba(27,36,32,.22); }
.btn--ghost:hover { border-color: var(--teal); background: rgba(21,70,65,.05); }
.btn--light { background: rgba(251,245,232,.16); color: #fff; border: 1.5px solid rgba(251,245,232,.5); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(251,245,232,.28); }
.btn--block { width: 100%; }

/* section scaffolding */
section { position: relative; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--cream2 { background: var(--cream-2); }
.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2.1rem, 6vw, 3.7rem); margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 1.1rem; color: var(--ink-soft); max-width: 56ch; }

.lede { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--ink-soft); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.nav.scrolled { background: rgba(251,245,232,.86); backdrop-filter: saturate(140%) blur(14px); box-shadow: 0 1px 0 rgba(27,36,32,.08); }
.nav__brand { display: flex; align-items: center; gap: 11px; }
.nav__brand img { width: 58px; height: 58px; border-radius: 50%; background: #fff; object-fit: cover; box-shadow: var(--shadow-sm); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav__brand-text b { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; }
.nav__brand-text span { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--teal-500); font-weight: 700; margin-top: 3px; }
.nav.over-hero:not(.scrolled) .nav__brand-text b { color: #fff; }
.nav.over-hero:not(.scrolled) .nav__brand-text span { color: var(--aqua-soft); }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { font-weight: 600; font-size: .96rem; padding: 9px 14px; border-radius: 999px; color: var(--ink); transition: background .15s, color .15s; }
.nav__links a:hover { background: rgba(21,70,65,.08); }
.nav.over-hero:not(.scrolled) .nav__links a { color: rgba(255,255,255,.92); }
.nav.over-hero:not(.scrolled) .nav__links a:hover { background: rgba(255,255,255,.16); }
.nav__cta { margin-left: 8px; padding: 12px 20px; min-height: 44px; }

.nav__burger { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; }
.nav__burger span { position: relative; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, background .3s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, top .3s; }
.nav__burger span::before { top: -7px; } .nav__burger span::after { top: 7px; }
.nav.over-hero:not(.scrolled) .nav__burger span,
.nav.over-hero:not(.scrolled) .nav__burger span::before,
.nav.over-hero:not(.scrolled) .nav__burger span::after { background: #fff; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
body.menu-open .nav__burger span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream); padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-100%); opacity: 0; visibility: hidden;
  transition: transform .42s cubic-bezier(.22,.61,.36,1), opacity .3s, visibility .42s;
}
body.menu-open .mobile-menu { transform: none; opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 700; padding: 12px 0; border-bottom: 1px solid var(--sand); letter-spacing: -.02em; }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .mm-actions { margin-top: auto; display: grid; gap: 12px; }
.mobile-menu .mm-hours { margin-top: 26px; font-size: .95rem; color: var(--ink-soft); }
.mobile-menu .mm-hours b { color: var(--teal); }

/* ============================================================
   HERO  (3 directions via body[data-hero])
   ============================================================ */
.hero { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: #0d1e1b; }
.hero__media image-slot, .hero__media { width: 100%; height: 100%; }
.hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; }
.hero__overline { color: var(--aqua-soft); }
.hero h1 {
  color: #fff; font-weight: 800;
  text-wrap: balance;
}
/* brush-script signature accent — echoes the PointBreak logo */
.hero h1 .hl {
  font-family: var(--font-script); font-weight: 400;
  letter-spacing: .01em; font-size: .92em; line-height: 1.02;
  padding-bottom: 0;
}
.hero__tag { color: rgba(255,255,255,.92); max-width: 30ch; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.hero__meta .chip { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; font-size: .92rem; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); padding: 8px 15px; border-radius: 999px; backdrop-filter: blur(4px); }
.hero__meta .chip svg { width: 16px; height: 16px; color: var(--aqua-soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.7); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero__scroll .line { width: 1px; height: 38px; background: linear-gradient(rgba(255,255,255,.7), transparent); animation: scrolldot 2.2s ease-in-out infinite; }
@keyframes scrolldot { 0%,100%{ opacity:.3; transform: scaleY(.6); transform-origin: top; } 50%{ opacity:1; transform: scaleY(1);} }

/* default scrim */
.hero__scrim { background: linear-gradient(180deg, rgba(13,30,27,.46) 0%, rgba(13,30,27,.12) 38%, rgba(13,30,27,.66) 100%); }

/* DIRECTION A — Editorial Calm: full-bleed, content bottom-left, airy */
body[data-hero="a"] .hero { min-height: 100svh; display: flex; align-items: flex-end; padding: clamp(96px, 14vh, 150px) 0 clamp(56px, 9vh, 104px); }
body[data-hero="a"] .hero__content { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: clamp(24px, 4vh, 40px); }
body[data-hero="a"] .hero h1 { font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -.035em; max-width: 14ch; line-height: 1.1; }
body[data-hero="a"] .hero__tag { font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
body[data-hero="a"] .hero__cta { margin-top: 6px; }

/* DIRECTION B — Sun-bleached Stack: oversized stacked head, top-left, energetic */
body[data-hero="b"] .hero { min-height: 100svh; display: flex; align-items: center; padding-top: var(--nav-h); }
body[data-hero="b"] .hero__scrim { background: linear-gradient(110deg, rgba(13,30,27,.74) 0%, rgba(13,30,27,.34) 52%, rgba(13,30,27,.12) 100%); }
body[data-hero="b"] .hero__content { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: 20px; }
body[data-hero="b"] .hero h1 { font-size: clamp(3.4rem, 12vw, 9rem); line-height: .9; letter-spacing: -.04em; }
body[data-hero="b"] .hero h1 .hl { color: var(--amber); display: block; }
body[data-hero="b"] .hero__tag { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }

/* DIRECTION C — Split Frame: cream text panel + photo */
body[data-hero="c"] .hero { min-height: 100svh; display: grid; grid-template-columns: 1.02fr 1fr; padding-top: var(--nav-h); }
body[data-hero="c"] .hero__media { position: relative; inset: auto; grid-column: 2; z-index: 0; }
body[data-hero="c"] .hero__scrim { display: none; }
body[data-hero="c"] .hero__content { grid-column: 1; grid-row: 1; background: var(--cream); align-self: center; padding: clamp(36px,6vw,80px) clamp(28px,5vw,72px); display: grid; gap: 22px; }
body[data-hero="c"] .hero__overline { color: var(--teal-500); }
body[data-hero="c"] .hero h1 { color: var(--ink); font-size: clamp(2.8rem, 6vw, 5.4rem); letter-spacing: -.035em; max-width: 13ch; }
body[data-hero="c"] .hero h1 .hl { color: var(--terracotta); }
body[data-hero="c"] .hero__tag { color: var(--ink-soft); font-size: clamp(1.1rem,2vw,1.4rem); }
body[data-hero="c"] .hero__meta .chip { color: var(--ink); background: var(--cream-2); border-color: var(--sand); }
body[data-hero="c"] .hero__meta .chip svg { color: var(--teal); }
body[data-hero="c"] .hero__scroll { display: none; }
body[data-hero="c"] .hero .btn--light { background: var(--accent); color: var(--accent-ink); border: none; }
body[data-hero="c"] .hero .btn--light:hover { transform: translateY(-2px); }

/* ============================================================
   QUICK-INFO STRIP
   ============================================================ */
.quickbar { background: var(--teal); color: var(--cream); }
.quickbar__inner { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
.qi { display: flex; align-items: center; gap: 14px; padding: 26px var(--gutter); }
.qi + .qi { border-left: 1px solid rgba(251,245,232,.14); }
.qi__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(174,212,204,.16); color: var(--aqua-soft); flex: none; }
.qi__icon svg { width: 21px; height: 21px; }
.qi b { display: block; font-family: var(--font-display); font-size: 1.04rem; line-height: 1.1; }
.qi span { font-size: .85rem; color: rgba(220,235,230,.78); }
.qi.qi--action { transition: background .2s; }
.qi.qi--action:hover { background: var(--teal-700); }
.qi--action b { color: var(--amber); }

/* ============================================================
   MENU
   ============================================================ */
.menu-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; }
.menu-intro .moco { background: var(--cream-2); border: 1px solid var(--sand); border-radius: var(--radius); padding: 24px 26px; }
.menu-intro .moco b { font-family: var(--font-display); font-size: 1.15rem; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.menu-intro .moco p { margin-top: 8px; font-size: .98rem; color: var(--ink-soft); }

/* signature cards */
.sig-grid { margin-top: clamp(34px,5vw,56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sig-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.sig-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sig-card image-slot, .sig-card .sig-photo { width: 100%; height: 220px; display: block; object-fit: cover; }
.sig-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sig-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sig-card__top h4 { font-size: 1.2rem; }
.sig-card__price { font-family: var(--font-display); font-weight: 700; color: var(--terracotta); font-size: 1.05rem; }
.sig-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.45; }
.sig-card .tag { margin-top: auto; padding-top: 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--teal-500); }

/* tabbed full menu */
.menu-tabs { margin-top: clamp(48px,7vw,84px); }
.menu-tabs__header { margin-bottom: 28px; text-align: center; }
.menu-tabs__header h3 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--teal); margin-bottom: 8px; }
.menu-tabs__subtitle { font-size: clamp(0.95rem, 1.8vw, 1.1rem); color: var(--ink-soft); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--sand); padding-bottom: 18px; margin-bottom: 34px; }
.tab { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; padding: 9px 18px; border-radius: 999px; color: var(--ink-soft); transition: background .18s, color .18s; }
.tab:hover { color: var(--ink); background: rgba(21,70,65,.06); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.menu-panel { display: none; }
.menu-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to{ opacity:1; transform:none;} }
.menu-list { columns: 2; column-gap: 64px; }
.menu-item { break-inside: avoid; padding: 16px 0; border-bottom: 1px dotted var(--sand-deep); display: block; }
.menu-item__row { display: flex; align-items: baseline; gap: 10px; }
.menu-item__row h4 { font-size: 1.15rem; font-weight: 700; flex: none; }
.menu-item__dots { flex: 1; border-bottom: 1.5px dotted var(--sand-deep); transform: translateY(-4px); }
.menu-item__price { font-family: var(--font-display); font-weight: 700; color: var(--teal); font-size: 1.08rem; flex: none; }
.menu-item p { font-size: .9rem; color: var(--ink-soft); margin-top: 5px; line-height: 1.45; max-width: 52ch; }
.menu-item .gf { display: inline-block; margin-top: 7px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-500); background: var(--aqua-wash); padding: 2px 8px; border-radius: 6px; }
.menu-note { margin-top: 30px; font-size: .9rem; color: var(--ink-faint); font-style: italic; }
.confirm { color: var(--terracotta); font-style: normal; font-weight: 600; }

/* ============================================================
   STORY / ABOUT
   ============================================================ */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,6vw,84px); align-items: center; }
.story__media { position: relative; }
.story__media .main { width: 100%; height: clamp(360px, 52vw, 560px); object-fit: cover; display: block; border-radius: 20px; }
.story__media .inset { position: absolute; right: -28px; bottom: -34px; width: 44%; height: 230px; object-fit: cover; border-radius: 14px; border: 8px solid var(--cream); box-shadow: var(--shadow); }
.story__media .badge { position: absolute; top: -22px; left: -22px; width: 116px; height: 116px; border-radius: 50%; background: var(--terracotta); color: #fff; display: grid; place-content: center; text-align: center; font-family: var(--font-display); font-weight: 700; line-height: 1.05; font-size: .92rem; transform: rotate(-8deg); box-shadow: var(--shadow-sm); }
.story__media .badge span { font-size: 1.7rem; display: block; }
.story__text h2 { font-size: clamp(2rem,5vw,3.4rem); }
.story__text p { margin-top: 18px; font-size: 1.06rem; color: var(--ink-soft); }
.story__text p strong { color: var(--ink); }
.story__stats { margin-top: 30px; display: flex; gap: 36px; flex-wrap: wrap; }
.story__stats .stat b { font-family: var(--font-display); font-size: 2.2rem; color: var(--teal); display: block; line-height: 1; }
.story__stats .stat span { font-size: .86rem; color: var(--ink-soft); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.gallery-grid image-slot { width: 100%; height: 100%; }
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-grid img:hover {
  transform: scale(1.025);
  box-shadow: var(--shadow-sm);
}

.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.gallery-cap { margin-top: 18px; font-size: .9rem; color: var(--ink-faint); }

/* ============================================================
   FUNCTIONS + BOOKING
   ============================================================ */
.functions { background: var(--teal); color: var(--cream); border-radius: clamp(20px,3vw,32px); overflow: hidden; display: grid; grid-template-columns: 1.05fr 1fr; }
.functions__media { position: relative; min-height: 340px; }
.functions__media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.barista-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.functions__body { padding: clamp(34px,4.5vw,64px); }
.functions__body .eyebrow { color: var(--aqua-soft); }
.functions__body .eyebrow::before { background: var(--amber); }
.functions__body h2 { color: #fff; font-size: clamp(2rem,4.5vw,3.2rem); margin-top: 14px; }
.functions__body p { margin-top: 16px; color: rgba(220,235,230,.85); font-size: 1.05rem; }
.functions__body ul { margin-top: 22px; display: grid; gap: 12px; list-style: none; }
.functions__body li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.functions__body li svg { width: 20px; height: 20px; color: var(--aqua-soft); flex: none; margin-top: 2px; }

/* booking form */
.booking { margin-top: 30px; background: rgba(251,245,232,.07); border: 1px solid rgba(174,212,204,.2); border-radius: var(--radius); padding: 22px; }
.booking h3 { color: #fff; font-size: 1.25rem; }
.booking__sub { font-size: .86rem; color: rgba(220,235,230,.7); margin-top: 4px; }
.booking__grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--aqua-soft); }
.field input, .field select {
  font: inherit; font-size: .98rem; color: var(--cream);
  background: rgba(13,30,27,.4); border: 1px solid rgba(174,212,204,.28);
  border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field input::placeholder { color: rgba(220,235,230,.5); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23AED4CC' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); }
.booking .btn { margin-top: 14px; }
.booking__provider { margin-top: 12px; font-size: .76rem; color: rgba(220,235,230,.5); text-align: center; }
/* Desktop hand-off panel: the finished booking text, ready to copy. Phones
   never see this — they get the message handed to their Messages app instead. */
.booking__handoff {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0,0,0,.16);
  border: 1px solid rgba(220,235,230,.14);
}
.booking__handoff[hidden] { display: none; }
.booking__handoff-lead { font-size: .8rem; color: rgba(220,235,230,.62); text-align: center; margin-bottom: 10px; }
.booking__handoff-lead b { color: var(--amber); }
.booking__handoff-msg {
  font-size: .88rem;
  line-height: 1.55;
  color: rgba(240,250,247,.94);
  background: rgba(0,0,0,.22);
  border-radius: 9px;
  padding: 12px 14px;
  /* The customer may want to select this by hand, so keep it selectable
     and preserve the wrapping they'll see in their messaging app. */
  user-select: text;
  -webkit-user-select: text;
}
.booking__handoff-actions { display: flex; gap: 10px; margin-top: 12px; }
.booking__handoff-actions .btn { flex: 1; margin-top: 0; min-height: 44px; }
.booking__copy.is-copied { background: var(--aqua-soft); color: #11302b; }

@media (max-width: 520px) {
  .booking__handoff-actions { flex-direction: column; }
}

.booking__privacy { margin-top: 7px; font-size: .68rem; line-height: 1.5; color: rgba(220,235,230,.38); text-align: center; }
.booking__privacy a { color: rgba(220,235,230,.62); text-decoration: underline; text-underline-offset: 2px; }
.booking__privacy a:hover { color: rgba(220,235,230,.9); }
.booking__status { margin-top: 12px; font-size: .9rem; line-height: 1.45; text-align: center; border-radius: 10px; padding: 11px 14px; }
.booking__status.is-pending { color: var(--aqua-soft); background: rgba(174,212,204,.12); }
.booking__status.is-ok { color: #11302b; background: var(--aqua-soft); font-weight: 600; }
.booking__status.is-err { color: #fff; background: rgba(168,81,47,.92); }

/* ============================================================
   REVIEWS + INSTAGRAM
   ============================================================ */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.google-rating { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--sand); border-radius: var(--radius); padding: 14px 20px; box-shadow: var(--shadow-sm); }
.google-rating .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.google-rating .meta { font-size: .82rem; color: var(--ink-soft); }
.stars { display: inline-flex; gap: 2px; color: var(--amber); }
.stars svg { width: 16px; height: 16px; }
.g-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.g-logo svg { width: 16px; height: 16px; }

.review-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px; }
.review-card .stars { width: max-content; }
.review-card blockquote { font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.review-card .who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.review-card .who .av { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; flex: none; }
.review-card .who b { display: block; font-size: .98rem; }
.review-card .who span { font-size: .78rem; color: var(--ink-faint); }

.ig-strip { margin-top: clamp(48px,7vw,80px); }
.ig-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ig-head a { font-weight: 700; color: var(--terracotta); display: inline-flex; align-items: center; gap: 7px; }
.ig-head a svg { width: 20px; height: 20px; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ig-grid image-slot { width: 100%; aspect-ratio: 1; height: auto; }
.ig-cell { position: relative; aspect-ratio: 1; }
.ig-cell .ig-ico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(21,70,65,0); transition: background .25s; opacity: 0; }
.ig-cell:hover .ig-ico { background: rgba(21,70,65,.4); opacity: 1; }
.ig-cell .ig-ico svg { width: 30px; height: 30px; color: #fff; }

/* ============================================================
   VISIT US
   ============================================================ */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: start; }
.visit__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--sand); }
.visit__map iframe { width: 100%; height: 460px; border: 0; display: block; filter: saturate(.92); }
.visit__info h2 { font-size: clamp(2rem,5vw,3.2rem); }
.visit__addr { margin-top: 18px; font-size: 1.12rem; line-height: 1.5; }
.visit__addr a { color: var(--teal); font-weight: 600; }
.hours-table { margin-top: 24px; border: 1px solid var(--sand); border-radius: var(--radius); overflow: hidden; }
.hours-table .row { display: flex; justify-content: space-between; padding: 11px 18px; font-size: .96rem; }
.hours-table .row:nth-child(odd) { background: var(--cream-2); }
.hours-table .row.today { background: var(--teal); color: var(--cream); font-weight: 700; }
.hours-table .row.today .open-now { color: var(--amber); }
.visit__note { margin-top: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.visit__note svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: 3px; }
.visit__actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.visit__actions .btn--block { grid-column: span 1; }
.visit__actions .full2 { grid-column: 1 / -1; }
.delivery-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--terracotta); }
.delivery-link svg { width: 18px; height: 18px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: var(--cream); padding-block: clamp(50px,7vw,80px) 30px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.footer__brand p { margin-top: 16px; color: rgba(220,235,230,.7); max-width: 38ch; font-size: .98rem; }
.footer__brand .socials { margin-top: 20px; display: flex; gap: 10px; }
.footer__brand .socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(174,212,204,.3); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.footer__brand .socials a:hover { background: var(--teal); border-color: var(--teal); }
.footer__brand .socials svg { width: 20px; height: 20px; color: var(--aqua-soft); }
.footer__col h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--aqua-soft); margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: rgba(220,235,230,.82); font-size: .98rem; padding: 5px 0; }
.footer__col a:hover { color: #fff; }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(174,212,204,.16); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(220,235,230,.55); }

/* sticky mobile action bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(174,212,204,.2); box-shadow: 0 -6px 24px -12px rgba(27,36,32,.4); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-weight: 700; font-size: .96rem; background: var(--cream); color: var(--ink); }
.mobile-bar a.call { background: var(--teal); color: var(--cream); }
.mobile-bar a.book { background: var(--terracotta); color: #fff; }
.mobile-bar svg { width: 18px; height: 18px; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
#tweaks { position: fixed; right: 18px; bottom: 18px; z-index: 9999; width: 290px; background: var(--cream); border: 1px solid var(--sand-deep); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(27,36,32,.5); padding: 16px 18px 18px; font-family: var(--font-body); display: none; }
#tweaks.show { display: block; }
#tweaks .tk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
#tweaks .tk-head b { font-family: var(--font-display); font-size: 1.05rem; }
#tweaks .tk-head button { font-size: 1.3rem; line-height: 1; color: var(--ink-soft); padding: 0 4px; }
#tweaks .tk-row { margin-bottom: 14px; }
#tweaks .tk-row > label { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin-bottom: 7px; }
#tweaks .seg { display: flex; gap: 5px; background: var(--cream-2); border-radius: 10px; padding: 4px; }
#tweaks .seg button { flex: 1; font-size: .82rem; font-weight: 700; padding: 8px 4px; border-radius: 7px; color: var(--ink-soft); }
#tweaks .seg button.on { background: var(--teal); color: var(--cream); }
#tweaks input[type="text"] { width: 100%; font: inherit; font-size: .9rem; padding: 9px 11px; border: 1px solid var(--sand-deep); border-radius: 9px; background: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .menu-intro { grid-template-columns: 1fr; gap: 26px; }
  .sig-grid { grid-template-columns: repeat(2,1fr); }
  .story { grid-template-columns: 1fr; }
  .story__media { margin-bottom: 30px; }
  .functions { grid-template-columns: 1fr; }
  .functions__media { min-height: 240px; }
  .visit { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .ig-grid { grid-template-columns: repeat(4,1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .quickbar__inner { grid-template-columns: 1fr 1fr; }
  .qi:nth-child(3) { border-left: none; }
  .qi + .qi:nth-child(odd) { border-left: none; }
  .qi { border-top: 1px solid rgba(251,245,232,.12); }
  .qi:nth-child(-n+2) { border-top: none; }
  .sig-grid { grid-template-columns: 1fr; }
  .menu-tabs__header { text-align: left; }
  .mobile-menu-selector {
    display: none;
  }
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: none;
    padding-bottom: 0;
  }
  .tabs::-webkit-scrollbar {
    display: none;
  }
  .tab {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
    background: rgba(21,70,65,0.04);
    border: 1px solid var(--sand);
    color: var(--ink-soft);
    margin-bottom: 0;
    min-height: 44px; /* Mobile touch target safety size */
  }
  .tab[aria-selected="true"] {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
  }
  .menu-list { columns: 1; }
  body[data-hero="c"] .hero { grid-template-columns: 1fr; }
  body[data-hero="c"] .hero__media { grid-column: 1; min-height: 46svh; }
  body[data-hero="c"] .hero__content { grid-row: auto; }
  .functions__media { min-height: 340px; }
  .barista-img { object-position: center 75%; }
  .booking__grid { grid-template-columns: 1fr; }
  .story__media .inset { display: none; }
  .gallery-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .gallery-grid::-webkit-scrollbar {
    display: none;
  }
  .gallery-grid img {
    flex: 0 0 82%;
    height: 340px;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: var(--radius);
    grid-row: auto !important;
    grid-column: auto !important;
  }
  .ig-grid { grid-template-columns: repeat(3,1fr); }
  .visit__actions { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 56px; }
  .hero__scroll { display: none; }
  #tweaks { left: 12px; right: 12px; bottom: 64px; width: auto; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  body[data-hero="b"] .hero h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
}

/* ============================================================
   MENU EXTENSIONS — pills, sub-headings, coffee grid, extras strip
   ============================================================ */

/* GF / Spicy little pills next to dish names */
.menu-item__row h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gf-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: .62rem; font-weight: 800;
  letter-spacing: .08em; color: #fff; background: var(--teal-500, var(--teal));
  padding: 2px 7px; border-radius: 999px; line-height: 1.4;
  vertical-align: middle;
}
.spice { font-size: .9rem; line-height: 1; transform: translateY(-1px); }

/* sub-heads inside a panel (e.g. Smoothies, Juices) */
.menu-subhead {
  column-span: all;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin: 8px 0 4px;
  padding-bottom: 8px; border-bottom: 1.5px solid var(--sand-deep, rgba(0,0,0,.12));
}
.menu-subhead:not(:first-child) { margin-top: 28px; }

/* Coffee panel — two-column grid with size-priced rows */
.coffee-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 5vw, 72px);
}
.coffee-subhead {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin: 6px 0 10px;
}
.coffee-subhead:not(:first-child) { margin-top: 28px; }
.coffee-header {
  display: grid; grid-template-columns: 1fr 80px 80px;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint); padding-bottom: 6px;
  border-bottom: 1px solid var(--sand-deep, rgba(0,0,0,.12)); margin-bottom: 4px;
}
.coffee-header span + span { text-align: right; }
.coffee-row {
  display: grid; grid-template-columns: 1fr 80px 80px;
  padding: 9px 0; border-bottom: 1px dotted var(--sand-deep, rgba(0,0,0,.12));
  font-size: .98rem; color: var(--ink);
  align-items: baseline;
}
.coffee-row span:first-child { font-weight: 600; }
.coffee-row span:first-child em { font-style: italic; font-weight: 400; color: var(--ink-faint); font-size: .82rem; margin-left: 4px; }
.coffee-row span + span { text-align: right; font-family: var(--font-display); font-weight: 700; color: var(--teal); }
.coffee-row .gf-pill { margin-left: 6px; }
.coffee-extras {
  margin-top: 28px; padding: 18px 20px;
  background: var(--aqua-wash, rgba(174,212,204,.18));
  border-radius: 14px;
}
.coffee-extras h4 {
  font-family: var(--font-display); font-weight: 800;
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 8px;
}
.coffee-extras p { font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }

/* Extras strip at the bottom of the menu */
.menu-extras {
  margin-top: clamp(40px, 5vw, 64px);
  padding: 24px clamp(22px, 3vw, 36px);
  background: var(--cream2, var(--aqua-wash, #f6efde));
  border: 1px solid var(--sand-deep, rgba(0,0,0,.08));
  border-radius: 16px;
}
.menu-extras h4 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); text-align: center; margin-bottom: 14px;
}
.menu-extras__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 22px; justify-items: center;
  font-size: .92rem; color: var(--ink);
}
.menu-extras__grid span b { color: var(--terracotta); font-weight: 700; margin-left: 3px; }
.menu-extras__legend {
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dotted var(--sand-deep, rgba(0,0,0,.12));
  font-size: .85rem; color: var(--ink-faint); text-align: center;
}
.menu-extras__legend .gf-pill { margin-right: 4px; }

/* Functions section additions */
.functions__body h3.functions__why {
  font-family: var(--font-display); color: #fff;
  font-size: 1.15rem; margin-top: 28px;
  letter-spacing: .02em;
}
.functions__body .functions__close {
  margin-top: 22px; font-size: 1rem;
  color: rgba(220,235,230,.92);
}
.functions__body .functions__close strong { color: #fff; }
.functions__cta {
  margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap;
}

@media (max-width: 760px) {
  .coffee-grid { grid-template-columns: 1fr; gap: 12px; }
  .menu-extras__grid { grid-template-columns: 1fr 1fr; }
  .coffee-header, .coffee-row { grid-template-columns: 1fr 60px 60px; }
}

.mobile-menu-selector { display: none; }

/* ============================================================
   PRINT MENU MODAL (LIGHTBOX)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000; /* Above paper grain overlay (9998) and tweaks panel (9999) */
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(27,36,32,0.96);
  backdrop-filter: blur(8px);
  padding: 20px;
}
.modal.is-open {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}
.modal__overlay {
  position: absolute;
  inset: 0;
}
.modal__container {
  position: relative;
  z-index: 1001;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal__close {
  position: absolute;
  top: -45px;
  right: 0;
  font-size: 2.8rem;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  transition: transform 0.2s;
}
.modal__close:hover {
  transform: scale(1.1);
}
.modal__content {
  overflow-y: auto;
  border-radius: var(--radius);
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}
.modal__pages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.modal__pages img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand);
  box-shadow: var(--shadow-sm);
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 760px) {
  .modal {
    padding: 10px;
  }
  .modal__container {
    max-height: 95vh;
  }
  .modal__close {
    top: -5px;
    right: 5px;
    color: var(--ink);
    background: rgba(255,255,255,0.95);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 1005;
    font-size: 2.2rem;
  }
  .modal__content {
    padding: 12px;
    margin-top: 50px;
  }
  .modal__pages {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
