/* =========================================================
   White Cross Agency — core design system + marketing pages
   Values replicated from the original design reference.
   ========================================================= */

:root {
  --navy: #0B2540;
  --navy-2: #173A5E;
  --navy-deep: #0A1626;
  --ink: #2B4560;
  --text: #3D5874;
  --muted: #5A7088;
  /* Trust + Insurance palette */
  --blue: #2B59E3;
  --blue-2: #1E44BF;
  --cloud: #DFE6EA;
  --mint: #E1ECE0;
  --accent: #2B59E3;
  --hover: #1E44BF;
  --mist: #EAF0F2;
  --chip: #E1ECE0;
  --veil: 232, 239, 242;
  --line: #D6DFE4;
  --white: #FFFFFF;
  --success: #1F7A55;
  --success-bg: #E3F3EB;
  --warn: #9A6A12;
  --warn-bg: #FBF0D9;
  --danger: #B3362F;
  --danger-bg: #FBE6E4;

  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --font-script: 'Sacramento', 'Brush Script MT', cursive;

  --radius: 6px;
  --radius-lg: 14px;
  --shadow-card: 0 2px 10px rgba(11, 37, 64, 0.06);
  --shadow-lift: 0 22px 40px -22px rgba(11, 37, 64, 0.35);
  --wrap: 1240px;
  --gutter: 48px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(43, 89, 227, 0.55); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--navy); padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
.h, h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -0.015em; color: var(--navy); }
.script { font-family: var(--font-script); font-weight: 400; letter-spacing: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.eyebrow.sm { font-size: 12px; }
.h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.04; font-weight: 600; letter-spacing: -0.025em; }
.h2 { margin: 0; font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.1; font-weight: 600; text-wrap: balance; }
.h3 { margin: 0; font-size: 21px; font-weight: 600; }
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--text); }
.body { margin: 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.tagline { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.3; font-style: italic; color: var(--navy-2); }
.on-dark, .on-dark .h, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lead, .on-dark .body { color: rgba(255, 255, 255, 0.84); }
.on-dark .eyebrow { color: rgba(255, 255, 255, 0.9); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.narrow { max-width: 880px; }
.section { padding-top: 104px; padding-bottom: 104px; }
.section.tight { padding-top: 80px; padding-bottom: 80px; }
.bg-mist { background: var(--mist); }
.bg-navy { background: var(--blue); color: var(--white); }
.stack { display: flex; flex-direction: column; gap: 22px; }
.stack.sm { gap: 14px; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 34px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { flex: none; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 14px 28px -14px rgba(43, 89, 227, 0.6); }
.btn-primary:hover { color: var(--white); background: var(--blue-2); }
.btn-outline { border-color: var(--blue); color: var(--navy); background: rgba(255, 255, 255, 0.18); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--navy); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.5); }
.btn-white:hover { color: var(--navy); }
.btn-ghost-white { border-color: rgba(255, 255, 255, 0.6); color: var(--white); }
.btn-ghost-white:hover { background: var(--white); color: var(--navy); }
.btn-lg { min-height: 58px; padding: 0 40px; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; gap: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; }
.link-arrow span { border-bottom: 2px solid currentColor; padding-bottom: 3px; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--blue); color: var(--white); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand-word { display: flex; flex-direction: column; align-items: center; line-height: 1; white-space: nowrap; }
.brand-word .t1 { font-family: var(--font-head); font-size: 25px; font-weight: 600; letter-spacing: 0.06em; }
.brand-word .t2 { font-family: var(--font-head); font-size: 14px; font-weight: 500; letter-spacing: 0.62em; margin-top: 7px; margin-right: -0.62em; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, 0.88); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--white); }
.nav-links a[aria-current="page"] { color: var(--white); border-bottom-color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-login { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.88); text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 10px; min-height: 52px; }
.header-login:hover { color: var(--white); }
.header-register { min-height: 52px; padding: 0 26px; font-size: 16px; gap: 12px; }
.burger { display: none; width: 52px; height: 52px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.3); background: transparent; color: var(--white); align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); border-top: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 40px -20px rgba(0, 0, 0, 0.45); }
.mobile-nav.open { display: block; }
.mobile-nav .wrap { display: flex; flex-direction: column; align-items: stretch; padding-top: 8px; padding-bottom: 24px; min-height: 0; gap: 0; }
.mobile-nav a { font-family: var(--font-head); text-decoration: none; color: var(--white); font-size: 24px; font-weight: 500; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.mobile-nav a[aria-current="page"] { color: #C9D8FF; }

/* ---------- Crisis bar ---------- */
.crisis-bar { background: var(--navy-deep); color: rgba(255, 255, 255, 0.86); font-size: 14px; }
.crisis-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.crisis-bar a { color: var(--white); font-weight: 700; text-decoration: none; }
.crisis-bar a:hover { color: #C9D8FF; }
.crisis-bar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #52C08A; margin-right: 8px; box-shadow: 0 0 0 4px rgba(82, 192, 138, 0.2); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; background-color: #C9D5E0; background-size: cover; background-position: 72% 40%; overflow: hidden; }
.hero-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--veil), 0.9) 0%, rgba(var(--veil), 0.72) 34%, rgba(var(--veil), 0.18) 58%, rgba(var(--veil), 0) 70%); }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 104px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.hero-copy .eyebrow { font-size: 14px; letter-spacing: 0.14em; }
.hero-title { margin: 0; font-size: clamp(2.9rem, 5.4vw, 4.6rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.025em; }
.hero-copy .intro { margin: 0; max-width: 540px; font-size: 19px; line-height: 1.6; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 14px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 440px; display: flex; align-items: center; background-color: #C9D5E0; background-size: cover; background-position: center; overflow: hidden; }
.page-hero .hero-veil { background: linear-gradient(90deg, rgba(var(--veil), 0.95) 0%, rgba(var(--veil), 0.82) 38%, rgba(var(--veil), 0.25) 64%, rgba(var(--veil), 0.05) 80%); }
.page-hero .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; }
.page-hero .hero-copy { max-width: 620px; gap: 18px; }
.page-hero .intro { margin: 0; max-width: 540px; font-size: 18px; line-height: 1.6; color: var(--ink); }
.breadcrumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--muted); }
.breadcrumbs a { text-decoration: none; color: var(--accent); font-weight: 600; }
.breadcrumbs span[aria-hidden] { opacity: .5; }

