/* =========================================================
   Watershed Behavioral Health — Shared Stylesheet
   ========================================================= */

:root {
  /* Color palette — dark navy with blue → green gradient accents */
  --color-primary: #3B82F6;         /* blue — primary actions, links */
  --color-primary-dark: #1D4ED8;    /* deep blue — hover / gradient end */
  --color-primary-soft: #93C5FD;    /* soft blue — headings/labels on dark surfaces */
  --color-primary-light: rgba(59,130,246,0.14); /* blue tint for icon chips */
  --color-accent: #22C55E;          /* green — secondary accents, success */
  --color-accent-dark: #15803D;
  --color-accent-light: #86EFAC;    /* soft green — text/icons on dark surfaces */
  --color-sage: #34D399;
  --color-blue: #3B82F6;
  --color-blue-light: rgba(59,130,246,0.10);
  --color-alert: #F59E0B;           /* warm amber — reserved for the crisis/urgent bar */
  --color-bg: #0A0E1A;              /* near-black navy */
  --color-bg-alt: #0D1424;          /* alt section panel */
  --color-bg-blue: #0E1A2E;         /* blue-tinted alt panel */
  --color-surface: #131A2B;         /* card surface */
  --color-text: #EAEDF3;
  --color-text-muted: #97A2B8;
  --color-border: rgba(255,255,255,0.10);
  --color-success: #22C55E;

  /* Type — matched to reference site's font stack (Plus Jakarta Sans + Inter) */
  --font-heading: 'Plus Jakarta Sans', 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing / layout */
  --container-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45);
  --transition: 0.25s ease;
}

