/* ============================================================
   Catalano Family Kitchen, design system implementation
   Display: Newsreader · Body: Familjen Grotesk
   Sugo tomato on linen, charcoal-aubergine ink, square corners.
   ============================================================ */

/* 5.1 :root token block ------------------------------------- */
:root {
  /* Fonts */
  --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: "Familjen Grotesk", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Type scale */
  --fs-display: clamp(2.75rem, 1.6rem + 5.2vw, 4.75rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 3.25rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.9vw, 2.375rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-h5: 1.0625rem;
  --fs-h6: 0.9375rem;
  --fs-lead: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem);
  --fs-body: 1.125rem;
  --fs-small: 0.9375rem;
  --fs-xs: 0.8125rem;
  --fs-overline: 0.75rem;

  /* Core palette */
  --sugo: #A6271C;
  --sugo-deep: #7E1A12;
  --linen: #F7F1E6;
  --linen-deep: #EFE6D5;
  --char: #241C22;
  --char-soft: #4A4048;
  --basil: #5B6B3A;
  --basil-deep: #43512A;
  --amber: #C8881C;
  --amber-deep: #8A5C0E;
  --line-col: #D8CBB4;
  --cream: #FBF7EF;

  /* Semantic (light, default) */
  --bg: var(--linen);
  --surface: var(--linen-deep);
  --surface-2: var(--cream);
  --ink: var(--char);
  --muted: var(--char-soft);
  --accent: var(--sugo);
  --accent-strong: var(--sugo-deep);
  --secondary: var(--basil);
  --secondary-text: var(--basil-deep);
  --flag: var(--amber);
  --flag-text: var(--amber-deep);
  --line: var(--line-col);
  --on-accent: var(--cream);
  --focus: var(--sugo-deep);

  /* Spacing */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px; --sp-10: 128px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(16px, 5vw, 40px);
  --col-gap: 24px;

  /* Borders / shadow */
  --radius: 0;
  --border: 1px solid var(--line);
  --border-strong: 2px solid var(--ink);
  --rule: 1px solid var(--line);
  --shadow-press: 4px 4px 0 0 var(--ink);
  --shadow-press-accent: 4px 4px 0 0 var(--sugo);

  /* Motion */
  --dur-fast: 120ms;
  --dur: 180ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* Z-index */
  --z-header: 100;
  --z-sticky-bar: 90;
  --z-panel: 200;
  --z-skip: 300;
}

/* Dark band variant: apply .band--dark on a <section> */
.band--dark {
  --bg: var(--char);
  --surface: #322836;
  --ink: var(--linen);
  --muted: #C3B7A6;
  --line: #4A4048;
  --accent: #E0584B;
  --accent-strong: #F0A89F;
  --on-accent: var(--char);
  background: var(--bg);
  color: var(--ink);
}
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--ink); }
.band--dark .overline { color: var(--accent-strong); }

/* 5.0 Global reset and base --------------------------------- */
*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--sp-4);
}
h1 { font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.012em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.005em; }
h4 { font-family: var(--font-body); font-size: var(--fs-h4); line-height: 1.25; font-weight: 600; margin: 0 0 var(--sp-2); }
h5 { font-family: var(--font-body); font-size: var(--fs-h5); line-height: 1.3; font-weight: 600; margin: 0 0 var(--sp-2); }
h6 { font-family: var(--font-body); font-size: var(--fs-h6); line-height: 1.3; font-weight: 700; letter-spacing: 0.02em; margin: 0 0 var(--sp-2); }

p { margin: 0 0 var(--sp-4); max-width: 68ch; }
.lead { font-size: var(--fs-lead); line-height: 1.55; max-width: 46ch; color: var(--ink); }
small, .small { font-size: var(--fs-small); }
.xs { font-size: var(--fs-xs); letter-spacing: 0.01em; }

.overline {
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: inline-block;
  margin: 0 0 var(--sp-3);
}

a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--sp-8); }
@media (min-width: 768px) { .section { padding-block: var(--sp-9); } }

.section__head { margin-bottom: var(--sp-6); max-width: 60ch; }
.section__head .lead { margin-top: var(--sp-3); }
.center { text-align: center; margin-inline: auto; }

/* 5.2 Skip link --------------------------------------------- */
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  z-index: var(--z-skip);
  background: var(--ink); color: var(--linen);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none; font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-4); }

