/* ============================================================
   Site Factory food template (appetite-first menu layout)
   Colours + heading font are injected per-business by generate.js
   ============================================================ */

:root {
  --font-head: 'Bricolage Grotesque', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-2: #f7efe6;
  --text: #2b1d16;
  --muted: #6b5a4e;
  --border: #eadfd3;
  --link: #b91c1c;
  --eyebrow: #b91c1c;
  --primary-soft: #fee2e2;
  --primary-strong: #991b1b;
  --accent: #b91c1c;
  --accent-hover: #991b1b;
  --on-accent: #ffffff;
  --accent-soft: #fef3c7;
  --accent-strong: #92400e;
  --hero-a: #3d0f0f;
  --hero-b: #a11d1d;
  --header-bg: #ffffff;
  --header-text: #2b1d16;
  --strip-bg: #4a1414;
  --strip-text: #ffffff;
  --strip-muted: #e5c3b8;
  --strip-icon: #ffffff;
  --footer-bg: #2b1d16;
  --footer-text: #faf4ee;
  --footer-muted: #c4ab99;
  --input-bg: #ffffff;
  --input-border: #d9c8b8;
  --star: #f59e0b;
  --focus: #b91c1c;
  --error: #b91c1c;
  --success: #15803d;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-full: 999px;
  --shadow-sm: 0 1px 2px rgba(43, 29, 22, 0.06), 0 2px 6px rgba(43, 29, 22, 0.08);
  --shadow-md: 0 6px 16px rgba(43, 29, 22, 0.1), 0 16px 40px rgba(43, 29, 22, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 64px;
  --whatsapp: #0e7566;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 899px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}
img, svg, iframe { display: block; max-width: 100%; }
input, button, textarea { font: inherit; color: inherit; }
a { color: var(--link); }

.container {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}

.visually-hidden {
  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;
  top: -6rem; left: 16px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 0; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 6vw + 0.8rem, 4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw + 1rem, 2.5rem); margin-bottom: 0.6em; }
h3 { font-size: 1.1875rem; }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  margin-bottom: 10px;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 19px; height: 19px; flex-shrink: 0; }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.btn-cream { background: var(--bg); color: var(--text); }
.btn-cream:hover { background: #ffffff; }
.btn-quiet { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 1.0625rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 200ms ease-out;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
  padding-block: 8px;
}
.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--header-text);
  min-width: 0;
  margin-right: auto;
}
.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-area { font-size: 0.75rem; font-weight: 500; color: var(--muted); line-height: 1.2; }
@media (max-width: 479px) {
  .brand-name { font-size: 1rem; }
  .header-call { padding: 10px 14px; }
}
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav { display: flex; gap: 4px; margin-right: 8px; }
  .site-nav a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 10px 14px;
    border-radius: var(--radius-full);
  }
  .site-nav a:hover { background: var(--surface-2); }
}
.header-call { flex-shrink: 0; padding: 10px 18px; min-height: 44px; }
.call-long { display: none; }
@media (min-width: 640px) {
  .call-short { display: none; }
  .call-long { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 82svh;
  padding-block: 80px;
  background: var(--hero-a);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 10, 5, 0.5) 0%, rgba(24, 10, 5, 0.68) 100%);
}
.hero-content { position: relative; z-index: 1; color: #fff; max-width: 44rem; }
.hero h1 { margin-bottom: 16px; text-wrap: balance; }
.hero-tagline {
  font-size: clamp(1.0625rem, 1vw + 0.95rem, 1.3125rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 36rem;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}

/* ---------- Sections ---------- */
.section { padding-block: 68px; }
@media (min-width: 768px) {
  .section { padding-block: 92px; }
}

/* ---------- House favourites ---------- */
.dish-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 640px) { .dish-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dish-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.dish-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.dish-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dish-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.dish-body { padding: 20px 22px 22px; }
.dish-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.dish-price {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1875rem;
  color: var(--accent-strong);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dish-body p { color: var(--muted); font-size: 0.9375rem; }
.dish-note { margin-top: 22px; font-size: 0.875rem; color: var(--muted); }
.dish-note:empty { display: none; }

/* ---------- Menu ---------- */
.menu-section { background: var(--surface-2); }
.menu-grid { display: grid; gap: 40px; margin-top: 36px; }
@media (min-width: 820px) { .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 64px; align-items: start; } }
.menu-cat h3 {
  font-size: 1.375rem;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.menu-cat ul { list-style: none; padding: 0; margin: 0; }
.menu-cat li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.menu-cat li:last-child { border-bottom: 0; }
.mi-line { display: flex; align-items: baseline; gap: 10px; }
.mi-name { font-weight: 700; font-size: 1.0325rem; }
.mi-dots { flex: 1; border-bottom: 2px dotted var(--border); transform: translateY(-4px); }
.mi-price {
  font-weight: 800;
  color: var(--accent-strong);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-cat li p { color: var(--muted); font-size: 0.875rem; margin-top: 3px; max-width: 30rem; }

/* ---------- Order banner ---------- */
.order-banner {
  background: linear-gradient(120deg, var(--hero-a), var(--hero-b));
  color: #fff;
  padding-block: 52px;
}
.order-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@media (min-width: 768px) {
  .order-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.order-banner h2 { margin-bottom: 6px; }
.order-banner p { color: rgba(255, 255, 255, 0.88); max-width: 34rem; }

/* ---------- Reviews ---------- */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
  margin-top: 16px;
}
.rating-score {
  font-family: var(--font-head);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rating-summary-meta { display: flex; flex-direction: column; gap: 4px; }
.rating-summary-meta .info-sub { margin: 0; }
.stars { display: flex; gap: 3px; }
.stars .star { width: 18px; height: 18px; fill: var(--star); }
.reviews-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 700px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review-card.featured {
  grid-column: 1 / -1;
  padding: 28px 28px 24px;
  border-left: 4px solid var(--accent);
}
.review-card.featured blockquote { font-size: clamp(1.0625rem, 1vw + 0.95rem, 1.3125rem); font-weight: 500; max-width: 52rem; }
.review-card blockquote { font-size: 0.9875rem; color: var(--text); }
.review-card figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.875rem;
  color: var(--muted);
}
.review-card figcaption strong { color: var(--text); font-weight: 600; }
.avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
}
.reviews-attribution { margin-top: 24px; font-size: 0.875rem; color: var(--muted); text-align: center; }

/* ---------- Trust row ---------- */
.trust-section { padding-block: 0 68px; }
@media (min-width: 768px) { .trust-section { padding-block: 0 92px; } }
.trust-row { display: grid; gap: 18px; }
@media (min-width: 768px) { .trust-row { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.trust-chip {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
}
.trust-chip-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}
.trust-chip-icon svg { width: 22px; height: 22px; }
.trust-chip h3 { font-size: 1.0325rem; margin-bottom: 3px; }
.trust-chip p { font-size: 0.9075rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  min-height: 52px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--muted); transition: transform 200ms ease-out; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 18px 16px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Visit ---------- */
.visit-section { background: var(--surface-2); }
.visit-grid { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; } }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.info-title { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; margin-bottom: 10px; }
.phone-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--link);
  text-decoration: none;
  padding-block: 4px;
  font-variant-numeric: tabular-nums;
}
.phone-big .icon { width: 22px; height: 22px; }
.phone-big:hover { text-decoration: underline; }
.info-sub { color: var(--muted); font-size: 0.9075rem; margin-top: 6px; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 0; }
.areas li {
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}
.hours { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.hours th, .hours td { padding: 9px 2px; border-bottom: 1px solid var(--border); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { text-align: left; font-weight: 600; }
.hours td { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.map-card { padding: 0; overflow: hidden; }
.map-card iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 40px 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}
.footer-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.footer-area { color: var(--footer-muted); font-size: 0.9075rem; margin-top: 2px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 640px) { .footer-contact { align-items: flex-end; } }
.footer-phone { color: var(--footer-text); font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.footer-phone:hover { text-decoration: underline; }
.footer-fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--footer-muted);
  font-size: 0.9075rem;
  font-weight: 500;
  text-decoration: none;
  min-height: 44px;
}
.footer-fb:hover { color: var(--footer-text); }
.footer-fb svg { width: 18px; height: 18px; }
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  font-size: 0.8125rem;
  color: var(--footer-muted);
}
@media (min-width: 640px) { .footer-meta { flex-direction: row; justify-content: space-between; } }
.footer-meta a { color: var(--footer-muted); }
.footer-meta a:hover { color: var(--footer-text); }

/* ---------- Mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 150;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(43, 29, 22, 0.14);
  transform: translateY(110%);
  transition: transform 250ms ease-out;
}
.mobile-bar.show { transform: none; }
.mobile-bar.input-open { display: none; }
.mobile-bar .btn { flex: 1; min-height: 48px; padding: 10px 6px; font-size: 0.9375rem; white-space: nowrap; }
.mobile-bar .btn .icon { width: 18px; height: 18px; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-bar { transition: none; } }

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 400ms ease-out, transform 400ms ease-out;
  }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
