/* Golden Spectrum Therapy — site styles. No external fonts or CDNs (keeps CSP strict). */
:root {
  --cream: #fffbf3;
  --cream-2: #fbf2e1;
  --ink: #2b2a33;
  --ink-soft: #55535f;
  --gold: #b8862b;
  --gold-dark: #8a6316;   /* AA contrast on cream for text/links */
  --gold-light: #f3e2bd;
  --line: #ead9b6;
  --white: #fff;
  --focus: #1f6feb;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(60, 40, 0, .08);
  --wrap: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spectrum: linear-gradient(90deg, #e9b949, #f08a5d, #e46b8f, #9b7bd4, #4fa3c7, #63b98b);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, .h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); margin: 0 0 .6em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3, .h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; }
.lead { font-size: 1.2rem; color: var(--ink); }
.big { font-family: var(--serif); font-size: 1.4rem; line-height: 1.4; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: .4em; }

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

.spectrum-bar { height: 5px; background: var(--spectrum); }

/* Header + nav */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
.brand img { width: auto; height: 64px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; align-items: center; }
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 10px; }
.site-nav a:hover, .site-nav .is-active > a { color: var(--gold-dark); background: var(--cream-2); }
.site-nav a[aria-current="page"] { color: var(--gold-dark); }
.site-nav li[data-has-sub] { position: relative; }
.site-nav li[data-has-sub] > a::after { content: "▾"; margin-left: 6px; font-size: .75em; }
.subnav {
  position: absolute; left: 0; top: 100%; min-width: 290px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease;
}
.site-nav li[data-has-sub]:hover > .subnav,
.site-nav li[data-has-sub]:focus-within > .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav a { font-weight: 500; }
.site-nav > ul > li:last-child > a { background: var(--gold); color: var(--ink); margin-left: 6px; }
.site-nav > ul > li:last-child > a:hover { background: var(--gold-light); }

.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font: 600 1rem var(--sans); color: var(--ink); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }

@media (max-width: 1040px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .brand img { height: 52px; }
  .site-nav { width: 100%; }
  .js .site-nav { display: none; padding-bottom: 16px; }
  .js .site-nav.is-open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; flex-wrap: wrap; }
  .no-js .site-nav > ul { flex-direction: row; }
  .subnav { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
  .site-nav li[data-has-sub] > a::after { content: none; }
  .site-nav > ul > li:last-child > a { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 999px; border: 2px solid var(--gold); cursor: pointer; font-size: 1rem; font-family: var(--sans); transition: background .15s ease; }
.btn:hover { background: var(--gold-light); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; }
.btn-small { padding: 9px 18px; font-size: .9rem; }

/* Sections */
.hero { background: linear-gradient(180deg, var(--white), var(--cream)); padding: 64px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: .2em; }
.tagline { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--gold-dark); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5em; }
.hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

.page-hero { background: var(--white); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero .lead { max-width: 720px; }
.section { padding: 56px 0; }
.section-tint { background: var(--cream-2); }

.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.split-reverse > :first-child { order: 2; }
.split-form { align-items: start; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-icon { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 16px; }
.cards-3 .card { text-align: center; }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: contain; margin-bottom: 16px; }
.card-link { position: relative; }
.card-link h2 a { color: var(--ink); text-decoration: none; }
.card-link h2 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { border-color: var(--gold); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: .5em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--spectrum); }

.icon-row { list-style: none; padding: 0; margin: 32px 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.icon-row img { width: 72px; height: 72px; object-fit: contain; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 32px 52px; border-left: 2px solid var(--line); margin-left: 24px; }
.steps li:last-child { border-left-color: transparent; }
.steps li::before { content: counter(s); position: absolute; left: -25px; top: -4px; width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); font: 700 1.3rem var(--serif); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--cream); }
.steps h2 { margin-bottom: .3em; }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }

.logo-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.logo-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; min-height: 160px; }
.logo-card img { max-height: 70px; width: auto; object-fit: contain; }
.logo-card span { font-weight: 600; font-size: .95rem; }

.cta { background: var(--ink); color: var(--cream); text-align: center; padding: 56px 0; }
.cta h2 { color: var(--white); }
.cta p { color: var(--gold-light); font-size: 1.15rem; }

.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }

/* Form */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); position: relative; }
.notice { background: var(--cream-2); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 8px; font-size: .95rem; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: #a3361d; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #cfc2a5; border-radius: 10px; padding: 11px 12px; width: 100%;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--gold-dark); }
.field-check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.field-check label { font-weight: 400; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 8px 0 16px; min-height: 65px; }
.contact-media { position: sticky; top: 120px; }

/* Footer */
.site-footer { background: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer h2 { font-size: 1.05rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); }
.site-footer p { font-size: .95rem; }
.footer-legal { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 24px; font-size: .85rem; color: var(--ink-soft); }
.footer-legal p { margin: 0; }

@media (max-width: 860px) {
  .hero-inner, .split, .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .split-reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-media { display: none; }
  .hero { padding-top: 40px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .field-row, .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .footer-legal { flex-direction: column; gap: 6px; }
}
@media print {
  .site-header, .cta, .nav-toggle { display: none; }
}
