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

:root {
  /* Santa Maria Burgers palette — derived from the logo (red + charcoal on white),
     with a nautical slate accent nodding to the galleon crest. */
  --bg-primary: #FFFFFF;            /* clean white */
  --bg-secondary: #F5F3EF;          /* soft warm grey */
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border: rgba(40, 40, 40, 0.14);
  --border-hover: rgba(216, 64, 48, 0.4);
  --border-control: rgba(40, 40, 40, 0.55);  /* 3.50:1 on white — control boundaries, WCAG 1.4.11 */
  --red: #D84030;                   /* logo red */
  --red-surface: #C4382A;           /* the logo red darkened ~10% for use BEHIND WHITE TEXT.
                                       #D84030 with white is 4.47:1 and fails 1.4.3 (needs 4.5).
                                       The logo red itself is untouched — it still paints text,
                                       accents, dividers and outlines, where it is measured
                                       against the cream page, not against white. This token is
                                       5.32:1, deliberately clear of the line rather than the
                                       4.50 a one-point darkening would have scraped. */
  --red-text: #B5301F;              /* darkened for AA text contrast — 6.16:1 on white,
                                       5.39:1 on the hero badge, 5.56:1 on --bg-secondary.
                                       Every red that PAINTS TEXT below 24px uses this;
                                       --red itself stays on display type, rules and icons. */
  --red-dark: #9A2718;
  --red-glow: rgba(216, 64, 48, 0.16);
  --brown: #282828;                 /* logo charcoal — headings & brand mark */
  --cream: #FFFFFF;
  --gold: #33475B;                  /* nautical slate accent (8:1 on white — AA) */
  --text-primary: #282828;          /* charcoal */
  --text-secondary: #4A4A4A;
  --text-muted: #5A5A5A;            /* 7:1 on white — 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(51, 71, 91, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 75% 70%, rgba(216, 64, 48, 0.04) 0%, transparent 40%);
}

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

/* Header on cream */
header {
  background: rgba(255, 255, 255, 0.94);
  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-text); }
.nav-links a[aria-current="page"] { color: var(--red-text); }

/* Mobile menu */
.mobile-menu { background: rgba(255, 255, 255, 0.98); }
.mobile-menu a { color: var(--brown); }
.mobile-toggle { color: var(--brown); }

/* Hero — friendlier brand */
.hero h1 {
  color: var(--brown);
  font-family: '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-text);
}

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

/* Buttons */
.btn-primary {
  background: var(--red-surface);
  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-control);
}
.btn-secondary:hover { background: rgba(196, 30, 0, 0.06); }

/* Sections */
.section-label { color: var(--red-text); }
.section-title { color: var(--brown); font-family: '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: '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-text); }

/* 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-text); }
.footer-copy { color: var(--text-muted); }
.footer-credit { color: var(--text-muted); }

/* Location tagline footer mark */
.since-mark {
  font-family: 'Bebas Neue', sans-serif;
  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: '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-text); font-weight: 700; }
.location-detail .icon { color: var(--red); }
.location-link { color: var(--red-text); }
.highlight-box .num { color: var(--red); font-family: '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 { color: var(--brown); font-family: '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: 'Bebas Neue', sans-serif; font-weight: 700; }
.prose h3 { color: var(--brown); }
.prose strong { color: var(--brown); }
.prose a { color: var(--red-text); overflow-wrap: break-word; }

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

/* Order Online (.nav-cta) and the inline mobile CTA paint white text on the logo
   red too — they come from style.css and from inline styles in the markup, so
   the --red-surface swap above did not reach them. 4.47:1 -> 5.32:1. */
.nav-cta { background: var(--red-surface); }
.mobile-cta { background: var(--red-surface) !important; }

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

/* Page hero on subpages */
.page-hero h1 { color: var(--brown); font-family: '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(51, 71, 91, 0.07));
  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: 'Bebas Neue', sans-serif;
  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-surface);
  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);
}
/* The status paragraph is a child of the flex row, so it has to claim a full
   line of its own — otherwise a populated message competes with the field and
   the button for width and pushes the row past the viewport (WCAG 1.4.10). */
.subscribe-form .form-status, .subscribe-form .field-error,
.footer-subscribe .form-status, .footer-subscribe .field-error { flex: 1 0 100%; text-align: left; }
.footer-subscribe form { flex-wrap: wrap; }
.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,
.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: 'Bebas Neue', sans-serif;
  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-surface);
  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: #FFFFFF !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 #FFFFFF; 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(--border-control);                       /* 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 ── */
.field-error { color: var(--red-text); }                   /* 6.16:1 on white */
/* These two buttons set `border: none` above, which outranks the forced-colors
   block in style.css (same specificity, later sheet). Restore their boundary. */
@media (forced-colors: active) {
  .subscribe-form button, .footer-subscribe button { border: 1px solid ButtonText; }
}

/* Consent boxes on the contact form (September 26, 2026). Not a .form-group, so the
   full-width text-field styling above never lands on the checkboxes. */
.consent { border: 0; padding: 0; margin: 0; min-width: 0; }
.consent legend { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; padding: 0; }
.consent-item { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; }
.consent-item input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; accent-color: var(--red); cursor: pointer; }
.consent-item input:focus-visible { outline: 3px solid var(--red-dark); outline-offset: 2px; }
.consent-item label { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.45; cursor: pointer; }
.consent-terms { color: var(--text-secondary); font-size: 0.8125rem; line-height: 1.5; margin: 4px 0 0; }
.consent-terms a { color: var(--red-text); text-decoration: underline; }

/* Homepage signup with email + text boxes (September 26, 2026). Stacked, left-aligned;
   the footer's one-line email form is unchanged. */
.subscribe-form.subscribe-full { display: block; max-width: 480px; text-align: left; }
.subscribe-full .nl-field { margin: 0 0 14px; }
.subscribe-full .nl-field label { display: block; font-weight: 600; font-size: 0.9375rem; color: var(--text-primary); margin: 0 0 6px; }
.subscribe-full .nl-opt { font-weight: 400; color: var(--text-secondary); }
.subscribe-full input[type="email"], .subscribe-full input[type="tel"], .subscribe-full select {
  display: block; width: 100%; min-width: 0; padding: 14px 18px; background: rgba(255, 250, 240, 0.95);
  border: 1px solid #8a6f5a; border-radius: 10px; color: var(--text-primary); font-size: 1rem; font-family: 'Inter', sans-serif; }
.subscribe-full input[type="tel"]:focus-visible, .subscribe-full select:focus-visible, .subscribe-full input[type="email"]:focus-visible {
  border-color: var(--red); outline: 3px solid var(--red-dark); outline-offset: 2px; }
.subscribe-full .nl-consent { margin: 6px 0 16px; }
.subscribe-full .nl-consent .consent-terms { margin-left: 0; }
.subscribe-card .subscribe-full p.consent-terms { max-width: none; margin: 4px 0 0; font-size: 0.8125rem; }
.subscribe-full button { width: 100%; }
