/* Cozy Bites — design system and page styles. Mobile-first. */

/* Self-hosted fonts (SIL Open Font License), latin subset. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/fraunces-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/inter-normal.woff2") format("woff2"); }

:root {
  --cream: #fbf6ee;
  --cream-2: #f4ebdd;
  --paper: #ffffff;
  --ink: #2a211b;
  --muted: #6b5e55;
  --line: #e7dccb;
  --green: #1f3d2b;
  --green-2: #2c5440;
  --terracotta: #b4471f;
  --terracotta-dark: #933915;
  --saffron: #e8871e;
  --gold: #c9a227;
  --danger: #a6261b;
  --success: #2e6b3f;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(42, 33, 27, .06), 0 8px 24px rgba(42, 33, 27, .07);
  --shadow-lg: 0 18px 50px rgba(42, 33, 27, .14);
  --gutter: 16px;
  --header-h: 72px;
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 88px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); text-underline-offset: 3px; }
a:hover { color: var(--terracotta-dark); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--green); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 96px); }
.section--alt { background: var(--cream-2); }
.section--green { background: var(--green); color: #f3ede2; }
.section--green h2, .section--green h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.075rem; }
.section--green .section-head p { color: #d9d2c4; }
.section-head--left { margin-inline: 0; text-align: left; }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 14px; }
.section--green .eyebrow { color: var(--saffron); }
.lead { font-size: 1.15rem; color: var(--muted); }
.text-center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- buttons & form controls ---------- */
.btn {
  --bg: var(--paper); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { color: var(--fg); border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn--primary { --bg: var(--terracotta); --fg: #fff; --bd: var(--terracotta); box-shadow: 0 6px 16px rgba(180, 71, 31, .22); }
.btn--primary:hover { --bg: var(--terracotta-dark); --bd: var(--terracotta-dark); color: #fff; }
.btn--green { --bg: var(--green); --fg: #fff; --bd: var(--green); }
.btn--green:hover { --bg: var(--green-2); --bd: var(--green-2); color: #fff; }
.btn--outline { --bg: transparent; --fg: var(--green); --bd: var(--green); }
.btn--light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .6); }
.btn--light:hover { --bd: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--terracotta); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: .94rem; }
.field .hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
.req { color: var(--terracotta); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b5e55' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.select--sm { min-height: 40px; padding: 8px 34px 8px 12px; font-size: .92rem; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31, 61, 43, .15); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; min-height: 0; }
.field-error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); flex: none; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid .span-2 { grid-column: 1 / -1; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status--error { background: #fbe9e6; color: var(--danger); border: 1px solid #f1c6bf; }
.form-status--success { background: #e7f2e9; color: var(--success); border: 1px solid #c3dfc9; }
.privacy-note { color: var(--muted); font-size: .85rem; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; background: var(--cream-2); color: var(--green); }
.tag--gold { background: #f7ecc8; color: #6d5410; }
.tag--veg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 32px); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile nav. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 246, 238, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(42, 33, 27, .06); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand__logo { height: 56px; width: auto; }
@media (min-width: 768px) { .brand__logo { height: 70px; } }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.nav__list a:hover { color: var(--terracotta); }
.nav__list a[aria-current="page"] { color: var(--terracotta); box-shadow: inset 0 -2px 0 var(--terracotta); border-radius: 0; }
.nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; align-items: center; gap: 6px; color: var(--green); font-weight: 600; text-decoration: none; font-size: .94rem; }
@media (min-width: 1280px) { .header-phone { display: inline-flex; } }
.cart-link { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--green); }
.cart-link:hover { background: var(--cream-2); color: var(--green); }
.cart-link__count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--terracotta); color: #fff; font: 700 .75rem/20px var(--font-body); text-align: center; }
.cart-link__count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.3); } }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle__bar { display: block; height: 2px; background: var(--green); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; margin: 0; background: var(--cream); padding: 16px var(--gutter) 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; border-top: 1px solid var(--line); }
  .nav.is-open { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: 16px 4px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: none; }
  .nav__mobile-extra { display: block; margin-top: 24px; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1024px) { .site-header__actions { margin-left: 8px; } }
