/* Restaurant base — design tokens. The CMS Colours and Fonts tabs map onto these
   custom properties (every --color-* on :root gets a picker). Designs restyle
   by changing these values and the block styles; never type a brand colour as
   a literal — tint with color-mix(in srgb, var(--color-…) N%, transparent). */
/* Stack'd Burger Co. — design tokens. The CMS Colours and Fonts tabs map onto
   these custom properties (every --color-* on :root gets a picker). Never type a
   brand colour as a literal — tint with color-mix(in srgb, var(--color-…) N%, transparent). */
:root {
  /* brand */
  --color-primary: #f6a821;        /* orange: buttons, pills, highlights */
  --color-primary-dark: #e38d0c;   /* hover / pressed */
  --color-on-primary: #1a130c;     /* text on orange buttons */
  --color-accent: #ffb627;         /* script words ("Love", "Crave it?") */
  --color-hot: #e5382c;            /* "Popular" tags, the cart count */
  --color-forest: #16261b;         /* the delivery promo banner */
  /* text */
  --color-secondary: #15110d;      /* headings, strong text */
  --color-default: #4b433b;        /* body text */
  --color-muted: #877b6e;          /* captions, meta */
  /* surfaces */
  --color-bg: #fbf6ee;             /* cream page background */
  --color-surface: #f4ecdf;        /* alternate sections */
  --color-surface-soft: #f8f1e6;   /* subtle panels, footer */
  --color-tint: #fdebc8;           /* orange-tinted chips / icon wells */
  --color-white: #ffffff;          /* cards, inputs */
  --color-line: #ebdfcd;           /* borders, dividers */
  /* dark (header, hero, page heroes, promo bands) */
  --color-dark: #110d0a;
  --color-on-dark: #fbf6ee;

  --font-default: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-primary: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Kaushan Script', 'Brush Script MT', cursive;

  --radius: 20px;
  --radius-sm: 12px;
  --section-max-width: 78rem;
  --header-h: 84px;
  --section-pad-y: 96px;
  --base-size: 16px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
body { font-family: var(--font-default); color: var(--color-default); line-height: 1.65; background: var(--color-bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; }
h3, h4, h5 { font-weight: 700; letter-spacing: -.015em; }
.script { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; color: var(--color-accent); }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
::selection { background: var(--color-primary); color: var(--color-on-primary); }

.container { max-width: var(--section-max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad-y) 0; position: relative; }
section, footer { overflow-x: clip; }
section.alt { background: var(--color-surface); }
section.dark { background: var(--color-dark); color: color-mix(in srgb, var(--color-on-dark) 82%, transparent); }
section.dark h2, section.dark h3 { color: var(--color-on-dark); }
.hl { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; color: var(--color-primary-dark); }
section.dark .hl { color: var(--color-accent); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-primary); color: var(--color-on-primary); font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .2s ease; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { background: var(--color-primary-dark); transform: translateY(-1px); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--color-primary-dark) 80%, transparent); }
.btn.light { background: var(--color-white); color: var(--color-secondary); }
.btn.light:hover { background: var(--color-surface); }
.btn.ghost { background: transparent; color: var(--color-secondary); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost:hover { background: var(--color-secondary); color: var(--color-white); }
.btn.ghost-light { background: transparent; color: var(--color-on-dark); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.ghost-light:hover { background: var(--color-on-dark); color: var(--color-dark); }
.btn.small { padding: .6rem 1rem; font-size: .85rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--color-secondary); text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link svg { width: 16px; height: 16px; color: var(--color-primary-dark); transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ── Section heads: eyebrow, headline, intro ── */
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .74rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--color-secondary); }
.eyebrow::after { content: ''; width: 28px; height: 2px; border-radius: 2px; background: var(--color-primary); flex: none; }
section.dark .eyebrow { color: var(--color-on-dark); }
.head { max-width: 720px; margin-bottom: 44px; }
.head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .6rem; text-wrap: balance; }
.head > p:not(.eyebrow) { margin-top: .9rem; max-width: 60ch; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center > p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
.head.row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }
.head.row > div { max-width: 720px; }

