/*
Theme Name: Way of Life Wellness
Theme URI: https://wayolw.com
Author: Way of Life Wellness
Description: Custom theme for Way of Life Wellness: precision medicine, weight loss, hormone optimization, and telehealth wellness care.
Version: 0.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: wayolw
*/

/* ==========================================================================
   Brand typeface: Wondra (licensed, self-hosted; not on Google Fonts)
   ========================================================================== */
@font-face {
  font-family: 'Wondra';
  src: url('assets/fonts/Wondra.woff2') format('woff2'),
       url('assets/fonts/Wondra.otf') format('opentype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Design tokens
   Way of Life Wellness commits to one visual world: a dark, clinical-
   editorial palette carried edge to edge, with the brand's purple/teal/mint
   gradient used as a deliberate accent rather than a background wash.
   Purple #5E17A9 / Teal #1C7CA2 / Mint #2CF9C4
   ========================================================================== */
:root {
  color-scheme: dark;

  /* surfaces */
  --paper: #130D1A;       /* page background */
  --paper-dim: #180F23;   /* alternate section background */
  --surface: #211830;     /* raised card */
  --surface-2: #2B2140;   /* hover / higher surface */
  --paper-line: rgba(243, 236, 250, 0.09);
  --line-2: rgba(243, 236, 250, 0.18);

  /* text */
  --ink: #F2ECF8;         /* primary text */
  --ink-soft: #ABA1BE;    /* secondary text */
  --ink-mute: #7F7593;    /* tertiary / mono labels */

  /* brand */
  --brand-purple: #5E17A9;
  --brand-purple-deep: #9D5CE6;      /* lifted accent for text/icons on dark */
  --brand-purple-onlight: color-mix(in oklch, #5E17A9 72%, black); /* for text on light/ink-colored buttons */
  --brand-purple-pale: color-mix(in srgb, #5E17A9 20%, #211830);
  --brand-purple-ink: #FFFFFF;

  --brand-teal: #1C7CA2;
  --brand-teal-deep: color-mix(in oklch, #1C7CA2 55%, black);
  --brand-teal-pale: color-mix(in srgb, #1C7CA2 18%, #211830);
  --brand-teal-ink: #FFFFFF;

  --brand-mint: #2CF9C4;
  --brand-mint-deep: color-mix(in oklch, #2CF9C4 45%, black);

  --brand-gradient: linear-gradient(103deg, #5E17A9 0%, #1C7CA2 55%, #2CF9C4 116%);

  --font-display: 'Libre Baskerville', Baskerville, Georgia, 'Times New Roman', serif; /* general headings/UI display type: regal, legible, professional */
  --font-logo: 'Wondra', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* reserved for the "Way of Life Wellness" logotype only, matching the real logo mark */
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace; /* eyebrows, lab-style data, mono labels */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --space-5: clamp(2rem, 1.5rem + 2vw, 3rem);
  --space-6: clamp(3rem, 2rem + 4vw, 5.5rem);
  --space-7: clamp(4rem, 2.5rem + 6vw, 8rem);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 22px 48px -26px rgba(94, 23, 169, 0.6);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, 0.65);

  --max-width: 1280px;
  --max-width-narrow: 760px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 0.5s;
  --dur-2: 0.9s;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  position: relative;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* fine film grain over everything: tactile depth on the dark ground */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-purple-deep); text-decoration: none; text-decoration-thickness: 1.5px; text-underline-offset: 0.15em; }
a:hover { color: var(--brand-mint); }
.entry-content a, .disclaimer a, .footer-brand a { text-decoration: underline; }
.entry-content a:hover, .disclaimer a:hover, .footer-brand a:hover { text-decoration-color: var(--brand-mint); }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-3);
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.6rem + 4.8vw, 5.5rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 var(--space-3); color: var(--ink); max-width: 68ch; }
p.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 52ch; }
:focus-visible { outline: 3px solid var(--brand-purple-deep); outline-offset: 3px; }
::selection { background: var(--brand-mint); color: #10131A; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-4); }
.container--narrow { max-width: var(--max-width-narrow); }
.section { position: relative; padding: var(--space-7) 0; overflow: hidden; }
.section--alt { background: var(--paper-dim); }
.section--teal { background: var(--brand-teal); color: var(--brand-teal-ink); }
.section--teal h2, .section--teal h3, .section--teal p { color: var(--brand-teal-ink); }
.section--purple { background: var(--brand-purple); color: var(--brand-purple-ink); }
.section--purple h2, .section--purple h3, .section--purple p { color: var(--brand-purple-ink); }
.text-center { text-align: center; }

/* ambient glow: one soft radial bloom per section, positioned via
   modifier classes so no two adjacent sections repeat the same spot */
.glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.glow--purple-tr { top: -16rem; right: -14rem; width: 46rem; height: 46rem; background: radial-gradient(circle, rgba(94, 23, 169, 0.36), transparent 68%); }
.glow--teal-bl { bottom: -18rem; left: -14rem; width: 46rem; height: 46rem; background: radial-gradient(circle, rgba(28, 124, 162, 0.34), transparent 68%); }
.glow--purple-tl { top: -14rem; left: -12rem; width: 44rem; height: 44rem; background: radial-gradient(circle, rgba(94, 23, 169, 0.28), transparent 68%); }
.glow--mint-tr { top: -14rem; right: -12rem; width: 42rem; height: 42rem; background: radial-gradient(circle, rgba(44, 249, 196, 0.14), transparent 66%); }
.section > .container, .section > .glow + .container { position: relative; z-index: 1; }

/* One deliberate kicker system: a small mark + label, used once near the
   top of a page, not mechanically above every section. */
.kicker, .eyebrow { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--space-2); }
.kicker::before, .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-mint) 26%, transparent); display: inline-block; flex-shrink: 0; }
.section--teal .kicker, .section--purple .kicker, .section--teal .eyebrow, .section--purple .eyebrow { color: inherit; opacity: 0.85; }
.section--teal .kicker::before, .section--purple .kicker::before, .section--teal .eyebrow::before, .section--purple .eyebrow::before { background: currentColor; box-shadow: none; }

