/* Pleat Dumpling House — 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 */
  --color-primary: #ff5a0a;        /* the orange: buttons, links, prices */
  --color-primary-dark: #e04600;   /* hover / pressed */
  --color-accent: #2f7d3b;         /* basil green: small accents, "popular", vegan */
  --color-chilli: #d9301c;         /* chilli red: spicy marks, festive touches */
  /* text */
  --color-secondary: #18171a;      /* headings, strong text */
  --color-default: #4d4b50;        /* body text */
  --color-muted: #8a878d;          /* captions, meta */
  /* surfaces */
  --color-bg: #f3f2f0;             /* the plaster page background */
  --color-surface: #ebe9e5;        /* alternate plaster sections */
  --color-surface-soft: #f8f7f5;   /* subtle panels */
  --color-tint: #ffe9dc;           /* orange-tinted chips / icon wells */
  --color-white: #ffffff;          /* cards, plates, inputs, the floating disc */
  --color-line: #e3e0db;           /* borders, dividers */
  /* dark band (footer) */
  --color-dark: #1b1a1d;
  --color-on-dark: #f6f4f1;

  --font-default: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-primary: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  --radius: 26px;
  --radius-sm: 14px;
  --section-max-width: 78rem;
  --header-h: 92px;
  --section-pad-y: 96px;
  --base-size: 16px;
  --ease: cubic-bezier(.2, .75, .25, 1);
  /* soft plate shadow used under every cut-out */
  --shadow-plate: 0 30px 50px -22px color-mix(in srgb, var(--color-secondary) 38%, transparent), 0 10px 18px -12px color-mix(in srgb, var(--color-secondary) 22%, transparent);
  --shadow-card: 0 22px 50px -30px color-mix(in srgb, var(--color-secondary) 30%, transparent);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; }
/* the textured plaster: a greyscale relief tile layered over the background colour */
body { font-family: var(--font-default); color: var(--color-default); line-height: 1.7; -webkit-font-smoothing: antialiased;
  background-color: var(--color-bg); background-image: url(../images/plaster.svg); background-size: 520px 520px; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 400; line-height: 1.08; letter-spacing: -.005em; }
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: color-mix(in srgb, var(--color-surface) 70%, 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); font-style: italic; }
section.dark .hl { color: var(--color-primary); }

/* ── Buttons: pills — solid orange, orange outline ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 1rem 1.9rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-primary); color: var(--color-white); font-weight: 700; font-size: .98rem; line-height: 1; white-space: nowrap;
  box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--color-primary) 80%, transparent);
  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(-2px); }
.btn.light { background: var(--color-white); color: var(--color-secondary); box-shadow: var(--shadow-card); }
.btn.light:hover { background: var(--color-surface-soft); color: var(--color-primary); }
.btn.ghost { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 2px var(--color-primary); }
.btn.ghost:hover { background: var(--color-primary); color: var(--color-white); }
.btn.ghost-light { background: transparent; color: var(--color-on-dark); box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost-light:hover { background: var(--color-on-dark); color: var(--color-dark); }
.btn.small { padding: .7rem 1.25rem; font-size: .88rem; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; 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-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--color-primary); }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.head.center .eyebrow::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
section.dark .eyebrow { color: var(--color-primary); }
.head { max-width: 720px; margin-bottom: 52px; }
.head h2 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); margin-top: .6rem; text-wrap: balance; }
.head > p:not(.eyebrow) { margin-top: 1rem; max-width: 58ch; font-size: 1.04rem; }
.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, plates, chips, tags ── */
.card { background: var(--color-white); border: 0; border-radius: var(--radius); box-shadow: var(--shadow-card); }
/* a cut-out plate: any photo cropped round and lifted off the plaster */
.plate { border-radius: 50%; overflow: hidden; background: var(--color-white); box-shadow: var(--shadow-plate); aspect-ratio: 1; }
.plate img { width: 100%; height: 100%; object-fit: cover; }
/* the small floating white disc from the hero, reused as a motif */
.disc { position: absolute; border-radius: 50%; background: var(--color-white); box-shadow: 0 16px 26px -14px color-mix(in srgb, var(--color-secondary) 35%, transparent), inset 0 -3px 6px color-mix(in srgb, var(--color-secondary) 6%, transparent); pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700; 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 .45em; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .02em;
  border: 1px solid color-mix(in srgb, var(--color-secondary) 22%, transparent); color: var(--color-secondary); }
.tag.popular { border-color: transparent; background: var(--color-accent); color: var(--color-white); }
.price { font-weight: 800; color: var(--color-primary); 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: .85rem 1.05rem; 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.85rem var(--font-heading); letter-spacing: -.01em; 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: .3em; font: 400 .5em var(--font-default); letter-spacing: .08em; 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: 68px; --header-h: 74px; }
  .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; } }

/* ── Cut-out garnish (components/Garnish.vue): photos of ingredients with their
   background removed, tucked into section corners. Decorative only. ── */
.garnish { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.garnish img { position: absolute; height: auto; filter: drop-shadow(0 14px 14px color-mix(in srgb, var(--color-secondary) 22%, transparent)); user-select: none; }
section > .container { position: relative; z-index: 1; }
@media (max-width: 1100px) { .garnish { --g: .75; } }
@media (max-width: 760px) { .garnish { --g: .5; } .garnish .hide-sm { display: none; } }