/* ---------- Feature icons ---------- */
.icon-circle { width: 82px; height: 82px; border-radius: 50%; background: var(--chip); display: inline-flex; align-items: center; justify-content: center; color: var(--navy); flex: none; }
.icon-circle.sm { width: 56px; height: 56px; }
.icon-circle.sm svg { width: 26px; height: 26px; }
.icon-circle.white { background: var(--white); }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature .h3 { margin-top: 6px; }
.feature .body { max-width: 260px; }

/* Home: programs */
.prog { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-media { min-height: 500px; background-color: #3A4B58; background-size: cover; background-position: center; }
.split-body { display: flex; align-items: center; padding: 80px clamp(24px, 6vw, 104px); }
.split-body .stack { max-width: 540px; }

/* Impact */
.impact { position: relative; background: var(--blue); color: var(--white); overflow: hidden; }
.impact .ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }
.impact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); gap: 56px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 6px 16px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.stat:first-child { border-left: 0; }
.stat-num { font-family: var(--font-head); font-size: clamp(2.2rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.1; }
.stat-label { font-size: 15px; font-weight: 700; }
.stat-sub { font-size: 13px; color: rgba(255, 255, 255, 0.78); margin-top: -6px; }

/* Stories */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
a.card { text-decoration: none; color: inherit; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-body { padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background-color: var(--navy); background-size: cover; background-position: center right; color: var(--white); }
.cta-band .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 37, 64, 0.75) 0%, rgba(11, 37, 64, 0.45) 40%, rgba(11, 37, 64, 0) 65%); }
@media (max-width: 760px) { .cta-band .shade { background: rgba(11, 37, 64, 0.6); } }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 52px; padding-bottom: 52px; }
.cta-inner h2 { margin: 0; font-size: clamp(1.8rem, 2.7vw, 2.5rem); line-height: 1.15; font-weight: 600; color: var(--white); }
.cta-inner p { margin: 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); }
.cta-inner .btn { flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--white); padding-top: 72px; }
.site-footer > .wrap { display: flex; flex-direction: column; gap: 56px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.25fr) minmax(0, 0.9fr); gap: 40px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot-col .title { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: var(--white); }
.foot-contact { gap: 14px; }
.foot-contact .title { margin-bottom: 2px; }
.foot-contact a, .foot-contact > span:not(.title) { display: flex; gap: 14px; align-items: center; color: rgba(255, 255, 255, 0.86); }
.foot-brand { display: flex; flex-direction: column; gap: 20px; align-self: flex-start; }
.foot-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); max-width: 260px; }
.foot-brand .brand-word .t1 { font-size: 26px; }
.foot-brand .brand-word .t2 { margin-top: 8px; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: inline-flex; align-items: center; justify-content: center; transition: background-color .2s ease; }
.socials a:hover { background: rgba(255, 255, 255, 0.2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.foot-bottom small { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.foot-bottom .legal { display: flex; gap: 20px; font-size: 14px; }
.foot-bottom .script { font-size: 34px; line-height: 1; color: var(--white); }

/* ---------- Image placeholders (until generated images are dropped in) ---------- */
.media { position: relative; overflow: hidden; background: linear-gradient(135deg, #C9D5E0, #E7EDF3); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing img, img.is-missing { visibility: hidden; }
.media.is-missing::after, .bg-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  font: 600 13px/1.4 var(--font-body); letter-spacing: 0.04em; color: var(--muted);
  background: repeating-linear-gradient(45deg, rgba(11, 37, 64, 0.03) 0 12px, transparent 12px 24px);
}
.bg-missing { position: relative; }
.bg-missing::after { z-index: 0; align-items: flex-end; justify-content: flex-end; padding: 18px 24px; }
.split-media.bg-missing::after { align-items: center; justify-content: center; }
.hero .wrap, .page-hero .wrap, .cta-inner, .auth-side > * { z-index: 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-3x4 { aspect-ratio: 3 / 4; }
.rounded { border-radius: var(--radius-lg); }

/* ---------- Generic content blocks ---------- */
.panel { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.panel.mist { background: var(--mist); box-shadow: none; border: 0; }
.value-card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--text); }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 12.5l4 4 8-9' stroke='%230B2540' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.on-dark .check-list li, .check-list.on-dark li { color: rgba(255, 255, 255, 0.86); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--chip); color: var(--navy); font-size: 13px; font-weight: 600; }

/* Timeline (about) */
.timeline { position: relative; display: flex; flex-direction: column; gap: 36px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--chip); }
.tl-item { position: relative; display: flex; flex-direction: column; gap: 6px; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 4px solid var(--navy); }
.tl-year { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--accent); letter-spacing: 0.06em; }

/* Team */
.team-card { display: flex; flex-direction: column; gap: 6px; }
.team-card .media { border-radius: var(--radius-lg); margin-bottom: 14px; }
.team-card .name { font-family: var(--font-head); font-size: 19px; font-weight: 600; }
.team-card .role { font-size: 14px; color: var(--accent); font-weight: 600; }

/* Program rows (services) */
.program-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.program-row:first-child { border-top: 0; padding-top: 0; }
.program-row:nth-child(even) .media { order: 2; }
.program-row .media { border-radius: var(--radius-lg); }
.program-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.program-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.program-nav a { text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--navy); transition: background-color .2s, color .2s; }
.program-nav a:hover { background: var(--blue); color: var(--white); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px 26px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-size: 15px; font-weight: 600; letter-spacing: 0.1em; color: var(--accent); }
.on-dark .step { background: rgba(255, 255, 255, 0.06); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.12); }