/* ==========================================================================
   Motion system: IntersectionObserver-driven, respects reduced motion
   ========================================================================== */
/* Visible by default (no-JS, print, reduced-motion, or JS-not-yet-run all
   land here). Only an html.js page with motion enabled gates the initial
   frame, and even then a JS timeout below guarantees content isn't
   permanently hidden if IntersectionObserver never fires. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
  .reveal-group .reveal:nth-child(1) { transition-delay: 0.03s; }
  .reveal-group .reveal:nth-child(2) { transition-delay: 0.11s; }
  .reveal-group .reveal:nth-child(3) { transition-delay: 0.19s; }
  .reveal-group .reveal:nth-child(4) { transition-delay: 0.27s; }
  .reveal-group .reveal:nth-child(5) { transition-delay: 0.35s; }
  .reveal-group .reveal:nth-child(6) { transition-delay: 0.43s; }

  /* hero load choreography */
  html.js .hero-copy > * { opacity: 0; transform: translateY(18px); }
  html.js.ready .hero-copy > * { opacity: 1; transform: none; transition: opacity 0.65s ease, transform 0.65s var(--ease-out); }
  html.js.ready .hero-copy > *:nth-child(1) { transition-delay: 0.05s; }
  html.js.ready .hero-copy > *:nth-child(2) { transition-delay: 0.14s; }
  html.js.ready .hero-copy > *:nth-child(3) { transition-delay: 0.23s; }
  html.js.ready .hero-copy > *:nth-child(4) { transition-delay: 0.32s; }
  html.js.ready .hero-copy > *:nth-child(5) { transition-delay: 0.40s; }
  html.js .hero-figure { opacity: 0; transform: translateY(28px) scale(0.985); }
  html.js.ready .hero-figure { opacity: 1; transform: none; transition: opacity 0.9s ease 0.3s, transform 1s var(--ease-out) 0.3s; }
  html.js .lab-chip { opacity: 0; transform: translateY(16px); }
  html.js.ready .lab-chip { opacity: 1; transform: none; transition: opacity 0.6s ease 0.95s, transform 0.6s var(--ease-out) 0.95s; }
  html.js:not(.ready) .lab-track i { width: 0 !important; }
  html.js .lab-track i { transition: width 1s cubic-bezier(0.3, 0.8, 0.3, 1) 1.1s; }
  .hero-figure img { transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }
}

