/* ── Tortilleria La Guadalupana — main.css ─────────────────────
   Mobile-first, warm, authentic tortilleria feel.
   Palette: deep green primary, terracotta accent, corn gold, cream bg.
   Fonts: Playfair Display (display) + Inter (body).
   ────────────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-primary: #2d5a27;
  --color-primary-dark: #1e3d1a;
  --color-primary-light: #4a7c42;
  --color-accent: #c45d3e;
  --color-accent-dark: #a34830;
  --color-gold: #d4a843;
  --color-gold-light: #e8c96e;
  --color-bg: #faf6f0;
  --color-bg-alt: #f3ede3;
  --color-surface: #ffffff;
  --color-text: #2c2c2c;
  --color-text-light: #5a5a5a;
  --color-text-muted: #8a8a8a;
  --color-border: #e0d8cc;
  --color-error: #c0392b;
  --color-success: #27ae60;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --container-max: 72rem;
  --header-height: 7rem;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }
}

.section {
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }
}

.section-title {
  margin-bottom: var(--space-lg);
}

.section-title-center {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.section-form {
  background-color: var(--color-bg-alt);
}

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Cream matches the logo's own background so the crest blends in */
  background-color: #fef0d4;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  /* Same width/padding as .container so the logo and nav don't hug the edges */
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xs) var(--space-md);
}

@media (min-width: 768px) {
  .header-inner {
    padding: var(--space-xs) var(--space-lg);
  }
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.site-logo img {
  height: 7.5rem;
  width: auto;
  max-width: 16rem;
  object-fit: contain;
}

.site-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Nav Toggle (mobile) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Menu */
.site-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  z-index: 99;
}

.site-nav.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) 0;
}

.nav-list li {
  border-bottom: 1px solid var(--color-border);
}

.nav-list li:last-child {
  border-bottom: none;
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background-color: var(--color-bg-alt);
}

.nav-lang-switch {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
}

.nav-lang-btn {
  padding: 4px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  background: none;
  cursor: pointer;
  color: var(--color-text-light);
}

.nav-lang-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Wholesale CTA in header */
.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-xs);
    padding: 0;
  }

  .nav-list li {
    border: none;
  }

  .nav-link {
    padding: var(--space-sm) var(--space-md);
  }

  .nav-lang-switch {
    padding: 0;
  }

  .header-cta {
    display: inline-block;
  }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}

.btn-accent {
  background-color: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: white;
}

.btn-outline {
  background: none;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.header-cta {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* ── Hero (Home) ────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 42vh;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  overflow: hidden;
}

/* Inner wrapper: same max-width/padding as .container so hero text
   aligns with page sections; flex row holds text + product photo */
.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
  min-height: inherit;
}

/* Real product photo, framed on the right (portrait 382x510) */
.hero-visual {
  display: none;
}

@media (min-width: 768px) {
  .hero {
    min-height: 48vh;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-xl) var(--space-lg);
  }

  .hero-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
  }

  .hero-visual {
    flex: 0 0 22rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-visual img {
    max-height: 26rem;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid rgba(255,255,255,0.25);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

/* Outline button needs white text on the dark hero background */
.hero .btn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.85);
}

.hero .btn-outline:hover {
  background-color: white;
  color: var(--color-primary-dark);
  border-color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background-color: rgba(212,168,67,0.2);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-sm);
  color: var(--color-gold-light);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero {
    min-height: 48vh;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background-color: var(--color-primary);
  padding: var(--space-2xl) 0;
  text-align: center;
}

.page-hero-title {
  color: white;
  margin-bottom: var(--space-xs);
}

.page-hero-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 0 auto;
}

/* ── Fresh Daily Cards ──────────────────────────────────────── */
.fresh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .fresh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .fresh-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.fresh-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fresh-card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  color: var(--color-primary);
}

.fresh-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.fresh-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ── Teaser Sections ────────────────────────────────────────── */
.teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 768px) {
  .teaser {
    grid-template-columns: 1fr 1fr;
  }
}

.teaser-text h2 {
  margin-bottom: var(--space-md);
}

.teaser-text p {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.teaser-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ── Location Cards ─────────────────────────────────────────── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 480px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.location-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
}

.location-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.location-card.highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.location-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.location-name {
  font-size: 1.1rem;
  flex: 1;
}

.location-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  color: var(--color-text-light);
  white-space: nowrap;
}