/* Accordion */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.acc-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; padding: 22px 26px; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--chip); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; transition: transform .2s; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item .acc-body { padding: 0 26px 24px; font-size: 16px; line-height: 1.65; color: var(--text); }
.acc-item .acc-body p { margin: 0 0 10px; }

.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip-btn { border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; transition: background-color .2s, color .2s; }
.chip-btn:hover { border-color: var(--blue); }
.chip-btn.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.card-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid #CBD6E2; background: var(--white); color: var(--navy); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%230B2540' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; padding-right: 44px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(46, 109, 164, 0.15); }
.input::placeholder, .textarea::placeholder { color: #8A9BB0; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--danger); }
.field .error { display: none; font-size: 13px; color: var(--danger); font-weight: 600; }
.field.invalid .error { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); cursor: pointer; }
.check.field { flex-direction: row; flex-wrap: wrap; gap: 6px 12px; }
.check.field > span:not(.error) { flex: 1; min-width: 0; }
.check.field .error { flex-basis: 100%; padding-left: 32px; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--navy); flex: none; }
.form-note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.form-success { display: none; padding: 18px 20px; border-radius: 12px; background: var(--success-bg); color: var(--success); font-weight: 600; }
.form-success.show { display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg); background: var(--mist); text-decoration: none; color: inherit; }
a.contact-card:hover { background: var(--chip); color: inherit; }
.contact-card .t { font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.contact-card .d { font-size: 15px; color: var(--muted); line-height: 1.55; margin-top: 4px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: var(--chip); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font-size: 15px; color: var(--text); }
.hours b { color: var(--navy); font-weight: 600; }

.impact-line { padding: 16px 18px; border-radius: 12px; background: var(--chip); color: var(--navy); font-size: 15px; line-height: 1.5; }
.impact-tiers { display: flex; flex-direction: column; gap: 14px; }
.tier { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.tier .amt { font-family: var(--font-head); font-size: 26px; font-weight: 600; min-width: 84px; }
.tier p { margin: 0; color: rgba(255, 255, 255, 0.84); font-size: 15px; line-height: 1.5; }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; background-color: var(--blue); background-size: cover; background-position: center; color: var(--white); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 37, 64, 0.55) 0%, rgba(11, 37, 64, 0.2) 40%, rgba(11, 37, 64, 0.92) 100%); }
.auth-side > * { position: relative; }
.auth-side blockquote { margin: 0; font-family: var(--font-head); font-size: 26px; line-height: 1.35; font-weight: 500; max-width: 460px; }
.auth-side .script { font-size: 40px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 28px; }
.auth-box .brand { color: var(--navy); }
.auth-box .brand:hover { color: var(--navy); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 56px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; padding: 8px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.steps-dots { display: flex; gap: 8px; }
.steps-dots span { flex: 1; height: 4px; border-radius: 4px; background: var(--chip); }
.steps-dots span.on { background: var(--blue); }
.reg-step { display: none; }
.reg-step.active { display: flex; }

/* Toast */
.toast-host { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--blue); color: var(--white); padding: 14px 20px; border-radius: 12px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); font-size: 15px; font-weight: 600; max-width: 360px; animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* 404 */
.error-page { min-height: 70vh; display: flex; align-items: center; }
.error-code { font-family: var(--font-head); font-size: clamp(5rem, 14vw, 10rem); font-weight: 600; line-height: 1; color: var(--chip); }

