/* WellSpring Health & Wellness
   Layout: photo hero, curved section edges, colored bands (after the Lakeside example).
   Colors: brand primaries from the WellSpring Branding Guidelines. Text sits on deeper
   shades of the brand blue and green so it stays readable. */

:root {
  /* Brand primaries */
  --blue: #1797AE;
  --aqua: #1CD5D6;
  --green: #1B9B23;
  --leaf: #61BD65;

  /* Deeper shades for text-bearing fills */
  --deep: #0B4450;
  --deeper: #08363F;
  --band: #126F80;
  --forest: #1D5E33;
  --btn: #167C1D;
  --btn-hover: #12681A;
  --teal-text: #11707F;

  /* Secondary neutrals */
  --cream: #F6F2EA;
  --sand: #ECE5D8;
  --paper: #FFFFFF;
  --ink: #1C2A2E;
  --muted: #4D6166;
  --line: rgba(28, 42, 46, 0.16);

  --font: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --script: "Mrs Saint Delafield", "Brush Script MT", cursive;
  --wrap: 1160px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal-text); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 4px; }
.skip:focus { left: 12px; }

/* Top bar */
.topbar { background: var(--deeper); color: #DCEFF2; font-size: 0.82rem; letter-spacing: 0.02em; }
.topbar-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-block: 8px; text-align: center; }
.topbar a { color: #fff; text-decoration: none; display: inline-block; padding-block: 4px; }
.topbar a:hover { text-decoration: underline; }

/* Header, over the hero */
.stage { position: relative; }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; color: #fff; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand img { width: 150px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { color: #fff; text-decoration: none; font-size: 0.95rem; letter-spacing: 0.03em; }
.site-nav a:not(.btn) { padding-block: 10px; }
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: 7px; }
.menu-btn { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85em 1.9em; border-radius: 999px; border: 1.5px solid transparent;
  font: 500 0.95rem/1.2 var(--font); letter-spacing: 0.04em; text-decoration: none;
  min-height: 44px; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-light { border-color: currentColor; color: #fff; background: transparent; }
.btn-light:hover { background: rgba(255, 255, 255, 0.14); }
.btn-dark { border-color: var(--teal-text); color: var(--teal-text); background: transparent; }
.btn-dark:hover { background: var(--teal-text); color: #fff; }
.btn-sm { padding: 0.6em 1.35em; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.actions.left { justify-content: flex-start; }

/* Heroes */
.hero, .page-hero {
  position: relative; display: grid; place-items: center; text-align: center; color: #fff;
  background-color: var(--deep);
  background-image: linear-gradient(180deg, rgba(11, 68, 80, 0.5) 0%, rgba(11, 68, 80, 0.72) 72%, #0B4450 100%), var(--img, none);
  background-size: cover; background-position: center;
}
.hero { min-height: clamp(560px, 82vh, 780px); padding: 150px 0 80px; }
.page-hero { min-height: clamp(360px, 50vh, 500px); padding: 150px 0 100px; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lede, .page-hero .lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 42ch; margin: 0 auto 1.4em; color: #E6F4F6; }
.hero .where { font-size: 0.95rem; letter-spacing: 0.03em; color: #BFE4EA; margin-bottom: 2.2em; }

/* Bands with curved top edges */
.band { position: relative; background: var(--bg, var(--cream)); padding-block: clamp(72px, 9vw, 120px); }
.band.tight { padding-block: clamp(56px, 7vw, 88px); }
.wave { position: absolute; left: 0; top: -59px; width: 100%; height: 60px; display: block; fill: var(--bg, var(--cream)); }
.wave.flip { transform: scaleX(-1); }
.on-cream { --bg: var(--cream); }
.on-sand { --bg: var(--sand); }
.on-paper { --bg: var(--paper); }
.on-deep { --bg: var(--deep); color: #fff; }
.on-band { --bg: var(--band); color: #fff; }
.on-forest { --bg: var(--forest); color: #fff; }
.on-deep a:not(.btn), .on-band a:not(.btn), .on-forest a:not(.btn) { color: #fff; }

.script {
  font-family: var(--script); font-weight: 400; line-height: 1.15;
  font-size: clamp(2.9rem, 5.2vw, 4.2rem); color: var(--teal-text); margin: 0 0 0.15em;
  text-wrap: balance;
}
.on-deep .script, .on-band .script { color: var(--aqua); }
.on-forest .script { color: #8FD493; }
.center-head { text-align: center; max-width: 700px; margin: 0 auto clamp(40px, 5vw, 64px); }
.lead { font-size: 1.15rem; font-weight: 500; }
.muted { color: var(--muted); }

/* Mission band */
.mission { max-width: 780px; margin: 0 auto; text-align: center; }
.mission p:not(.script) { font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.75; color: #E3F1F3; }

/* Two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 84px); align-items: center; }
.split > * { min-width: 0; }
.split.reverse > :first-child { order: 2; }
.photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius); max-width: 100%;
  background-color: var(--sand);
  background-image: var(--img, none), url("../img/mark.svg");
  background-size: cover, 26%; background-position: center; background-repeat: no-repeat;
}
.photo.tall { aspect-ratio: 4 / 5; }

/* Care model columns */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 60px); text-align: center; }
.cols3 > * { min-width: 0; }
.cols3 p { color: #E2F0F2; max-width: 32ch; margin-inline: auto; }
.icon { width: 64px; height: 64px; margin: 0 auto 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; color: var(--aqua); }
.cols3 .btn { margin-top: 22px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps > li { min-width: 0; }
.num {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--blue);
  display: grid; place-items: center; color: var(--teal-text); font-size: 1.15rem; margin-bottom: 18px;
}
.steps p { color: var(--muted); }
.promise { max-width: 720px; margin: clamp(52px, 6vw, 80px) auto 0; text-align: center; border-top: 1px solid var(--line); padding-top: clamp(36px, 4vw, 52px); }
.promise .big { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.5; }

/* People */
.people { list-style: none; margin: 0; padding: 0; }
.person { display: flex; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.person:first-child { border-top: 1px solid var(--line); }
.person strong { display: block; font-weight: 500; font-size: 1.1rem; }
.person span { color: var(--muted); font-size: 0.95rem; }
.mono {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--band); color: #fff; font-weight: 500; letter-spacing: 0.06em;
}
.mono.lg { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius); font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 400; letter-spacing: 0.08em; }
.note { margin-top: 22px; color: var(--muted); font-size: 0.98rem; }
.bio { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.bio:first-of-type { padding-top: 0; }
.bio:last-child { border-bottom: 0; padding-bottom: 0; }
.bio > * { min-width: 0; }
.bio .role { color: var(--teal-text); font-weight: 500; margin-bottom: 1em; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.faq-grid > * { min-width: 0; }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.faq details:first-child { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 500; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 300; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: #E4F0E7; max-width: 60ch; }
.faq a { color: #fff; }

/* Waitlist */
.waitlist { max-width: 820px; margin: 0 auto; text-align: center; }
.fields { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 14px; align-items: end; text-align: left; margin-top: 28px; }
.fields > * { min-width: 0; }
.fields label { display: block; font-size: 0.85rem; font-weight: 500; margin: 0 0 6px 16px; color: var(--muted); }
.fields input, .fields select {
  width: 100%; font: inherit; font-size: 1rem; padding: 0.75em 1.1em; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
}
.form-msg { min-height: 1.6em; margin-top: 16px; font-weight: 500; color: var(--teal-text); }
.fine { font-size: 0.86rem; color: var(--muted); margin-top: 10px; }

/* Services */
.layer { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.layer > * { min-width: 0; }
.layer .icon { margin: 0 0 16px; color: var(--blue); }
.on-band .layer .icon { color: var(--aqua); }
.svc { list-style: none; margin: 0; padding: 0; }
.svc li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc li:first-child { border-top: 1px solid var(--line); }
.svc h3 { margin-bottom: 0.3em; }
.svc p { color: var(--muted); }
.on-band .svc li { border-color: rgba(255, 255, 255, 0.3); }
.on-band .svc p { color: #E2F0F2; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.price-row > div { background: var(--paper); border-radius: var(--radius); padding: 28px; }
.price-row .fig { font-size: clamp(1.9rem, 3vw, 2.4rem); color: var(--teal-text); line-height: 1.1; }
.tiers summary { cursor: pointer; font-weight: 500; color: var(--teal-text); padding: 12px 0; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.tier { background: var(--paper); border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--blue); }
.tier.featured { border-top-color: var(--green); }
.tier .price { font-size: 1.6rem; color: var(--teal-text); margin-bottom: 0.6em; }
.tier ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.tier li { margin-bottom: 0.4em; }

/* Research */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 48px); }
.stat { padding: 30px 0; border-top: 1px solid var(--line); min-width: 0; }
.stat .fig { font-size: clamp(2.3rem, 4vw, 3.2rem); line-height: 1; color: var(--teal-text); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.stat .src { font-size: 0.86rem; }

/* Journal */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 4vw, 56px); }
.post-card { min-width: 0; }
.post-card a.card-link { color: inherit; text-decoration: none; display: block; }
.post-card .photo { aspect-ratio: 3 / 2; margin-bottom: 20px; }
.post-card h3 { font-size: 1.5rem; font-weight: 400; }
.post-card a.card-link:hover h3 { text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 5px; }
.meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6em; }

/* Articles and prose pages */
.article, .prose { max-width: 720px; margin: 0 auto; }
.article .photo { aspect-ratio: 16 / 9; margin-bottom: 36px; }
.article h2, .prose h2 { font-size: 1.65rem; margin-top: 1.7em; }
.article .lead { font-size: 1.25rem; font-weight: 400; line-height: 1.6; }
.sources { font-size: 0.92rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 48px; padding-top: 28px; }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: 0.5em; }
.disclaimer { font-size: 0.9rem; color: var(--muted); background: var(--sand); border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; }

/* CTA band */
.cta { text-align: center; max-width: 680px; margin: 0 auto; }
.cta p:not(.script) { color: #E4F0E7; }
.cta .btn { margin-top: 12px; }

/* Footer */
.site-footer { position: relative; background: var(--deep); color: #CFE6EA; padding-block: 76px 32px; --bg: var(--deep); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr 0.8fr; gap: 36px; }
.foot-grid > * { min-width: 0; }
.foot-grid img { width: 170px; height: auto; margin-bottom: 16px; }
.site-footer h3 { font-size: 0.98rem; font-weight: 500; color: #fff; letter-spacing: 0.04em; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 2px; }
.site-footer li a { display: inline-block; padding-block: 8px; }
.site-footer a { color: #CFE6EA; text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.18); margin-top: 52px; padding-top: 24px; font-size: 0.85rem; display: grid; gap: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .menu-btn {
    display: inline-flex; flex-direction: column; gap: 5px; position: relative; z-index: 40;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .menu-btn span:not(.sr) { width: 26px; height: 2px; background: #fff; display: block; transition: transform 0.2s, opacity 0.2s; }
  .nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; z-index: 30; background: var(--deep);
    flex-direction: column; justify-content: center; gap: 26px;
    opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav a { font-size: 1.3rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .split, .faq-grid, .layer { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .cols3 { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .posts { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio .mono.lg { max-width: 200px; }
  .price-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps, .stats, .foot-grid { grid-template-columns: 1fr; }
  .brand img { width: 128px; }
  .hero { min-height: 0; padding: 140px 0 64px; }
  .page-hero { min-height: 0; padding: 140px 0 80px; }
  .wave { top: -35px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
