/* Illuma Behavioral Health - site styles */
:root {
  --ink: #1c2f47;
  --ink-soft: #3f5168;
  --slate: #5b7592;
  --mist: #e9eff5;
  --wash: #f4f7fa;
  --paper: #ffffff;
  --line: #d5dfe9;
  --gold: #c8a951;
  --gold-text: #7d6218;
  --gold-light: #e6cf8a;
  --focus: #1f5fbf;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
section[id], div[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 44rem; }

h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 20px; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(2.7rem, 6.2vw, 4.7rem); }
h2 { font-size: clamp(2.05rem, 4vw, 2.9rem); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.28rem; line-height: 1.55; color: var(--ink-soft); max-width: 38rem; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; letter-spacing: 0.2em; color: var(--ink); }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.08em; color: var(--gold-text); font-weight: 500; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); color: var(--ink); font: inherit; font-weight: 600; padding: 8px 14px; border-radius: 6px; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; padding: 14px 24px; border-radius: 6px; border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: #12202f; border-color: #12202f; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 0.95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #e6edf4 0%, #f3f7fa 62%, #ffffff 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 230px; }
.hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 5.4vw, 4.3rem); }
.sun { position: absolute; z-index: 1; right: 13%; bottom: 120px; width: 240px; height: 240px; border-radius: 50%; border: 2.5px solid var(--gold); background: radial-gradient(circle at 50% 35%, rgba(200,169,81,.22), rgba(200,169,81,0) 70%); pointer-events: none; }
.page-hero .sun { width: 150px; height: 150px; bottom: 54px; right: 14%; }
.hero .lead { margin-bottom: 0; }
.facts { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-weight: 500; font-size: 0.98rem; color: var(--ink-soft); }
.facts li { padding-left: 14px; border-left: 3px solid var(--gold); }

.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 300px; z-index: 1; pointer-events: none; }
.ridge path { animation: rise 1.4s ease-out both; }
.ridge .r2 { animation-delay: .15s; } .ridge .r3 { animation-delay: .3s; } .ridge .r4 { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ridge path { animation: none; } }

.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #e6edf4 0%, #f3f7fa 70%, #ffffff 100%); }
.page-hero .container { position: relative; z-index: 2; padding-top: 52px; padding-bottom: 130px; }
.page-hero .ridge { height: 150px; }
.page-hero h1 { margin-bottom: 14px; }
.crumb { display: inline-block; font-size: 0.95rem; font-weight: 500; margin-bottom: 26px; color: var(--ink-soft); }
.chip { display: inline-block; font-size: 0.88rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1.5px solid var(--gold-text); color: var(--gold-text); background: #fff; vertical-align: middle; }
.page-hero .chip { margin-bottom: 18px; }

/* Sections */
.section { padding: 88px 0; }
.section.wash { background: var(--wash); }
.section-intro { max-width: 40rem; color: var(--ink-soft); font-size: 1.15rem; margin-bottom: 44px; }

/* Hard moments */
.moments { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.moments li { border-top: 1px solid var(--line); }
.moments a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 24px; padding: 20px 4px; text-decoration: none; }
.moments .quote { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 500; line-height: 1.25; }
.moments .where { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; border-bottom: 2px solid var(--gold); }
.moments a:hover .quote { color: var(--slate); }

/* Pathways */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }
.feature { padding: 40px 36px 36px; border-radius: 6px; display: flex; flex-direction: column; }
.feature .ico { width: 36px; height: 36px; margin-bottom: 18px; }
.feature h3 { font-family: var(--serif); font-size: 2.1rem; font-weight: 600; line-height: 1.1; margin-bottom: 4px; }
.feature .for { font-weight: 600; margin-bottom: 16px; }
.feature p.body { flex: 1; }
.feature.light { background: var(--mist); }
.feature.light .for { color: var(--ink-soft); }
.feature.dark { background: var(--ink); color: #eef3f8; }
.feature.dark .for { color: var(--gold-light); }
.feature.dark .btn { background: #fff; color: var(--ink); border-color: #fff; }
.feature.dark .btn:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--ink); }
.feature .btn { align-self: flex-start; margin-top: 6px; }

