/* =====================================================================
   base.css: "modern bold retro diner"
   Loaded after Bootstrap 5.3 and before assets/css/themes/{slug}.css.

   THEME CONTRACT
   Themes only override the custom properties in the first :root block
   below, and always on :root (derived colors are computed there, so a
   theme that sets --primary on :root also updates --primary-dark etc.).
   The Original theme gets the owner's brand colors from Settings via an
   inline <style> printed after the theme file.
   ===================================================================== */

/* ---------- Fonts (self-hosted, Latin subset) ---------- */
@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alfa-slab-one-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/dm-sans-italic-latin.woff2") format("woff2");
}

/* ---------- Theme tokens (override these in themes/*.css) ---------- */
:root {
  /* Core palette */
  --primary:   #c8102e;   /* cherry red */
  --secondary: #1fa3a3;   /* diner teal */
  --accent:    #f2b134;   /* mustard */
  --cream:     #fff6e5;
  --ink:       #1d1d1f;

  /* Text that sits on top of each palette color */
  --on-primary:   #ffffff;
  --on-secondary: var(--ink);
  --on-accent:    var(--ink);

  /* Surfaces */
  --surface:      #ffffff;
  --header-bg:    color-mix(in srgb, var(--cream) 94%, transparent);
  --footer-bg:    var(--ink);
  --footer-text:  var(--cream);
  --footer-accent: var(--accent);

  /* Hero */
  --hero-bg:      var(--primary);
  --hero-text:    #ffffff;
  --hero-ray:     color-mix(in srgb, #ffffff 9%, transparent);   /* sunburst stripes */

  /* Retro details */
  --checker-a:    var(--ink);
  --checker-b:    #ffffff;
  --checker-size: 18px;
  --chrome: linear-gradient(135deg, #f7f7f8 0%, #a7abb1 20%, #ffffff 42%, #8a8f96 66%, #e4e6e8 84%, #b9bdc2 100%);
  --price-bg:     var(--accent);
  --price-text:   var(--ink);

  /* Type */
  --font-display: "Alfa Slab One", "Rockwell Extra Bold", Rockwell, "Roboto Slab", Georgia, serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Shape */
  --radius:      18px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --border-w:    3px;
  --shadow-pop:  5px 5px 0 var(--ink);
  --shadow-pop-hover: 8px 8px 0 var(--ink);
}

/* ---------- Derived colors (computed from the tokens above) ---------- */
:root {
  --primary-dark:   color-mix(in srgb, var(--primary) 80%, #000);
  --secondary-dark: color-mix(in srgb, var(--secondary) 62%, #000);  /* readable teal text on cream */
  --accent-soft:    color-mix(in srgb, var(--accent) 30%, var(--cream));
  --ink-soft:       color-mix(in srgb, var(--ink) 74%, var(--cream));
  --line:           color-mix(in srgb, var(--ink) 16%, transparent);
  --surface-alt:    color-mix(in srgb, var(--secondary) 10%, var(--cream));
  --focus:          var(--secondary);

  /* Bootstrap bridge */
  --bs-body-bg: var(--cream);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.6;
  --bs-border-radius: var(--radius-sm);
  --bs-emphasis-color: var(--ink);
  --bs-heading-color: var(--ink);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;              /* Alfa Slab has one weight. Never fake-bold it */
  letter-spacing: .005em;
  line-height: 1.08;
}
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { color: var(--primary-dark); }
.lead { font-weight: 400; }
address { font-style: normal; }
img { max-width: 100%; height: auto; }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--cream); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  --bs-btn-font-weight: 800;
  --bs-btn-border-width: 2px;
  --bs-btn-focus-box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--focus) 55%, transparent);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .9rem;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn-lg { font-size: 1rem; --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.6rem; }
.btn-pill { border-radius: var(--radius-pill); padding-inline: 1.4rem; }
.btn-primary, .btn-accent, .btn-light {
  --bs-btn-border-color: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-primary:hover, .btn-accent:hover, .btn-light:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-primary:active, .btn-accent:active, .btn-light:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary {
  --bs-btn-bg: var(--primary);           --bs-btn-color: var(--on-primary);
  --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-color: var(--on-primary);
  --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-color: var(--on-primary);
}
.btn-accent {
  --bs-btn-bg: var(--accent);            --bs-btn-color: var(--on-accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 88%, #fff); --bs-btn-hover-color: var(--on-accent);
  --bs-btn-active-bg: var(--accent);     --bs-btn-active-color: var(--on-accent);
}
.btn-light {
  --bs-btn-bg: #fff; --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: var(--cream); --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: var(--cream); --bs-btn-active-color: var(--ink);
}
.btn-outline-light {
  --bs-btn-color: #fff; --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #fff; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #fff;
  --bs-btn-active-bg: #fff; --bs-btn-active-color: var(--ink);
}
.btn-outline-dark {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--ink); --bs-btn-hover-color: var(--cream); --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-bg: var(--ink); --bs-btn-active-color: var(--cream);
}

/* ---------- Retro pieces ---------- */
.checker {
  height: calc(var(--checker-size) * 2);
  background:
    repeating-conic-gradient(var(--checker-a) 0 25%, var(--checker-b) 0 50%)
    0 0 / calc(var(--checker-size) * 2) calc(var(--checker-size) * 2);
  border-block: var(--border-w) solid var(--ink);
}
.checker-sm { --checker-size: 10px; }

.chrome-card {
  position: relative;
  border: var(--border-w) solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--card-bg, var(--surface)), var(--card-bg, var(--surface))) padding-box,
    var(--chrome) border-box;
  box-shadow: var(--shadow-pop);
}

