/* Golden Spectrum Therapy — site styles. Self-hosted fonts only, no CDNs (keeps CSP strict). */
/* Brand typography (Golden Spectrum identity manual):
   primary  = Momentz (display: homepage main title only)
   secondary = Montserrat (body text, buttons, small headings)
   Fonts are self-hosted so the CSP can stay font-src 'self'.
   To enable Momentz, add public/fonts/momentz.woff2 and uncomment the @font-face below. */
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url(/fonts/montserrat-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
/* @font-face { font-family: "Momentz"; src: url(/fonts/momentz.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; } */

: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;
  --display: "Momentz", "Montserrat", system-ui, sans-serif;
  --serif: var(--sans);
  --sans: "Montserrat", 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: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3, .h3 { font-size: 1.2rem; font-family: var(--sans); font-weight: 700; }
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(--sans); font-weight: 600; 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; font-family: var(--display); }
.tagline { font-family: var(--sans); font-weight: 600; 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 { padding-left: 36px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; background: url(/assets/img/bullet-spiral.webp) center / contain no-repeat; }
/* Brand icons as bullets, in brand order: spiral, infinity, brain, family, rainbow */
.checklist li:nth-child(5n+2)::before { background-image: url(/assets/img/bullet-infinity.webp); }
.checklist li:nth-child(5n+3)::before { background-image: url(/assets/img/bullet-brain.webp); }
.checklist li:nth-child(5n+4)::before { background-image: url(/assets/img/bullet-family.webp); }
.checklist li:nth-child(5n+5)::before { background-image: url(/assets/img/bullet-rainbow.webp); }

.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: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.logo-grid > .logo-card { flex: 1 1 200px; max-width: 220px; }
@media (max-width: 480px) { .logo-grid { gap: 12px; } .logo-grid > .logo-card { flex-basis: 140px; } }
.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; }
}


/* ---------- Homepage hands: gentle animation ---------- */
.hero-hands { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fbf3e6; }
.hero-hands img { display: block; width: 100%; height: auto; border-radius: 0; box-shadow: none; transform-origin: 52% 52%; animation: hands-gather 1.6s cubic-bezier(.2,.8,.2,1) both, hands-sway 14s ease-in-out 1.6s infinite; }
@keyframes hands-gather { from { opacity: 0; transform: scale(1.35) rotate(-8deg); } to { opacity: 1; transform: scale(1.06) rotate(0deg); } }
@keyframes hands-sway { 0%, 100% { transform: scale(1.06) rotate(0deg); } 25% { transform: scale(1.1) rotate(2.5deg); } 50% { transform: scale(1.06) rotate(0deg); } 75% { transform: scale(1.1) rotate(-2.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-hands img { animation: none; transform: scale(1.06); } }
.hero-text .eyebrow, .hero-text h1, .hero-text .tagline { text-align: center; }

/* ---------- About page ---------- */
.about-hero { background: var(--white); padding: 56px 0; border-bottom: 1px solid var(--line); }
.about-hero img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.founder-strip { display: flex; align-items: center; gap: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.founder-strip img { width: 64px; height: 64px; flex: none; }
.founder-strip p { margin: 0; flex: 1; }
.founder-strip .btn { flex: none; }
.symbols { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.symbols li { flex: 1 1 160px; max-width: 200px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 16px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.symbols img { width: 84px; height: 84px; object-fit: contain; }
.symbols span { font-weight: 700; }
.stand-title { color: #0E2D49; }
.vision { background: var(--cream-2); padding: 72px 0; position: relative; }
.vision::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--spectrum); }
.vision-quote { font-family: var(--sans); font-weight: 700; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.35; color: var(--ink); margin: 0; }
@media (max-width: 760px) {
  .founder-strip { flex-direction: column; text-align: center; }
  .symbols li { flex-basis: 140px; }
}

/* ---------- Gentle motion (all disabled under prefers-reduced-motion) ---------- */
.site-header .spectrum-bar { transform-origin: left center; animation: bar-draw 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bar-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.card, .logo-card, .symbols li, .founder-strip { transition: transform .25s ease, box-shadow .25s ease, opacity .7s ease; }
.card:hover, .logo-card:hover, .symbols li:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14, 45, 73, .12); }
.btn { transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(184, 134, 43, .28); }
.checklist li::before { transition: transform .3s ease; }
.checklist li:hover::before { animation: icon-wiggle .5s ease; }
@keyframes icon-wiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-12deg) scale(1.1); } 60% { transform: rotate(10deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .site-header .spectrum-bar, .checklist li:hover::before { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .logo-card:hover, .symbols li:hover, .btn:hover { transform: none; }
}
