/* Kaiagora: open, human, local.
   Palette from the official logo + brand boards (brand/source/). */
/* Brand fonts, self-hosted (SIL OFL): no third-party requests from a health site */
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/InstrumentSerif-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url(fonts/PublicSans.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --ink: #01334D;        /* wordmark navy */
  --ink-soft: #3f5966;
  --sea: #02636C;        /* logo teal dots */
  --ocean: #2E8FB8;      /* ocean blue */
  --paper: #F7F3E9;      /* sand */
  --sand: #DCCDB4;
  --clay: #D25223;       /* logo terracotta */
  --sun: #F6B84D;        /* sunrise */
  --on-dark: #d8e8e4;
  --rule-dark: rgba(247, 243, 233, .28);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(76px, 9vw, 116px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: var(--sea); text-underline-offset: 4px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 4px; border-radius: 5px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.015em; margin: 0; }
h3 { font-family: var(--sans); font-weight: 700; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 20; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- crisis bar ---------- */
.crisis { background: var(--ink); color: #e9efe9; font-size: .86rem; text-align: center; padding: 7px var(--gutter); }
.crisis a { color: var(--sun); font-weight: 700; }

/* ---------- header ---------- */
.site-header { padding: 28px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { height: 25px; width: auto; }
nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:not(.btn):hover { color: var(--clay); }

/* ---------- buttons + links ---------- */
.btn { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 999px; transition: transform .2s, background .2s; }
.btn:hover { background: var(--sea); color: var(--paper); transform: translateY(-2px); }
.btn-small { padding: 9px 17px; font-size: .88rem; }
nav .btn-small { color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-clay { background: var(--clay); }
.btn-clay:hover { background: var(--sun); color: var(--ink); }
.text-link { font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--clay); padding-bottom: 3px; }
.text-link span, .support-card a span { display: inline-block; transition: transform .2s; }
.text-link:hover span, .support-card a:hover span { transform: translateX(4px); }

/* ---------- shared section ---------- */
main > section { padding: var(--section-y) var(--gutter); }
.eyebrow { text-transform: uppercase; letter-spacing: .15em; font-size: .75rem; font-weight: 700; color: var(--clay); margin-bottom: 15px; }
.eyebrow.light { color: var(--sun); }
.sub { color: var(--ink-soft); font-size: 1.05rem; max-width: 620px; }
.section-lead h2, .start h2, .local h2, .founder h2 { font-size: clamp(2.45rem, 4.7vw, 4.35rem); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .95fr); gap: clamp(42px, 7vw, 96px); align-items: center; padding-block: clamp(56px, 8vw, 104px) !important; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--sea); margin-bottom: 24px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 0 rgba(210,82,35,.45); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(210,82,35,0); } 100% { box-shadow: 0 0 0 0 rgba(210,82,35,0); } }
.hero h1 { font-size: clamp(3rem, 6vw, 5.6rem); max-width: 600px; letter-spacing: -.02em; }
.hero h1 em { color: var(--sea); font-style: normal; }
.lede { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--ink-soft); max-width: 560px; margin-top: 27px; }
.cta-row { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; margin-top: 34px; }
.reassure { font-size: .86rem; color: var(--ink-soft); margin-top: 19px; }

.hero-photo { position: relative; isolation: isolate; }
.hero-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--ocean); border-radius: var(--radius); z-index: -1; }
.hero-photo img { width: 100%; height: clamp(390px, 42vw, 560px); object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(1,51,77,.18); filter: saturate(.82); }
.photo-note { position: absolute; left: 16px; bottom: 16px; background: var(--paper); padding: 12px 17px; border-radius: 8px; border: 1px solid rgba(1,51,77,.12); box-shadow: 0 5px 16px rgba(1,51,77,.12); font-size: .72rem; font-weight: 700; color: var(--sea); }

.hero-copy > * { animation: rise .8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-copy > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- trust strip ---------- */
.trust-strip { padding-block: 0 !important; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--sand); background: #fff; }
.trust-strip > div { padding: 25px 22px; border-right: 1px solid var(--sand); }
.trust-strip > div:first-child { border-left: 1px solid var(--sand); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: .82rem; text-transform: uppercase; letter-spacing: .11em; color: var(--sea); }
.trust-strip span { font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }

/* ---------- services ---------- */
.section-lead { max-width: 700px; margin-bottom: 46px; }
.section-lead .sub { margin-top: 18px; }
.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--sand); }
.support-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 330px; padding: 27px 30px 28px; border-right: 1px solid var(--sand); }
.support-card:first-child { padding-left: 0; }
.support-card:last-child { border-right: 0; }
.card-number { font: 400 1.55rem/.9 var(--serif); color: var(--clay); margin-bottom: 54px; }
.support-card h3 { font-size: 1.27rem; max-width: 250px; }
.support-card p { color: var(--ink-soft); font-size: .93rem; line-height: 1.55; margin-top: 12px; max-width: 340px; }
.support-card a { font-size: .88rem; font-weight: 700; text-decoration: none; color: var(--sea); margin-top: auto; padding-top: 22px; }
.fine { font-size: .86rem; color: var(--ink-soft); max-width: 760px; margin-top: 26px; }

