/* style.css — HazmatLawyer™ Design Tokens & Components */

/* ─── FONTS ─── */
/* DM Serif Display for headings (authoritative legal serif) */
/* Plus Jakarta Sans for body (clean, modern sans) */

/* ─── TYPE SCALE ─── */
:root {
  --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);

  /* Spacing */
  --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;

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

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

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Font families */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ─── LIGHT MODE (Default) ─── */
:root,
[data-theme='light'] {
  /* Surfaces — Cool slate/cream with slight warmth */
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #f9fafb;
  --color-surface-offset: #eef0f4;
  --color-surface-offset-2: #e4e7ed;
  --color-surface-dynamic: #d8dce5;
  --color-divider: #cdd2dc;
  --color-border: #bec4d0;

  /* Text — Deep navy tones */
  --color-text: #0f1729;
  --color-text-muted: #4b5563;
  --color-text-faint: #9ca3af;
  --color-text-inverse: #f9fafb;

  /* Primary — Deep Navy / Authority */
  --color-primary: #1e2a4a;
  --color-primary-hover: #162040;
  --color-primary-active: #0f1630;
  --color-primary-highlight: #dde1eb;

  /* Accent — Warm Amber / Hazmat Gold (CTAs) */
  --color-accent: #d97706;
  --color-accent-hover: #b45309;
  --color-accent-active: #92400e;
  --color-accent-highlight: #fef3c7;

  /* Success */
  --color-success: #15803d;
  --color-success-highlight: #dcfce7;

  /* Error */
  --color-error: #b91c1c;
  --color-error-highlight: #fee2e2;

  /* Warning */
  --color-warning: #a16207;
  --color-warning-highlight: #fef9c3;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 250 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 250 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 250 / 0.12);
  --shadow-xl: 0 20px 48px oklch(0.2 0.02 250 / 0.16);
}

/* ─── DARK MODE ─── */
[data-theme='dark'] {
  --color-bg: #0b0f1a;
  --color-surface: #111827;
  --color-surface-2: #1a2235;
  --color-surface-offset: #151d2e;
  --color-surface-offset-2: #1e2842;
  --color-surface-dynamic: #273352;
  --color-divider: #1e293b;
  --color-border: #334155;

  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-faint: #64748b;
  --color-text-inverse: #0f172a;

  --color-primary: #8ba4d9;
  --color-primary-hover: #a3b8e6;
  --color-primary-active: #6b8cc7;
  --color-primary-highlight: #1e2842;

  --color-accent: #f59e0b;
  --color-accent-hover: #fbbf24;
  --color-accent-active: #d97706;
  --color-accent-highlight: #422006;

  --color-success: #22c55e;
  --color-success-highlight: #052e16;

  --color-error: #ef4444;
  --color-error-highlight: #450a0a;

  --color-warning: #eab308;
  --color-warning-highlight: #422006;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
  --shadow-xl: 0 20px 48px oklch(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0b0f1a;
    --color-surface: #111827;
    --color-surface-2: #1a2235;
    --color-surface-offset: #151d2e;
    --color-surface-offset-2: #1e2842;
    --color-surface-dynamic: #273352;
    --color-divider: #1e293b;
    --color-border: #334155;
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-text-faint: #64748b;
    --color-text-inverse: #0f172a;
    --color-primary: #8ba4d9;
    --color-primary-hover: #a3b8e6;
    --color-primary-active: #6b8cc7;
    --color-primary-highlight: #1e2842;
    --color-accent: #f59e0b;
    --color-accent-hover: #fbbf24;
    --color-accent-active: #d97706;
    --color-accent-highlight: #422006;
    --color-success: #22c55e;
    --color-success-highlight: #052e16;
    --color-error: #ef4444;
    --color-error-highlight: #450a0a;
    --color-warning: #eab308;
    --color-warning-highlight: #422006;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
    --shadow-xl: 0 20px 48px oklch(0 0 0 / 0.6);
  }
}

/* ─── GLOBAL STYLES ─── */
body {
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  color: var(--color-accent-hover);
}

/* ─── SKIP LINK ─── */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--space-4);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  top: var(--space-4);
  opacity: 1;
  pointer-events: auto;
}

/* ─── CONTAINER ─── */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.container--narrow {
  max-width: var(--content-narrow);
}
.container--default {
  max-width: var(--content-default);
}

/* ─── HEADER / NAV ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding: var(--space-3) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  text-decoration: none;
  white-space: nowrap;
}
.logo-link:hover { color: var(--color-text); }

.logo-link svg {
  flex-shrink: 0;
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--color-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* Language toggle */
.lang-toggle {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}
.lang-toggle:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}
@media (min-width: 1024px) {
  .mobile-menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 99;
  background: var(--color-bg);
  padding: var(--space-20) var(--space-6) var(--space-6);
  flex-direction: column;
  gap: var(--space-2);
}
.mobile-menu.is-open {
  display: flex;
}
.mobile-menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-md);
}
.mobile-menu a:hover {
  background: var(--color-surface-offset);
}
.mobile-menu-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1.4;
  min-height: 44px;
}
.btn--primary {
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--primary:active {
  background: var(--color-accent-active);
  transform: translateY(0);
}
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface-offset);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}
.btn--dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme='dark'] .btn--dark {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--dark:hover {
  opacity: 0.9;
  color: var(--color-text-inverse);
}
.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  min-height: 52px;
}
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  min-height: 36px;
}