.est-badge {
  display: inline-grid; place-content: center; text-align: center;
  width: 6.25rem; aspect-ratio: 1; margin: 0 0 1.25rem;
  border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  border: var(--border-w) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1;
  transform: rotate(-10deg);
}
.est-badge span {
  display: block; font-family: var(--font-body); font-weight: 800;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .2rem;
}
.est-badge-sm { width: 4.6rem; font-size: 1.05rem; box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent) 40%, #000); border-color: var(--footer-bg); }
.est-badge-sm span { font-size: .58rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: .6rem;
  color: var(--secondary-dark);
  font-weight: 800; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after { content: "★"; color: var(--accent); font-size: .9em; letter-spacing: 0; }

.price-tag {
  flex: none; display: inline-block;
  padding: .25rem .8rem .2rem;
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  background: var(--price-bg); color: var(--price-text);
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-3deg);
}

/* ---------- Announcement bar ---------- */
.announcement { padding: .55rem 0; text-align: center; font-weight: 600; font-size: .95rem; }
.announcement + .announcement { border-top: 1px solid var(--line); }
.announcement-info    { background: var(--ink); color: var(--cream); }
.announcement-special { background: var(--accent); color: var(--on-accent); }
.announcement-warning { background: var(--accent-soft); color: var(--ink); }
.announcement-closed  { background: var(--primary); color: var(--on-primary); }
.announcement-link { margin-left: .5rem; color: inherit; font-weight: 800; text-decoration: underline; white-space: nowrap; }
.announcement-link:hover { color: inherit; text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--header-bg);
  border-bottom: var(--border-w) solid var(--ink);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .navbar { --bs-navbar-padding-y: .7rem; }
.brand { display: inline-flex; align-items: center; margin-right: 1.5rem; text-decoration: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1; color: var(--primary);
  text-shadow: 2px 2px 0 var(--accent);
}
/* Uploaded logo: keeps its proportions (both sides auto, only max limits), never stretched or cropped */
.brand-logo {
  display: block; width: auto; height: auto;
  max-height: 56px; max-width: 240px; object-fit: contain;
}
.brand-logo-square { max-height: 68px; }          /* round/square badges look small at the same height */
.brand-logo-wide   { max-width: 280px; }          /* long wordmarks: limited by width instead */
@media (max-width: 575.98px) {
  .brand-logo        { max-height: 44px; max-width: 170px; }
  .brand-logo-square { max-height: 52px; }
  .brand-logo-wide   { max-width: 200px; }
}