/* ── Cards, chips, tags ── */
.card { background: var(--color-white); border: 1px solid color-mix(in srgb, var(--color-line) 70%, transparent); border-radius: var(--radius); box-shadow: 0 18px 40px -30px color-mix(in srgb, var(--color-secondary) 40%, transparent); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--color-tint); color: var(--color-primary-dark); }
.tag { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.6em; padding: 0 .4em; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .02em;
  border: 1px solid color-mix(in srgb, var(--color-secondary) 25%, transparent); color: var(--color-secondary); }
.tag.popular { border-color: transparent; background: var(--color-hot); color: var(--color-white); }
.price { font-weight: 700; color: var(--color-secondary); white-space: nowrap; }
.muted { color: var(--color-muted); }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label, .field-label { display: block; font-weight: 600; font-size: .82rem; color: var(--color-secondary); margin-bottom: .35rem; }
.form-grid input, .form-grid select, .form-grid textarea, .input {
  width: 100%; background: var(--color-white); border: 1.5px solid var(--color-line); border-radius: var(--radius-sm); padding: .8rem 1rem; color: var(--color-secondary);
  transition: border-color .2s ease, box-shadow .2s ease; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.form-grid ::placeholder { color: var(--color-muted); }
.field-err { color: #b3261e; font-size: .82rem; margin-top: .3rem; }
.form-note { font-size: .82rem; color: var(--color-muted); }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: #e6f4ea; color: #1e5631; }
.form-ok svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-bad { padding: 12px 16px; border-radius: var(--radius-sm); background: #fdecea; color: #8c1d18; font-size: .9rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--color-surface); gap: 4px; }
.seg button { border: 0; background: none; padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--color-default); }
.seg button.on { background: var(--color-white); color: var(--color-secondary); box-shadow: 0 1px 4px color-mix(in srgb, var(--color-secondary) 15%, transparent); }

/* tick list (the tick drawn in CSS so it follows the theme colours) */
.tick-list { list-style: none; display: grid; gap: .55rem; }
.tick-list li { position: relative; padding-left: 1.7rem; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .25em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--color-tint); }
.tick-list li::after { content: ''; position: absolute; left: .4rem; top: .48em; width: .3rem; height: .52rem; border: solid var(--color-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* rating stars (meaning-carrying colour, fixed) */
.stars { display: inline-flex; gap: 2px; color: #e3a008; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Logo ── */
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 400 1.75rem var(--font-display); color: var(--color-secondary); min-width: 0; }
.logo img { max-height: 44px; width: auto; max-width: min(46vw, 220px); object-fit: contain; }
.logo .wordmark { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.05; min-width: 0; }
.logo .wl { display: block; }
.logo .sub { display: block; margin-top: .35em; font: 600 .34em var(--font-default); letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }

/* ══ Motion: section-enter animations (plugins/motion.client.ts) ══
   Hidden states apply only while html.hg-motion is set and the section has not
   entered the frame yet; --i staggers siblings. Inner elements only. */
.hg-motion [data-anim] { transition: opacity .7s var(--ease) calc(var(--i, 0) * 80ms), transform .8s var(--ease) calc(var(--i, 0) * 80ms); }
.hg-motion section:not(.hg-inview) [data-anim], .hg-motion footer:not(.hg-inview) [data-anim] { opacity: 0; }
.hg-motion section:not(.hg-inview) [data-anim="up"] { transform: translateY(28px); }
.hg-motion section:not(.hg-inview) [data-anim="zoom"] { transform: scale(.94); }
.hg-motion section:not(.hg-inview) [data-anim="left"] { transform: translateX(36px); }
.hg-motion section:not(.hg-inview) [data-anim="right"] { transform: translateX(-36px); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  :root { --section-pad-y: 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .head { margin-bottom: 30px; }
  /* room for the sticky mobile action bar (MobileActionBar.vue) */
  body { padding-bottom: 68px; }
}

/* grid children may shrink below their content (long words, nowrap buttons) — no sideways overflow */
.grid > *, .layout > * { min-width: 0; }
.seg { flex-wrap: wrap; max-width: 100%; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }
