/* ============================================
   STARRETT WELLNESS GROUP — DESIGN SYSTEM
   Signature motif: "The Steadying Line" —
   a single line that begins tangled and resolves
   into something steady. Echoes the brand's core
   promise: making sense of the overwhelming.
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color tokens */
  --ink: #2B3530;
  --ink-soft: #4A544E;
  --canvas: #EAE6DC;
  --canvas-deep: #DFDACC;
  --paper: #F7F4EC;
  --white: #FFFEFA;
  --slate: #64798A;
  --slate-deep: #435264;
  --slate-pale: #DCE3E7;
  --clay: #B98977;
  --clay-soft: #E7D6CD;
  --line-hair: rgba(43, 53, 48, 0.14);
  --line-hair-strong: rgba(43, 53, 48, 0.24);
  --shadow: 0 24px 48px -24px rgba(43, 53, 48, 0.28);

  /* Type */
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  /* Rhythm */
  --gutter: clamp(1.5rem, 5vw, 4.5rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);
  --radius: 3px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 4.8vw, 4.1rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-body); }

p { max-width: 62ch; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--clay);
  display: inline-block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 780px; }
.container--mid { max-width: 940px; }

section { padding: var(--section-pad) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.7em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color .25s ease;
}
.btn-primary {
  background: var(--slate-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-hair-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--slate-deep); color: var(--slate-deep); }
.btn-clay {
  background: var(--clay);
  color: var(--white);
}
.btn-clay:hover { background: #A47862; transform: translateY(-1px); }
.btn-sm { padding: 0.65em 1.2em; font-size: 0.85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(234, 230, 220, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-hair);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.brand .brand-mark { color: var(--clay); font-style: italic; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { position: relative; padding: 0.2em 0; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--clay);
}
.nav-cta { display: flex; align-items: center; gap: 1.2rem; }
.nav-phone { font-size: 0.9rem; font-weight: 600; color: var(--slate-deep); white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: var(--paper); flex-direction: column; justify-content: flex-start; padding: 2.5rem var(--gutter); gap: 1.6rem; font-size: 1.1rem; transform: translateX(100%); transition: transform 0.35s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-phone { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-copy p.lede { margin-top: 1.3rem; }
.hero-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--ink-soft); }

.steady-line-wrap { position: relative; }
.steady-line-wrap svg { width: 100%; height: auto; }
.steady-path {
  fill: none;
  stroke: var(--slate);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.6s ease forwards 0.3s;
}
.steady-path.clay { stroke: var(--clay); opacity: 0.55; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .steady-path { stroke-dashoffset: 0; animation: none; } }

/* ---------- Section dividers using the line motif ---------- */
.motif-divider { display: flex; justify-content: center; padding: 0 0 var(--section-pad); }
.motif-divider svg { width: min(360px, 80%); height: 28px; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-hair);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.card-grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Sections with alternating tone ---------- */
.section-deep {
  background: var(--slate-deep);
  color: var(--white);
}
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep .eyebrow { color: var(--clay-soft); }
.section-deep .eyebrow::before { background: var(--clay-soft); }
.section-deep p { color: rgba(255,255,255,0.82); }

.section-paper { background: var(--paper); }
.section-white { background: var(--white); }

/* ---------- Problem / voice fragments ---------- */
.voice-fragments { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
.voice-fragment {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--ink-soft);
  border-left: 2px solid var(--clay);
  padding-left: 1.3rem;
  max-width: 60ch;
}

/* ---------- Guide / About preview ---------- */
.guide-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } }
.portrait-frame {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--slate-pale), var(--canvas-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--line-hair-strong);
  overflow: hidden;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.portrait-monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 5rem;
  color: var(--slate-deep);
  opacity: 0.65;
}
.portrait-caption {
  position: absolute;
  bottom: 1rem; left: 1rem; right: 1rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.7);
  padding: 0.4em 0.7em;
  border-radius: 2px;
}

