/* ============================================================
   SolarSplashing — Design Tokens & Component Styles
   Palette: sunset gold + pool teal on warm off-white
   Type:    Fraunces (display) + Inter (body)
   ============================================================ */

:root, [data-theme="light"] {
  /* Type scale (fluid) */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(2.75rem, 1rem + 6vw, 6.5rem);

  /* Spacing (4px base) */
  --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;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces (warm off-white) */
  --color-bg: #FBF7F0;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5EFE4;
  --color-surface-offset: #EFE7D6;
  --color-divider: #E4DBC8;
  --color-border: #D5CAB4;

  /* Text (midnight teal-brown) */
  --color-text: #142428;
  --color-text-muted: #5B6669;
  --color-text-faint: #A8AFB1;
  --color-text-inverse: #FBF7F0;

  /* Primary accent — Pool Teal */
  --color-primary: #0F6E7A;
  --color-primary-hover: #0A555F;
  --color-primary-active: #073E46;
  --color-primary-highlight: #CDE4E6;

  /* Secondary accent — Sunset Gold */
  --color-gold: #E88C1A;
  --color-gold-hover: #C67515;
  --color-gold-active: #9C5C10;
  --color-gold-highlight: #FBE4C4;

  /* Semantic */
  --color-success: #2E7D32;
  --color-error:   #C62828;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 200 / 0.06);
  --shadow-md: 0 8px 24px oklch(0.2 0.02 200 / 0.10);
  --shadow-lg: 0 24px 48px oklch(0.2 0.03 200 / 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1280px;

  /* Fonts */
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', system-ui, sans-serif;
}

[data-theme="dark"] {
  --color-bg: #0C1518;
  --color-surface: #121F22;
  --color-surface-2: #17262A;
  --color-surface-offset: #1D3034;
  --color-divider: #1E3236;
  --color-border: #2A4046;
  --color-text: #EDE7D8;
  --color-text-muted: #9AA3A5;
  --color-text-faint: #5B6669;
  --color-text-inverse: #0C1518;
  --color-primary: #4FB5C0;
  --color-primary-hover: #6FC9D1;
  --color-primary-active: #A0E2E8;
  --color-primary-highlight: #1E4148;
  --color-gold: #F5A94B;
  --color-gold-hover: #F8BC71;
  --color-gold-active: #FAD09C;
  --color-gold-highlight: #4A3417;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.35);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.45);
  --shadow-lg: 0 24px 48px oklch(0 0 0 / 0.55);
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container { width: 100%; max-width: var(--content-wide); padding-inline: clamp(var(--space-4), 4vw, var(--space-10)); margin-inline: auto; }
.container-narrow { max-width: var(--content-narrow); }
.container-default { max-width: var(--content-default); }

section { padding-block: clamp(var(--space-16), 10vw, var(--space-32)); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: var(--text-hero); line-height: 1.02; font-variation-settings: "SOFT" 30, "opsz" 144; }
h2 { font-size: var(--text-2xl); line-height: 1.08; font-variation-settings: "opsz" 72; }
h3 { font-size: var(--text-xl); line-height: 1.15; font-variation-settings: "opsz" 36; }
h4 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }

.lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 60ch; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in oklab, var(--color-border) 40%, transparent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--color-text); text-decoration: none; min-width: 0; }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
@media (min-width: 600px) { .brand-mark { width: 36px; height: 36px; } }
.brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 36;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
@media (min-width: 400px) { .brand-name { font-size: 1.1rem; } }
@media (min-width: 600px) { .brand-name { font-size: 1.35rem; } }
.brand-name .accent { color: var(--color-gold); }
.brand-name .suffix { }
@media (max-width: 380px) { .brand-name .suffix { display: none; } }

nav.primary { display: none; gap: var(--space-6); font-size: var(--text-sm); }
nav.primary a { color: var(--color-text-muted); text-decoration: none; font-weight: 500; }
nav.primary a:hover { color: var(--color-text); }
@media (min-width: 900px) { nav.primary { display: inline-flex; } }

.header-cta { display: inline-flex; align-items: center; gap: var(--space-2); flex: 0 0 auto; }
@media (min-width: 600px) { .header-cta { gap: var(--space-3); } }

/* Compact primary CTA in the header on mobile */
.header-cta .btn-primary {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  min-height: 40px;
}
@media (min-width: 600px) {
  .header-cta .btn-primary {
    padding: var(--space-4) var(--space-6);
    min-height: 48px;
  }
}

/* Hide theme toggle on very small screens to prevent header overflow */
@media (max-width: 480px) {
  .theme-toggle { display: none; }
}
.phone-link {
  display: none;
  align-items: center; gap: var(--space-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
  text-decoration: none;
}
.phone-link:hover { color: var(--color-primary); }
@media (min-width: 720px) { .phone-link { display: inline-flex; } }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-muted); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 600; letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  min-height: 48px;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-primary); color: var(--color-text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { background: var(--color-primary-active); transform: translateY(0); }

.btn-gold {
  background: var(--color-gold); color: #241407;
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--color-gold-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent; color: var(--color-text); border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-text); background: var(--color-surface); }

