/* ==========================================================
   Three Wave Wellness Association — shared styles (version 2)
   Warm, calm ground. Deep ocean blue from the wordmark carries
   the text; gold accents; pink, green and sky appear as soft
   wave shapes and thin strokes only. Light mode only, on purpose.
   ========================================================== */

:root {
  color-scheme: light;
  --sand: #F4ECE1;        /* page ground: warm beige */
  --sand-2: #EADFCF;      /* soft band: light brown */
  --cream: #FBF7F1;       /* cards, form, logo plate */
  --line: #DCCFBC;        /* hairlines */
  --ocean: #15405C;       /* headings */
  --ocean-2: #1D5A80;     /* links, buttons */
  --ocean-3: #2A6F99;     /* hover */
  --ocean-deep: #12374F;  /* footer */
  --ink: #2E2B27;         /* body text */
  --muted: #675D52;       /* secondary text */
  --gold: #B8913F;        /* accent lines */
  --gold-deep: #765818;   /* gold used as text (labels) */
  --pink: #E3477F;
  --green: #2F8C4E;
  --sky: #2AA3E0;
  --focus: #2AA3E0;
  --shadow: 0 14px 36px rgba(84, 62, 36, 0.10);
  --radius: 8px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::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: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ocean-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ocean-3); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ocean);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); letter-spacing: -0.012em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
p + p { margin-top: 1em; }

.container { width: min(1160px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ocean-deep); color: #F4ECE1;
  padding: 10px 14px; border-radius: 4px; z-index: 200; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header: larger logo and menu ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(244, 236, 225, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ocean); }
.brand img { height: 68px; width: auto; }
.brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.6rem; font-weight: 500; line-height: 1.05; letter-spacing: 0.005em;
}
.brand-name small {
  display: block; font-family: "Figtree", system-ui, sans-serif;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-deep); margin-top: 5px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.05rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ocean-2); border-color: var(--gold); }
.nav-links .nav-cta {
  background: var(--ocean-2); color: #FFFFFF; padding: 11px 22px; border-radius: 999px; border: 0;
}
.nav-links .nav-cta:hover { background: var(--ocean-3); color: #FFFFFF; }
.nav-toggle {
  display: none; background: var(--cream); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ocean); font: inherit; font-weight: 700; padding: 10px 14px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ocean-2); color: #FFFFFF; border-color: var(--ocean-2); }
.btn-primary:hover { background: var(--ocean-3); border-color: var(--ocean-3); color: #FFFFFF; }
.btn-outline { color: var(--ocean-2); border-color: var(--ocean-2); background: transparent; }
.btn-outline:hover { background: var(--ocean-2); color: #FFFFFF; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-band { background: var(--sand-2); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* soft wave divider between sections */
.wave-divider { display: block; width: 100%; height: clamp(40px, 6vw, 80px); margin-top: -1px; }
.wave-divider.flip { transform: scaleY(-1); margin-top: 0; margin-bottom: -1px; }

/* ---------- Hero: visual first, short text ---------- */
.hero { position: relative; overflow: hidden; background: var(--sand); }
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(120px, 14vw, 200px);
}
.hero-copy h1 { margin: 0 0 20px; }
.hero-copy .lead { max-width: 40ch; margin-bottom: 32px; }

/* The visual slot. Holds the logo now; built to take the founders' portrait later.
   To swap: put the photo at images/hero.jpg, then change the <img> inside .hero-visual
   (see CLAUDE.md, "Add the founders' portrait"). */
.hero-visual { display: flex; justify-content: center; }
.hero-plate {
  width: min(100%, 470px); aspect-ratio: 1 / 1; max-width: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #FFFDF9 0%, var(--cream) 55%, #F1E6D6 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(184, 145, 63, 0.25);
  display: grid; place-items: center; padding: 12%;
}
.hero-plate img { width: 100%; height: auto; }
.hero-photo { width: min(100%, 520px); max-width: 100%; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-waves {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  width: 100%; height: clamp(110px, 14vw, 190px); display: block;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.statement { border-left: 3px solid var(--gold); padding: 4px 0 4px 22px; }
.statement + .statement { margin-top: 28px; }
.statement h3 {
  font-family: "Figtree", system-ui, sans-serif; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px;
}
.statement p { font-family: "Newsreader", Georgia, serif; font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.4; color: var(--ocean); }

.more { margin-top: 28px; }
.more summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--ocean-2);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold-deep); }
.more[open] summary::before { content: "\2013"; }
.more .more-body { margin-top: 18px; max-width: 70ch; }
.more .more-body h4 { font-family: "Figtree", system-ui, sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin: 22px 0 8px; }
.more .more-body h4:first-child { margin-top: 0; }