/* ---------- how it starts ---------- */
.start { background: var(--ink); color: var(--paper); display: grid; grid-template-columns: minmax(280px, .86fr) minmax(400px, 1.14fr); gap: clamp(40px, 9vw, 130px); }
.start .eyebrow { color: var(--sun); }
.start h2 { max-width: 560px; }
.start .sub { color: var(--on-dark); margin: 19px 0 30px; }
.start-copy { max-width: 480px; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 23px; padding: 22px 0; border-top: 1px solid var(--rule-dark); }
.steps li:last-child { border-bottom: 1px solid var(--rule-dark); }
.steps li > span { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid var(--sun); border-radius: 50%; font: 400 1.2rem var(--serif); color: var(--sun); }
.steps h3 { font-size: 1rem; letter-spacing: .02em; text-transform: uppercase; color: var(--paper); }
.steps p { font-size: .94rem; color: var(--on-dark); margin-top: 5px; }

/* ---------- where ---------- */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.towns { font: 400 clamp(1.5rem, 2.7vw, 2.45rem)/1.2 var(--serif); }
.towns i { color: var(--clay); font-style: normal; }
.local .sub { margin-top: 20px; }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 1fr 1.65fr; gap: clamp(32px, 7vw, 100px); align-items: start; border-top: 1px solid var(--sand); }
.founder-label { display: flex; align-items: center; gap: 20px; }
.founder-label .eyebrow { margin: 0; }
.founder-line { height: 1px; background: var(--clay); width: 110px; }
.founder h2 { max-width: 650px; }
.founder blockquote { margin: 34px 0 0; border-left: 2px solid var(--clay); padding-left: 26px; max-width: 760px; }
.founder blockquote p { font: italic 400 clamp(1.35rem, 2.5vw, 2rem)/1.35 var(--serif); }
.founder footer { margin-top: 18px; color: var(--ink-soft); font-size: .94rem; }
.founder footer strong { color: var(--ink); }

/* ---------- partners ---------- */
.partners { background: var(--ink); color: #e3ebe7; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; padding-block: clamp(70px, 8vw, 100px) !important; position: relative; overflow: hidden; }
.partners::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; opacity: .18; background: url(img/waves-band.jpg) center bottom / cover no-repeat; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 85%); mask-image: linear-gradient(to bottom, transparent, #000 85%); }
.partners > * { position: relative; z-index: 1; }
.partners h2 { font-size: clamp(2.35rem, 4.6vw, 4.1rem); color: var(--paper); max-width: 700px; }
.partners p:not(.eyebrow) { max-width: 650px; margin-top: 19px; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.contact > p:not(.eyebrow) { color: var(--ink-soft); max-width: 570px; margin: 20px auto 29px; }
.contact .btn { font-size: 1.05rem; }
.contact .privacy { font-size: .82rem; margin: 20px auto 0; }

/* ---------- horizon band + footer ---------- */
.horizon { height: clamp(80px, 11vw, 145px); background: url(img/horizon-band.jpg) center 20% / cover no-repeat; }
.site-footer { padding: 38px var(--gutter) 48px; display: grid; grid-template-columns: auto 1fr; gap: 14px 42px; font-size: .86rem; color: var(--ink-soft); }
.foot-brand { display: flex; gap: 12px; align-items: center; grid-row: span 3; }
.foot-brand img { width: 48px; height: 48px; }
.foot-brand strong { color: var(--ink); }
.motto { font: italic 400 1.05rem var(--serif); color: var(--clay); }
.crisis-foot a { font-weight: 700; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.support-card.reveal:nth-child(2), .steps > li.reveal:nth-child(2) { transition-delay: .08s; }
.support-card.reveal:nth-child(3), .steps > li.reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip > div:nth-child(2) { border-right: 0; }
  .trust-strip > div:nth-child(n+3) { border-top: 1px solid var(--sand); }
  .trust-strip > div:nth-child(3) { border-left: 1px solid var(--sand); }
  .support-grid { grid-template-columns: 1fr; }
  .support-card { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--sand); }
  .support-card:last-child { border-bottom: 0; }
  .start { grid-template-columns: 1fr; gap: 30px; }
  .local { grid-template-columns: 1fr; gap: 24px; }
  .founder { grid-template-columns: 1fr; gap: 18px; }
  .partners { grid-template-columns: 1fr; align-items: start; }
  .partners .btn { justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding-block: 18px; }
  nav a:not(.btn) { display: none; }
  .hero { padding-top: 34px !important; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4.7rem); }
  .hero-photo img { height: 68vw; min-height: 300px; }
  .hero-photo::after { inset: 12px -10px -10px 10px; }
  .photo-note { left: 10px; bottom: 12px; font-size: .7rem; }
  .trust-strip > div { padding: 20px 14px; }
  .trust-strip strong { font-size: .7rem; }
  .trust-strip span { font-size: .78rem; }
  .support-card { padding-block: 24px; }
  .card-number { margin-bottom: 34px; }
  .founder blockquote { padding-left: 20px; }
  .site-footer { grid-template-columns: 1fr; }
  .foot-brand { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