@media (max-width: 1023px) { .header-cta { display: inline-flex; } .site-header__actions { margin-left: auto; } }
@media (max-width: 479px) { .header-cta { min-height: 38px; padding: 0 14px; font-size: .86rem; } .site-header__actions { gap: 4px; } }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: #d9d2c4; padding-top: 64px; font-size: .95rem; }
.site-footer a { color: #f3ede2; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.site-footer__logo { height: 76px; width: auto; margin-bottom: 16px; }
.site-footer__brand p { max-width: 320px; }
.site-footer__title { font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); margin-bottom: 18px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .86rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 12px 14px 12px 18px; background: var(--ink); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 500; }
.toast[hidden] { display: none; }
.toast a { color: #ffd59a; font-weight: 600; white-space: nowrap; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 5vw, 56px); background: radial-gradient(1200px 400px at 85% -10%, rgba(232, 135, 30, .14), transparent 60%), var(--cream); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { max-width: 640px; color: var(--muted); font-size: 1.12rem; margin: 0; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------- home hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); background: radial-gradient(900px 500px at 100% 0%, rgba(232, 135, 30, .16), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(31, 61, 43, .08), transparent 60%), var(--cream); overflow: hidden; }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; } }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--terracotta); }
.hero .lead { max-width: 540px; margin-bottom: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: .94rem; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { color: var(--terracotta); flex: none; }
.hero__collage { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 1fr; gap: 14px; aspect-ratio: 1 / .9; }
.hero__collage figure { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-2); }
.hero__collage figure:first-child { grid-row: span 2; }
.hero__collage img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge { position: absolute; left: -12px; bottom: 26px; display: flex; align-items: center; gap: 12px; background: var(--paper); padding: 12px 18px 12px 12px; border-radius: 16px; box-shadow: var(--shadow-lg); font-size: .9rem; max-width: 260px; }
.hero__badge strong { display: block; color: var(--green); font-size: 1rem; }
.hero__badge-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fdebd5; color: var(--terracotta); flex: none; }
@media (max-width: 599px) { .hero__badge { left: 8px; bottom: 12px; } }