/* ---------- Light theme (toggled via data-theme="light" on <html>) ---------- */
:root[data-theme="light"] {
  --color-primary: #3B82F6;
  --color-primary-dark: #1D4ED8;
  --color-primary-soft: #1D4ED8;
  --color-primary-light: rgba(59,130,246,0.10);
  --color-accent: #16A34A;
  --color-accent-dark: #15803D;
  --color-accent-light: #15803D;
  --color-sage: #16A34A;
  --color-blue: #3B82F6;
  --color-blue-light: rgba(59,130,246,0.08);
  --color-bg: #FFFFFF;
  --color-bg-alt: #F1F5F9;
  --color-bg-blue: #EFF6FF;
  --color-surface: #F8FAFC;
  --color-text: #0F172A;
  --color-text-muted: #55617A;
  --color-border: rgba(15,23,42,0.12);
  --color-success: #16A34A;
  --shadow-sm: 0 2px 12px rgba(15,23,42,0.10);
  --shadow-md: 0 12px 32px rgba(15,23,42,0.14);
}
:root[data-theme="light"] body { background: var(--color-bg); }
:root[data-theme="light"] .hero { background: var(--color-bg); }
:root[data-theme="light"] .site-header { background: rgba(255,255,255,0.88); }
:root[data-theme="light"] .quick-nav { background: rgba(255,255,255,0.92); }
:root[data-theme="light"] .section-blob { display: none; }
:root[data-theme="light"] .card:hover { border-color: rgba(15,23,42,0.22); }
:root[data-theme="light"] .trust-badge { background: rgba(15,23,42,0.03); }
:root[data-theme="light"] .testimonial-placeholder { background: rgba(15,23,42,0.02); }
:root[data-theme="light"] .notice-todo { color: #92400E; }
:root[data-theme="light"] .notice-todo strong { color: #92400E; }
:root[data-theme="light"] .placeholder-flag { color: #B91C1C; }
:root[data-theme="light"] a:hover { color: var(--color-accent-dark); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 900px 600px at 8% 0%, rgba(59,130,246,0.16), transparent 60%),
    radial-gradient(ellipse 800px 500px at 100% 12%, rgba(34,197,94,0.12), transparent 55%),
    radial-gradient(ellipse 700px 500px at 90% 90%, rgba(59,130,246,0.09), transparent 55%),
    var(--color-bg);
  background-attachment: fixed;
}
@media (max-width: 760px) { body { background-attachment: scroll; } }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

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

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.bg-alt { background: var(--color-bg-alt); }
.bg-primary { background: var(--color-primary); color: #fff; }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary p { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  background: rgba(59, 130, 246, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-primary-soft); }
.btn-outline:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.bg-primary .btn-outline { color: #fff; }
.bg-primary .btn-outline:hover { background: #fff; color: var(--color-primary); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 32px;
  width: 100%;
}
.nav-wrap > nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
}
.brand span.sub { display: block; font-size: 0.68rem; font-weight: 500; color: var(--color-text-muted); letter-spacing: 0.03em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding-bottom: 4px;
}
.nav-links a.active, .nav-links a:hover { color: var(--color-primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 2px;
  background: #FFFFFF;
}
.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background: radial-gradient(circle at 85% 10%, rgba(34,197,94,0.16), transparent 55%),
              radial-gradient(circle at 5% 90%, rgba(59,130,246,0.14), transparent 45%),
              var(--color-bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lead { font-size: 1.15rem; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.hero-art {
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}
.hero-art::before { width: 220px; height: 220px; top: -60px; right: -50px; }
.hero-art::after { width: 160px; height: 160px; bottom: -40px; left: -30px; background: rgba(255,255,255,0.10); }
.hero-art .art-quote {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  text-align: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(255,255,255,0.18); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .card-link { font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 30px 20px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  display: block;
}
.stat-label { font-size: 0.9rem; color: var(--color-text-muted); margin-top: 6px; }
.placeholder-flag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 8px;
}

/* ---------- Steps / Numbered list ---------- */
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 56px;
  background: linear-gradient(120deg, var(--color-primary-dark) 0%, var(--color-accent-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2, .cta-banner p { color: #fff; margin: 0; }
.cta-banner p { opacity: 0.9; margin-top: 8px; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--color-primary-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.82rem; color: var(--color-text-muted); }
.form-section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-primary-soft);
  margin: 30px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.form-section-title:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.field-checkbox { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.field-checkbox input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); flex-shrink: 0; }
.field-checkbox label { font-family: var(--font-body); font-weight: 400; font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 0; }
.field-hint { display: block; font-size: 0.78rem; color: var(--color-text-muted); font-weight: 400; text-transform: none; letter-spacing: normal; margin-top: 3px; }

/* ---------- Info list ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.info-list li:last-child { border-bottom: none; }
.info-list .icon-sm {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ---------- Callout / Note boxes ---------- */
.notice {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.9rem;
  border: 1px solid;
}
.notice-todo {
  background: rgba(245, 158, 11, 0.10);
  border-color: rgba(245, 158, 11, 0.35);
  color: #FCD34D;
}
.notice-todo strong { color: #FCD34D; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060911;
  border-top: 1px solid var(--color-border);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer .brand { color: #fff; }
.site-footer .brand span.sub { color: rgba(255,255,255,0.6); }
.site-footer p { color: rgba(255,255,255,0.7); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.crisis-bar {
  background: var(--color-alert);
  color: #1A1200;
  font-size: 0.85rem;
  text-align: center;
  padding: 9px 16px;
}
.crisis-bar a { color: #1A1200; text-decoration: underline; font-weight: 700; }

/* ---------- Section background variants ---------- */
.bg-alt { background: var(--color-bg-alt); }
.bg-blue { background: var(--color-bg-blue); }
section { position: relative; overflow: hidden; }

/* Soft decorative blobs used to add depth behind sections */
.section-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.section-blob.blob-teal { background: rgba(34,197,94,0.20); width: 340px; height: 340px; }
.section-blob.blob-amber { background: rgba(45,212,191,0.16); width: 280px; height: 280px; }
.section-blob.blob-blue { background: rgba(59,130,246,0.18); width: 300px; height: 300px; }
section > .container { position: relative; z-index: 1; }

/* Wave divider between sections */
.wave-divider { display: block; width: 100%; height: 60px; margin-bottom: -1px; }
.wave-divider path { fill: var(--color-surface); }

/* ---------- Scroll-reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view { transition-delay: var(--stagger-delay, 0ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Animated counters ---------- */
.stat-number.counting::after { content: ''; }

/* ---------- Trust badges ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  backdrop-filter: blur(4px);
}
.trust-badge svg { color: var(--color-success); flex-shrink: 0; }

/* ---------- Quick nav (scrollspy) ---------- */
.quick-nav {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 0;
}
.quick-nav .container { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.quick-nav .container::-webkit-scrollbar { display: none; }
.quick-nav a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: var(--transition);
}
.quick-nav a:hover { background: var(--color-primary-light); color: var(--color-primary); }
.quick-nav a.active { background: var(--color-primary); color: #fff; }

/* ---------- Pills / interactive selector ---------- */
.pill-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.pill-option {
  flex: 1 1 200px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: var(--transition);
}
.pill-option strong { display: block; font-family: var(--font-heading); color: var(--color-text); margin-bottom: 4px; }
.pill-option span { font-size: 0.85rem; color: var(--color-text-muted); }
.pill-option:hover { border-color: var(--color-sage); transform: translateY(-2px); }
.pill-option.active { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: var(--shadow-sm); }

.selector-result {
  display: none;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.selector-result.active { display: block; animation: fadeIn 0.4s ease; }
.selector-result .eyebrow { margin-bottom: 12px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Accordion (FAQ) ---------- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.accordion-trigger .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
}
.accordion-item.open .accordion-trigger .plus { background: var(--color-primary); color: #fff; transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.accordion-panel-inner { padding: 0 4px 22px; }
.accordion-panel-inner p { margin: 0; }

/* ---------- Insurance / partner row ---------- */
.insurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.insurance-chip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
}

/* ---------- Testimonial placeholder ---------- */
.testimonial-placeholder {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.03);
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 90;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 480px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* The full spread-out header (edge-to-edge brand / centered 6-item nav /
   phone + toggle + CTA) needs ~1400px of width to lay out without
   overlapping. Rather than let it break on laptops and tablets in
   between, it switches to the compact brand + toggle + hamburger
   header well before that point. */
@media (max-width: 1439px) {
  .nav-wrap { padding: 14px 20px; }
  .brand { flex-shrink: 1; min-width: 0; font-size: 1rem; }
  .brand span { white-space: normal; }
  .nav-wrap > nav { flex: 0; }
  .nav-links, .nav-cta .btn-outline, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .nav-wrap.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
    gap: 18px;
  }
}

@media (max-width: 760px) {
  section { padding: 60px 0; }
  .cta-banner { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 48px 1fr; }
  .pill-option { flex: 1 1 100%; }
  .trust-badges { justify-content: center; }
  .back-to-top { right: 16px; bottom: 16px; }
}