.more-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 0 0 8px; }
.more-list { list-style: none; margin: 0; padding: 0; }
.more-list li { border-top: 1px solid var(--line); }
.more-list li:last-child { border-bottom: 1px solid var(--line); }
.more-list a { display: grid; grid-template-columns: 34px 170px 1fr auto; gap: 20px; align-items: center; padding: 20px 4px; text-decoration: none; }
.more-list .ico { width: 28px; height: 28px; color: var(--slate); }
.more-list .pname { font-weight: 600; font-size: 1.1rem; }
.more-list .pdesc { color: var(--ink-soft); }
.more-list a:hover .pname { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 56px; margin-top: 12px; }
.principle { border-top: 3px solid var(--gold); padding-top: 18px; }
.principle p { color: var(--ink-soft); margin: 0; }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 3.4rem; font-weight: 500; line-height: 1; color: var(--slate); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--ink-soft); margin: 0; }
.steps.three { grid-template-columns: repeat(3, 1fr); }

.note { margin-top: 48px; padding: 24px 28px; background: var(--paper); border-left: 5px solid var(--gold); border-radius: 0 6px 6px 0; max-width: 46rem; }
.note h3 { margin-bottom: 6px; }
.note p { margin: 0; color: var(--ink-soft); }
.note p + p { margin-top: 10px; }
.wash .note { background: var(--paper); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.founder img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--mist); margin-bottom: 14px; }
.founder h3 { margin-bottom: 2px; }
.founder .creds { font-size: 0.96rem; color: var(--ink-soft); margin: 0 0 6px; }
.founder .bio { font-size: 0.98rem; margin: 0; }
.mission-line { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 500; line-height: 1.25; margin-bottom: 20px; }

/* Lists on pathway pages */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.tick-list { list-style: none; margin: 0 0 20px; padding: 0; }
.tick-list li { position: relative; padding: 0 0 14px 28px; }
.tick-list li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.sub-heading { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 26px 0 10px; color: var(--ink-soft); }
.sub-heading:first-child { margin-top: 0; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 4px; font-weight: 600; font-size: 1.12rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-52%); font-size: 1.7rem; font-weight: 400; color: var(--slate); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq .answer { padding: 0 44px 22px 4px; color: var(--ink-soft); max-width: 46rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info p { color: var(--ink-soft); }
.contact-info .email { font-weight: 600; font-size: 1.15rem; }
.form-panel { background: var(--wash); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.section.wash .form-panel { background: var(--paper); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.98rem; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: 0.92rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9fb2c6; border-radius: 6px; padding: 12px 14px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.92rem; color: var(--ink-soft); margin: 14px 0 0; }

/* Footer */
.site-footer { background: var(--ink); color: #cdd9e6; padding: 64px 0 36px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { text-decoration-color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--gold-light); }
.footer-grid p { margin: 14px 0 0; font-size: 0.98rem; }
.footer-grid h2 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; margin: 0 0 12px; color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; font-size: 0.98rem; }
.footer-grid li { margin-bottom: 8px; }
.crisis { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.18); font-size: 0.93rem; }
.crisis p { margin: 0 0 8px; }

/* Simple message pages */
.message { padding: 96px 0 120px; }

/* Responsive */
@media (max-width: 960px) {
  .feature-grid, .principles, .about-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .feature-grid { gap: 20px; }
  .about-grid, .two-col, .contact-grid { gap: 44px; }
  .steps, .steps.three { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .more-list a { grid-template-columns: 34px 1fr auto; }
  .more-list .pdesc { grid-column: 2 / -1; }
}
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-block; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 24px 24px; border-bottom: 1px solid var(--line); z-index: 20; }
  .js .nav.open { display: flex; }
  .site-header { position: relative; }
  .nav { flex-wrap: wrap; gap: 10px 20px; }
  .site-header .container { flex-wrap: wrap; }
  .hero .container { padding-top: 52px; padding-bottom: 170px; }
  .ridge { height: 210px; }
  .sun { width: 150px; height: 150px; right: 7%; bottom: 84px; }
  .page-hero .sun { width: 100px; height: 100px; bottom: 40px; }
  .section { padding: 64px 0; }
  .moments a { grid-template-columns: 1fr; gap: 8px; }
  .moments .where { justify-self: start; }
  .steps, .steps.three { grid-template-columns: 1fr; gap: 26px; }
  .founders { grid-template-columns: 1fr 1fr; gap: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-panel { padding: 22px; }
  .feature { padding: 30px 24px; }
  .faq summary { font-size: 1.05rem; }
}
@media (max-width: 460px) {
  .founders { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
