/* Warm-theme overrides — light/cream palette, friendlier typography.
   Layered on top of /assets/style.css. Used only on /warm/ preview pages. */

:root {
  --bg-primary: #FAF5EB;          /* cream */
  --bg-secondary: #F2E9D6;        /* warmer cream */
  --bg-card: rgba(255, 250, 240, 0.85);
  --bg-card-hover: rgba(255, 250, 240, 1);
  --border: rgba(139, 37, 0, 0.18);
  --border-hover: rgba(139, 37, 0, 0.4);
  --red: #C41E00;
  --red-text: #A01900;              /* slightly muted on cream for readability */
  --red-dark: #6B1C00;
  --red-glow: rgba(196, 30, 0, 0.18);
  --brown: #5C3A21;
  --cream: #FAF5EB;
  --gold: #8F6A1B;                  /* honey amber, darkened for WCAG AA text contrast (4.55:1 on cream) */
  --text-primary: #3A2618;          /* warm dark brown */
  --text-secondary: #6B4A30;
  --text-muted: #6F5138;            /* 6.6:1 on cream — AA for small text */
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Paper-grain texture — subtle, warm, no flash */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(200, 147, 46, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(196, 30, 0, 0.04) 0%, transparent 40%);
}

/* Kill the dark-theme decorations */
.gradient-bg, .cursor-glow { display: none !important; }

/* Header on cream */
header {
  background: rgba(250, 245, 235, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav-brand-text { color: var(--brown); }
.nav-links a { color: var(--text-secondary); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--red); }
.nav-links a[aria-current="page"] { color: var(--red); }

/* Mobile menu */
.mobile-menu { background: rgba(250, 245, 235, 0.97); }
.mobile-menu a { color: var(--brown); }
.mobile-toggle { color: var(--brown); }

/* Hero — friendlier brand */
.hero h1 {
  color: var(--brown);
  font-family: 'Caveat', 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 9vw, 6.875rem);
  letter-spacing: 1px;
  line-height: 1.05;
}
.hero h1 .red { color: var(--red); }
.hero h1 .gold { color: var(--gold); }
.hero p { color: var(--text-secondary); }
.hero-badge {
  background: rgba(196, 30, 0, 0.08);
  border: 1px solid rgba(196, 30, 0, 0.25);
  color: var(--red);
}

.since-number { color: var(--red); }
.since-label { color: var(--text-muted); }

/* Buttons */
.btn-primary {
  background: var(--red);
  box-shadow: 0 4px 16px rgba(196, 30, 0, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(196, 30, 0, 0.35); }
.btn-secondary {
  color: var(--brown);
  border: 1px solid var(--border-hover);
}
.btn-secondary:hover { background: rgba(196, 30, 0, 0.06); }

/* Sections */
.section-label, .h1-label { color: var(--red); }
.section-title { color: var(--brown); font-family: 'Caveat', 'Bebas Neue', sans-serif; font-weight: 700; letter-spacing: 0.5px; }
.section-subtitle { color: var(--text-secondary); }

/* Teaser cards */
.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(92, 58, 33, 0.06);
}
.teaser-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(92, 58, 33, 0.12);
}
.teaser-card h3 { color: var(--brown); font-family: 'Caveat', 'Bebas Neue', sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: 0.5px; }
.teaser-card p { color: var(--text-secondary); }
.teaser-card .arrow { color: var(--red); }

/* Footer */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.footer-brand span { color: var(--brown); }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--red); }
.footer-copy { color: var(--text-muted); }
.footer-credit { color: var(--text-muted); }