/* scroll-progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 200;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.7em; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background-image: var(--brand-gradient); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: var(--shadow-md); color: #FFFFFF; }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.section--teal .btn-outline, .section--purple .btn-outline { border-color: rgba(255, 255, 255, 0.55); color: inherit; }
.section--teal .btn-outline:hover { background: var(--brand-teal-ink); color: var(--brand-teal-deep); }
.section--purple .btn-outline:hover { background: var(--brand-purple-ink); color: var(--brand-purple-onlight); }
.btn-block { width: 100%; }

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.header-promo {
  background: var(--paper-dim);
  color: var(--ink-mute);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 0.6em var(--space-3);
  border-bottom: 1px solid var(--paper-line);
}
.header-promo a { color: var(--brand-mint); text-decoration: underline; text-decoration-thickness: 1px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--paper-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap;
  gap: var(--space-3); padding: var(--space-3) var(--space-4);
  max-width: var(--max-width); margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-logo); font-size: 1.35rem; font-weight: 600; color: var(--ink); flex-shrink: 0; white-space: nowrap; }
.site-logo:hover { text-decoration: none; color: var(--ink); }
.site-logo-mark { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.footer-logo-mark { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }

.primary-nav { flex-shrink: 1; min-width: 0; }
.primary-nav ul { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; }
.primary-nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.96rem; text-decoration: none; position: relative; }
.primary-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background-image: var(--brand-gradient); transition: right 0.3s var(--ease-out); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { right: 0; }

.header-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-2); color: var(--ink); border-radius: var(--radius-sm); padding: 0.5em 0.7em; cursor: pointer; }
.btn-primary-label-short { display: none; }

@media (max-width: 880px) {
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--paper-line); box-shadow: var(--shadow-lg); display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: var(--space-3) var(--space-4); white-space: normal; }
  .primary-nav li { border-bottom: 1px solid var(--paper-line); }
  .primary-nav a { display: block; padding: var(--space-3) 0; }
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-primary-label { display: none; }
  .btn-primary-label-short { display: inline; }
}
@media (max-width: 420px) {
  .site-logo span { display: none; }
}

/* ==========================================================================
   Hero: dark, editorial, image-led (regenerative medicine)
   ========================================================================== */
.hero {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2.5rem + 5vw, 7rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 46rem; height: 46rem;
  right: -14rem; top: -18rem;
  background: radial-gradient(circle, rgba(44, 249, 196, 0.26), transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 44rem; height: 44rem;
  left: -20rem; bottom: -22rem;
  background: radial-gradient(circle, rgba(94, 23, 169, 0.42), transparent 66%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.95fr; gap: var(--space-6); align-items: center; }
.hero-eyebrow { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--space-3); display: inline-flex; align-items: center; gap: 0.7em; }
.hero-eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-mint) 26%, transparent); flex-shrink: 0; }
.hero h1 { color: #FFFFFF; max-width: 16ch; font-size: clamp(2.5rem, 1.7rem + 2.7vw, 4rem); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brand-mint); }
.hero .lede { color: var(--ink-soft); font-size: 1.18rem; max-width: 46ch; }
.hero-actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-4); }
.hero-note { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-mute); margin-top: var(--space-3); }
.hero-facts {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--paper-line);
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.hero-facts div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-facts b { font-family: var(--font-mono); font-weight: 500; font-size: 1.05rem; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.hero-facts span { font-size: 0.8rem; letter-spacing: 0.03em; color: var(--ink-mute); }

/* Fixed aspect-ratio matching the (background-extended) source photo, so the
   whole vial row is always visible and the lab chip sits in the empty blue
   area above it instead of covering the vials. */
.hero-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 15; }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.hero-figure::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--brand-gradient);
  mix-blend-mode: color;
  opacity: 0.4;
}
.lab-chip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: min(15.5rem, calc(100% - 2rem));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem 0.9rem;
  box-shadow: var(--shadow-lg);
}
.lab-chip h4 { margin: 0 0 0.7rem; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); }
.lab-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.4rem 0.8rem; padding: 0.4rem 0; border-top: 1px solid var(--paper-line); font-size: 0.86rem; color: #FFFFFF; }
.lab-row:first-of-type { border-top: 0; }
.lab-track { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.lab-track i { display: block; height: 100%; border-radius: 3px; background-image: var(--brand-gradient); }
.lab-tag { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2em 0.6em; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand-mint) 45%, transparent); color: var(--brand-mint); white-space: nowrap; }
.lab-tag.watch { border-color: color-mix(in srgb, #F2B705 55%, transparent); color: #F7C948; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .hero-figure { max-width: 32rem; aspect-ratio: auto; }
  .hero-figure img { height: auto; aspect-ratio: 4 / 3; }
  .lab-chip { position: static; width: auto; border-width: 1px 0 0; border-radius: 0; box-shadow: none; backdrop-filter: none; background: var(--surface); }
}

/* ==========================================================================
   Condition ticker
   ========================================================================== */
.ticker { background: var(--paper-dim); border-block: 1px solid var(--paper-line); overflow: hidden; padding: 0.9rem 0; }
.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: wayolw-slide 44s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 3rem; white-space: nowrap; }
.ticker-track span::after { content: "\2726"; color: var(--brand-teal); }
@keyframes wayolw-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; } }

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust-bar { padding: var(--space-4) 0; border-bottom: 1px solid var(--paper-line); }
.trust-bar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; }
.trust-bar li { display: flex; align-items: baseline; gap: 0.6em; color: var(--ink-soft); font-size: 0.95rem; font-weight: 600; }
.trust-bar li strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 700; }