.strengths {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.strengths p { font-family: "Newsreader", Georgia, serif; font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.45; color: var(--ocean); }
.strengths svg { width: 96px; height: auto; }

/* ---------- Building list ---------- */
.build-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.build-list li { padding-top: 18px; border-top: 3px solid var(--gold); }
.build-list li:nth-child(1) { border-top-color: var(--pink); }
.build-list li:nth-child(2) { border-top-color: var(--green); }
.build-list li:nth-child(3) { border-top-color: var(--sky); }
.build-list h3 { font-size: 1.35rem; margin-bottom: 10px; }
.build-list p { color: var(--muted); }
.build-note { margin-top: clamp(28px, 4vw, 44px); color: var(--muted); font-size: 0.98rem; }

/* ---------- People (founders and board) ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 40px); }
.people.board-grid { grid-template-columns: repeat(4, 1fr); }
.person { display: flex; flex-direction: column; }
.person-photo {
  aspect-ratio: 4 / 5; width: 100%; max-width: 100%; overflow: hidden; border-radius: var(--radius);
  background: var(--cream); box-shadow: var(--shadow);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Placeholder until a headshot arrives: initials on a soft plate */
.person-photo.placeholder {
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--cream) 0%, #EFE3D2 100%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.person-photo.placeholder span {
  font-family: "Newsreader", Georgia, serif; font-size: clamp(2.2rem, 4vw, 3rem); color: var(--gold-deep); letter-spacing: 0.04em;
}
.person h3 { margin-top: 18px; font-size: 1.5rem; }
.board-grid .person h3 { font-size: 1.3rem; }
.person .role { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-top: 4px; }
.person .creds { color: var(--muted); font-size: 0.95rem; margin-top: 6px; }
.person .bio { margin-top: 14px; font-size: 0.98rem; }
.person details { margin-top: 10px; }
.person summary {
  cursor: pointer; font-weight: 700; color: var(--ocean-2); font-size: 0.95rem; list-style: none; display: inline-flex; align-items: center; gap: 8px;
}
.person summary::-webkit-details-marker { display: none; }
.person summary::before { content: "+"; font-weight: 400; font-size: 1.2rem; line-height: 1; color: var(--gold-deep); }
.person details[open] summary::before { content: "\2013"; }
.person details p { margin-top: 12px; font-size: 0.98rem; }