/* ---------- trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--paper); }
.trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .trust__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 22px 12px; font-size: .94rem; color: var(--muted); }
.trust__item strong { display: block; color: var(--green); font-size: 1rem; }
.trust__item svg { flex: none; color: var(--terracotta); }
@media (min-width: 900px) { .trust__item + .trust__item { border-left: 1px solid var(--line); padding-left: 24px; } }

/* ---------- feature cards (bestsellers) ---------- */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 559px) { .feature-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; } }
.feature-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card__media { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--cream-2); }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feature-card:hover .feature-card__media img { transform: scale(1.04); }
.feature-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.feature-card__name { font-size: 1.12rem; margin-bottom: 6px; }
.feature-card__name a { color: inherit; text-decoration: none; }
.feature-card__desc { color: var(--muted); font-size: .9rem; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feature-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.feature-card__price { font-weight: 700; color: var(--ink); }
.feature-card__price small { font-weight: 500; color: var(--muted); }
@media (max-width: 559px) {
  .feature-card__body { padding: 12px; }
  .feature-card__name { font-size: 1rem; }
  .feature-card__desc { display: none; }
  .feature-card__foot { flex-direction: column; align-items: stretch; }
  .feature-card__foot .btn { width: 100%; }
}

/* ---------- split / services ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } .split--reverse > :first-child { order: 2; } }
.split__media { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #e2eee5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231f3d2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M6 10.5l2.6 2.5L14 7.5'/%3E%3C/svg%3E") center / 20px no-repeat; }

.value-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value { padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.section--green .value { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fdebd5; color: var(--terracotta); margin-bottom: 18px; }
.section--green .value__icon { background: rgba(232, 135, 30, .16); color: var(--saffron); }
.value p { margin: 0; color: var(--muted); }
.section--green .value p { color: #d9d2c4; }

.steps { display: grid; gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; padding: 28px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; font: 700 1rem var(--font-body); margin-bottom: 16px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas li { padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; color: var(--green); }

.cta-band { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 24px; background: linear-gradient(120deg, var(--green) 0%, #28503a 100%); color: #e9e2d4; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- menu page ---------- */
.menu-toolbar { position: sticky; top: var(--header-h); z-index: 20; background: rgba(251, 246, 238, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.menu-toolbar__inner { display: flex; flex-direction: column; gap: 10px; padding-block: 12px; }
@media (min-width: 900px) { .menu-toolbar__inner { flex-direction: row; align-items: center; gap: 16px; } }
.search { position: relative; flex: none; width: 100%; }
@media (min-width: 900px) { .search { width: 280px; } }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 42px; min-height: 44px; border-radius: 999px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.menu-notice { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; padding: 14px 18px; margin: 28px 0 8px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.menu-notice strong { color: var(--ink); }
.menu-section { padding-top: 40px; }
.menu-section[hidden] { display: none; }
.menu-section__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.menu-section__head h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 0; }
.menu-section__note { margin: 0; color: var(--muted); font-size: .9rem; }
.dish-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.menu-section { scroll-margin-top: calc(var(--header-h) + 72px); }
.dish { display: flex; gap: 16px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; scroll-margin-top: calc(var(--header-h) + 140px); }
.dish[hidden] { display: none; }
.dish:hover { border-color: #d8c8b0; box-shadow: var(--shadow); }
.dish:target { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(232, 135, 30, .25); }
.dish__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dish__name { font-size: 1.1rem; margin: 0; }
.dish__price { font-weight: 700; white-space: nowrap; color: var(--ink); }
.dish .tag { align-self: flex-start; margin-top: 6px; }
.dish__desc { color: var(--muted); font-size: .92rem; margin: 6px 0 14px; }
.dish__order { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.dish__order .select { width: auto; max-width: 100%; flex: 1 1 160px; }
.dish__unit { font-size: .88rem; color: var(--muted); flex: 1 1 auto; }
.dish__thumb { flex: none; align-self: flex-start; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--cream-2); box-shadow: inset 0 0 0 1px rgba(42, 33, 27, .06); }
.dish__thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 479px) { .dish__thumb { width: 68px; height: 68px; border-radius: 10px; } }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); height: 40px; }
.qty__btn { width: 36px; height: 100%; border: 0; background: transparent; color: var(--green); font-size: 1.2rem; cursor: pointer; border-radius: 999px; }
.qty__btn:hover { background: var(--cream-2); }
.qty__input { width: 36px; border: 0; text-align: center; font: 600 .95rem var(--font-body); color: var(--ink); background: transparent; -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.menu-empty { padding: 48px 0; text-align: center; color: var(--muted); }

.cart-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; width: min(560px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--green); color: #fff; box-shadow: var(--shadow-lg); }
.cart-bar[hidden] { display: none; }
.cart-bar strong { font-size: 1rem; }
.page-menu .toast { bottom: 88px; }

/* ---------- cart & checkout ---------- */
.checkout-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary h2 { font-size: 1.35rem; }
.summary__rows { display: grid; gap: 10px; margin: 18px 0; padding: 18px 0; border-block: 1px solid var(--line); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; }
.summary__row--total { font-size: 1.2rem; font-weight: 700; color: var(--green); }
.summary__lines { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: .92rem; }
.summary__lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary__lines small { display: block; color: var(--muted); }
.summary__note { font-size: .84rem; color: var(--muted); margin: 14px 0 0; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line__img { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--cream-2) url("/assets/img/apple-touch-icon.png") center / 70% no-repeat; }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.cart-line__meta { color: var(--muted); font-size: .88rem; margin: 0 0 10px; }
.cart-line__controls { display: flex; align-items: center; gap: 16px; }
.cart-line__total { font-weight: 700; text-align: right; }
@media (max-width: 479px) { .cart-line { grid-template-columns: 56px minmax(0, 1fr); } .cart-line__img { width: 56px; height: 56px; } .cart-line__total { grid-column: 2; text-align: left; } }
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state svg { color: var(--line); margin: 0 auto 16px; }
.notice { padding: 14px 18px; border-radius: var(--radius-sm); background: #fdf3e4; border: 1px solid #f2d9b3; color: #6a4a12; margin-bottom: 24px; }
.notice[hidden] { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout-section + .checkout-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.checkout-section h2 { font-size: 1.25rem; margin-bottom: 18px; }
.secure-note { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ---------- order status ---------- */
.status-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 24px 0; padding: 0; text-align: center; font-size: .86rem; color: var(--muted); }
.status-timeline li { position: relative; padding-top: 34px; }
.status-timeline li::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); z-index: 1; }
.status-timeline li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.status-timeline li:first-child::after { display: none; }
.status-timeline li.is-done { color: var(--green); font-weight: 600; }
.status-timeline li.is-done::before { background: var(--green); border-color: var(--green); }
.status-timeline li.is-done::after { background: var(--green); }
.big-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: #e2eee5; color: var(--green); }

/* ---------- reviews ---------- */
.rating-summary { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.rating-summary__score { font: 600 3rem/1 var(--font-display); color: var(--green); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.stars .is-empty { color: #e3d8c3; }
.review-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .review-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.review { display: flex; flex-direction: column; gap: 10px; }
.review__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.review__title { font-size: 1.1rem; margin: 0; }
.review__body { margin: 0; color: var(--ink); white-space: pre-line; }
.review__meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .86rem; margin-top: auto; padding-top: 6px; }
.review__reply { background: var(--cream); border-left: 3px solid var(--gold); padding: 10px 14px; border-radius: 8px; font-size: .92rem; }
.review__reply strong { display: block; color: var(--green); }
.reviews-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .reviews-layout { grid-template-columns: minmax(0, 1fr) 420px; } .reviews-layout .card--sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; color: #e3d8c3; line-height: 0; padding: 2px; border-radius: 6px; }
.star-input label svg { width: 34px; height: 34px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--saffron); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gallery__item { margin: 0; }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--cream-2); aspect-ratio: 5 / 4; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery__btn:hover img { transform: scale(1.05); }
.gallery__item figcaption { padding: 10px 2px 0; font-weight: 600; color: var(--green); font-size: .95rem; }
.lightbox { padding: 0; border: 0; border-radius: 18px; max-width: min(720px, calc(100% - 32px)); background: var(--paper); box-shadow: var(--shadow-lg); }
.lightbox::backdrop { background: rgba(20, 14, 10, .78); }
.lightbox img { width: 100%; height: auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; }
.lightbox__bar p { margin: 0; font-weight: 600; color: var(--green); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--terracotta); }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 20px 18px; color: var(--muted); }
.faq__answer p:last-child { margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 380px minmax(0, 1fr); gap: 40px; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .value__icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-list strong { display: block; color: var(--green); }
.contact-list a { color: var(--ink); }
.map { position: relative; margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--cream-2); }
.map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

/* ---------- prose (legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- misc ---------- */
.dialog { border: 0; border-radius: 18px; padding: 28px; max-width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(20, 14, 10, .6); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--cream-2), #fbf6ee, var(--cream-2)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 160px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.btn-row--center { justify-content: center; }
.section-actions { margin: 36px 0 0; text-align: center; }
@media (max-width: 599px) {
  .hero .btn-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .btn-row .btn { padding-inline: 12px; }
  .hero .btn-row .btn:last-child { grid-column: 1 / -1; }
  .cta-band .btn-row .btn { flex: 1 1 100%; }
}

.credits-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.credits-table th, .credits-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.credits-table th { background: var(--cream-2); font-weight: 600; color: var(--green); }
.credits-table img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.table-wrap { overflow-x: auto; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--paper); border: 1px solid var(--line); margin: .8em 0 1.2em; }
.policy-table th, .policy-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.policy-table th { background: var(--cream-2); font-weight: 600; color: var(--green); }
.credits-table td:nth-child(4), .credits-table td:nth-child(5) { white-space: nowrap; }
/* Phones: thumbnail sits top-right so the size / quantity / Add row gets the full card width. */
@media (max-width: 599px) {
  .dish { position: relative; padding: 16px; }
  .dish--has-thumb .dish__head, .dish--has-thumb .dish__desc { margin-right: 80px; }
  .dish--has-thumb .dish__thumb { position: absolute; top: 16px; right: 16px; }
  .dish--has-thumb .dish__desc { min-height: 40px; }
  .dish__order { flex-wrap: nowrap; }
  .dish__order .select { flex: 1 1 0; min-width: 0; }
  .dish__order .btn { flex: none; }
  .dish__unit { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .dish__order:has(select[name="variant"]) { flex-wrap: wrap; }
  .dish__order:has(select[name="variant"]) select[name="variant"] { flex-basis: 100%; }
}

/* ---------- responsive hardening (all devices) ---------- */
/* Implicit single-column grids must never grow wider than the screen. */
.hero__grid, .split, .value-grid, .steps, .review-grid, .site-footer__grid, .cta-band,
.checkout-grid, .reviews-layout, .contact-grid, .form-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .value-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; } }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: minmax(0, 1fr) 380px; } .contact-grid { grid-template-columns: 380px minmax(0, 1fr); } }
@media (min-width: 1000px) { .reviews-layout { grid-template-columns: minmax(0, 1fr) 420px; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
input, select, textarea, button { max-width: 100%; }
h1, h2, h3, p, li, a, label { overflow-wrap: anywhere; }
.btn { overflow-wrap: normal; }

/* Very small phones (320–359px). */
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .card { padding: 16px; }
  .trust__item { padding: 16px 6px; gap: 8px; font-size: .86rem; }
  .trust__item svg { width: 22px; height: 22px; }
  .btn--lg { min-height: 50px; padding: 0 18px; font-size: 1rem; }
  .hero .btn-row { grid-template-columns: minmax(0, 1fr); }
  .site-header__actions .header-cta { padding: 0 10px; }
  .brand__logo { height: 48px; }
}

/* Touch devices: 44px+ targets and 16px form text (prevents iOS zoom on focus). */
@media (pointer: coarse) {
  .qty { height: 44px; }
  .qty__btn { width: 44px; }
  .qty__input { width: 40px; font-size: 16px; }
  .select--sm, .input, .select, .textarea { font-size: 16px; }
  .select--sm { min-height: 44px; }
  .btn--sm { min-height: 44px; }
  .chip { padding: 10px 16px; }
  .site-footer__list a, .site-footer__legal a { display: inline-block; padding: 4px 0; }
  .link-btn { padding: 6px 0; }
}

/* Notched phones / home indicator. */
@supports (padding: env(safe-area-inset-bottom)) {
  .cart-bar { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .site-footer__bottom { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .container { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
}

/* Phones in landscape: short screens. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 64px; }
  .brand__logo { height: 48px; }
  .nav__list a { padding-block: 12px; font-size: 1.05rem; }
  .site-header { position: relative; }
  .menu-toolbar { top: 0; }
  .summary, .reviews-layout .card--sticky { position: static; }
  .hero { padding-block: 28px 40px; }
  .hero__collage { max-width: 520px; margin-inline: auto; }
  .nav { inset: var(--header-h) 0 0 0; }
}

/* Tablets: two-column hero collage stays compact; menu toolbar wraps neatly. */
@media (min-width: 600px) and (max-width: 959px) {
  .hero__collage { max-width: 620px; margin-inline: auto; width: 100%; }
  .split__media { max-width: 620px; }
}

/* Large and ultra-wide screens. */
@media (min-width: 1440px) {
  .container { max-width: 1280px; }
  .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1920px) {
  html { font-size: 17px; }
  .container { max-width: 1360px; }
}

@media print {
  .site-header, .site-footer, .cart-bar, .toast, .menu-toolbar, .btn, .dish__order { display: none !important; }
  body { background: #fff; }
}
