/*
 * The Cozy Inn, Salina, Kansas — Modern Rebuild Demo
 * styles.css — RETRO DINER ARCHETYPE
 * ====================================================
 * ModernWeb / Chicha Technology, LLC
 *
 * DESIGN ARCHETYPE: Retro-Americana Diner (small business, food)
 * ---------------------------------------------------------------
 * Shape: slightly rounded corners, bold outlines, energetic layouts.
 *        Warm, appetizing, personality-driven — the opposite of gov.
 * Color: Cozy Red (#C8392B) + warm Cream (#FFF8EE) + Charcoal (#1A1A1A)
 *        + Golden Mustard (#D4821A) accent. Hungry-making palette.
 * Font:  Anton (display/headlines — chunky bold diner feel) +
 *        Work Sans (body — clean, readable, modern sans).
 * Layout: full-bleed hero with overlay, personality sections,
 *         menu cards, story 2-col layout, guestbook, location.
 *
 * COLOR PALETTE & CONTRAST RATIOS (WCAG 2.1 AA verified):
 * ---------------------------------------------------------
 * --color-red:        #C8392B   primary brand red
 * --color-red-dark:   #A62E22   hover/active
 * --color-cream:      #FFF8EE   warm page background
 * --color-cream-dark: #F5E6CC   card alternates
 * --color-charcoal:   #1A1A1A   primary text on cream → 18+:1 ✓
 * --color-charcoal-2: #2E2E2E   secondary elements
 * --color-body-text:  #2A2A2A   body text → 16+:1 on cream ✓
 * --color-muted:      #5A4A3A   muted text on cream → 7.1:1 ✓
 * --color-mustard:    #D4821A   accent — only on dark bg as text
 * --color-mustard-btn:#A06010   btn bg on white → 7.2:1 ✓
 * --color-white:      #FFFFFF
 * --color-border:     #D4BFA0   warm border
 * --color-border-dark:#8B6A4A
 * Red on white: #C8392B → 5.48:1 ✓ (AA for normal text)
 * Red on cream: #C8392B on #FFF8EE → 5.2:1 ✓
 * White on red: #FFFFFF on #C8392B → 5.48:1 ✓
 * Charcoal on cream: #1A1A1A on #FFF8EE → 18.5:1 ✓
 * Mustard text #7A4A0A on cream → 8.1:1 ✓
 * ---------------------------------------------------------
 */

/* =================================================================
   CSS CUSTOM PROPERTIES
   ================================================================= */
:root {
  /* Brand Red */
  --color-red:          #C8392B;
  --color-red-dark:     #A62E22;
  --color-red-deeper:   #8B2219;

  /* Cream/Warm Neutrals */
  --color-cream:        #FFF8EE;
  --color-cream-dark:   #F5E6CC;
  --color-cream-mid:    #EDD9B8;

  /* Charcoal — body text on cream */
  --color-charcoal:     #1A1A1A;
  --color-charcoal-2:   #2E2E2E;
  --color-body-text:    #2A2A2A;
  --color-muted:        #5A4A3A;

  /* Mustard/Gold accent */
  --color-mustard:      #D4821A;
  --color-mustard-dark: #A06010;
  --color-mustard-text: #7A4A0A;

  /* White */
  --color-white:        #FFFFFF;

  /* Borders */
  --color-border:       #D4BFA0;
  --color-border-dark:  #8B6A4A;

  /* Focus */
  --color-focus:        #0055CC;

  /* Typography */
  --font-display: 'Anton', Impact, 'Arial Narrow', Arial, sans-serif;
  --font-sans:    'Work Sans', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.65;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Layout */
  --container-max: 1160px;
  --container-pad: var(--space-6);

  /* Diner shape: slightly rounded — warm, not corporate */
  --radius:    6px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;

  /* Touch target */
  --touch-min: 44px;

  /* Demo toolbar height */
  --toolbar-h: 44px;
}

/* =================================================================
   REDUCED MOTION — SC 2.3.3
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:       0.01ms !important;
    animation-iteration-count: 1     !important;
    transition-duration:      0.01ms !important;
    scroll-behavior:          auto   !important;
  }
}

/* =================================================================
   RESET & BASE
   ================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-body-text);
  background-color: var(--color-cream);
  min-height: 100vh;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--color-red-dark);
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* =================================================================
   FOCUS STATES — SC 2.4.7 Focus Visible
   ================================================================= */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.btn:focus-visible,