/* 5.3 Header and primary nav -------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--linen);
  border-bottom: var(--rule);
  transition: box-shadow var(--dur) var(--ease), min-height var(--dur) var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 72px;
  transition: min-height var(--dur) var(--ease);
}
/* condensed-on-scroll state, toggled by JS */
.site-header.is-condensed { box-shadow: 0 1px 0 0 var(--line); }
.site-header.is-condensed .site-header__inner { min-height: 60px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 44px; width: auto; }

.nav__list { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; font-size: 1rem; color: var(--ink);
  text-decoration: none; padding: 0 2px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 8px;
  height: 2px; width: 0; background: var(--accent);
  transition: width var(--dur) var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { width: 100%; }
.nav__link[aria-current="page"] { color: var(--accent-strong); }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-4); }
.tel {
  font-weight: 600; color: var(--ink); text-decoration: none;
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; min-height: 44px;
}
.tel:hover { color: var(--accent-strong); }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav, .tel { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: transparent; border: var(--border-strong); cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
    position: relative; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  }
  .nav-toggle__bars::before { position: absolute; top: -7px; left: 0; }
  .nav-toggle__bars::after  { position: absolute; top: 7px;  left: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }
}

/* 5.4 Mobile menu panel ------------------------------------- */
.panel-overlay {
  position: fixed; inset: 0; z-index: calc(var(--z-panel) - 1);
  background: rgba(36, 28, 34, 0.55);
}
.panel-overlay[hidden] { display: none; }

.mobile-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-panel);
  width: min(86vw, 360px);
  background: var(--linen);
  border-left: var(--border-strong);
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transform: translateX(100%);
  transition: transform var(--dur) var(--ease);
  overflow-y: auto;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel.is-open { transform: translateX(0); }

.mobile-panel__head { display: flex; align-items: center; justify-content: space-between; }
.panel-close {
  width: 44px; height: 44px; font-size: 28px; line-height: 1;
  background: transparent; border: var(--border); cursor: pointer; color: var(--ink);
}
.mobile-panel__list { list-style: none; margin: 0; padding: 0; }
.mobile-panel__list a {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border-bottom: var(--rule);
}
.mobile-panel__list a:hover { color: var(--accent-strong); }
@media (prefers-reduced-motion: reduce) { .mobile-panel { transition: none; } }

/* 5.5 Sticky mobile action bar ------------------------------ */
.action-bar { display: none; }
@media (max-width: 920px) {
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-bar);
    display: grid; grid-template-columns: 2fr 1fr; gap: 1px;
    background: var(--line);
    border-top: var(--border-strong);
    padding: 0;
  }
  .action-bar .btn { min-height: 52px; }
  body { padding-bottom: 52px; }
}

/* 5.6 Buttons ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--sp-5);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  line-height: 1; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }

.btn--secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--linen); }

.btn--ghost { background: transparent; color: var(--accent-strong); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.btn--link {
  min-height: 44px; padding: 0; border: 0; background: none;
  color: var(--accent-strong); text-decoration: underline; text-underline-offset: 0.18em;
  display: inline-flex; align-items: center; font-weight: 600; font-family: var(--font-body); font-size: 1rem;
}
.btn--link::after { content: " \2192"; padding-left: 0.35em; }
.btn--link:hover { color: var(--ink); }

.band--dark .btn--secondary { color: var(--linen); border-color: var(--linen); }
.band--dark .btn--secondary:hover { background: var(--linen); color: var(--char); }
.band--dark .btn--primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.band--dark .btn--primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* 5.7 Section divider (the motif rule) ---------------------- */
.divider {
  position: relative;
  border-top: var(--rule);
  margin-block: var(--sp-7);
}
.divider .motif {
  position: absolute; top: -10px; left: 0;
  background: var(--bg); padding-right: var(--sp-3);
}
.heading-mark { display: block; margin-bottom: var(--sp-3); color: var(--accent); }

/* 5.8 Hero -------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr; }
.hero__media { position: relative; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(36, 28, 34, 0.30);
}
.hero__panel {
  background: var(--surface);
  padding: var(--sp-8) var(--gutter);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__panel h1 { margin-bottom: var(--sp-4); }
.hero__panel .lead { margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

@media (min-width: 1080px) {
  .hero { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .hero__panel { padding-block: var(--sp-10); }
  .hero h1 { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.015em; }
}

/* Compact page hero (no image): used by Menu / Our Story / Visit etc. */
.page-hero { background: var(--surface); border-bottom: var(--rule); }
.page-hero .container { padding-block: var(--sp-8); }
@media (min-width: 768px) { .page-hero .container { padding-block: var(--sp-9); } }
.page-hero h1 { margin-bottom: var(--sp-3); }
.page-hero .lead { max-width: 60ch; }