/* ==========================================================================
   How it works: real numbered sequence (legitimate use of numerals)
   ========================================================================== */
.steps-header { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-5); align-items: end; margin-bottom: var(--space-5); }
.steps-list { border-top: 1px solid var(--paper-line); }
.step-row { display: grid; grid-template-columns: 5rem 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-bottom: 1px solid var(--paper-line); align-items: start; }
.step-row .step-num { font-family: var(--font-display); font-size: 2.75rem; color: var(--ink-mute); line-height: 1; transition: color 0.4s var(--ease-out); -webkit-text-stroke: 1px var(--line-2); }
.step-row:hover .step-num { color: var(--brand-mint); -webkit-text-stroke: 0; }
.step-row h3 { margin-bottom: 0.4em; }
.step-row p { margin: 0; }
.steps--2col .step-row { grid-template-columns: 4rem 1fr; }
@media (max-width: 780px) { .steps-header { grid-template-columns: 1fr; } .step-row { grid-template-columns: 3.2rem 1fr; } .step-row .step-num { font-size: 2rem; } }

/* legacy card-based steps used on interior pages (how-it-works, etc.) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); margin-top: var(--space-5); }
.steps--2col { grid-template-columns: repeat(2, 1fr); }
.step { background: var(--surface); border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: var(--space-5); transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.step:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background-image: var(--brand-gradient); color: #FFFFFF; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: var(--space-3); }
@media (max-width: 880px) { .steps, .steps--2col { grid-template-columns: 1fr; } }

/* ==========================================================================
   Services: editorial expanding rows, not icon-tile cards
   ========================================================================== */
.service-list { border-top: 1px solid var(--paper-line); }
.service-row { border-bottom: 1px solid var(--paper-line); }
.service-row-link {
  display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-2); text-decoration: none; color: var(--ink);
  transition: padding-left 0.4s var(--ease-out), background-color 0.4s var(--ease-out);
}
.service-row-link:hover { padding-left: var(--space-3); background: var(--brand-purple-pale); text-decoration: none; color: var(--ink); }
.service-row-index { font-family: var(--font-mono); font-size: 1rem; color: var(--ink-mute); transition: color 0.3s ease; }
.service-row-link:hover .service-row-index { color: var(--brand-mint); }
.service-row-title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
.service-row-summary { display: block; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--ink-soft); margin-top: 0.3em; max-width: 52ch; }
.service-row-arrow { font-size: 1.5rem; color: var(--brand-mint); transform: translateX(-8px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.4s var(--ease-out); }
.service-row-link:hover .service-row-arrow { transform: translateX(0); opacity: 1; }
@media (max-width: 700px) {
  .service-row-link { grid-template-columns: 2.4rem 1fr; }
  .service-row-arrow { display: none; }
}

/* Service detail card (used on services index + "explore other services") */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .card-grid, .card-grid--2 { grid-template-columns: 1fr; } }

.service-card { background: var(--surface); border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); transition: box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out), border-color 0.35s ease; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--line-2); }
.service-card .icon { font-family: var(--font-display); font-size: 1.6rem; color: var(--brand-purple-deep); margin-bottom: var(--space-1); }
.service-card h3 { margin-bottom: var(--space-1); font-size: 1.3rem; }
.service-card .card-link { font-weight: 700; margin-top: auto; color: var(--brand-purple-deep); text-decoration: none; }
.service-card .card-link:hover { color: var(--brand-mint); text-decoration: underline; }