/* Handwritten "Since 1976" footer mark */
.since-mark {
  font-family: 'Caveat', cursive;
  font-size: 1.75rem;
  color: var(--red);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Cards on menu/locations/etc. */
.menu-card, .location-card, .highlight-box, .about-image {
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(92, 58, 33, 0.05);
}
.menu-card h2, .location-card h2, .menu-card h3, .location-card h3 { color: var(--brown); font-family: 'Caveat', 'Bebas Neue', sans-serif; font-weight: 700; font-size: 1.75rem; }
.menu-card p, .location-detail, .location-detail span { color: var(--text-secondary); }
.menu-items li { color: var(--text-secondary); border-bottom-color: var(--border); }
.menu-items .price { color: var(--red); font-weight: 700; }
.location-detail .icon { color: var(--red); }
.location-link { color: var(--red); }
.highlight-box .num { color: var(--red); font-family: 'Caveat', 'Bebas Neue', sans-serif; }
.highlight-box .label { color: var(--text-muted); }

/* Form fields */
.form-group label { color: var(--text-secondary); }
.form-group input, .form-group textarea, .form-group select {
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.contact-info h2, .contact-info h3, .contact-form h2 { color: var(--brown); font-family: 'Caveat', 'Bebas Neue', sans-serif; font-weight: 700; }
.contact-info-item { color: var(--text-secondary); }

/* Prose pages — privacy / terms / accessibility */
.prose { color: var(--text-secondary); }
.prose h2 { color: var(--brown); font-family: 'Caveat', 'Bebas Neue', sans-serif; font-weight: 700; }
.prose h3 { color: var(--brown); }
.prose strong { color: var(--brown); }
.prose a { color: var(--red); }

/* Divider — softer */
.divider { background: var(--red); opacity: 0.6; }

/* Skip link */
.skip-link { background: var(--red); color: white; }

/* Page hero on subpages */
.page-hero h1 { color: var(--brown); font-family: 'Caveat', 'Bebas Neue', sans-serif; font-weight: 700; }
.page-hero p { color: var(--text-secondary); }

/* Newsletter subscribe — homepage CTA section */
.subscribe-section {
  position: relative; z-index: 1;
  padding: 48px 24px 80px;
}
.subscribe-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(196, 30, 0, 0.05), rgba(200, 147, 46, 0.08));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(92, 58, 33, 0.06);
}
.subscribe-card h2 {
  font-family: 'Caveat', cursive;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--brown);
  margin-bottom: 12px;
  line-height: 1;
}
.subscribe-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 28px;
}
.subscribe-form {
  display: flex; gap: 12px; max-width: 480px; margin: 0 auto;
  flex-wrap: wrap; justify-content: center;
}
.subscribe-form input[type="email"] {
  flex: 1; min-width: 220px;
  padding: 14px 18px;
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s;
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.subscribe-form button {
  background: var(--red);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(196, 30, 0, 0.25);
}
.subscribe-form button:hover {
  box-shadow: 0 6px 24px rgba(196, 30, 0, 0.35);
  transform: translateY(-1px);
}
.subscribe-status {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--red);
  min-height: 20px;
}
.subscribe-fine-print {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Warm-theme text-color rescue — base style.css uses var(--cream) for emphasis
   text (logo wordmark, hover states, strong tags in contact-info, etc.) but in
   warm mode --cream IS the background, so cream-on-cream reads as invisible.
   Force these to the warm brown text color. */
.nav-brand-text,
.mobile-menu a,
.btn-secondary,
.menu-card h2,
.location-card h2,
.contact-info h2,
.contact-form h2,
.menu-card h3,
.location-card h3,
.contact-info h3,
.contact-info-item strong,
.about-text h1,
.about-text h2,
.about-text h3,
.location-link:hover { color: var(--brown) !important; }

/* Footer inline subscribe */
.footer-subscribe {
  max-width: 460px;
  margin: 0 auto 24px;
  text-align: center;
}
.footer-subscribe-label {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 8px;
}
.footer-subscribe form {
  display: flex; gap: 8px;
}
.footer-subscribe input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 250, 240, 0.95);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
}
.footer-subscribe input[type="email"]:focus {
  border-color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 1px;
}
.footer-subscribe button {
  background: var(--red);
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.footer-subscribe button:hover { background: var(--red-dark); }

@media (max-width: 768px) {
  .subscribe-card { padding: 32px 24px; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form button { width: 100%; }
}


/* ── WCAG 2.2 AA fixes — 2026-07-03 multi-agent audit round 1 ──
   Contrast values verified against --bg-primary #FAF5EB and --bg-secondary #F2E9D6. */
.mobile-close { color: var(--brown); }                     /* was white on cream (1.09:1) */
.mobile-menu a.mobile-cta { color: #FAF5EB !important; }   /* cream on red pill 5.47:1; beats the brown rescue */
*:focus-visible { outline-color: var(--red-dark); }        /* #6B1C00 7.9:1 on cream */
.btn-primary:focus-visible, .nav-cta:focus-visible, .footer-subscribe button:focus-visible,
.subscribe-form button:focus-visible, .mobile-menu a.mobile-cta:focus-visible,
.skip-link:focus { outline: 3px solid #FAF5EB; outline-offset: -5px; }  /* inset ring on red-filled controls */
.form-group input, .form-group textarea, .form-group select,
.footer-subscribe input[type="email"], .subscribe-form input[type="email"] {
  border-color: var(--control-border);                      /* field boundary ≥3:1 */
}
input::placeholder, textarea::placeholder { color: var(--text-secondary); opacity: 1; }
.location-review-btn:hover { color: var(--brown) !important; }  /* was cream-on-cream */
.prose a:hover { color: var(--red-dark); }
.footer-social a:hover { color: var(--red); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* ── WCAG 2.2 AA fixes — 2026-09-21 remediation round 2 ──
   Ratios computed against --bg-primary #FAF5EB and the card fill #FEF9EF. */

/* 1.4.11 — the outline-style controls were bounded by --border
   rgba(139,37,0,.18) = 1.37:1, and their fill is 1.01:1 against the card, so only
   the label marked them as controls at all. --control-border is the same brand
   brown at the 0.7 alpha already used for field boundaries: 4.17:1 on cream,
   4.10:1 on the card fill. Cards and hairline separators keep --border. */
:root { --control-border: rgba(139, 37, 0, 0.7); }
.platform-btn, .location-review-btn, .mobile-toggle { border-color: var(--control-border); }
.btn-secondary { border-color: var(--control-border); }        /* was --border-hover 2.11:1 */
.platform-btn:hover, .location-review-btn:hover, .btn-secondary:hover { border-color: var(--red-dark); }
/* .platform-btn.direct keeps its red border — its solid red fill is already 5.5:1. */

/* 1.4.3 — the hint text reached 4.95:1 only through opacity:.7, which silently
   breaks against any other background. Same rendered colour, stated outright: 5.2:1. */
.field-hint { color: #746457; opacity: 1; }

/* 3.3.1 / 1.4.1 — per-field error text, not colour alone. #6B1C00 is 7.9:1 on cream.
   .form-status carries both outcomes, so it keeps the neutral body colour (13:1)
   rather than signalling success or failure by hue. */
.field-error { color: var(--red-dark); }

/* 2.4.13 — form fields focused with a 2px ring where every other control uses 3px. */
.form-group input:focus, .form-group textarea:focus, .form-group select:focus,
.footer-subscribe input[type="email"]:focus, .subscribe-form input[type="email"]:focus {
  outline: 3px solid var(--red-dark); outline-offset: 2px;
}

/* The single-line subscribe forms are flex rows; the injected error needs its own line. */
.footer-subscribe form, .subscribe-form { flex-wrap: wrap; }

/* 3.3.2 — required state was announced but never shown. */
.req { color: var(--red-dark); font-weight: 700; }
.form-required-note { font-size: .78rem; line-height: 1.5; color: #746457; margin-top: -8px; }

/* 3.3.2 — the hero subscribe field's only label was parked at left:-9999px, so
   sighted users had nothing but a placeholder that vanishes on the first keystroke. */
.subscribe-form-label {
  flex-basis: 100%;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--brown);
  margin-bottom: -4px;
}