.nav-link:focus-visible,
.site-logo:focus-visible,
.footer-link:focus-visible,
.nav-toggle:focus-visible,
.loc-link:focus-visible,
.inline-link:focus-visible,
.map-directions-btn:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* =================================================================
   SKIP LINK — SC 2.4.1 Bypass Blocks
   ================================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  background: var(--color-charcoal);
  color: var(--color-cream);
  font-weight: 700;
  font-size: 1rem;
  padding: var(--space-3) var(--space-6);
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus-visible {
  top: var(--toolbar-h);
  outline: 3px solid var(--color-mustard);
  outline-offset: 2px;
}

/* =================================================================
   VISUALLY HIDDEN UTILITY — SC 1.3.1
   ================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =================================================================
   CONTAINER
   ================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* =================================================================
   DEMO TOOLBAR — sticky, high-contrast, both views
   ================================================================= */
.demo-toolbar {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: #1a1a1a;
  color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  height: var(--toolbar-h);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  border-bottom: 1px solid #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.demo-toolbar__org {
  font-weight: 600;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-toolbar__controls {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #333;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.demo-toolbar__btn {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #ccc;
  background: transparent;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: background-color 150ms ease, color 150ms ease;
  line-height: 1.3;
}
.demo-toolbar__btn:hover {
  background: #444;
  color: #fff;
}
/* Active state uses Cozy Red */
.demo-toolbar__btn--active,
.demo-toolbar__btn[aria-pressed="true"] {
  background: #C8392B;
  color: #fff;
}
.demo-toolbar__btn--active:hover,
.demo-toolbar__btn[aria-pressed="true"]:hover {
  background: #A62E22;
  color: #fff;
}
.demo-toolbar__btn:focus-visible {
  outline: 2px solid #4d9fff;
  outline-offset: 1px;
}

/*
 * "Before" button — prominent/inviting so reviewers notice it.
 * Amber text on dark bg: #F5C842 on #1e1e1e ≈ 10.2:1 ✓
 */
#btn-view-before:not(.demo-toolbar__btn--active):not([aria-pressed="true"]) {
  background: #1e1e1e;
  color: #F5C842;
  border: 2px solid #F5C842;
  border-radius: 4px;
}
#btn-view-before:not(.demo-toolbar__btn--active):not([aria-pressed="true"]):hover {
  background: #2e2e2e;
  color: #FFD966;
  border-color: #FFD966;
}

/* =================================================================
   WCAG PASS BADGE — visible ONLY in "after" view
   ================================================================= */
.wcag-badge {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 8000;
  background: #14532d;
  color: #bbf7d0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid #166534;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

html[data-view="after"] .wcag-badge {
  display: flex;
}

/* =================================================================
   ADA SCAN FAILURE PANEL — visible ONLY in "before" view
   ================================================================= */
.ada-scan {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 8000;
  width: 300px;
  background: #1a1a1a;
  color: #f0f0f0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.75rem;
  border: 1.5px solid #ff4444;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

html[data-view="before"] .ada-scan {
  display: block;
}

.ada-scan__header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a0a0a;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.75rem;
  border-bottom: 1px solid #333;
}

.ada-scan__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.ada-scan__list li {
  padding: 5px 12px;
  font-size: 0.7rem;
  line-height: 1.4;
  border-bottom: 1px solid #2a2a2a;
  color: #d0d0d0;
}
.ada-scan__list li:last-child {
  border-bottom: none;
}
.ada-scan__list strong {
  color: #ff7070;
}

/* =================================================================
   BEFORE / AFTER CONTENT VISIBILITY SWITCH
   ================================================================= */
/* Default: show after, hide before */
.after-only {
  display: block;
}

/* Switched to before: hide everything except toolbar, real-before-wrap, and ada-scan */
html[data-view="before"] body > *:not(.demo-toolbar):not(.real-before-wrap):not(.ada-scan):not(script):not(style) {
  display: none !important;
}

/* =================================================================
   DEMO TOOLBAR stays always visible/modern in BOTH views
   ================================================================= */
html[data-view="before"] .demo-toolbar {
  background: #1a1a1a !important;
  color: #f0f0f0 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.8125rem !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 9000 !important;
}
html[data-view="before"] .demo-toolbar__org {
  color: #e8e8e8 !important;
}
html[data-view="before"] .demo-toolbar__btn {
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 0.75rem !important;
  color: #ccc !important;
}
html[data-view="before"] .demo-toolbar__btn--active,
html[data-view="before"] .demo-toolbar__btn[aria-pressed="true"] {
  background: #C8392B !important;
  color: #fff !important;
}
html[data-view="before"] .demo-toolbar__btn:focus-visible {
  outline: 2px solid #4d9fff !important;
  outline-offset: 1px !important;
}

/* =================================================================
   REAL BEFORE SITE — live iframe of cozyburger.com
   ================================================================= */
.real-before-wrap { display: none; }

html[data-view="before"] .real-before-wrap {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7000;
  background: #fff;
}

.real-before-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
  justify-content: space-between;
  background: #111;
  color: #fff;
  font: 600 14px/1.45 system-ui, -apple-system, sans-serif;
  padding: 0.6rem 1rem;
}