.site-header .nav-link {
  --bs-nav-link-color: var(--ink);
  --bs-nav-link-hover-color: var(--primary);
  font-weight: 800; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase;
}
.site-header .nav-link.active { color: var(--primary); }
.header-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-phone { color: var(--ink); font-weight: 800; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--primary); }

.navbar-toggler {
  padding: .55rem .65rem; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: 2px 2px 0 var(--ink);
}
.navbar-toggler:focus { box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--focus) 55%, transparent); }
.burger { display: grid; gap: 4px; width: 22px; }
.burger span { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 992px) {
  .site-header .nav-link { --bs-navbar-nav-link-padding-x: .9rem; position: relative; }
  .site-header .nav-link::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .2rem;
    height: 3px; border-radius: 3px; background: var(--accent);
    transform: scaleX(0); transition: transform .18s ease;
  }
  .site-header .nav-link:hover::after, .site-header .nav-link.active::after { transform: scaleX(1); }
}
@media (max-width: 991.98px) {
  /* Mobile: logo/name centered, menu button on the right. Three columns with equal outer sides,
     so the brand sits in the true center of the screen, not just the space left of the button. */
  .site-header .navbar > .container {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: .5rem;
  }
  .site-header .brand { grid-column: 2; margin: 0; justify-content: center; text-align: center; }
  .site-header .brand-name { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
  .site-header .navbar-toggler { grid-column: 3; justify-self: end; }
  .site-header .navbar-collapse { grid-column: 1 / -1; }

  .site-header .navbar-nav { padding: 1rem 0 .5rem; text-align: center; }
  .site-header .nav-link { font-size: 1.05rem; padding-block: .7rem; border-bottom: 1px dashed var(--line); }
  .header-cta { padding: 1rem 0 .5rem; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hero-bg); color: var(--hero-text);
}
.hero-sunburst {
  position: absolute; z-index: -1;
  width: 220vmax; aspect-ratio: 1; left: 18%; top: 50%;
  translate: -50% -50%;
  background: repeating-conic-gradient(var(--hero-ray) 0deg 6deg, transparent 6deg 12deg);
  mask-image: radial-gradient(circle, #000 0 18%, transparent 46%);
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 46%);
}
/* Optional background photo with a color overlay (set in Admin → Settings → Logo & Colors) */
.hero-bg { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero-has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-overlay, var(--ink)); opacity: var(--hero-overlay-opacity, .6);
}
.hero-has-bg .hero-sunburst { opacity: .5; }
.hero-has-bg .hero-title { text-shadow: .045em .045em 0 var(--ink), 0 4px 24px rgba(0, 0, 0, .35); }
.hero-inner {
  display: grid; gap: 3rem; align-items: center;
  padding-block: clamp(3.5rem, 10vw, 7.5rem);
}
@media (min-width: 992px) {
  .hero-has-image .hero-inner { grid-template-columns: 1.1fr .9fr; }
}
.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: .98;
  color: var(--hero-text);
  text-shadow: .045em .045em 0 var(--ink);
  text-wrap: balance;
}
.hero-lead { max-width: 34rem; margin-bottom: 1.5rem; font-size: clamp(1.1rem, 2.2vw, 1.35rem); font-weight: 500; }
.today-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-bottom: 2rem; padding: .45rem 1rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--ink) 30%, transparent);
  border: 1px solid color-mix(in srgb, #fff 25%, transparent);
  font-size: .95rem;
}
.today-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px color-mix(in srgb, #3ddc84 30%, transparent); }
.today-dot.is-closed { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
/* Phones & tablets: center the hero (badge, name, text, hours chip and buttons) */
@media (max-width: 991.98px) {
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}
/* Small phones: buttons stack as equal-width, centered pills (easy to tap) */
@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 22rem; margin-inline: auto; }
  .header-cta { flex-direction: column; align-items: stretch; max-width: 22rem; margin-inline: auto; text-align: center; }
}
.hero-media img {
  display: block; width: 100%; aspect-ratio: 9 / 7; object-fit: cover;
  border: 6px solid #fff; border-radius: var(--radius);
  box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2deg);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tinted { background: var(--surface-alt); }