/* 5.9 Value strip ------------------------------------------- */
.value__hook {
  font-family: var(--font-display); font-size: var(--fs-h3);
  line-height: 1.25; max-width: 30ch; margin: 0 0 var(--sp-6); color: var(--ink);
}
.value__facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-4);
}
.value__facts li {
  position: relative; padding-left: var(--sp-5);
  font-size: var(--fs-body); max-width: 40ch;
}
.value__facts li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--accent);
}
.value__facts strong { font-weight: 700; }
@media (min-width: 768px) {
  .value__facts { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

/* 5.10 Dish / feature cards --------------------------------- */
.dish-grid { display: grid; gap: var(--col-gap); grid-template-columns: 1fr; }
@media (min-width: 600px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .dish-grid { grid-template-columns: repeat(4, 1fr); } }

.dish-card {
  background: var(--surface);
  border: var(--border);
  display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.dish-card__media { display: block; border-bottom: var(--rule); }
.dish-card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); }
.dish-card__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.dish-card__name { margin: 0; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-strong); font-size: 1.125rem; }
.dish-card .small { color: var(--muted); }

.dish-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-press-accent);
  border-color: var(--ink);
  border-top: 3px solid var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .dish-card:hover { transform: none; box-shadow: none; }
}

/* 5.11 Category cards --------------------------------------- */
.cat-card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--surface); border: var(--border);
  padding: var(--sp-6); color: var(--ink); text-decoration: none;
  min-height: 180px;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cat-card__title { margin: 0; }
.cat-card .small { color: var(--muted); }
.cat-card__go { margin-top: auto; font-weight: 600; color: var(--accent-strong); }
.cat-card::after { content: ""; position: absolute; inset: 0; }
.cat-card:hover {
  background: var(--surface-2);
  border-color: var(--ink);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-press);
  transform: translate(-2px, -2px);
}
.cat-card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cat-card:hover { transform: none; box-shadow: none; } }

.cat-grid { display: grid; gap: var(--col-gap); grid-template-columns: 1fr; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* 5.12 Menu: chips + item rows + dietary tags --------------- */
.chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  position: sticky; top: 72px; z-index: 10;
  background: var(--bg); padding-block: var(--sp-3);
  border-bottom: var(--rule);
}
.chip {
  min-height: 44px; padding: 0 var(--sp-4);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600;
  background: transparent; color: var(--ink);
  border: 2px solid var(--line); cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"] {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}

.dietary-key { color: var(--muted); margin: var(--sp-5) 0; }
.tag {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 6px; line-height: 1;
}
.tag--diet { background: var(--secondary); color: var(--linen); }

.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: var(--sp-4) 0; border-bottom: var(--rule); }
.menu-item__head { display: flex; align-items: baseline; gap: var(--sp-3); }
.menu-item__name { margin: 0; order: 1; flex: 0 1 auto; }
.menu-item__name .tag { vertical-align: 0.12em; margin-left: var(--sp-1); }
.menu-item__head::before {
  content: ""; order: 2; flex: 1 1 auto; align-self: flex-end;
  border-bottom: 1px dotted var(--line); transform: translateY(-4px); min-width: 24px;
}
.menu-item__price { order: 3; }
.menu-item__desc { margin: var(--sp-2) 0 0; color: var(--muted); max-width: 60ch; }
.price--ask { font-style: italic; font-weight: 500; color: var(--muted); text-transform: lowercase; }

.menu-section { padding-top: var(--sp-6); }
.menu-section[hidden] { display: none; }
.menu-section h2 { scroll-margin-top: 160px; }
.menu-group { margin-top: var(--sp-6); }
.menu-group__note { color: var(--muted); font-size: var(--fs-small); margin-bottom: var(--sp-2); }
.menu-note {
  background: var(--surface); border-left: 4px solid var(--secondary);
  padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; color: var(--muted);
}
.menu-note p { margin: 0; max-width: 64ch; }