/* Service detail tabs: homepage "What we help with" */
.svc-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; margin-top: var(--space-5); }
.svc-tabs { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.svc-tab {
  all: unset;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1rem;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-line);
  background: var(--surface);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.svc-tab:hover { background: var(--surface-2); border-color: var(--line-2); }
.svc-tab:focus-visible { outline: 2px solid var(--brand-purple-deep); outline-offset: 2px; }
.svc-tab .idx { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-mute); padding-top: 0.25rem; }
.svc-tab .t { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; color: var(--ink); }
.svc-tab .d { grid-column: 2; font-size: 0.9rem; color: var(--ink-soft); }
.svc-tab[aria-selected="true"] { position: relative; background: var(--surface-2); border-color: var(--line-2); box-shadow: 0 22px 50px -26px rgba(94, 23, 169, 0.8); }
.svc-tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px; border-radius: 3px; background-image: var(--brand-gradient); }
.svc-tab[aria-selected="true"] .idx { color: var(--brand-mint); }

.svc-panel { position: relative; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.8rem); overflow: hidden; }
.svc-panel::before { content: ""; position: absolute; right: -30%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, color-mix(in srgb, var(--brand-teal) 42%, transparent), transparent 70%); pointer-events: none; }
.svc-content { position: relative; display: none; }
.svc-content.active { display: block; animation: wayolw-fade 0.4s ease both; }
@keyframes wayolw-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.svc-content h3 { color: #FFFFFF; font-size: clamp(1.4rem, 1rem + 1.4vw, 1.95rem); }
.svc-content > p { margin-top: 1rem; color: var(--ink-soft); }
.svc-content .incl { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--paper-line); }
.svc-content .incl span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; padding: 0; }
.chips li { list-style: none; font-size: 0.84rem; padding: 0.4em 0.85em; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); }
.svc-content .more { margin-top: 1.7rem; display: inline-block; color: var(--brand-mint); font-weight: 600; }
@media (max-width: 820px) {
  .svc-layout { grid-template-columns: 1fr; }
  .svc-tab .d { display: none; }
  .svc-tab { grid-template-columns: auto 1fr; align-items: center; }
}

/* ==========================================================================
   Cards: membership / pricing
   ========================================================================== */
.tier-card { background: var(--surface); border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; }
.tier-card--featured { border-color: var(--brand-purple-deep); box-shadow: var(--shadow-md); position: relative; background: var(--surface-2); }
.tier-card--featured::before { content: "Most Popular"; position: absolute; top: -0.8em; left: var(--space-4); background-image: var(--brand-gradient); color: #FFFFFF; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.35em 0.8em; border-radius: 999px; }
.tier-price { font-family: var(--font-display); font-size: 2.5rem; margin: var(--space-2) 0; letter-spacing: -0.02em; }
.tier-price span { font-size: 1rem; font-family: var(--font-body); font-weight: 500; color: var(--ink-soft); }
.tier-card ul { list-style: none; padding: 0; margin: var(--space-3) 0; display: flex; flex-direction: column; gap: 0.6em; }
.tier-card li { display: flex; gap: 0.6em; align-items: flex-start; }
.tier-card li::before { content: "→"; color: var(--brand-mint); font-weight: 700; }
.tier-card .btn { margin-top: auto; }

/* ==========================================================================
   Testimonials: large pull-quote, not identical cards (interior pages)
   ========================================================================== */
.testimonial-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: var(--space-5); border-top: 1px solid var(--paper-line); }
@media (max-width: 960px) { .testimonial-row { grid-template-columns: 1fr; } }
.testimonial-card { padding: var(--space-5) var(--space-4) var(--space-5) 0; border-right: 1px solid var(--paper-line); }
.testimonial-row .testimonial-card:last-child { border-right: none; }
.testimonial-card .stars { color: var(--brand-mint); letter-spacing: 0.1em; margin-bottom: var(--space-2); font-size: 0.9rem; }
.testimonial-card .quote { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.35; letter-spacing: -0.01em; }
.testimonial-card .attribution { margin-top: var(--space-3); font-weight: 600; font-size: 0.88rem; opacity: 0.75; }
@media (max-width: 960px) { .testimonial-card { border-right: none; border-bottom: 1px solid var(--paper-line); padding-right: 0; } }