.section-head { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-title { margin: 0; font-size: clamp(2.1rem, 5vw, 3.3rem); text-align: center; }

/* Menu cards on the home page */
.menu-link-card {
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
  min-height: 15rem; padding: 2rem 1.75rem;
  color: var(--card-text, var(--ink)); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.menu-link-card:hover { color: var(--card-text, var(--ink)); transform: translate(-3px, -3px); box-shadow: var(--shadow-pop-hover); }
.menu-link-card.tone-primary   { --card-bg: var(--primary);   --card-text: var(--on-primary); }
.menu-link-card.tone-secondary { --card-bg: var(--secondary); --card-text: var(--on-secondary); }
.menu-link-card.tone-accent    { --card-bg: var(--accent);    --card-text: var(--on-accent); }
.menu-link-card.tone-ink       { --card-bg: var(--ink);       --card-text: var(--cream); }
.menu-link-card.has-image { padding-top: 0; overflow: hidden; }
.menu-link-media { display: block; margin: 0 -1.75rem .75rem; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: var(--border-w) solid var(--ink); }
.menu-link-media img { width: 100%; height: 100%; object-fit: cover; }
.menu-link-name { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; }
.menu-link-time { font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.menu-link-intro { opacity: .92; }
.menu-link-cta {
  margin-top: auto; align-self: flex-start;
  padding: .4rem 1rem; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
  font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}

/* ---------- Menu item card ---------- */
.menu-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.menu-card-media { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: var(--border-w) solid var(--ink); }
.menu-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.menu-card:hover .menu-card-media img { transform: scale(1.04); }
.menu-card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.menu-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .9rem; }
.menu-card-title { margin: 0; font-size: 1.28rem; line-height: 1.15; }
.menu-card-title a { color: inherit; text-decoration: none; }
.menu-card-desc { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.diet-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: auto 0 0; padding: .35rem 0 0; list-style: none; }
.diet-tags li {
  padding: .1rem .55rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--secondary-dark); color: var(--secondary-dark);
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
}
.diet-tags abbr { text-decoration: none; cursor: help; }
.diet-tags .tag-sold-out { background: var(--primary); border-color: var(--primary); color: var(--on-primary); text-transform: uppercase; }
.menu-card.is-sold-out .menu-card-media img { filter: grayscale(1); opacity: .7; }
.menu-card.is-sold-out .price-tag { text-decoration: line-through; opacity: .7; }

/* ---------- Info cards & hours ---------- */
.info-card { padding: clamp(1.5rem, 4vw, 2.25rem); }
.info-card-title { margin-bottom: 1.25rem; font-size: 1.7rem; color: var(--primary); }
.hours-list { margin: 0; }
.hours-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .55rem .75rem; border-bottom: 1px dashed var(--line);
}
.hours-row:last-child { border-bottom: 0; }
.hours-row dt { font-weight: 800; }
.hours-row dd { margin: 0; text-align: right; }
.hours-row.is-closed dd { color: var(--ink-soft); }
.hours-row.is-today { border-radius: var(--radius-sm); border-bottom-color: transparent; background: var(--accent-soft); }
.hours-row.is-today dt::after {
  content: "Today"; margin-left: .5rem; padding: .05rem .45rem; vertical-align: .1em;
  border-radius: var(--radius-pill); background: var(--ink); color: var(--cream);
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
}
.hours-holiday { padding: .6rem .9rem; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); }
.hours-list-compact .hours-row { padding: .3rem 0; border-bottom-color: color-mix(in srgb, var(--footer-text) 18%, transparent); }
.hours-list-compact .hours-row.is-today { padding-inline: .5rem; background: color-mix(in srgb, var(--footer-text) 10%, transparent); }
.hours-list-compact .hours-row.is-today dt::after { background: var(--footer-accent); color: var(--ink); }
.hours-list-compact .hours-row.is-closed dd { color: inherit; opacity: .7; }