.credential-list { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.credential-list li { display: flex; gap: 0.9rem; font-size: 0.95rem; align-items: flex-start; }
.credential-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.55em;
  background: var(--clay);
  border-radius: 50%;
  flex: none;
}

/* ---------- Plan / process (a real sequence, so numbering is earned) ---------- */
.plan-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
}
@media (max-width: 900px) { .plan-steps { grid-template-columns: 1fr; gap: 2.2rem; } }
.plan-step { position: relative; }
.plan-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--clay);
  display: block;
  margin-bottom: 0.6rem;
}
.plan-step h3 { margin-bottom: 0.6rem; }
.plan-step p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem 3rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2.4rem;
  margin-top: 2.4rem;
  border-top: 1px solid var(--line-hair);
}
.trust-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.88rem; color: var(--ink-soft); }
.trust-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--slate); flex: none; }

/* ---------- Insurance badges ---------- */
.badge-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.badge {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6em 1.1em;
  border: 1px solid var(--line-hair-strong);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
}

/* ---------- Tag pills (modalities) ---------- */
.pill-grid { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.pill {
  font-size: 0.82rem;
  padding: 0.5em 1em;
  border-radius: 999px;
  background: var(--slate-pale);
  color: var(--slate-deep);
  font-weight: 500;
}

/* ---------- Service cards ---------- */
.service-card {
  padding: 2.4rem;
  background: var(--white);
  border: 1px solid var(--line-hair);
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-hair-strong); }
.service-card .eyebrow { margin-bottom: 0.2rem; }
.service-card a.card-link { margin-top: auto; font-weight: 600; font-size: 0.88rem; color: var(--slate-deep); display: inline-flex; align-items: center; gap: 0.4em; }
.service-card a.card-link:hover { color: var(--clay); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 { color: var(--white); max-width: 24ch; margin: 0 auto; }
.cta-banner p { color: rgba(255,255,255,0.78); margin: 1.1rem auto 2rem; }
.cta-banner .btn-primary { background: var(--clay); }
.cta-banner .btn-primary:hover { background: #A47862; }

/* ---------- Testimonial / endorsement ---------- */
.endorsement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--white);
  max-width: 46ch;
  line-height: 1.4;
}
.endorsement-who { margin-top: 1.4rem; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--clay-soft); font-weight: 600; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 1.4rem; margin-top: 2rem; }
.form-row { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 0.85em 1em;
  border: 1px solid var(--line-hair-strong);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--slate);
  outline-offset: 1px;
  border-color: var(--slate);
}
textarea { resize: vertical; min-height: 110px; }
.form-disclaimer {
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--slate-pale);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-top: 0.6rem;
}
.form-success {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line-hair-strong);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}
.form-success.visible { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 4.5rem 0 2.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--white); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.7rem; font-size: 0.88rem; }
.footer-col a:hover { color: var(--clay-soft); }
.footer-legal {
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  text-align: center;
}
.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.footer-legal-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--clay-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(231, 214, 205, 0.4);
}
.footer-legal-links a:hover { color: var(--white); text-decoration-color: var(--white); }
.footer-legal-sep { color: rgba(255,255,255,0.3); font-size: 0.85rem; }
.footer-copyright { font-size: 0.76rem; color: rgba(255,255,255,0.5); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page header (interior pages) ---------- */
.page-header { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-header .eyebrow { margin-bottom: 1rem; }
.page-header p.lede { margin-top: 1.2rem; }

.photo-block {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-hair-strong);
  background: linear-gradient(155deg, var(--canvas-deep), var(--slate-pale));
}
.photo-block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-block.ratio-wide { aspect-ratio: 16/7; }
.photo-block.ratio-square { aspect-ratio: 1/1; }
.photo-block.ratio-portrait { aspect-ratio: 4/5; }
.photo-placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  gap: 0.4rem;
}
.photo-placeholder-label .ph-file {
  font-family: 'Work Sans', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.75);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  color: var(--slate-deep);
  font-weight: 600;
}
.photo-placeholder-label .ph-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 42ch;
}
.photo-block.has-image .photo-placeholder-label { display: none; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
