/* ==========================================================================
   Steady Oars Therapy
   Calm-water palette: deep lake blue carries text and buttons, warm sand is
   the page, and oar-wood amber is the one accent. Every text pairing clears
   4.5:1 (measured in tools/contrast.mjs).
   ========================================================================== */

/* Self-hosted static fonts (OFL, from Fontsource 5.3.0; licences in fonts/).
   Not Google Fonts: Google serves Merriweather as one variable file for every
   weight, which WebKit's Windows port renders at 400; separate static files
   are bold everywhere. Self-hosting also means no visitor request reaches
   Google, which matters on a therapy site. */
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/merriweather-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/merriweather-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Merriweather"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/merriweather-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink:        #17252d;
  --lake:       #1d4454;  /* buttons, white text */
  --lake-hover: #153440;
  --lake-deep:  #11303c;  /* consult band */
  --oar:        #c07a3a;  /* decorative rules only */
  --oar-text:   #8a4f1c;  /* kickers on sand/white */
  --oar-light:  #f0c28f;  /* kickers on lake-deep */
  --sand:       #f6f1e8;
  --sand-deep:  #ece3d4;
  --mist:       #dde8eb;
  --white:      #ffffff;
  --muted:      #52626a;
  --line:       rgba(29, 68, 84, 0.14);

  --shell:      1120px;
  --radius:     14px;
  --radius-lg:  22px;

  --shadow-card: 0 18px 44px -24px rgba(17, 48, 60, 0.32);

  --serif: "Merriweather", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* --------------------------------------------------------------- baseline */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Short pages (a new blog, the callback confirmation) keep the footer at the
   bottom of the window instead of leaving a band under it. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--lake); text-underline-offset: 3px; }
a:hover { color: var(--lake-hover); }

:focus-visible { outline: 3px solid var(--oar); outline-offset: 3px; border-radius: 4px; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 560px) { .shell { padding: 0 16px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--lake); color: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; color: var(--white); }

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oar-text);
  margin-bottom: 12px;
}
.kicker-light { color: var(--oar-light); }
.centered { text-align: center; }

.section-title { font-size: clamp(1.75rem, 3.2vw, 2.35rem); margin-bottom: 20px; }
.section-title.centered { margin-bottom: 44px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 14px; }

ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { padding: 8px 0; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; padding-top: 0; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { padding: 9px 18px; font-size: 0.95rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--lake); color: var(--white); }
.btn-primary:hover { background: var(--lake-hover); color: var(--white); }

.btn-ghost { border-color: var(--lake); color: var(--lake); background: transparent; }
.btn-ghost:hover { background: var(--lake); color: var(--white); }

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 232, 0.94);
  -webkit-backdrop-filter: blur(8px); /* Safari/iOS before 18 */
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--lake-deep);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark:hover { color: var(--lake-deep); }

.wordmark-sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oar-text);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
}
.nav a:not(.btn):hover { color: var(--lake); text-decoration: underline; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars { top: 21px; }
.nav-toggle-bars::before { left: 0; top: -7px; }
.nav-toggle-bars::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(17, 48, 60, 0.35);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; }
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: 72px 0 150px;
  background: linear-gradient(180deg, var(--sand) 0%, #eef1ec 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  color: var(--lake-deep);
  margin-bottom: 22px;
}

.lede { font-size: 1.2rem; color: var(--ink); max-width: 36ch; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-portrait {
  margin: 0;
  justify-self: center;
  position: relative;
  width: min(320px, 100%);
}
.hero-portrait img {
  border-radius: 180px 180px var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--oar);
  border-radius: 180px 180px var(--radius-lg) var(--radius-lg);
  z-index: -1;
}

.hero-water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 110px;
}
.hero-water .w1 { fill: var(--mist); }
.hero-water .w2 { fill: var(--white); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 120px; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-portrait { width: min(260px, 72vw); order: -1; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* ------------------------------------------------------------------ about */

.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 56px;
}

.credential {
  color: var(--muted);
  font-size: 0.97rem;
  padding-left: 16px;
  border-left: 3px solid var(--oar);
}

.about-body { max-width: 64ch; }
.about-lead {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--lake-deep);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-lead { font-size: 1.15rem; }
}

/* ------------------------------------------------------------------- help */

.help { background: var(--sand); }

.topic-grid {
  list-style: none;
  margin: 0 auto 48px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 820px;
}
.topic-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  color: var(--lake-deep);
}

.help-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 720px) { .help-cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- fees */

.fees { background: var(--sand-deep); }

.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.fee { text-align: center; }
.fee-label { font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.fee-amount {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--lake-deep);
  line-height: 1.2;
  margin-bottom: 6px;
}
.fee-note { font-size: 0.95rem; color: var(--muted); }

.insurance {
  max-width: 920px;
  margin: 24px auto 0;
  text-align: center;
}
.insurer-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.insurer-list li {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  color: var(--lake-deep);
}
.insurance .fee-note { max-width: 56ch; margin: 0 auto; }

.fee-extras {
  max-width: 920px;
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
  text-align: center;
}
.fee-extras p { margin: 0; }

@media (max-width: 720px) { .fee-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- consult */

.consult { background: var(--lake-deep); color: var(--white); }
.consult .section-title { color: var(--white); }

.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 28px 0 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 56px;
  font-size: 1.08rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--oar-light);
  color: var(--oar-light);
  font-weight: 600;
  display: grid;
  place-items: center;
}
.steps span { font-weight: 600; }