/* About strip ticket */
.ticket {
  --card-bg: #fff;
  padding: 2rem; text-align: center; transform: rotate(2.5deg);
}
.ticket-label { margin: 0 0 .5rem; padding-bottom: .75rem; border-bottom: 2px dashed var(--line); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-number { margin: 0; font-family: var(--font-display); font-size: clamp(5rem, 14vw, 8rem); line-height: 1; color: var(--primary); text-shadow: 4px 4px 0 var(--accent); }
.ticket-text { margin: .5rem 0 0; font-weight: 800; font-size: 1.1rem; }

/* ---------- Inner page header ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(3rem, 8vw, 5.5rem);
  background: var(--hero-bg); color: var(--hero-text); text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-45deg, var(--hero-ray) 0 14px, transparent 14px 28px);
}
.page-hero-image::before { display: none; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero-image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 35%, transparent), color-mix(in srgb, var(--ink) 75%, transparent));
}
.page-hero .eyebrow { color: var(--accent); }
.page-title { margin: 0 0 .75rem; font-size: clamp(2.4rem, 7vw, 4.4rem); text-wrap: balance; }
.page-hero .page-title { color: var(--hero-text); text-shadow: .05em .05em 0 var(--ink); }
.page-lead { max-width: 44rem; margin: 0 auto; font-size: 1.15rem; }
.served-pill {
  display: inline-block; margin: 0 0 1rem; padding: .35rem 1rem;
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Menu page ---------- */
.category-nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.category-nav ul {
  display: flex; gap: .5rem; margin: 0; padding: .85rem 0; list-style: none;
  overflow-x: auto; scrollbar-width: thin;
}
.category-nav a {
  display: block; padding: .4rem 1rem; white-space: nowrap;
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  color: var(--ink); font-weight: 800; font-size: .85rem; text-decoration: none;
}
.category-nav a:hover { background: var(--ink); color: var(--cream); }
.menu-section { margin-bottom: clamp(3rem, 7vw, 4.5rem); scroll-margin-top: 6.5rem; }
.menu-section:last-of-type { margin-bottom: 2rem; }
.menu-section-title { margin-bottom: .75rem; font-size: clamp(1.9rem, 4vw, 2.5rem); }
.menu-section-title::after {                       /* em gap clears Alfa Slab descenders (g, y, p) at any size */
  content: ""; display: block; width: 4.5rem; height: 6px; margin-top: .5em;
  border-radius: 6px; background: var(--accent);
}
.menu-section-desc { max-width: 44rem; margin-bottom: 1.5rem; color: var(--ink-soft); }
.menu-section .row { margin-top: .75rem; }
[id^="item-"] { scroll-margin-top: 6.5rem; }
.menu-footnote { margin: 0; text-align: center; font-size: .9rem; color: var(--ink-soft); }

.empty-state { max-width: 40rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3rem); text-align: center; }
.empty-state h2 { color: var(--primary); }

/* ---------- Admin-written pages ---------- */
.prose { max-width: 46rem; margin-inline: auto; font-size: 1.1rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { margin: 2.2rem 0 .8rem; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.45rem; }
.prose img { border-radius: var(--radius); margin-block: 1rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 6px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Contact ---------- */
.contact-lines { display: grid; gap: .3rem; margin-bottom: 1.5rem; font-size: 1.1rem; }
.contact-lines a { font-weight: 700; }
/* Home page "Find Us" card with a map: everything centered, map framed like a postcard */
.find-us-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.find-us-card .find-us-actions { justify-content: center; }
.find-us-map {
  width: 100%; max-width: 34rem; margin: 0 auto 1.5rem;
  border: var(--border-w) solid var(--ink); border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink); overflow: hidden; background: var(--surface-alt);
}
.find-us-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; border: 0; }
@media (min-width: 992px) { .find-us-map iframe { aspect-ratio: 16 / 10; } }

.map-frame { overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; }