.board { margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.board .section-head { margin-bottom: clamp(24px, 3vw, 36px); }

/* ---------- Support ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.narrow-left { grid-template-columns: 0.9fr 1.1fr; }
.give { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.give h3 { font-size: 1.3rem; margin-bottom: 14px; }
.give dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; align-items: baseline; }
.give dt { font-weight: 700; color: var(--ocean); font-size: 0.95rem; }
.give dd { margin: 0; }
.receipts {
  margin-top: 20px; padding: 16px 18px; border-radius: 6px;
  background: #F3E9DA; border-left: 3px solid var(--gold);
  font-size: 0.95rem; color: var(--ink);
}
.receipts strong { color: var(--ocean); }
.email-strong { display: block; font-weight: 700; color: var(--ocean); overflow-wrap: anywhere; }
.support-list { margin: 10px 0 0; padding-left: 22px; }
.support-list li { margin-top: 6px; }
.support-list li::marker { color: var(--gold); }
.support-list + p { margin-top: 1em; }

/* ---------- Contact ---------- */
.contact-details p + p { margin-top: 18px; }
.contact-details strong { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 4px; }
.contact-form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 16px; }
.field label { font-weight: 700; font-size: 0.92rem; color: var(--ocean); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #FFFDF9;
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px;
}
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ocean-2); }
.field textarea { min-height: 150px; resize: vertical; }
.form-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-actions button { font: inherit; cursor: pointer; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Calendar page ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--sand-2); }
.page-hero .container { position: relative; z-index: 2; padding-block: clamp(48px, 7vw, 80px) clamp(130px, 15vw, 210px); max-width: 1160px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); margin-bottom: 14px; }
.page-hero .lead { max-width: 56ch; }
.calendar-frame {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.calendar-frame iframe { display: block; width: 100%; height: 680px; border: 0; }
.calendar-empty { padding: clamp(32px, 6vw, 64px); text-align: center; }
.calendar-empty h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 18px 0 12px; }
.calendar-empty p { max-width: 52ch; margin-inline: auto; color: var(--muted); }
.calendar-empty .btn-row { justify-content: center; margin-top: 24px; }
.calendar-empty svg { width: 120px; height: auto; margin-inline: auto; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean-deep); color: #C4D2DC; padding-block: clamp(44px, 6vw, 64px) 28px; }
.site-footer a { color: #EEF3F6; }
.site-footer a:hover { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; align-items: start; }
.footer-brand { display: flex; align-items: flex-start; gap: 16px; }
.footer-brand .plate { flex: none; width: 72px; height: 72px; border-radius: 50%; background: #FBF7F1; display: grid; place-items: center; padding: 10px; }
.footer-brand .plate img { width: 100%; height: auto; }
.footer-brand .name { font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; color: #F4ECE1; line-height: 1.15; }
.footer-brand .sub { font-size: 0.88rem; margin-top: 8px; }
.site-footer h4 { color: #F4ECE1; font-family: "Figtree", system-ui, sans-serif; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.crisis { margin-top: 36px; padding: 20px 22px; border: 1px solid rgba(212, 176, 96, 0.6); border-radius: var(--radius); font-size: 0.95rem; }
.crisis strong { color: #F4ECE1; }
.crisis a { text-decoration: none; font-weight: 700; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(196, 210, 220, 0.25); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Thanks page ---------- */
.thanks { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.thanks .inner { max-width: 56ch; }
.thanks h1 { margin: 18px 0 14px; font-size: clamp(2rem, 4vw, 2.8rem); }
.wave-rule { display: block; width: min(260px, 60%); height: auto; margin-inline: auto; }

/* ---------- Motion: the hero waves drift very slowly ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-waves .drift-a { animation: drift 18s ease-in-out infinite alternate; }
  .hero-waves .drift-b { animation: drift 24s ease-in-out infinite alternate-reverse; }
  .hero-waves .drift-c { animation: drift 30s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-60px); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .people.board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .people, .build-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--sand); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; font-size: 1.05rem; }
  .nav-links .nav-cta { display: inline-block; width: auto; margin-top: 8px; }
}
@media (max-width: 760px) {
  .brand img { height: 54px; }
  .brand-name { font-size: 1.3rem; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 36px 130px; }
  .hero-visual { order: -1; }
  .hero-plate { width: min(78%, 320px); }
  .about-grid, .split, .split.narrow-left { grid-template-columns: 1fr; }
  .strengths { grid-template-columns: 1fr; }
  .strengths svg { width: 80px; }
  .people, .people.board-grid, .build-list, .footer-grid { grid-template-columns: 1fr; }
  .person-photo { max-width: 420px; }
  .give dl { grid-template-columns: 1fr; gap: 4px 0; }
  .give dd { margin-bottom: 10px; }
  .calendar-frame iframe { height: 560px; }
}
@media (max-width: 420px) {
  .brand-name small { letter-spacing: 0.18em; }
}