/* ─── SECTIONS ─── */
.section {
  padding: clamp(var(--space-12), 6vw, var(--space-24)) 0;
}
.section--alt {
  background: var(--color-surface-offset);
}
.section--dark {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
[data-theme='dark'] .section--dark {
  background: var(--color-surface-2);
  color: var(--color-text);
}

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* ─── HERO ─── */
.hero {
  padding: clamp(var(--space-16), 10vw, var(--space-32)) 0 clamp(var(--space-12), 6vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 80%, oklch(0.55 0.15 65 / 0.06), transparent),
    radial-gradient(ellipse 60% 60% at 80% 20%, oklch(0.3 0.08 250 / 0.06), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero h1 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
  line-height: 1.1;
  color: var(--color-primary);
}
[data-theme='dark'] .hero h1 {
  color: var(--color-text);
}

.hero-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 62ch;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.trust-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.trust-signals span {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* ─── SCREENER ─── */
.screener-wrapper {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  box-shadow: var(--shadow-lg);
  max-width: 800px;
  margin-inline: auto;
}

.screener-progress {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.screener-progress-step {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-surface-offset);
  transition: background 0.3s ease;
}
.screener-progress-step.active {
  background: var(--color-accent);
}
.screener-progress-step.completed {
  background: var(--color-success);
}

.screener-step {
  display: none;
}
.screener-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.screener-step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}
.screener-step .step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Substance cards grid */
.substance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: var(--space-3);
}
.substance-card {
  padding: var(--space-4);
  border: 2px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-interactive);
  background: var(--color-surface-2);
  text-align: left;
}
.substance-card:hover {
  border-color: var(--color-accent);
  background: var(--color-accent-highlight);
}
.substance-card.selected {
  border-color: var(--color-accent);
  background: var(--color-accent-highlight);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.substance-card-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-2);
}
.substance-card-name {
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-1);
}
.substance-card-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Date range */
.date-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  max-width: 400px;
}

/* Conditions checkboxes */
.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: var(--space-3);
}
.condition-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-interactive);
  background: var(--color-surface-2);
}
.condition-item:hover {
  border-color: var(--color-accent);
}
.condition-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.condition-item label {
  font-size: var(--text-sm);
  cursor: pointer;
  flex: 1;
}

/* Contact form within screener */
.contact-fields {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .contact-fields {
    grid-template-columns: 1fr 1fr;
  }
}

/* Screener buttons */
.screener-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

/* Screener result */
.screener-result {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}
.screener-result-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  background: var(--color-success-highlight);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-success);
}
.screener-result h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.screener-result p {
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
}

/* ─── FORM FIELDS ─── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Honeypot */
.hn-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ─── CASE TYPE CARDS ─── */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: var(--space-4);
}

.case-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-interactive);
}
.case-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.case-card-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.case-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
}

.case-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  flex: 1;
}

.case-card .case-stat {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  background: var(--color-accent-highlight);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--space-8);
  counter-reset: step;
}

.step-item {
  position: relative;
  padding-top: var(--space-10);
}
.step-item::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
}

.step-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.step-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ─── WHY US ─── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.why-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
}
.why-item h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.why-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.why-icon {
  width: 32px;
  height: 32px;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

/* ─── ATTORNEY SECTION ─── */
.attorney-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.attorney-benefit {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.attorney-benefit-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.attorney-benefit h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-1);
  font-family: var(--font-body);
}
.attorney-benefit p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.attorney-form {
  max-width: 600px;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
[data-theme='dark'] .attorney-form {
  background: var(--color-surface-2);
}
.attorney-form-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .attorney-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.attorney-form-grid .form-group--full {
  grid-column: 1 / -1;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
}
.faq-question:hover {
  color: var(--color-accent);
}
.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-5);
}
.faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-16) 0 var(--space-8);
}
[data-theme='dark'] .site-footer {
  background: var(--color-surface);
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-top: var(--space-3);
  max-width: 30ch;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
  font-family: var(--font-body);
  color: inherit;
  opacity: 1;
}

.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: var(--space-2);
}
.footer-col a {
  font-size: var(--text-sm);
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
}
.footer-col a:hover {
  opacity: 1;
  color: inherit;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  opacity: 0.6;
}
[data-theme='dark'] .footer-bottom {
  border-top-color: var(--color-border);
}

/* ─── INQUIRIES / ACQUISITION ─── */
.inquiry-form {
  max-width: 600px;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
.inquiry-form-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 600px) {
  .inquiry-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.inquiry-form-grid .form-group--full {
  grid-column: 1 / -1;
}

/* Acquisition metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
  margin: var(--space-8) 0;
}
.metric-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}
.metric-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}
.metric-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ─── SCROLL ANIMATION ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── UTILITIES ─── */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mx-auto { margin-inline: auto; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Language switching — hide/show by lang attribute on <html> */
html[lang="en"] [data-lang="es"] { display: none !important; }
html[lang="es"] [data-lang="en"] { display: none !important; }