.consult-panel { color: var(--ink); }
.consult-panel p { color: var(--muted); }
.consult-or {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.consult-or p { margin-bottom: 14px; font-size: 0.97rem; }

.callback {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.callback h3 { margin-bottom: 0; }
.callback-note { font-size: 0.93rem; margin: 0; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > label, .field legend { font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 0; }
.field legend { margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input:not([type="radio"]) {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #8fa3ab;
  border-radius: 10px;
  padding: 11px 14px;
  width: 100%;
}
.field input::placeholder { color: #6b7a80; }
.radio { display: inline-flex; align-items: center; gap: 8px; margin-right: 20px; font-size: 0.97rem; }
.radio input { width: 18px; height: 18px; accent-color: var(--lake); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.crisis {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.97rem;
  color: #d4e1e5;
}
.crisis a, .crisis a:hover { color: var(--white); font-weight: 600; }

@media (max-width: 860px) {
  .consult-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----------------------------------------------------------------- office */

.office { background: var(--white); }

.office-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

address { font-style: normal; font-size: 1.15rem; margin-bottom: 20px; }

.office-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 600; }

.office-card { background: var(--sand); box-shadow: none; }

@media (max-width: 720px) { .office-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: var(--sand-deep);
  padding: 48px 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px 40px;
  align-items: start;
}
.footer-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--lake-deep);
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.footer-contact p { margin: 0 0 4px; }
.footer-crisis a { font-weight: 600; }
.footer-side p { margin: 0 0 6px; }
.footer-admin { font-size: 0.85rem; }
.footer-admin a { color: var(--muted); }

/* ------------------------------------------------------------------ store */

.store { padding-bottom: 96px; }
.store-group { padding: 0; margin-bottom: 56px; } /* <section>: skip the page-section padding */
.store { padding-top: 8px; }
.store-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.store-group-head h2 { font-size: 1.6rem; }
.store-group-head .post-meta { margin: 0; }

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-media { aspect-ratio: 4 / 5; background: var(--sand-deep); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 1.2rem; }
.product-price { font-weight: 600; color: var(--lake-deep); margin: 0; font-size: 1.1rem; }
.product-desc { color: var(--muted); font-size: 0.97rem; margin: 0 0 8px; }
.product-body .btn { margin-top: auto; }
.btn-soon { background: var(--sand-deep); color: var(--muted); cursor: default; }

.download-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; justify-items: start; }

.store-note {
  max-width: 760px;
  padding: 24px 28px;
  border-left: 3px solid var(--oar);
  background: var(--white);
  border-radius: var(--radius);
}
.store-note p { margin-bottom: 10px; }

@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- blog */

.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--lake-deep); }
.page-head .lede { margin-top: 14px; margin-bottom: 0; }

.post-list { list-style: none; margin: 0; padding: 0 0 96px; display: grid; gap: 20px; max-width: 760px; }
.post-list .card { padding: 28px 32px; }
.post-list .card.has-thumb {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px 28px 16px 16px;
}
.post-thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand-deep); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-list .card:hover .post-thumb img { transform: scale(1.03); }
@media (max-width: 600px) {
  .post-list .card { padding: 22px 20px; }
  .post-list .card.has-thumb { grid-template-columns: 1fr; gap: 16px; padding: 12px 12px 22px; }
  .post-list .card.has-thumb .post-text { padding: 0 8px; }
  .post-thumb { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) { .post-thumb img { transition: none; } }
.post-list h2 { font-size: 1.4rem; margin-bottom: 8px; }
.post-list h2 a { color: var(--lake-deep); text-decoration: none; }
.post-list h2 a:hover { text-decoration: underline; }

.post-meta { color: var(--muted); font-size: 0.93rem; margin-bottom: 10px; }

.empty { color: var(--muted); padding-bottom: 96px; max-width: 60ch; }

.post { padding: 64px 0 96px; }
.post-body { max-width: 68ch; }
.post-body h1 { font-size: clamp(2rem, 4vw, 2.7rem); color: var(--lake-deep); margin-bottom: 12px; }
.post-body h2 { font-size: 1.55rem; margin: 1.8em 0 0.6em; }
.post-body h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.post-body blockquote {
  margin: 1.4em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--oar);
  font-family: var(--serif);
  color: var(--lake-deep);
}
.post-body img { border-radius: var(--radius); margin: 1.4em 0; }

.post-cta {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.post-cta p { margin-bottom: 16px; }
.back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