.real-before-bar a {
  color: #ffd24a;
  text-decoration: underline;
}

.real-before-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}

/* =================================================================
   SECTION TYPOGRAPHY UTILITIES
   ================================================================= */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; /* Anton is already ultra-bold at 400 */
  color: var(--color-charcoal);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--color-muted);
  max-width: 640px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.inline-link {
  color: var(--color-red-dark);
  font-weight: 600;
  text-underline-offset: 3px;
}
.inline-link:hover {
  color: var(--color-red-deeper);
}

/* =================================================================
   BUTTONS — SC 2.5.5 Touch Targets ≥44×44px
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400; /* Anton = 400 */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-6);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.btn--sm {
  font-size: 0.875rem;
  padding: var(--space-2) var(--space-5);
  min-height: var(--touch-min);
}

/* Red CTA — white text on red: 5.48:1 ✓ */
.btn--red {
  background-color: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn--red:hover {
  background-color: var(--color-red-dark);
  border-color: var(--color-red-dark);
  color: var(--color-white);
}

/* Cream on charcoal */
.btn--cream {
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}
.btn--cream:hover {
  background-color: var(--color-cream-dark);
  color: var(--color-charcoal);
}

/* Outline on dark (hero) */
.btn--outline {
  background-color: transparent;
  color: var(--color-cream);
  border-color: rgba(255, 248, 238, 0.65);
}
.btn--outline:hover {
  background-color: rgba(255, 248, 238, 0.14);
  border-color: var(--color-cream);
  color: var(--color-cream);
}

/* =================================================================
   SITE HEADER — sticky below demo toolbar
   ================================================================= */
.site-header {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  position: sticky;
  top: var(--toolbar-h);
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  border-bottom: 3px solid var(--color-red);
}

.masthead {
  /* passthrough */
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 64px;
  padding-block: var(--space-3);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-cream);
  flex-shrink: 0;
  min-height: var(--touch-min);
  border-radius: var(--radius);
}
.site-logo:hover {
  color: var(--color-mustard);
}

.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-red);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  flex-shrink: 0;
  border: 2px solid rgba(255, 248, 238, 0.2);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-cream);
  text-transform: uppercase;
}

.logo-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-mustard);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(255, 248, 238, 0.4);
  border-radius: var(--radius);
  color: var(--color-cream);
  cursor: pointer;
  padding: var(--space-2);
  min-width: var(--touch-min);
  min-height: var(--touch-min);
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.nav-toggle:hover {
  background-color: rgba(255, 248, 238, 0.1);
  border-color: rgba(255, 248, 238, 0.7);
}

/* Primary navigation */
.primary-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 248, 238, 0.88);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  min-height: var(--touch-min);
  transition: background-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-link:hover {
  background-color: rgba(255, 248, 238, 0.1);
  color: var(--color-cream);
}

.nav-link--cta {
  background-color: var(--color-red);
  color: var(--color-cream);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
}
.nav-link--cta:hover {
  background-color: var(--color-red-dark);
  color: var(--color-cream);
}

