/* ============================================================
   Friends Avenue Cafe JLT — design system
   Palette + type derived from research/brand-system.md
   Warm, appetite-led hospitality. Mobile-first.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #FFF8EF;
  --surface: #FFFFFF;
  --surface-2: #FBF0E1;
  --text: #271A12;
  --muted: #7A6654;
  --primary: #B64A2E;   /* terracotta */
  --secondary: #17453B; /* forest green */
  --accent: #E7A93B;    /* amber */
  --border: #EADCCB;
  --focus: #B64A2E;
  --hero-overlay: 0.30;

  --ink-on-accent: #271A12;
  --shadow-sm: 0 1px 2px rgba(39,26,18,.06), 0 2px 8px rgba(39,26,18,.05);
  --shadow-md: 0 8px 30px rgba(39,26,18,.10);
  --shadow-lg: 0 24px 60px rgba(39,26,18,.16);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Theme: forest (dark) */
:root[data-theme="forest"] {
  --bg: #14342C;
  --surface: #1A4036;
  --surface-2: #173A31;
  --text: #F4EADd;
  --muted: #B7C7BC;
  --primary: #E08A5E;
  --secondary: #E7A93B;
  --accent: #E7A93B;
  --border: #2C5247;
  --focus: #E7A93B;
  --hero-overlay: 0.46;
  --ink-on-accent: #14342C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.16);
  --shadow-md: 0 10px 34px rgba(0,0,0,.30);
  --shadow-lg: 0 28px 64px rgba(0,0,0,.40);
}

