/* 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). */
:root {
  /* brand — muted terracotta buttons, warm orange accents, sage hints */
  --color-primary: #a8705a;        /* buttons, links, highlights (terracotta) */
  --color-primary-dark: #8a5642;   /* hover / pressed */
  --color-accent: #e07b39;         /* orange: stars line, "+" buttons, price, badges */
  --color-sage: #9fb08f;           /* sage: backdrop blobs, soft chips */
  --color-glow: #f0b27a;           /* warm peach: backdrop blobs */
  /* text */
  --color-secondary: #1d1a17;      /* headings, strong text */
  --color-default: #3e3934;        /* body text */
  --color-muted: #7a716a;          /* captions, meta */
  /* surfaces */
  --color-bg: #ebe8e3;             /* page background (cream-grey, under the blobs) */
  --color-surface: #f3efe9;        /* solid panels */
  --color-surface-soft: #f7f4f0;   /* subtle panels */
  --color-tint: #f1dfd3;           /* terracotta-tinted chips / icon wells */
  --color-white: #ffffff;          /* glass base, inputs */
  --color-line: #dcd5cc;           /* borders, dividers */
  /* dark band (footer, image shades) */
  --color-dark: #2a231f;
  --color-on-dark: #f6efe8;

  --font-default: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-primary: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;

  --radius: 26px;
  --radius-sm: 14px;
  --section-max-width: 74rem;
  --header-h: 72px;
  --section-pad-y: 88px;
  --base-size: 16px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  /* frosted glass */
  --glass: color-mix(in srgb, var(--color-white) 52%, transparent);
  --glass-strong: color-mix(in srgb, var(--color-white) 72%, transparent);
  --glass-edge: color-mix(in srgb, var(--color-white) 75%, transparent);
  --glass-shadow: 0 24px 48px -28px color-mix(in srgb, var(--color-secondary) 38%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--color-secondary) 10%, transparent);
}

* { 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; position: relative; isolation: isolate; }
/* the soft, blurred backdrop: warm orange, peach and sage blobs over cream-grey, fixed behind the glass */
body::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 470px at 4% 480px, color-mix(in srgb, var(--color-sage) 75%, transparent), transparent 70%),
    radial-gradient(560px 300px at 96% 310px, color-mix(in srgb, var(--color-white) 80%, transparent), transparent 70%),
    radial-gradient(720px 520px at 72% 1060px, color-mix(in srgb, var(--color-accent) 50%, transparent), transparent 70%),
    radial-gradient(580px 470px at 14% 1620px, color-mix(in srgb, var(--color-glow) 70%, transparent), transparent 70%),
    radial-gradient(520px 280px at 98% 1910px, color-mix(in srgb, var(--color-sage) 60%, transparent), transparent 70%);
  background-size: 100% 2200px; background-repeat: repeat-y; }
/* a second, offset layer so the blobs never line up into a visible pattern */
body::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(540px 440px at 40% 900px, color-mix(in srgb, var(--color-glow) 45%, transparent), transparent 70%),
    radial-gradient(480px 420px at 85% 2000px, color-mix(in srgb, var(--color-sage) 40%, transparent), transparent 70%),
    radial-gradient(540px 400px at 8% 2660px, color-mix(in srgb, var(--color-accent) 32%, transparent), transparent 70%);
  background-size: 100% 3100px; background-position: 0 900px; background-repeat: repeat-y; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
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-white); }

.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: color-mix(in srgb, var(--color-white) 22%, transparent); }
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 { color: var(--color-primary); }
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-white); 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); }
.btn { box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--color-primary-dark) 70%, transparent); }
.btn.light { background: var(--glass-strong); color: var(--color-secondary); box-shadow: inset 0 0 0 1px var(--glass-edge), 0 10px 24px -16px color-mix(in srgb, var(--color-secondary) 40%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.light:hover { background: var(--color-white); }
.btn.sage { background: color-mix(in srgb, var(--color-sage) 38%, var(--color-white)); color: var(--color-secondary); box-shadow: inset 0 0 0 1px var(--glass-edge); }
.btn.sage:hover { background: color-mix(in srgb, var(--color-sage) 55%, var(--color-white)); }
.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-primary); }
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ── Section heads: eyebrow, headline, intro ── */
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--color-primary); }
section.dark .eyebrow { color: var(--color-accent); }
.head { max-width: 720px; margin-bottom: 44px; }
.head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-top: .4rem; 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, .glass { background: var(--glass); border: 1px solid var(--glass-edge); border-radius: var(--radius); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }
.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-accent); color: var(--color-white); }
.price { font: 600 1.02rem var(--font-heading); 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: color-mix(in srgb, var(--color-white) 78%, transparent); border: 1.5px solid color-mix(in srgb, var(--color-line) 80%, transparent); 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(--glass); border: 1px solid var(--glass-edge); 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; flex: none; align-items: center; gap: .55rem; font: 500 1.2rem var(--font-heading); letter-spacing: .05em; text-transform: uppercase; color: var(--color-accent); 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; white-space: nowrap; }
.logo .sub { display: block; margin-top: .3em; font: 500 .48em var(--font-default); letter-spacing: .14em; 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; } }

/* round "cut-out" dish photos (top-down bowls cropped to a circle) */
.dish-round { border-radius: 50%; object-fit: cover; aspect-ratio: 1; background: var(--color-tint);
  box-shadow: 0 30px 50px -24px color-mix(in srgb, var(--color-secondary) 55%, transparent), 0 0 0 6px color-mix(in srgb, var(--color-white) 55%, transparent); }
/* the round orange "+" button */
.plus-btn { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--color-accent); color: var(--color-white);
  box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--color-accent) 80%, transparent); transition: transform .2s var(--ease), background .2s ease; }
.plus-btn svg { width: 18px; height: 18px; stroke-width: 2.4; }
.plus-btn:hover { transform: scale(1.08) rotate(90deg); background: var(--color-primary-dark); }
/* the section title with the thin script-free sub line ("Top List / Our mainstay menu") */
.title-stack { text-align: center; margin-bottom: 48px; }
.title-stack h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
.title-stack p { margin-top: .1rem; font-size: 1.05rem; color: var(--color-default); }