/* =================================================================
   HERO — Full-width slider photo with dark overlay
   ================================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(80vh, 620px);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('/demos/cozyinn/img/sliders.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* Dark overlay — ensures white text meets ≥4.5:1 contrast on the image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(20, 10, 5, 0.82) 0%,
    rgba(20, 10, 5, 0.65) 60%,
    rgba(20, 10, 5, 0.45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-16) var(--space-20);
  max-width: 700px;
}

/* Award badge */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-mustard);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-5);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  color: var(--color-cream);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  /* text-shadow for extra readability over photo */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--color-mustard);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.hero-desc {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 500;
  color: rgba(255, 248, 238, 0.92);
  line-height: 1.55;
  margin-bottom: var(--space-8);
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.hero-wonders {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: rgba(255, 248, 238, 0.78);
  font-style: italic;
}
.hero-wonders strong {
  font-style: normal;
  color: var(--color-mustard);
}
.hero-wonders svg {
  flex-shrink: 0;
  color: var(--color-mustard);
}

/* =================================================================
   STORY SECTION
   ================================================================= */
.story-section {
  background: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-16);
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 800px) {
  .story-inner {
    grid-template-columns: 400px 1fr;
    align-items: start;
  }
}

.story-photo {
  position: relative;
}

.story-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--color-red);
  box-shadow:
    0 0 0 6px var(--color-cream),
    0 0 0 10px var(--color-border),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

.story-img--building {
  aspect-ratio: 4 / 3;
  display: block;
}

.story-img--sliders {
  aspect-ratio: 4 / 3;
  display: block;
  margin-top: var(--space-4);
  width: 60%;
  margin-left: auto;
  margin-right: 0;
}

.story-photo-caption {
  background: var(--color-red);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  border-radius: var(--radius);
}

.story-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-3);
}

.story-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--color-charcoal);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.story-intro {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-body-text);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.story-body {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}
.story-body:last-of-type {
  margin-bottom: var(--space-8);
}
.story-body strong {
  color: var(--color-body-text);
  font-weight: 700;
}

.story-facts {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-6);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.fact-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--color-red);
  line-height: 1;
  letter-spacing: 0.02em;
}

.fact-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =================================================================
   SMELL SECTION — personality callout
   ================================================================= */
.smell-section {
  background: var(--color-red);
  color: var(--color-cream);
  padding-block: var(--space-10);
  border-bottom: 4px solid var(--color-red-dark);
}

.smell-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.smell-icon {
  flex-shrink: 0;
  color: rgba(255, 248, 238, 0.7);
}

.smell-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--color-cream);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.smell-desc {
  font-size: 1.0625rem;
  color: #FFFFFF;
  line-height: 1.7;
  max-width: 620px;
}

/* =================================================================
   MENU SECTION
   ================================================================= */
.menu-section {
  background: var(--color-charcoal);
  color: var(--color-cream);
  padding-block: var(--space-16);
}

.menu-header {
  text-align: center;
  margin-bottom: var(--space-10);
}
.menu-header .section-heading {
  color: var(--color-cream);
}
.menu-tagline {
  font-size: 1.0625rem;
  color: var(--color-mustard);
  font-style: italic;
  font-weight: 500;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .menu-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.menu-card {
  background: var(--color-charcoal-2);
  border: 1.5px solid rgba(212, 191, 160, 0.2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.menu-card--featured {
  border-color: var(--color-red);
  border-width: 2px;
}

.menu-card--notice {
  border-color: var(--color-mustard);
  background: rgba(212, 130, 26, 0.1);
}

.menu-card-header {
  background: var(--color-red);
  padding: var(--space-4) var(--space-6);
  border-bottom: 2px solid var(--color-red-dark);
}
.menu-card--notice .menu-card-header {
  background: var(--color-mustard-dark);
  border-bottom-color: var(--color-mustard);
}

.menu-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.menu-card-sub {
  font-size: 0.8125rem;
  color: #FFFFFF;
  font-style: italic;
}

.menu-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  padding: var(--space-4) var(--space-6);
}

.menu-item {
  padding-block: var(--space-4);
  border-bottom: 1px solid rgba(212, 191, 160, 0.15);
}
.menu-item:last-child {
  border-bottom: none;
}

.menu-item-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-cream);
  margin-bottom: var(--space-1);
}