.menu-cta {
  position: sticky; bottom: 0; z-index: 5;
  background: var(--surface-2); border-top: var(--border-strong);
  padding: var(--sp-3) 0;
}
.menu-cta .container { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); justify-content: space-between; }
.menu-cta .small { margin: 0; color: var(--muted); }
@media (max-width: 920px) { .menu-cta { display: none; } }

/* 5.13 Award badge + review summary ------------------------- */
.trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); align-items: center; }
.award { display: inline-flex; align-items: center; gap: var(--sp-4); text-decoration: none; color: var(--ink); }
.award:hover { color: var(--accent-strong); }
.award img { width: 88px; height: auto; }
.stars { color: var(--flag); letter-spacing: 0.1em; font-size: 1.125rem; }

/* 5.14 Testimonials / reviews ------------------------------- */
.quote {
  margin: 0; background: var(--surface); border-left: 4px solid var(--accent);
  padding: var(--sp-5) var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-size: var(--fs-h3);
  line-height: 1.3; font-style: italic; color: var(--ink); max-width: 38ch;
}
.quote figcaption { font-size: var(--fs-small); color: var(--muted); font-weight: 600; }
.quote .stars { color: var(--flag); }

/* 5.15 Forms ------------------------------------------------ */
.form { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }
.form label { font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--surface-2);
  border: 2px solid var(--line);
  padding: 0 var(--sp-3); min-height: 48px;
}
.form textarea { padding: var(--sp-3); min-height: 120px; resize: vertical; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: var(--muted); }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--accent);
}
.form input:invalid:not(:placeholder-shown) { border-color: var(--accent); }
.form__legal { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.form-note { color: var(--muted); margin-bottom: var(--sp-5); max-width: 60ch; }

/* 5.16 FAQ accordion ---------------------------------------- */
.faq { border-bottom: var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 56px; padding: var(--sp-3) 0;
  font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-strong); line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq__body { padding-bottom: var(--sp-4); }
.faq__body p { margin: 0; color: var(--muted); }

/* 5.17 Footer ----------------------------------------------- */
.footer { padding-top: var(--sp-8); }
.footer__grid { display: grid; gap: var(--sp-7); grid-template-columns: 1fr; }
.footer__h { font-family: var(--font-body); font-size: var(--fs-h6); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: var(--sp-3); }
.footer address { font-style: normal; line-height: 1.7; margin-bottom: var(--sp-3); }
.footer address a { color: var(--ink); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: var(--sp-2); }
.footer__col a { color: var(--ink); text-decoration: none; }
.footer__col a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer__social { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); }
.footer .motif { margin-bottom: var(--sp-3); }
.footer__strip { border-top: 1px solid var(--line); margin-top: var(--sp-7); padding-block: var(--sp-4); }
.footer__strip p { margin: 0; color: var(--muted); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; } }

/* ============================================================
   Page-specific layout helpers (built on the same tokens)
   ============================================================ */

/* Two-column media + text split (Meet the owners, Space, etc.) */
.split { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--border); }
@media (min-width: 768px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .split--reverse .split__media { order: 2; }
}

/* Simple stacked specials list with motif markers */
.specials-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
.specials-list li {
  position: relative; padding-left: var(--sp-5);
  border-bottom: var(--rule); padding-bottom: var(--sp-4); max-width: 64ch;
}
.specials-list li:last-child { border-bottom: 0; }
.specials-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; background: var(--accent);
}
.specials-list strong { font-weight: 700; }

/* Photo gallery strip (the chosen, small set of room/food photos) */
.gallery { display: grid; gap: var(--col-gap); grid-template-columns: repeat(2, 1fr); }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: var(--border); }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

/* Visit-strip facts list */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.facts li { position: relative; padding-left: var(--sp-5); max-width: 56ch; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; background: var(--accent); }
.facts a { color: var(--accent-strong); }

/* Our Story narrative column */
.prose { max-width: 64ch; }
.prose p { margin: 0 0 var(--sp-5); }
.prose h2 { margin-top: var(--sp-7); }
.prose h2:first-child { margin-top: 0; }
.prose .overline { margin-top: var(--sp-2); }
.story-quote {
  margin: var(--sp-6) 0; border-left: 4px solid var(--accent);
  padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-display); font-style: italic;
  font-size: var(--fs-h3); line-height: 1.3; color: var(--ink); max-width: 40ch;
}
.story-quote p { margin: 0; }