.btn-lg { padding: var(--space-5) var(--space-8); font-size: var(--text-base); min-height: 56px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: clamp(var(--space-10), 6vw, var(--space-16));
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}
.hero h1 { margin-bottom: var(--space-6); }
.hero h1 .highlight { color: var(--color-gold); font-style: italic; }
.hero h1 .highlight-teal { color: var(--color-primary); font-style: italic; }
.hero-lede { margin-bottom: var(--space-8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, oklch(0.15 0.03 200 / 0.35) 100%);
  pointer-events: none;
}

/* Trust bar */
.trust-bar {
  margin-top: clamp(var(--space-10), 6vw, var(--space-16));
  display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-10);
  align-items: center; justify-content: flex-start;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.trust-item {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.trust-item strong { color: var(--color-text); font-weight: 600; }
.trust-icon {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--color-primary-highlight); color: var(--color-primary);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

/* ============================================================
   Service dual-path cards
   ============================================================ */
.services { background: var(--color-surface-2); }
.services-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: var(--space-12);
}
@media (min-width: 800px) { .services-grid { grid-template-columns: 1fr 1fr; } }

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.service-image { aspect-ratio: 16 / 10; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1); }
.service-card:hover .service-image img { transform: scale(1.04); }

.service-body { padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.service-tag {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius-full);
  align-self: flex-start;
}
.service-tag.solar { background: var(--color-gold-highlight); color: var(--color-gold-active); }
.service-tag.pool { background: var(--color-primary-highlight); color: var(--color-primary-active); }

.service-card h3 { margin-bottom: var(--space-1); }
.service-features { list-style: none; padding: 0; margin: var(--space-2) 0 var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.service-features li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--text-sm); color: var(--color-text-muted);
}
.service-features li::before {
  content: ""; flex: 0 0 auto;
  width: 18px; height: 18px; margin-top: 3px;
  border-radius: var(--radius-full);
  background: var(--color-primary-highlight);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230F6E7A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 10.5 8 14.5 16 6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}
.service-card.solar .service-features li::before {
  background-color: var(--color-gold-highlight);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23E88C1A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='4 10.5 8 14.5 16 6'/></svg>");
}
.service-cta { margin-top: auto; }

/* ============================================================
   How it works
   ============================================================ */
.how-grid {
  display: grid; gap: var(--space-8);
  grid-template-columns: 1fr;
  margin-top: var(--space-12);
  counter-reset: step;
}
@media (min-width: 720px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }

.how-step { counter-increment: step; position: relative; padding-top: var(--space-8); }
.how-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-gold);
  font-variation-settings: "opsz" 72;
  line-height: 1;
  display: block;
  margin-bottom: var(--space-3);
}
.how-step h4 { margin-bottom: var(--space-2); }
.how-step p { color: var(--color-text-muted); font-size: var(--text-base); }

/* ============================================================
   Service area / map
   ============================================================ */
.area { background: var(--color-surface); }
.area-grid {
  display: grid; gap: clamp(var(--space-8), 5vw, var(--space-16));
  grid-template-columns: 1fr; align-items: center;
  margin-top: var(--space-10);
}
@media (min-width: 900px) { .area-grid { grid-template-columns: 1fr 1.2fr; } }

.county-list { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); max-width: 480px; }
.county-list li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600; font-size: var(--text-sm);
}
.county-dot { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--color-primary); flex: 0 0 auto; }

.map-wrap {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  overflow: hidden;
  padding: var(--space-6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.map-svg { width: 100%; height: auto; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials { background: var(--color-surface-2); }
.testimonial-grid {
  display: grid; gap: var(--space-6);
  grid-template-columns: 1fr;
  margin-top: var(--space-12);
}
@media (min-width: 760px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--color-gold); font-size: 1.1rem; letter-spacing: 2px; }
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.4;
  color: var(--color-text);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  letter-spacing: -0.01em;
}
.testimonial-meta { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.avatar {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold));
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: var(--text-sm); flex: 0 0 auto;
}
.testimonial-name { font-weight: 600; font-size: var(--text-sm); }
.testimonial-location { color: var(--color-text-muted); font-size: var(--text-xs); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { margin-top: var(--space-10); max-width: 780px; }
.faq-item {
  border-top: 1px solid var(--color-divider);
}
.faq-item:last-child { border-bottom: 1px solid var(--color-divider); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-6) 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-6);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  font-variation-settings: "opsz" 36;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  transition: transform var(--transition-interactive), background var(--transition-interactive), color var(--transition-interactive);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--color-primary); color: white; border-color: var(--color-primary); }
.faq-answer { padding: 0 0 var(--space-6) 0; color: var(--color-text-muted); font-size: var(--text-base); max-width: 68ch; }