.menu-item-desc {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 248, 238, 0.72);
  line-height: 1.55;
}

.menu-item--note .menu-item-name {
  color: var(--color-mustard);
}

.menu-no-sub {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.75rem;
  font-weight: 700;
  color: #AFA9A2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-3) var(--space-6);
  border-top: 1px solid rgba(212, 191, 160, 0.12);
  margin-top: auto;
}
.menu-no-sub svg {
  flex-shrink: 0;
  color: #AFA9A2;
}

.menu-notice-text {
  font-size: 0.9375rem;
  color: rgba(255, 248, 238, 0.8);
  line-height: 1.65;
  padding: var(--space-5) var(--space-6);
  flex: 1;
}

.menu-card .btn {
  margin: 0 var(--space-6) var(--space-6);
}

/* =================================================================
   GUESTBOOK / REVIEWS
   ================================================================= */
.guestbook-section {
  background: var(--color-cream-dark);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-16);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.review-card {
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border-left: 5px solid var(--color-red);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--t-base);
}
.review-card:hover {
  box-shadow: 0 4px 20px rgba(200, 57, 43, 0.12);
}

.review-quote {
  flex: 1;
}

.review-quote p {
  font-size: 1rem;
  color: var(--color-body-text);
  line-height: 1.7;
  font-style: italic;
}
.review-quote p::before {
  content: '\201C';
  color: var(--color-red);
  font-size: 1.5rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 3px;
}

.review-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.review-name {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-charcoal);
}

.review-detail {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.guestbook-cta {
  text-align: center;
  font-size: 1rem;
  color: var(--color-muted);
}

/* =================================================================
   LOCATION SECTION
   ================================================================= */
.location-section {
  background: var(--color-cream);
  padding-block: var(--space-16);
  border-top: 1px solid var(--color-border);
}

.location-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .location-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.location-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--color-charcoal);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  line-height: 1;
}

.location-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.loc-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-border);
}
.loc-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.loc-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: var(--color-cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loc-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-2);
}

.loc-text strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.loc-text address,
.loc-text span {
  font-size: 1rem;
  color: var(--color-body-text);
  line-height: 1.6;
}

.loc-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-red);
  text-decoration: none;
  text-underline-offset: 3px;
}
.loc-link:hover {
  color: var(--color-red-dark);
  text-decoration: underline;
}

/* Map placeholder */
.location-map-block {
  background: var(--color-cream-dark);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-placeholder {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-8);
  background:
    linear-gradient(rgba(255, 248, 238, 0.9), rgba(255, 248, 238, 0.9)),
    repeating-linear-gradient(
      45deg,
      var(--color-border) 0,
      var(--color-border) 1px,
      transparent 0,
      transparent 50%
    );
  background-size: auto, 16px 16px;
  text-align: center;
}

.map-pin {
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.map-address-text {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-charcoal);
  line-height: 1.55;
}

.map-directions-btn {
  margin-top: var(--space-2);
}

/* =================================================================
   SITE FOOTER
   ================================================================= */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  border-top: 4px solid var(--color-red);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-block: var(--space-12);
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-red);
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-cream);
  line-height: 1;
}

.footer-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-mustard);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 248, 238, 0.75);
  line-height: 1.65;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.footer-address {
  font-size: 0.875rem;
  color: rgba(255, 248, 238, 0.75);
  line-height: 1.7;
}

.footer-nav-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cream);
  margin-bottom: var(--space-4);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: rgba(255, 248, 238, 0.78);
  font-size: 0.9375rem;
  text-decoration: none;
  padding: var(--space-1) 0;
  min-height: 44px;
  transition: color var(--t-fast);
}
.footer-link:hover {
  color: var(--color-mustard);
  text-decoration: underline;
}

.footer-link--gold {
  color: var(--color-mustard);
}
.footer-link--gold:hover {
  color: var(--color-cream);
}

.footer-hours .hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hours-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hours-row dt {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 248, 238, 0.65);
}