.location-address {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.location-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

.location-action-btn:hover {
  background-color: var(--color-bg-alt);
}

.location-notes {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ── Map ────────────────────────────────────────────────────── */
.where-map-section,
.contact-map-section {
  margin-bottom: var(--space-2xl);
}

.where-map,
.contact-map {
  width: 100%;
  height: 20rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

@media (min-width: 768px) {
  .where-map,
  .contact-map {
    height: 28rem;
  }
}

/* "Find locations near me" toolbar */
.where-map-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

#near-me-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#near-me-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* "You are here" dot on the map */
.near-me-dot {
  background: transparent;
  border: none;
}

.near-me-dot-inner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e74c3c;
  border: 3px solid #fff;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.3);
}

/* Distance badge on location cards + popups */
.location-distance {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  background-color: #fdecea;
  color: #c0392b;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.near-me-dist {
  font-weight: 600;
  color: #c0392b;
}

/* ── About Page ─────────────────────────────────────────────── */
.about-content {
  max-width: 44rem;
  margin: 0 auto;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.about-content p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
}

.about-video {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-video-player {
  width: 100%;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (min-width: 480px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.value-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  color: var(--color-accent);
}

.value-card h3 {
  margin-bottom: var(--space-xs);
}

.value-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ── Products Page ──────────────────────────────────────────── */
.products-intro {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  max-width: 40rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .product-card {
    grid-template-columns: 1fr 1fr;
  }
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: var(--space-lg);
}

@media (min-width: 768px) {
  .product-info {
    padding: var(--space-xl);
  }
}

.product-name {
  margin-bottom: var(--space-sm);
}

.product-desc {
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.product-details {
  margin-bottom: var(--space-lg);
}

.product-details li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  padding: var(--space-xs) 0;
  font-size: 0.95rem;
}

.product-details svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--color-primary);
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 var(--space-md);
}

.products-note {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.products-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
  .products-gallery {
    grid-template-columns: repeat(2, 1fr);
    max-width: 44rem;
  }
}

.products-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 382 / 510;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

/* ── Wholesale Page ─────────────────────────────────────────── */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 480px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.benefit-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
}

.benefit-icon {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-alt);
  border-radius: 50%;
  color: var(--color-primary);
}

.benefit-card h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ── Forms ──────────────────────────────────────────────────── */
.inquiry-form {
  max-width: 44rem;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.required {
  color: var(--color-error);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,90,39,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 6rem;
}

/* Honeypot (hidden) */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-md);
}

@media (min-width: 480px) {
  .form-submit {
    width: auto;
  }
}

.form-error-banner {
  padding: var(--space-md);
  background-color: #fdecea;
  border: 1px solid var(--color-error);
  border-radius: var(--radius-sm);
  color: var(--color-error);
  margin-bottom: var(--space-lg);
}

.form-success {
  text-align: center;
  padding: var(--space-2xl);
  background-color: #eafaf1;
  border: 1px solid var(--color-success);
  border-radius: var(--radius-md);
}

.form-success h3 {
  color: var(--color-success);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--color-text-light);
}

/* ── Contact Page ───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-item {
  margin-bottom: var(--space-lg);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.contact-link {
  font-weight: 500;
}

.contact-hours-note {
  font-style: italic;
  color: var(--color-text-muted);
}

.contact-social {
  display: flex;
  gap: var(--space-sm);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background-color 0.2s;
}

.social-btn:hover {
  background-color: var(--color-bg-alt);
}

/* ── 404 Page ───────────────────────────────────────────────── */
.section-404 {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.error-title {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.error-text {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

/* ── Brand Strip ────────────────────────────────────────────── */
.brand-strip {
  background-color: var(--color-primary-dark);
  padding: var(--space-xl) 0;
  text-align: center;
}

.brand-strip p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  font-style: italic;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2xl) 0 var(--space-lg);
}

/* Same width/padding as .container so footer columns align with page sections */
.footer-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 0 var(--space-lg);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

@media (min-width: 480px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand img {
  width: 16rem;
  max-width: 100%;
  height: auto;
  margin-bottom: var(--space-sm);
  object-fit: contain;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.footer-col h4,
.footer-heading {
  color: white;
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 700;
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: rgba(255,255,255,0.8);
  transition: background-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  background-color: rgba(255,255,255,0.1);
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-lg);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* ── Utility ────────────────────────────────────────────────── */
.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;
}

/* ── Reduced Motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