/* Accent variants */
:root[data-accent="amber"]     { --accent: #E7A93B; }
:root[data-accent="terracotta"]{ --accent: #B64A2E; --ink-on-accent: #FFF8EF; }
:root[data-accent="sun"]       { --accent: #F0C419; }
:root[data-theme="forest"][data-accent="terracotta"] { --ink-on-accent: #FFF8EF; }

/* Font pairings */
:root[data-font="editorial"] {
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
:root[data-font="grotesk"] {
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

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

/* eyebrow / mono labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--primary); display: inline-block; }
:root[data-theme="forest"] .eyebrow { color: var(--accent); }
:root[data-theme="forest"] .eyebrow::before { background: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 100px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15.5px; letter-spacing: .005em;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .2s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--ink-on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--secondary); color: #FFF8EF; }
:root[data-theme="forest"] .btn-dark { background: var(--primary); color: #14342C; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); background: color-mix(in oklab, var(--text) 5%, transparent); }
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, var(--bg) 86%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 13px; margin-right: auto; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
}
.brand-logo img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.brand-name span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav { display: none; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 15px; border-radius: 100px; font-size: 15px; font-weight: 500; color: var(--text);
  transition: background .2s, color .2s;
}
.nav a:hover { background: color-mix(in oklab, var(--primary) 10%, transparent); color: var(--primary); }
.header-cta { display: none; }
:root[data-theme="forest"] .brand-logo img { filter: none; }

.menu-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (min-width: 940px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); padding: 20px var(--gutter) 40px;
  transform: translateY(-100%); transition: transform .42s var(--ease); visibility: hidden;
}
.drawer.open { transform: translateY(0); visibility: visible; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.drawer nav { display: flex; flex-direction: column; gap: 6px; margin-top: 30px; }
.drawer nav a {
  font-family: var(--font-display); font-size: 34px; font-weight: 600; padding: 12px 0;
  border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center;
}
.drawer nav a span { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.drawer-foot { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 60px) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; }
.hero-copy h1 {
  font-size: clamp(46px, 9vw, 88px);
  letter-spacing: -.025em;
}
.hero-copy h1 em { font-style: italic; color: var(--primary); }
:root[data-theme="forest"] .hero-copy h1 em { color: var(--accent); }
.hero-lede { font-size: clamp(17px, 2.3vw, 20px); color: var(--muted); margin-top: 22px; max-width: 33ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-media { position: relative; }
.hero-figure {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: var(--surface-2);
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }

/* rating chip */
.rating-chip {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 100px;
  padding: 9px 9px 9px 16px; box-shadow: var(--shadow-sm); font-size: 14px;
}
.rating-chip .stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.rating-chip b { font-weight: 700; }
.rating-chip .gpill {
  background: var(--surface-2); border-radius: 100px; padding: 5px 12px; font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
}

/* floating accent badge on hero image */
.hero-badge {
  position: absolute; left: -14px; bottom: 26px; z-index: 2;
  background: var(--accent); color: var(--ink-on-accent);
  width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center;
  text-align: center; box-shadow: var(--shadow-md);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  animation: spinBadge 26s linear infinite;
}
.hero-badge span { line-height: 1.5; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .hero-badge { animation: none; } }
@keyframes spinBadge { to { transform: rotate(360deg); } }

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .hero-figure { aspect-ratio: 3 / 3.5; }
}

/* Hero layout variant: full-bleed */
.hero[data-layout="full"] .hero-grid { grid-template-columns: 1fr; }
.hero[data-layout="full"] .hero-media { display: none; }
.hero[data-layout="full"] {
  background-image: linear-gradient(to right, rgba(20,18,12,calc(var(--hero-overlay) + .28)), rgba(20,18,12,var(--hero-overlay))), var(--hero-bg);
  background-size: cover; background-position: center; color: #FFF8EF;
  border-radius: 0; margin-top: 0;
}
.hero[data-layout="full"] .hero-inner { min-height: min(78vh, 760px); display: flex; align-items: center; }
.hero[data-layout="full"] .hero-copy h1 { color: #FFF8EF; }
.hero[data-layout="full"] .hero-copy h1 em { color: var(--accent); }
.hero[data-layout="full"] .hero-lede { color: rgba(255,248,239,.85); }
.hero[data-layout="full"] .eyebrow { color: var(--accent); }
.hero[data-layout="full"] .eyebrow::before { background: var(--accent); }
.hero[data-layout="full"] .rating-chip { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #FFF8EF; backdrop-filter: blur(6px); }
.hero[data-layout="full"] .rating-chip .gpill { background: rgba(255,255,255,.16); color: rgba(255,248,239,.9); }

/* Hero layout variant: centered editorial */
.hero[data-layout="center"] .hero-grid { grid-template-columns: 1fr; text-align: center; }
.hero[data-layout="center"] .hero-copy { max-width: 820px; margin-inline: auto; }
.hero[data-layout="center"] .hero-lede { margin-inline: auto; max-width: 50ch; }
.hero[data-layout="center"] .hero-actions, .hero[data-layout="center"] .eyebrow { justify-content: center; }
.hero[data-layout="center"] .hero-media { margin-top: 16px; }
.hero[data-layout="center"] .hero-figure { aspect-ratio: 16 / 9; }
.hero[data-layout="center"] .hero-badge { display: none; }

/* ---------- Marquee / ticker ---------- */
.ticker {
  background: var(--secondary); color: #FFF8EF; overflow: hidden; padding: 16px 0;
  border-block: 1px solid color-mix(in oklab, var(--secondary) 60%, #000);
}
:root[data-theme="forest"] .ticker { background: var(--primary); color: #14342C; }
.ticker-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker-track span { font-family: var(--font-display); font-size: 21px; font-weight: 500; padding: 0 28px; display: inline-flex; align-items: center; gap: 28px; white-space: nowrap; }
.ticker-track span::after { content: "✷"; color: var(--accent); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section frame ---------- */
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5.5vw, 58px); }
.section-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.section-alt { background: var(--surface-2); }

/* ---------- Highlights ---------- */
.hl-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.hl-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.hl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.hl-photo { aspect-ratio: 5 / 4; overflow: hidden; }
.hl-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hl-card:hover .hl-photo img { transform: scale(1.06); }
.hl-body { padding: 22px 22px 26px; }
.hl-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--primary); }
:root[data-theme="forest"] .hl-kicker { color: var(--accent); }
.hl-body h3 { font-size: 25px; margin: 10px 0 8px; }
.hl-body p { color: var(--muted); font-size: 15px; }
@media (min-width: 640px) { .hl-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .hl-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.menu-note {
  margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 18px 22px; border: 1px dashed var(--border); border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent) 8%, transparent); font-size: 14.5px; color: var(--muted);
}
.menu-note b { color: var(--text); }
.menu-note .mn-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--ink-on-accent); display: grid; place-items: center; flex: 0 0 auto; }
.menu-note .mn-icon svg { width: 20px; height: 20px; }

/* ---------- Gallery ---------- */
.gallery { columns: 1; column-gap: 16px; }
@media (min-width: 560px) { .gallery { columns: 2; } }
@media (min-width: 960px) { .gallery { columns: 3; column-gap: 18px; } }
.gal-item {
  break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden;
  position: relative; box-shadow: var(--shadow-sm); cursor: pointer; background: var(--surface-2);
}
.gal-item img { width: 100%; transition: transform .7s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,18,12,.34), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.gal-item:hover::after { opacity: 1; }
.gal-cap {
  position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #FFF8EF; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.gal-item:hover .gal-cap { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(18,14,9,.92); display: none;
  align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .3s;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: min(94vw, 1100px); max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow-lg); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close { position: absolute; top: 18px; right: 18px; transform: none; }
.lb-btn svg { width: 24px; height: 24px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; grid-template-columns: 1fr; }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.about-media figure:first-child { grid-row: span 2; aspect-ratio: 3/5; }
.about-media figure img { width: 100%; height: 100%; object-fit: cover; }
.about-media figure.tall { aspect-ratio: 4/3; }
.about-copy h2 { font-size: clamp(32px, 5vw, 52px); }
.about-copy p { color: var(--muted); margin-top: 18px; font-size: 17px; }
.about-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; flex: 1 1 130px; box-shadow: var(--shadow-sm); }
.stat b { font-family: var(--font-display); font-size: 30px; display: block; line-height: 1; }
.stat span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; display: block; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Visit ---------- */
.visit-grid { display: grid; gap: clamp(26px, 4vw, 44px); grid-template-columns: 1fr; }
@media (min-width: 940px) { .visit-grid { grid-template-columns: 1fr 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); box-shadow: var(--shadow-sm); }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.info-row:last-of-type { border-bottom: none; }
.info-ic { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--surface-2); color: var(--primary); display: grid; place-items: center; }
:root[data-theme="forest"] .info-ic { color: var(--accent); }
.info-ic svg { width: 22px; height: 22px; }
.info-row .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.info-row .val { font-size: 17px; font-weight: 500; margin-top: 4px; }
.info-row .val a:hover { color: var(--primary); }
.info-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; min-height: 300px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: saturate(.92); }
.map-tag { position: absolute; left: 14px; top: 14px; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 8px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; box-shadow: var(--shadow-sm); display: flex; gap: 8px; align-items: center; }
.map-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* form */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--primary) 14%, transparent); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; }
.form-success .check { width: 64px; height: 64px; border-radius: 50%; background: var(--secondary); color: #FFF8EF; display: grid; place-items: center; margin: 0 auto 18px; }
:root[data-theme="forest"] .form-success .check { background: var(--accent); color: #14342C; }
.form-success .check svg { width: 32px; height: 32px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--primary); color: #FFF8EF; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 80px); text-align: center; box-shadow: var(--shadow-md); }
:root[data-theme="forest"] .cta-band { background: var(--secondary); color: #14342C; }
.cta-band h2 { font-size: clamp(30px, 5vw, 52px); position: relative; z-index: 2; }
.cta-band p { margin: 18px auto 0; max-width: 46ch; opacity: .9; position: relative; z-index: 2; }
.cta-band .hero-actions { justify-content: center; position: relative; z-index: 2; }
.cta-band .blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .16; }
.cta-band .blob.b1 { width: 220px; height: 220px; background: var(--accent); top: -70px; left: -40px; }
.cta-band .blob.b2 { width: 280px; height: 280px; background: #fff; bottom: -120px; right: -60px; opacity: .08; }
.cta-band .btn-ghost { color: #FFF8EF; border-color: rgba(255,248,239,.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #FFF8EF; }
:root[data-theme="forest"] .cta-band .btn-ghost { color: #14342C; border-color: rgba(20,52,44,.4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: #EAD9C4; padding: clamp(48px, 7vw, 84px) 0 0; margin-top: 0; }
:root[data-theme="forest"] .site-footer { background: #0F2620; }
.footer-grid { display: grid; gap: 38px; grid-template-columns: 1fr; padding-bottom: 48px; }
.footer-brand .brand-logo { background: var(--accent); }
.footer-brand .brand-logo img { filter: brightness(0); }
.footer-brand .brand-name b, .footer-brand .brand-name { color: #FFF8EF; }
.footer-brand p { margin-top: 18px; color: #C7B49E; max-width: 34ch; font-size: 15px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; color: #D8C6B0; font-size: 15px; padding: 5px 0; }
.footer-col a:hover { color: #FFF8EF; }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,248,239,.22); display: grid; place-items: center; color: #EAD9C4; transition: background .2s, color .2s; }
.social-row a:hover { background: var(--accent); color: #14342C; border-color: var(--accent); }
.social-row svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,248,239,.14); padding: 22px 0 32px; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; font-size: 12.5px; color: #B49D85; }
.footer-bottom .disc { font-family: var(--font-mono); font-size: 11px; max-width: 60ch; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--bg) 92%, transparent); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
}
.action-bar a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 7px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--text); }
.action-bar a svg { width: 21px; height: 21px; }
.action-bar a.primary { background: var(--accent); color: var(--ink-on-accent); }
.action-bar a:not(.primary):active { background: var(--surface-2); }
@media (min-width: 940px) { .action-bar { display: none; } }
body { padding-bottom: 78px; }
@media (min-width: 940px) { body { padding-bottom: 0; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* tweak hint */
.tweak-hint { position: fixed; right: 16px; bottom: 96px; z-index: 65; font-family: var(--font-mono); font-size: 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 7px 13px; box-shadow: var(--shadow-sm); opacity: .9; }
@media (min-width: 940px) { .tweak-hint { bottom: 16px; } }