/* Testimonial / voices grid: homepage "Results" */
.voice-grid { columns: 3 260px; column-gap: 1.4rem; margin-top: var(--space-5); }
.voice { position: relative; break-inside: avoid; margin-bottom: 1.4rem; background: var(--surface); border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: 1.7rem 1.5rem 1.5rem; }
.voice::before { content: "\201C"; position: absolute; top: 0.15rem; left: 0.75rem; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: color-mix(in srgb, var(--brand-mint) 34%, transparent); }
.voice p { position: relative; font-family: var(--font-display); font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.voice .who { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); }
.voice.hl { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box; box-shadow: 0 22px 54px -28px rgba(44, 249, 196, 0.4); }
.voice.hl p em { font-style: normal; background: linear-gradient(transparent 60%, color-mix(in srgb, var(--brand-mint) 45%, transparent) 0); }
@media (max-width: 760px) { .voice-grid { columns: 1; } }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { position: relative; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--radius-lg); padding: var(--space-6); text-align: center; margin: var(--space-6) 0; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(30rem 22rem at 50% 30%, rgba(94, 23, 169, 0.35), transparent 65%); pointer-events: none; }
.cta-banner h2, .cta-banner p { position: relative; color: var(--ink); }
.cta-banner .btn-actions { position: relative; display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-top: var(--space-4); }
.cta-banner .btn-outline { border-color: var(--line-2); color: var(--ink); }
.cta-banner .btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq-list { max-width: var(--max-width-narrow); margin: var(--space-5) auto 0; }
.faq-item { border-bottom: 1px solid var(--paper-line); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: var(--space-4) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: 1.15rem; cursor: pointer; color: var(--ink); }
.faq-question .icon { flex-shrink: 0; transition: transform 0.35s var(--ease-out); font-size: 1.3rem; color: var(--brand-mint); }
.faq-item.is-open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-out); }
.faq-answer-inner { padding-bottom: var(--space-4); color: var(--ink-soft); }
.faq-item.is-open .faq-answer { max-height: 600px; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; gap: var(--space-3); max-width: var(--max-width-narrow); }
label { display: block; font-weight: 700; margin-bottom: 0.4em; font-size: 0.9rem; color: var(--ink); }
input, textarea, select {
  width: 100%; padding: 0.8em 0.95em; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--surface); color: var(--ink);
  transition: border-color 0.25s ease;
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:focus, textarea:focus, select:focus { border-color: var(--brand-purple-deep); }

.scheduler-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--paper-line); min-height: 640px; background: var(--surface); }
.scheduler-embed iframe { width: 100%; height: 100%; min-height: 640px; border: 0; }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-hero { padding: var(--space-6) 0 var(--space-5); background: var(--brand-teal); color: var(--brand-teal-ink); text-align: center; }
.page-hero h1 { color: var(--brand-teal-ink); }
.page-hero .kicker, .page-hero .eyebrow { color: inherit; opacity: 0.8; }
.page-hero .lede { color: var(--brand-teal-ink); opacity: 0.85; }

/* ==========================================================================
   Provider / team (interior "About" page)
   ========================================================================== */
