/* ============================================================
   Compass Recovery — design system
   Brand tokens extracted from compass-recovery.com (Elementor
   global palette): primary #2C5F8D, accent #E69142, bg #F8F9FA,
   border #EAE6DF, tint #E8F1F7, text #333. Butler + DM Sans.
   ============================================================ */

@font-face { font-family: 'Butler'; src: url('/fonts/Butler-UltraLight.woff2') format('woff2'); font-weight: 200; font-display: swap; }
@font-face { font-family: 'Butler'; src: url('/fonts/Butler-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --primary: #2C5F8D;
  --primary-deep: #1E4265;
  --primary-ink: #16344E;
  --accent: #E69142;
  --accent-deep: #C9762B;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --tint: #E8F1F7;
  --border: #EAE6DF;
  --heading: #1B2733;
  --text: #3A434C;
  --muted: #69727D;
  --on-dark: #F4F7FA;
  --on-dark-muted: #B9C6D2;
  --shadow: 0 10px 30px rgba(27, 39, 51, 0.07);
  --shadow-lg: 0 24px 60px rgba(27, 39, 51, 0.12);
  --hero-overlay: linear-gradient(115deg, rgba(15,34,51,.88) 0%, rgba(24,52,78,.72) 45%, rgba(30,66,101,.38) 100%);
  --serif: 'Butler', 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --radius-btn: 6px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --primary: #7BAAD6;
  --primary-deep: #5E8FBE;
  --primary-ink: #101C28;
  --accent: #E69142;
  --accent-deep: #F0A55E;
  --bg: #0F1822;
  --surface: #16222E;
  --tint: #1A2938;
  --border: #273644;
  --heading: #F1F5F9;
  --text: #C4CFD9;
  --muted: #8C9AA8;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  --hero-overlay: linear-gradient(115deg, rgba(8,15,22,.93) 0%, rgba(13,26,39,.82) 45%, rgba(18,38,58,.55) 100%);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) {
    --primary: #7BAAD6;
    --primary-deep: #5E8FBE;
    --primary-ink: #101C28;
    --accent-deep: #F0A55E;
    --bg: #0F1822;
    --surface: #16222E;
    --tint: #1A2938;
    --border: #273644;
    --heading: #F1F5F9;
    --text: #C4CFD9;
    --muted: #8C9AA8;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
    --hero-overlay: linear-gradient(115deg, rgba(8,15,22,.93) 0%, rgba(13,26,39,.82) 45%, rgba(18,38,58,.55) 100%);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-deep); }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--heading); line-height: 1.15; letter-spacing: .2px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.3; }
.accent-word { color: var(--accent); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tint { background: var(--tint); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 16px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px;
  border-radius: var(--radius-btn); font-family: var(--sans); font-size: 1rem;
  font-weight: 600; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: #E69142; color: #FFFFFF; }
.btn-accent:hover { background: #C9762B; color: #FFFFFF; box-shadow: 0 8px 24px rgba(230,145,66,.35); }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: var(--primary-deep); color: var(--bg); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #FFFFFF; }
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--heading); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- header ---------- */
.topbar {
  background: var(--primary-ink); color: var(--on-dark-muted); font-size: .86rem;
  padding: 8px 0; text-align: center;
}
.topbar a { color: #FFFFFF; font-weight: 600; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link img { height: 44px; width: auto; }
.logo-dark-mode { display: none; }
html[data-theme="dark"] .logo-light-mode { display: none; }
html[data-theme="dark"] .logo-dark-mode { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]):not([data-theme="dark"]) .logo-light-mode { display: none; }
  html:not([data-theme="light"]):not([data-theme="dark"]) .logo-dark-mode { display: block; }
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--heading); font-weight: 500; font-size: .98rem; }
.main-nav a:hover, .main-nav a.active { color: var(--accent-deep); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 600; color: var(--heading); white-space: nowrap; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
.theme-toggle:hover { border-color: var(--primary); }
.menu-btn { display: none; }

@media (max-width: 920px) {
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 22px; gap: 18px; box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .nav-phone { display: none; }
  .menu-btn {
    display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    background: none; border: 1px solid var(--border); border-radius: 8px;
    color: var(--heading); font-size: 1.2rem; cursor: pointer;
  }
  .nav-cta { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #FFFFFF; overflow: hidden;
  background: var(--primary-ink);
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}
.hero-bg::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero-inner { position: relative; padding: 130px 0 120px; max-width: 720px; }
.hero .eyebrow { color: #F3B173; }
.hero h1 { color: #FFFFFF; margin-bottom: 22px; }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.86); max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { font-size: .9rem; color: rgba(255,255,255,.72); letter-spacing: .02em; }

/* ---------- trust bar ---------- */
.trust-bar { border-bottom: 1px solid var(--border); background: var(--surface); padding: 26px 0; }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 34px 54px; }
.trust-row img { height: 52px; width: auto; opacity: .92; }
.trust-chip { font-weight: 600; color: var(--muted); font-size: .95rem; letter-spacing: .04em; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 54px; height: 54px; border-radius: 12px; background: var(--tint);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px;
  color: var(--primary);
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .card-link { display: inline-block; margin-top: 16px; font-weight: 600; font-size: .95rem; }

/* ---------- split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--tint);
  color: var(--accent-deep); display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; margin-top: 2px;
}
.checklist strong { color: var(--heading); display: block; }
.checklist span.desc { color: var(--muted); font-size: .95rem; }

/* ---------- steps ---------- */
.step { text-align: left; }
.step-num {
  font-family: var(--serif); font-size: 2.6rem; color: var(--accent); font-weight: 300;
  line-height: 1; margin-bottom: 14px;
}

/* ---------- stats band ---------- */
.stats-band { background: var(--primary-ink); color: var(--on-dark); }
.stats-band .grid { text-align: center; }
.stat-value { font-family: var(--serif); font-size: 2.4rem; color: #FFFFFF; margin-bottom: 6px; }
.stat-label { color: var(--on-dark-muted); font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--primary-ink), var(--primary-deep));
  color: #FFFFFF; text-align: center; padding: 92px 0;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: var(--heading); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--heading);
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary);
}
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; font-weight: 600; display: none; }
.form-status.ok { display: block; color: #2E7D52; }
html[data-theme="dark"] .form-status.ok { color: #6FCF97; }
.form-status.err { display: block; color: #C0392B; }
html[data-theme="dark"] .form-status.err { color: #FF8A7A; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-ink); color: var(--on-dark-muted); padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #FFFFFF; font-size: 1rem; margin-bottom: 16px; font-weight: 600; }
.site-footer a { color: var(--on-dark-muted); display: block; margin-bottom: 10px; font-size: .95rem; }
.site-footer a:hover { color: #FFFFFF; }
.footer-logo { height: 46px; width: auto; margin-bottom: 18px; }
.footer-accred { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.footer-accred img { height: 46px; width: auto; background: #FFFFFF; border-radius: 8px; padding: 5px 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 26px; font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.crisis-note { font-size: .85rem; color: var(--on-dark-muted); max-width: 640px; margin-bottom: 26px; }

/* ---------- page hero (interior) ---------- */
.page-hero { background: var(--primary-ink); color: #FFFFFF; padding: 84px 0 72px; position: relative; overflow: hidden; }
.page-hero h1 { color: #FFFFFF; font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: 14px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 620px; font-size: 1.12rem; }
.page-hero .eyebrow { color: #F3B173; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