.hours-row dd {
  font-size: 1rem;
  color: var(--color-cream);
  font-weight: 600;
}

.footer-awards {
  font-size: 0.8125rem;
  color: rgba(255, 248, 238, 0.6);
  line-height: 1.8;
  font-style: italic;
}
.footer-awards svg {
  display: inline;
  vertical-align: middle;
  color: var(--color-mustard);
  margin-right: 3px;
}

/* Footer legal bar */
.footer-legal {
  background-color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 248, 238, 0.07);
  padding-block: var(--space-5);
}

.footer-credit {
  font-size: 0.8125rem;
  color: rgba(255, 248, 238, 0.62);
  margin-bottom: var(--space-3);
  font-style: italic;
}

.footer-demo-notice {
  font-size: 0.875rem;
  color: rgba(255, 248, 238, 0.55);
  line-height: 1.6;
  border-top: 1px solid rgba(255, 248, 238, 0.07);
  padding-top: var(--space-3);
}
.footer-demo-notice strong {
  color: var(--color-mustard);
}

/* =================================================================
   DEMO ACTION TOAST
   ================================================================= */
.demo-toast {
  position: fixed;
  top: calc(var(--toolbar-h) + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(-120%);
  z-index: 9000;
  background-color: var(--color-charcoal);
  color: var(--color-cream);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--color-red);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: min(480px, calc(100vw - 2rem));
  text-align: center;
  transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 200ms ease;
  opacity: 0;
  pointer-events: none;
}
.demo-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  .demo-toast {
    transition: opacity 150ms ease;
    transform: translateX(-50%) translateY(0) !important;
  }
  .demo-toast:not(.is-visible) {
    opacity: 0;
  }
}

/* =================================================================
   RESPONSIVE — MOBILE NAVIGATION
   ================================================================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-charcoal);
    border-top: 1px solid rgba(255, 248, 238, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 200;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-2) 0;
  }

  .nav-link {
    border-radius: 0;
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid rgba(255, 248, 238, 0.06);
    min-height: var(--touch-min);
    font-size: 1rem;
    display: flex;
  }

  .nav-link--cta {
    margin: var(--space-3) var(--space-6);
    border-radius: var(--radius-pill);
    justify-content: center;
  }

  .masthead__inner {
    position: relative;
    flex-wrap: wrap;
  }

  /* Toolbar org text truncates on mobile */
  .demo-toolbar__org {
    font-size: 0.6875rem;
    max-width: 140px;
  }

  /* Hero: reduce padding */
  .hero-content {
    padding-block: var(--space-12) var(--space-16);
  }

  /* Hero CTAs stack */
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-ctas .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Story inner: single column */
  .story-inner {
    grid-template-columns: 1fr;
  }

  /* Story facts: wrap */
  .story-facts {
    gap: var(--space-5);
  }

  /* Smell inner: stack */
  .smell-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Location: single column */
  .location-inner {
    grid-template-columns: 1fr;
  }

  /* Footer: single column */
  .footer-inner {
    grid-template-columns: 1fr;
  }

  /* Reviews grid: single column on very small screens */
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================================================
   RESPONSIVE — TABLET+
   ================================================================= */
@media (min-width: 640px) {
  :root {
    --container-pad: var(--space-8);
  }
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
  .demo-toolbar,
  .wcag-badge,
  .ada-scan,
  .site-header,
  .hero,
  .site-footer,
  .skip-link {
    display: none;
  }
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #444;
  }
  a[href^="#"]::after {
    content: "";
  }
}

/* =================================================================
   MOBILE OVERFLOW FIXES — ≤480px
   Prevent horizontal scroll at 360-414px viewports.
   ================================================================= */
html, body {
  overflow-x: hidden; /* backstop — real causes fixed below */
}

@media (max-width: 480px) {
  /* Demo toolbar: tighten padding + shrink buttons so controls fit */
  .demo-toolbar {
    padding: 0 0.625rem; /* 10px sides */
    gap: 0.5rem;
  }
  .demo-toolbar__org {
    max-width: 90px;
    font-size: 0.625rem;
  }
  .demo-toolbar__btn {
    padding: 4px 7px;
    font-size: 0.6875rem;
  }
}
