/* ============================================================
   Hahn Hardware — Design System CSS
   Site by Zealous Growth
   ============================================================ */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ----- Custom Properties (Light) ----- */
:root {
  --bg: #F7F5F0;
  --bg-alt: #EBE8E1;
  --bg-card: #FFFFFF;
  --bg-dark: #302A24;
  --text: #302A24;
  --text-muted: #544B42;
  --text-faint: #7A7268;
  --primary: #9B2D2D;
  --primary-rgb: 155, 45, 45;
  --primary-light: #C85050;
  --accent: #C4893A;
  --accent-light: #F5E8D5;
  --accent-green: #2D7A4F;
  --border: #DDD8CE;
  --border-light: #EBE8E1;

  /* Department palette */
  --dept-hardware: #9B2D2D;
  --dept-paint: #6B4FA0;
  --dept-plumbing: #3A6A9B;
  --dept-electrical: #C4893A;
  --dept-garden: #2D7A4F;
  --dept-seasonal: #8A6B4A;

  /* Sizing tokens */
  --nav-height: 4rem;
  --container: 72rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
}

/* ----- Dark Mode ----- */
html.dark {
  --bg: #2C2722;
  --bg-alt: #242019;
  --bg-card: #352F28;
  --bg-dark: #1C1914;
  --text: #E8E4DC;
  --text-muted: #B8B0A5;
  --text-faint: #8A8278;
  --primary: #C85050;
  --primary-rgb: 200, 80, 80;
  --primary-light: #E07070;
  --accent: #D4A050;
  --accent-light: #3A2E20;
  --accent-green: #4AA068;
  --border: #3E3830;
  --border-light: #352F28;

  --dept-hardware: #C85050;
  --dept-paint: #8B6FC0;
  --dept-plumbing: #5A8ABB;
  --dept-electrical: #D4A050;
  --dept-garden: #4AA068;
  --dept-seasonal: #A08060;
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ----- Base ----- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  padding-bottom: 2.25rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  text-wrap: balance;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  text-wrap: pretty;
}

.overline {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.mono,
.data-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9375rem;
  font-weight: 400;
}

/* ----- Container ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

/* ----- Transition Helpers ----- */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* ============================================================
   NAVIGATION — Sticky with scroll-aware bg
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent over dark hero */
.site-nav.has-dark-hero {
  background: transparent;
  color: #FFFFFF;
}

.site-nav.has-dark-hero a,
.site-nav.has-dark-hero button {
  color: #FFFFFF;
}

/* Solid on scroll */
.site-nav.scrolled {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.site-nav.scrolled a,
.site-nav.scrolled button {
  color: var(--text);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(var(--primary-rgb), 0.1);
}

.theme-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
}

.nav-hamburger span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-hamburger span::before,
.nav-hamburger span::after {
  content: '';
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: absolute;
  left: 0;
  transition: transform 0.3s ease;
}

.nav-hamburger span::before { top: -6px; }
.nav-hamburger span::after { top: 6px; }