/* ---------- Menu item modifiers ---------- */
.menu-card-mods { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.mods-name { font-weight: 800; color: var(--ink); }
.mods-rule { font-size: .8em; }
.mods-price { font-weight: 700; color: var(--secondary-dark); white-space: nowrap; }

/* ---------- Menu item page ---------- */
.item-crumbs { margin-bottom: 1.75rem; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.item-crumbs a { color: var(--ink-soft); text-decoration: none; }
.item-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.item-photo { margin: 0; overflow: hidden; }
.item-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.item-title { margin: 0 0 1rem; font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--primary); text-shadow: .04em .04em 0 var(--accent); text-wrap: balance; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.item-cal { font-weight: 700; color: var(--ink-soft); }
.price-tag.is-struck { text-decoration: line-through; opacity: .65; }
.item-desc { font-size: 1.2rem; line-height: 1.65; }
.item-tags { margin: 0 0 1.25rem; }
.item-tags li { font-size: .8rem; }
.item-mods { display: grid; gap: 1rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--surface); border: 2px dashed var(--line); }
.item-mod-title { margin: 0 0 .35rem; font-family: var(--font-body); font-size: 1rem; font-weight: 800; }
.item-mod-title span { font-weight: 500; color: var(--ink-soft); font-size: .9em; }
.item-mod-group ul { margin: 0; padding-left: 1.1rem; }
.item-details { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 3px solid var(--ink); }
.item-details .section-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1rem; }