/* Timeline (family generations) */
.timeline { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-5); }
.timeline li {
  border-left: var(--border-strong); padding-left: var(--sp-5); padding-bottom: var(--sp-2);
  max-width: 60ch;
}
.timeline .year { font-family: var(--font-display); font-weight: 600; color: var(--accent-strong); font-size: var(--fs-h4); display: block; margin-bottom: var(--sp-1); }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; max-width: 460px; }
.hours caption { text-align: left; font-weight: 600; margin-bottom: var(--sp-3); }
.hours th, .hours td { text-align: left; padding: var(--sp-3) var(--sp-2); border-bottom: var(--rule); font-variant-numeric: tabular-nums; }
.hours th { font-weight: 600; }
.hours .closed { color: var(--muted); }
.hours tr.is-today td, .hours tr.is-today th { font-weight: 700; }
.open-state { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 600; margin-bottom: var(--sp-4); }
.open-state .dot { width: 10px; height: 10px; background: var(--secondary); display: inline-block; }

/* Map / embed placeholder frames (no live third-party iframe in mockup) */
.embed-note {
  border: var(--border-strong); background: var(--surface);
  padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3);
}
.embed-note h3 { margin: 0; }
.embed-note p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Map static frame using the motif + flat palette (no fabricated map image) */
.map-frame {
  border: var(--border-strong);
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 38px, var(--line) 38px, var(--line) 39px),
    repeating-linear-gradient(90deg, transparent 0, transparent 38px, var(--line) 38px, var(--line) 39px),
    var(--surface);
  min-height: 240px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: var(--sp-6);
}
.map-frame__pin { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); background: var(--bg); padding: var(--sp-4) var(--sp-5); border: var(--border-strong); }
.map-frame__pin strong { font-weight: 700; }
.map-frame__pin .small { color: var(--muted); margin: 0; }

/* Set-menu / functions feature list cards */
.feature-grid { display: grid; gap: var(--col-gap); grid-template-columns: 1fr; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  background: var(--surface); border: var(--border); padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-2);
  border-top: 3px solid var(--accent);
}
.feature h3 { margin: 0; }
.feature p { margin: 0; color: var(--muted); }

/* Terms / included lists with square markers */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.checklist li { position: relative; padding-left: var(--sp-5); max-width: 64ch; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--secondary); }
.terms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-3); }
.terms-list li { position: relative; padding-left: var(--sp-5); max-width: 70ch; color: var(--muted); }
.terms-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--accent); }

/* Toggle (Boozy / Boozeless), pure radio control, no fabricated data */
.toggle { display: inline-flex; border: var(--border-strong); margin-bottom: var(--sp-5); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--sp-5);
  font-weight: 600; cursor: pointer; color: var(--ink);
}
.toggle label + label { border-left: var(--border-strong); }
.toggle input:checked + label { background: var(--accent); color: var(--on-accent); }
.toggle input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Gift card image frame */
.giftcard { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; align-items: start; }
.giftcard__media img { width: 100%; border: var(--border-strong); }
@media (min-width: 768px) { .giftcard { grid-template-columns: 1fr 1fr; gap: var(--sp-8); } }

/* Generic media block */
.media-block img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: var(--border); }

/* Inline dietary key on menu page */
.dietary-key .tag { margin-right: 2px; }

/* Access / honest note callout */
.note-callout {
  border: var(--border-strong); border-left: 4px solid var(--accent);
  background: var(--surface); padding: var(--sp-5) var(--sp-6);
}
.note-callout h3 { margin: 0 0 var(--sp-2); }
.note-callout p { margin: 0; color: var(--muted); max-width: 64ch; }

/* ============================================================
   Scroll-reveal (single allowed reveal: fade + 8px rise)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* 6.1 Reduced motion ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .nav__link::after { transition: none; }
  .mobile-panel { transition: none; }
  .dish-card:hover, .cat-card:hover { transform: none; box-shadow: none; }
}

/* 6.4 Print ------------------------------------------------- */
@media print {
  .site-header, .action-bar, .mobile-panel, .panel-overlay, .chips, .menu-cta, .btn, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; padding-bottom: 0; }
  a { color: #000; text-decoration: underline; }
  .hero__media::after { display: none; }
  .band--dark { background: #fff !important; color: #000 !important; }
  .menu-item { break-inside: avoid; }
  .footer__strip p::after { content: " · catalanofamilykitchen.com · 08 6185 1823"; }
}