/* Legal */
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose p, .prose ul { margin: 0 0 16px; }

/* ---------- Motion ---------- */
.rise { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.rise.d2 { animation-delay: .1s; } .rise.d3 { animation-delay: .2s; } .rise.d4 { animation-delay: .3s; } .rise.d5 { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links, .header-login { display: none; }
  .burger { display: inline-flex; }
  .prog, .impact-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .split, .grid-2, .program-row { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .program-row:nth-child(even) .media { order: 0; }
  .split-media { min-height: 340px; }
  .grid-3, .cards { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stat:nth-child(3) { border-left: 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-veil, .page-hero .hero-veil { background: linear-gradient(180deg, rgba(var(--veil), 0.94) 0%, rgba(var(--veil), 0.82) 58%, rgba(var(--veil), 0.25) 100%); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .feat-grid, .grid-4, .steps, .form-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .header-register { padding: 0 18px; }
  .brand svg { width: 40px; height: 46px; }
  .brand-word .t1 { font-size: 21px; }
  .brand-word .t2 { font-size: 12px; }
  .panel { padding: 24px; }
  .crisis-bar .hide-sm { display: none; }
  .crisis-bar .wrap { justify-content: center; }
  .header-actions { gap: 8px; }
}
@media (max-width: 420px) {
  .site-header .wrap { gap: 10px; min-height: 76px; }
  .brand { gap: 10px; min-width: 0; }
  .brand svg { width: 32px; height: 38px; }
  .brand-word .t1 { font-size: 18px; }
  .brand-word .t2 { font-size: 10px; letter-spacing: 0.5em; margin-right: -0.5em; margin-top: 5px; }
  .header-actions { gap: 6px; flex: none; }
  .header-register { min-height: 44px; padding: 0 14px; }
  .register-label { display: none; }
  .burger { width: 44px; height: 44px; border-radius: 12px; }
}

/* ---------- Client login / register ---------- */
.auth-hero { min-height: calc(100vh - 132px); align-items: flex-start; }
.auth-hero .wrap { padding-top: 72px; padding-bottom: 88px; }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 64px; align-items: start; }
.auth-copy { padding-top: 40px; }
.auth-card { padding: 40px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 60px -30px rgba(11, 37, 64, 0.45); }
.auth-card .auth-title { margin: 0; }
.auth-card .auth-sub { font-size: 17px; margin-bottom: 10px; }
.auth-card .form { gap: 18px; }
.form-error { margin: 0; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: var(--danger); font-size: 15px; font-weight: 600; }
.auth-switch { margin: 6px 0 0; font-size: 16px; color: var(--text); text-align: center; }
.auth-switch a { font-weight: 700; }
@media (max-width: 960px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .auth-copy { padding-top: 0; }
  .auth-hero .wrap { padding-top: 48px; padding-bottom: 64px; }
}
@media (max-width: 600px) {
  .auth-card { padding: 28px 22px; }
  .auth-copy .intro { display: none; }
  .auth-card .form-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