.nav-hamburger.active span { background: transparent; }
.nav-hamburger.active span::before { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.active span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 767px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.875rem 0;
    font-size: 1.0625rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ============================================================
   HERO — Full-bleed with warm overlay
   ============================================================ */
.hero {
  position: relative;
  min-height: max(80vh, 32rem);
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(48, 42, 36, 0.88) 0%,
    rgba(48, 42, 36, 0.65) 55%,
    rgba(48, 42, 36, 0.3) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 55%;
  color: #FFFFFF;
}

.hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  max-width: 32rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .hero {
    min-height: max(70vh, 28rem);
  }

  .hero-content {
    max-width: 100%;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================================
   STORE FINDER STRIP — 5 location cards
   ============================================================ */
.store-finder {
  background: var(--bg-alt);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.store-finder-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.store-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.store-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  border-left: 3px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
}

.store-card:hover {
  border-left-color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

html.dark .store-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.store-card-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.store-card-address {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.store-card-phone {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.store-card-phone a {
  transition: color 0.2s ease;
}

.store-card-phone a:hover {
  color: var(--primary);
}

.store-status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
}

.store-status.open {
  color: var(--accent-green);
}

.store-status.closed {
  color: var(--text-faint);
}

.store-status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.store-status.open .store-status-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.store-card-hours {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* Mobile: horizontal scroll */
@media (max-width: 1023px) {
  .store-cards {
    grid-template-columns: repeat(5, minmax(14rem, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  .store-card {
    scroll-snap-align: start;
  }
}

@media (max-width: 639px) {
  .store-cards {
    grid-template-columns: repeat(5, 80vw);
    gap: 0.75rem;
  }
}

/* ============================================================
   DEPARTMENT GRID — Color-coded top borders
   ============================================================ */
.departments {
  padding: 4rem 0;
}

.departments-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.dept-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border-top: 3px solid var(--dept-color, var(--border));
  transition: border-top-width 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dept-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dept-color, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}

.dept-card:hover {
  border-top-width: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.dept-card:hover::before {
  opacity: 0.04;
}

html.dark .dept-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html.dark .dept-card:hover::before {
  opacity: 0.08;
}

.dept-card[data-dept="hardware"] { --dept-color: var(--dept-hardware); }
.dept-card[data-dept="paint"] { --dept-color: var(--dept-paint); }
.dept-card[data-dept="plumbing"] { --dept-color: var(--dept-plumbing); }
.dept-card[data-dept="electrical"] { --dept-color: var(--dept-electrical); }
.dept-card[data-dept="garden"] { --dept-color: var(--dept-garden); }
.dept-card[data-dept="seasonal"] { --dept-color: var(--dept-seasonal); }

.dept-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--bg-alt);
  margin-bottom: 1rem;
  color: var(--dept-color, var(--text));
  transition: background-color 0.3s ease;
}

.dept-card:hover .dept-icon {
  background: color-mix(in srgb, var(--dept-color, var(--primary)) 15%, transparent);
}

.dept-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.dept-card h3 {
  margin-bottom: 0.5rem;
}

.dept-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 767px) {
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 479px) {
  .dept-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   VALUE PROPS — 3 columns centered
   ============================================================ */
.value-props {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.value-props-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 1.5rem;
}

.value-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
}

.value-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.value-item h3 {
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 767px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ============================================================
   BRAND LOGOS — Grayscale row on gray bg
   ============================================================ */
.brand-logos {
  padding: 3rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.brand-logos-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-logos-header p {
  color: var(--text-faint);
  font-size: 0.875rem;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-row img {
  height: 2.5rem;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-row img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

html.dark .logo-row img {
  filter: grayscale(100%) invert(1);
  opacity: 0.4;
}

html.dark .logo-row img:hover {
  filter: grayscale(0%) invert(0);
  opacity: 1;
}

/* ============================================================
   ABOUT — Split 40/60
   ============================================================ */
.about-split {
  padding: 5rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text .overline {
  margin-bottom: 0.75rem;
  display: block;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 1.5rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.about-stat-value {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--primary);
  line-height: 1.1;
}

.about-stat-label {
  font-size: 0.875rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    aspect-ratio: 16 / 9;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

/* ============================================================
   SEASONAL — Full-bleed bg photo
   ============================================================ */
.seasonal-promo {
  position: relative;
  padding: 5rem 0;
  min-height: 24rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.seasonal-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.seasonal-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seasonal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(48, 42, 36, 0.85) 0%,
    rgba(48, 42, 36, 0.5) 100%
  );
}

.seasonal-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  color: #FFFFFF;
}

.seasonal-content h2 {
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.seasonal-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

/* ============================================================
   TESTIMONIALS — Horizontal cards
   ============================================================ */
.testimonials {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.125rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial-name {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
}

.testimonial-role {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

@media (max-width: 1023px) {
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 639px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section {
  padding: 4rem 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.faq-list {
  max-width: 48rem;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  text-align: left;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text);
  min-height: 44px;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-faint);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer-inner {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 30rem;
}

/* ============================================================
   CTA BAND — Barn red bg
   ============================================================ */
.cta-band {
  background: var(--primary);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #FFFFFF;
  color: var(--primary);
}

.cta-band .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-section {
  padding: 4rem 0;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 56rem;
  margin-inline: auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 0.75rem;
}

.contact-info-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-info-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.125rem;
}

.contact-info-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-info-value a {
  transition: color 0.2s ease;
}

.contact-info-value a:hover {
  color: var(--primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-faint);
}

.form-textarea {
  resize: vertical;
  min-height: 7rem;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A7268' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.25rem;
  accent-color: var(--primary);
  min-width: 1rem;
  min-height: 1rem;
}

.form-status {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: color-mix(in srgb, var(--accent-green) 10%, transparent);
  color: var(--accent-green);
  border: 1px solid color-mix(in srgb, var(--accent-green) 25%, transparent);
}

.form-status.error {
  display: block;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER — Multi-column warm dark bg
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: #B8B0A5;
  padding: 3.5rem 0 1.5rem;
}

html.dark .site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  max-width: 20rem;
}

.footer-col-title {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #E8E4DC;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #8A8278;
}

.footer-bottom a {
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, color 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

.footer-social svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DISCLAIMER BAR — Fixed bottom
   ============================================================ */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--bg-dark);
  color: #8A8278;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

html.dark .disclaimer-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.disclaimer-bar a {
  color: #B8B0A5;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.disclaimer-bar a:hover {
  color: #FFFFFF;
}

/* ============================================================
   SECTION SPACING
   ============================================================ */
section {
  position: relative;
}

.section-pad {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section-pad {
    padding: 5rem 0;
  }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-primary { color: var(--primary); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.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;
}

/* Turnstile container */
.cf-turnstile {
  margin-top: 0.25rem;
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-nav,
  .disclaimer-bar,
  .theme-toggle,
  .nav-hamburger {
    display: none !important;
  }

  body {
    padding-bottom: 0;
    background: #fff;
    color: #000;
  }
}