/* ---------- Specials ---------- */
.special-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.special-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-pop-hover); }
.special-card-media { aspect-ratio: 3 / 2; overflow: hidden; border-bottom: var(--border-w) solid var(--ink); }
.special-card-media img { width: 100%; height: 100%; object-fit: cover; }
.special-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.35rem 1.4rem 1.5rem; flex: 1; }
.special-card-flags { display: flex; flex-wrap: wrap; gap: .35rem; }
.special-card-flags:empty { display: none; }
.flag { padding: .12rem .6rem; border-radius: var(--radius-pill); background: var(--accent-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flag-hot { background: var(--primary); color: var(--on-primary); }
.special-card-title { margin: 0; font-size: 1.45rem; }
.special-card-title a { color: var(--ink); text-decoration: none; }
.special-card-title a:hover { color: var(--primary); }
.special-card-text { margin: 0; color: var(--ink-soft); }
.special-card .price-tag { margin-top: auto; }
.price-tag-lg { font-size: 1.6rem; padding: .35rem 1.2rem; }
.specials-pager { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 2.5rem; font-weight: 700; }

/* ---------- Newsletter band ---------- */
.newsletter { padding-block: clamp(2.5rem, 6vw, 4rem); background: var(--secondary); color: var(--on-secondary); border-top: var(--border-w) solid var(--ink); }
.newsletter-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 992px) { .newsletter-inner { grid-template-columns: 1fr 1.2fr; } }
.newsletter-title { margin: 0 0 .35rem; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.newsletter-text { margin: 0; font-weight: 500; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter-form .form-control { flex: 1 1 12rem; border: 2px solid var(--ink); border-radius: var(--radius-pill); padding: .65rem 1.1rem; }
.newsletter-form .btn { flex: 0 0 auto; }

/* ---------- Contact page forms ---------- */
.form-tabs { gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.form-tabs .nav-link {
  border: 2px solid var(--ink); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink);
  font-weight: 800; font-size: .9rem; letter-spacing: .04em; padding: .55rem 1.2rem;
}
.form-tabs .nav-link:hover { background: var(--accent-soft); color: var(--ink); }
.form-tabs .nav-link.active { background: var(--ink); color: var(--cream); box-shadow: 3px 3px 0 var(--accent); }
.form-card { max-width: 52rem; margin-inline: auto; padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card-title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); color: var(--primary); margin-bottom: .5rem; }
.form-card-intro { color: var(--ink-soft); margin-bottom: 1.25rem; }
.form-card .form-label { font-weight: 700; margin-bottom: .3rem; }
.form-card .form-control, .form-card .form-select { border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); border-radius: var(--radius-sm); padding-block: .6rem; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--secondary-dark); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--secondary) 30%, transparent); }
.form-card .is-invalid { border-color: var(--primary); }
.form-card .invalid-feedback { color: var(--primary-dark); font-weight: 600; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-foot .cf-turnstile { margin: 0 !important; }
.req { color: var(--primary); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
#message, #party, #apply, #sponsor, #forms { scroll-margin-top: 6.5rem; }

/* ---------- 404 ---------- */
.not-found-code {
  margin: 0 0 .5rem; font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 10rem); line-height: 1;
  color: var(--primary); text-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-4deg);
}
.not-found .page-lead { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.site-footer .checker { border-top: 0; }
.footer-main { padding-block: clamp(3rem, 7vw, 4.5rem); }
.site-footer a { color: var(--footer-text); text-decoration-color: color-mix(in srgb, var(--footer-text) 40%, transparent); }
.site-footer a:hover { color: var(--footer-accent); }
.footer-logo-link { display: inline-block; margin-bottom: .9rem; }
.footer-logo {                                     /* keeps its proportions: only max limits, never stretched */
  display: block; width: auto; height: auto;
  max-height: 80px; max-width: 220px; object-fit: contain;
}
.footer-logo-square { max-height: 110px; }
.footer-brand { margin-bottom: .4rem; font-family: var(--font-display); font-size: 2rem; line-height: 1.05; color: var(--footer-accent); }
.footer-tagline { opacity: .85; }
.footer-heading {
  margin-bottom: 1rem; font-family: var(--font-body); font-weight: 800;
  font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--footer-accent);
}
.footer-address { line-height: 1.8; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: .45rem; }
.footer-links a { text-decoration: none; }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.social-links a {
  display: inline-block; padding: .3rem .85rem; border-radius: var(--radius-pill);
  border: 1.5px solid color-mix(in srgb, var(--footer-text) 45%, transparent);
  font-size: .85rem; font-weight: 700; text-decoration: none;
}
.social-links a:hover { border-color: var(--footer-accent); }
.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--footer-text) 15%, transparent); padding-block: 1.25rem; font-size: .88rem; opacity: .8; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.footer-bottom p { margin: 0; }
.powered-by {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1rem 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--footer-text) 10%, transparent);
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .6; transition: opacity .2s ease;
}
.powered-by:hover { opacity: .9; }
.powered-by-logo { display: block; width: 120px; height: 32px; object-fit: contain; }
.powered-by-name { font-weight: 800; letter-spacing: .08em; }
.theme-note { padding: .1rem .7rem; border-radius: var(--radius-pill); border: 1px solid color-mix(in srgb, var(--footer-text) 30%, transparent); font-size: .8rem; }

/* ---------- Sticky mobile action bar ---------- */
.mobile-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink); border-top: var(--border-w) solid var(--accent);
}
.mobile-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  min-height: 3.75rem; padding: .45rem;
  color: var(--cream); text-decoration: none;
  font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
}
.mobile-action:hover, .mobile-action:focus { color: var(--accent); }
.mobile-action svg { width: 22px; height: 22px; fill: currentColor; }
.mobile-action-primary { background: var(--primary); color: var(--on-primary); }
.mobile-action-primary:hover, .mobile-action-primary:focus { background: var(--primary-dark); color: var(--on-primary); }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(3.75rem + env(safe-area-inset-bottom)); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active, .menu-link-card:hover { transform: none; }
}

/* ---------- Print (menus get printed) ---------- */
@media print {
  .site-header, .mobile-actions, .announcements, .checker, .category-nav, .hero-actions,
  .hero-bg, .page-hero-bg, .hero-has-bg::before, .page-hero-image::after { display: none !important; }
  body { padding: 0; background: #fff; }
  .page-hero, .hero { background: none; color: #000; padding-block: 1rem; }
  .page-hero .page-title, .hero-title { color: #000; text-shadow: none; }
  .chrome-card { box-shadow: none; border: 1px solid #999; break-inside: avoid; }
  .site-footer { background: none; color: #000; }
}