.provider-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-6); align-items: center; }
.provider-grid--contact { grid-template-columns: 1fr 1.3fr; align-items: start; }
.provider-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; background: var(--paper-dim); }
.provider-photo img { width: 100%; height: 100%; object-fit: cover; }
.credentials-list { list-style: none; padding: 0; margin: var(--space-3) 0; display: flex; flex-direction: column; gap: 0.5em; }
.credentials-list li { display: flex; gap: 0.6em; }
.credentials-list li::before { content: "→"; color: var(--brand-mint); font-weight: 700; }
@media (max-width: 880px) { .provider-grid { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-5); }
.team-grid--support { grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 720px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) and (min-width: 721px) { .team-grid--support { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .team-grid--support { grid-template-columns: 1fr; } }

.team-card { background: var(--surface); border: 1px solid var(--paper-line); border-radius: var(--radius-md); padding: var(--space-5); text-align: center; transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto var(--space-3); background: var(--paper-dim); filter: saturate(0.94); transition: filter 0.4s ease; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-card:hover .team-photo { filter: saturate(1); }
.team-card h3 { margin-bottom: var(--space-1); font-size: 1.25rem; }
.team-card .tag { margin-bottom: var(--space-3); }

/* Homepage care-team layout: leadership pair + support grid, matched
   backdrops on the team photos */
.team-lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 1.8rem); max-width: 44rem; margin-top: var(--space-5); }
.team-support { margin-top: clamp(1.4rem, 3vw, 2.2rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.provider { background: var(--surface); border: 1px solid var(--paper-line); border-radius: var(--radius-md); overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.provider:hover { border-color: var(--line-2); box-shadow: 0 26px 54px -30px rgba(94, 23, 169, 0.75); transform: translateY(-4px); }
.provider .pic { aspect-ratio: 1 / 1; background-size: cover; background-position: center top; background-color: #EFEBF4; position: relative; filter: saturate(0.9) contrast(1.02); transition: filter 0.5s ease, transform 0.6s var(--ease-out); }
.team-lead .provider .pic { aspect-ratio: 4 / 4.2; }
.provider .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, color-mix(in srgb, var(--surface) 94%, transparent)); }
.provider:hover .pic { filter: saturate(1) contrast(1.02); transform: scale(1.04); }
.provider .meta { padding: 0.95rem 1rem 1.15rem; position: relative; }
.team-lead .provider .meta { padding: 1.1rem 1.2rem 1.35rem; }
.provider .meta b { display: block; font-family: var(--font-display); font-size: 1rem; line-height: 1.25; color: var(--ink); }
.team-lead .provider .meta b { font-size: 1.15rem; }
.provider .meta .role { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brand-mint); margin-top: 0.4rem; }
.provider .meta p { margin-top: 0.55rem; font-size: 0.85rem; line-height: 1.5; color: var(--ink-soft); }
.team-support .provider .meta p { font-size: 0.8rem; }
.team-note { margin-top: clamp(2.4rem, 5vw, 3.4rem); display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.team-note p { font-family: var(--font-display); font-size: 1.15rem; max-width: 24rem; color: var(--ink); margin: 0; }
@media (max-width: 860px) { .team-support { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .team-lead { grid-template-columns: 1fr; max-width: 22rem; }
  .team-support { grid-template-columns: repeat(2, 1fr); }
}

.review-byline { display: flex; align-items: center; gap: 0.6em; font-size: 0.9rem; color: var(--ink-soft); padding: var(--space-2) 0 var(--space-4); border-bottom: 1px solid var(--paper-line); margin-bottom: var(--space-4); }
.review-byline .badge { color: var(--brand-mint); font-weight: 700; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--paper); color: var(--ink-soft); padding: var(--space-6) 0 var(--space-4); margin-top: var(--space-6); border-top: 1px solid var(--paper-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-5); }
.footer-brand .site-logo { color: var(--ink); }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--ink-mute); margin: 0.6em 0 0; }
.site-footer h4 { color: var(--ink-mute); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: var(--space-3); font-weight: 500; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--brand-mint); text-decoration: underline; }
.footer-brand p { color: var(--ink-mute); max-width: 32ch; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55em; }
.footer-bottom { border-top: 1px solid var(--paper-line); margin-top: var(--space-5); padding-top: var(--space-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); font-size: 0.85rem; color: var(--ink-mute); }
.footer-bottom ul { list-style: none; display: flex; gap: var(--space-4); margin: 0; padding: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Quick answer (AEO callout)
   ========================================================================== */
.quick-answer { background: var(--brand-purple-pale); border: 1px solid var(--line-2); border-radius: var(--radius-md); padding: var(--space-4); margin-bottom: var(--space-5); }
.quick-answer .kicker { color: var(--brand-purple-deep); }
.quick-answer p { margin: 0; color: var(--ink); font-size: 1.05rem; }

/* ==========================================================================
   Utility
   ========================================================================== */
.disclaimer { font-size: 0.82rem; color: var(--ink-mute); border-top: 1px solid var(--paper-line); padding-top: var(--space-3); margin-top: var(--space-5); }
.tag-row { display: flex; gap: 0.5em; flex-wrap: wrap; margin-bottom: var(--space-3); }
.tag { background: var(--brand-purple-pale); color: var(--brand-purple-deep); font-size: 0.76rem; font-weight: 700; padding: 0.3em 0.75em; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }

/* Third-party (GHL) forms render with a transparent background and dark text, so they sit on a light card on the dark theme. */
.embed-card { background: #FFFFFF; border-radius: var(--radius-lg); padding: clamp(0.75rem, 2vw, 1.5rem); box-shadow: var(--shadow-lg); }
.embed-card iframe { display: block; }
