/* ============================================================
   BiteScout — core tokens, shell, shared components
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Surfaces — warm paper, grounded in the app's light UI */
  --paper:        #FBF6EF;
  --paper-2:      #F4EDE3;
  --paper-3:      #EDE3D6;
  --card:         #FFFFFF;

  /* Ink */
  --ink:          #23180F;
  --ink-2:        #4A3B2E;
  --ink-3:        #8A7864;
  --ink-4:        #B9A991;

  /* Brand */
  --flame:        #FF6B35;
  --flame-deep:   #E4531D;
  --flame-wash:   rgba(255,107,53,0.10);
  --flame-line:   rgba(255,107,53,0.30);

  /* Support — drawn from the food itself: pistachio, rose, gold */
  --pistachio:    #6B7F4E;
  --pistachio-wash: rgba(107,127,78,0.12);
  --rose:         #C4566B;
  --gold:         #B98A2E;

  --line:         rgba(35,24,15,0.10);
  --line-2:       rgba(35,24,15,0.18);

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(35,24,15,0.05);
  --shadow-md: 0 12px 32px rgba(35,24,15,0.08);
  --shadow-lg: 0 30px 70px rgba(35,24,15,0.13);

  --wrap: 1240px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

::selection { background: var(--flame); color: #fff; }

/* Utility face — used for suburbs, distances, data.
   This is the "local / proximity" voice of the brand. */
.tag {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------- Eyebrow label ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--flame-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--flame);
  flex-shrink: 0;
}
.eyebrow.centered { justify-content: center; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(251,246,239,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, padding .3s, background .3s;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  padding: 9px 32px;
  background: rgba(251,246,239,0.94);
}

.nav-logo img {
  height: 34px;
  width: auto;
  transition: height .3s;
}
.nav.scrolled .nav-logo img { height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 9px 15px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(35,24,15,0.05); }
.nav-links a.current { color: var(--flame-deep); }

.nav-get {
  margin-left: 10px;
  padding: 11px 22px !important;
  background: var(--ink);
  color: var(--paper) !important;
  font-weight: 600 !important;
  border-radius: 999px;
  transition: background .25s, transform .25s !important;
}
.nav-get:hover { background: var(--flame-deep); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.6px;
  background: var(--ink); margin: 4px 0;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav { padding: 12px 20px; }
  .nav.scrolled { padding: 10px 20px; }
  /* backdrop-filter on an ancestor makes position:fixed children resolve
     against the nav instead of the viewport, which traps the menu panel
     inside the 66px bar. Drop the blur here and go fully opaque instead. */
  .nav, .nav.scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--paper);
  }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 84vw);
    height: 100dvh;
    overflow-y: auto;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
    padding: 32px;
    background: var(--paper-2);
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform .4s cubic-bezier(.6,0,.2,1);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 18px; font-size: 17px; }
  .nav-get { margin-left: 0; margin-top: 10px; text-align: center; }

  /* Scrim behind the open panel */
  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(35,24,15,0.42);
    z-index: 99;
    animation: scrimIn .3s ease both;
  }
  @keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s, background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.btn-flame {
  background: var(--flame);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,107,53,0.28);
}
.btn-flame:hover {
  background: var(--flame-deep);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255,107,53,0.34);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: #352517; transform: translateY(-2px); }

.btn-line {
  background: transparent;
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-line:hover { border-color: var(--flame); color: var(--flame-deep); transform: translateY(-2px); }

.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-soon {
  background: transparent;
  border: 1px dashed var(--line-2);
  color: var(--ink-3);
  cursor: default;
}
.btn-soon:hover { transform: none; }

/* ============================================================
   Store buttons
   ============================================================ */
.store-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-row.centered { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  transition: transform .25s, background .25s;
}
.store-btn:hover { background: #352517; transform: translateY(-2px); }
.store-btn svg { flex-shrink: 0; }
.store-btn-text { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn-text small {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.store-btn-text strong { font-size: 15.5px; font-weight: 600; }

.store-btn.pending {
  background: transparent;
  color: var(--ink-3);
  border: 1px dashed var(--line-2);
  cursor: default;
}
.store-btn.pending:hover { transform: none; background: transparent; }

/* ============================================================
   Sections
   ============================================================ */
.section {
  position: relative;
  padding: 104px 32px;
}
.section-tight { padding: 72px 32px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  margin-bottom: 16px;
}
.section-head h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--flame-deep);
}
.section-head p {
  font-size: 17.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.band-warm { background: var(--paper-2); }
.band-ink {
  background: var(--ink);
  color: var(--paper);
}
.band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink p { color: rgba(251,246,239,0.72); }
.band-ink .eyebrow { color: var(--flame); }

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-head {
  padding: 84px 32px 60px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.page-head h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  margin-bottom: 20px;
}
.page-head h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--flame-deep);
}
.page-head p {
  font-size: clamp(16.5px, 1.7vw, 19.5px);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.2,.8,.2,1), transform .85s cubic-bezier(.2,.8,.2,1);
}
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(251,246,239,0.7);
  padding: 76px 32px 30px;
}
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto 52px;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  max-width: 300px;
  color: rgba(251,246,239,0.6);
}
.footer-made {
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251,246,239,0.4);
}
.footer-col h4 {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--flame);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  font-size: 14.5px;
  color: rgba(251,246,239,0.68);
  transition: color .2s;
}
.footer-col a:hover { color: var(--flame); }

.footer-base {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid rgba(251,246,239,0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(251,246,239,0.45);
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

@media (max-width: 768px) {
  .section { padding: 72px 20px; }
  .section-tight { padding: 56px 20px; }
  .page-head { padding: 60px 20px 44px; }
  .footer { padding: 56px 20px 26px; }
}