/* ============================================================
   Lead form
   ============================================================ */
.lead {
  background: linear-gradient(160deg, var(--color-primary) 0%, #0A555F 60%, #0d3a41 100%);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
}
.lead::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle at center, oklch(from var(--color-gold) l c h / 0.35), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}
.lead-grid {
  display: grid; gap: clamp(var(--space-10), 6vw, var(--space-16));
  grid-template-columns: 1fr;
  align-items: start;
  position: relative;
}
@media (min-width: 960px) { .lead-grid { grid-template-columns: 1fr 1.05fr; } }

.lead-copy .eyebrow { color: #FBE4C4; }
.lead-copy h2 { color: var(--color-text-inverse); }
.lead-copy .lede { color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent); margin-top: var(--space-4); }

.lead-perks { margin-top: var(--space-10); display: flex; flex-direction: column; gap: var(--space-5); }
.lead-perk { display: flex; align-items: flex-start; gap: var(--space-4); }
.lead-perk-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--color-gold) 90%, transparent);
  color: #241407;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.lead-perk-text { color: color-mix(in oklab, var(--color-text-inverse) 90%, transparent); font-size: var(--text-sm); }
.lead-perk-text strong { display: block; color: var(--color-text-inverse); font-size: var(--text-base); margin-bottom: 2px; }

.form-card {
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  box-shadow: var(--shadow-lg);
}

.progress {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-6);
  gap: var(--space-2);
}
.progress-step {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-text-faint);
}
.progress-step .dot {
  width: 24px; height: 24px; border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--color-border);
}
.progress-step.active { color: var(--color-text); }
.progress-step.active .dot { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.progress-step.done .dot { background: var(--color-primary); color: white; border-color: var(--color-primary); }
.progress-step.done .dot::after { content: "✓"; }
.progress-step.done .dot > span { display: none; }
.progress-line { flex: 1; height: 1px; background: var(--color-border); }

.step { display: none; }
.step.active { display: block; animation: fade 300ms ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 36;
  margin-bottom: var(--space-2);
}
.step-sub { color: var(--color-text-muted); font-size: var(--text-sm); margin-bottom: var(--space-6); }

.service-picker { display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
.picker-btn {
  padding: var(--space-6);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  text-align: left;
  display: flex; flex-direction: column; gap: var(--space-2);
  transition: all var(--transition-interactive);
  color: var(--color-text);
}
.picker-btn:hover, .picker-btn.selected { border-color: var(--color-primary); background: var(--color-primary-highlight); }
.picker-btn.solar:hover, .picker-btn.solar.selected { border-color: var(--color-gold); background: var(--color-gold-highlight); }
.picker-btn .picker-icon { width: 32px; height: 32px; color: var(--color-primary); }
.picker-btn.solar .picker-icon { color: var(--color-gold); }
.picker-btn strong { font-size: var(--text-base); font-weight: 600; }
.picker-btn small { font-size: var(--text-xs); color: var(--color-text-muted); }

.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); }
.field input, .field select {
  padding: var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--text-base);
  min-height: 52px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary) 15%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.chip-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip {
  padding: var(--space-3) var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
}
.chip.selected { background: var(--color-primary); color: white; border-color: var(--color-primary); }

.step-actions {
  display: flex; gap: var(--space-3); margin-top: var(--space-6);
  justify-content: space-between; align-items: center;
}
.step-actions .btn { flex: 1 1 auto; min-width: 0; padding-left: var(--space-4); padding-right: var(--space-4); }
.step-actions .btn.btn-lg { flex: 1 1 auto; }
.btn-back {
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  font-size: var(--text-sm);
  font-weight: 500;
  flex: 0 0 auto !important;
  padding: var(--space-3);
  min-height: auto;
  cursor: pointer;
  white-space: nowrap;
}
.btn-back:hover { color: var(--color-text); }

.form-legal { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }

.success-state { text-align: center; padding: var(--space-8) 0; }
.success-icon {
  width: 72px; height: 72px; border-radius: var(--radius-full);
  background: var(--color-primary); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-6);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-text);
  color: color-mix(in oklab, var(--color-text-inverse) 80%, transparent);
  padding-block: var(--space-16) var(--space-10);
}
.footer-grid {
  display: grid; gap: var(--space-10);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 340px; }
.footer-brand .brand { color: var(--color-text-inverse); }
.footer-brand p { font-size: var(--text-sm); color: color-mix(in oklab, var(--color-text-inverse) 70%, transparent); }

.footer h4 {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent);
  margin-bottom: var(--space-4);
}
.footer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer a { color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent); text-decoration: none; font-size: var(--text-sm); }
.footer a:hover { color: var(--color-text-inverse); }

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in oklab, var(--color-text-inverse) 12%, transparent);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 55%, transparent);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .service-card:hover { transform: none; }
}

/* No-JS fallback: if JS never runs, reveals must still be visible */
.no-js .reveal { opacity: 1; transform: none; }

