/* ---------- reveal + responsive ---------- */
.echo .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--q-ease), transform 0.8s var(--q-ease); }
.echo .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .echo .reveal { opacity: 1; transform: none; } .echo .orb { animation: none; } }

@media (max-width: 1024px) {
  .echo .q-hero-grid, .echo .intro-grid, .echo .lakeway-grid, .echo .faq-grid { grid-template-columns: 1fr; gap: 3rem; }
  .echo .intro--founder .intro-grid { grid-template-columns: 1fr; gap: 2rem; }
  .echo .intro--founder .intro-portrait { max-width: 360px; margin-inline: 0; }
  .echo .intro--founder .intro-quote { max-width: none; }
  .echo .help-grid { grid-template-columns: 1fr 1fr; }
  .echo .q-hero-photo { aspect-ratio: 16 / 10; max-width: 560px; }
  .echo .q-hero-visual .q-hero-photo.q-hero-photo--kristine { aspect-ratio: 2 / 3; max-width: 520px; }
  .echo .q-hero-visual .q-hero-photo.q-hero-photo--kristine img { object-fit: cover; object-position: top center; }
  .echo .faq-left { position: static; }
  .echo .q-hero-visual { max-width: 480px; margin: 0 auto; min-height: 0; }
  .echo .bento { grid-template-columns: repeat(4, 1fr); }
  .echo .bento-1 { grid-column: span 4; grid-row: span 1; }
  .echo .bento-2, .echo .bento-3, .echo .bento-4, .echo .bento-5 { grid-column: span 2; }
  .echo .bento-6, .echo .bento-7 { grid-column: span 4; }
  .echo .framework-grid, .echo .membership-grid { grid-template-columns: 1fr; }
  .echo .membership-grid { grid-template-columns: 1fr 1fr; }
  .echo .adv-grid, .echo .process-grid { grid-template-columns: 1fr 1fr; }
  .echo.memberships-layout .adv-grid,
  .echo .memberships-layout .adv-grid { grid-template-columns: 1fr; max-width: 440px; }
  .echo .mm-live-grid .adv-card,
  .echo .mm-live-grid .mm-live-card { max-width: 100%; }
  .echo .process-grid::before { display: none; }
  .echo .q-footer-grid { grid-template-columns: 1fr 1fr; }
  .echo .q-contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .echo .includes-grid { grid-template-columns: 1fr; }
  .echo .sc-options { grid-template-columns: 1fr; }
  .echo .sc-card { padding: 1.8rem; }
}
@media (max-width: 768px) {
  .echo .q-nav-links { display: none; }
  .echo .q-nav .btn-primary { display: inline-flex; margin-left: auto; margin-right: 0.55rem; padding: 0.6rem 1.05rem; font-size: 0.8rem; }
  .echo .q-burger { display: flex; }
  .echo .q-nav-links.q-open { display: flex; position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0.5rem; background: rgb(var(--t-cream-rgb) / 0.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--q-border); border-radius: 20px; padding: 1.1rem 1.5rem; box-shadow: var(--q-shadow-lg); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .echo .q-nav-links.q-open .q-has-sub { display: block; }
  .echo .q-nav-links.q-open .q-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0.2rem 0 0 0.9rem; min-width: 0; }
  .echo .q-nav-links.q-open .q-mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0.2rem 0 0.4rem 0.9rem; width: auto; max-width: none; display: block; }
  .echo .q-nav-links.q-open .q-mega-feature { display: none; }
  .echo .q-nav-links.q-open .q-mega-links { grid-template-columns: 1fr; }
  .echo .q-mega.is-split { width: auto; }
  .echo .q-nav-links.q-open .q-mega-cols { grid-template-columns: 1fr; gap: 0.5rem; }
  .echo .q-has-sub::after { display: none; }
  .echo .q-hero { padding-top: 7rem; min-height: auto; }
  .echo .q-hero-stats { grid-template-columns: 1fr 1fr; }
  .echo .bento, .echo .membership-grid, .echo .adv-grid, .echo .process-grid, .echo .help-grid { grid-template-columns: 1fr; }
  .echo .bento-1, .echo .bento-2, .echo .bento-3, .echo .bento-4, .echo .bento-5, .echo .bento-6, .echo .bento-7 { grid-column: span 1; }
  .echo .q-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .echo .strip-inner { justify-content: center; gap: 1.5rem; }
  .echo .q-form-row { grid-template-columns: 1fr; }
  .echo .q-contact-card { padding: 1.8rem; }
}

/* === Meet Your Provider band (Kristine) — pattern thrive/meet-provider === */
.thrive-provider-grid{display:grid;grid-template-columns:300px 1fr;gap:clamp(1.5rem,4vw,3.5rem);align-items:center;}
.thrive-provider-photo img{width:100%;height:auto;border-radius:24px;display:block;box-shadow:0 24px 60px rgb(var(--t-black-rgb) / .38);}
.thrive-provider-eyebrow{color:var(--q-gold);letter-spacing:.2em;text-transform:uppercase;font-size:.76rem;font-weight:600;margin:0 0 .65rem;}
.thrive-provider-body h2{font-family:var(--q-serif);color:var(--q-cream);font-weight:500;font-size:clamp(1.9rem,3.5vw,2.6rem);line-height:1.1;margin:0 0 .5rem;}
.thrive-provider-body h2 span{color:var(--q-gold-soft);font-style:italic;}
.thrive-provider-cred{color:var(--q-gold-soft);font-size:.98rem;margin:0 0 1.1rem;}
.thrive-provider-bio{color:rgb(var(--t-cream-rgb) / .82);line-height:1.65;margin:0 0 1.6rem;max-width:48ch;}
.thrive-provider-cta{display:inline-block;background:linear-gradient(115deg,var(--t-forest-deep) 0%,var(--t-forest) 35%,var(--t-gold) 130%);color:var(--q-cream);padding:.85rem 2.1rem;border-radius:100px;font-weight:600;text-decoration:none;transition:filter .2s ease,transform .2s ease;}
.thrive-provider-cta:hover{filter:brightness(1.08);transform:translateY(-1px);}
@media(max-width:782px){.thrive-provider-grid{grid-template-columns:1fr;text-align:center;}.thrive-provider-photo{max-width:240px;margin:0 auto;}.thrive-provider-bio{margin-left:auto;margin-right:auto;}}

/* === Mobile right-edge overflow fix (2026-07-03) — words/photo were clipped by overflow-x:clip === */
@media (max-width: 782px){
  /* width:100% must include the inline gutters. Without this, contact/about
     containers extend 40px beyond a 390px viewport and overflow clipping hides it. */
  .echo .container, .echo .q-nav { box-sizing: border-box; }
  /* Keep the existing near-full-width mobile pill without its clipped 4px edges. */
  .echo .q-nav { width: 100%; }
  .echo .q-hero-visual img.person{ width:100%; }                       /* was 108% — spilled past right edge */
  .echo img,.echo svg,.echo video,.echo iframe,.echo table{ max-width:100%; height:auto; }
  .echo h1,.echo h2,.echo h3,.echo p,.echo li{ overflow-wrap:break-word; }
}

/* ==========================================================================
   Design review (2026-08-03) — accepted items A1 / B3 / B11 / B12
   ========================================================================== */
/* A1: keyboard-accessible nav dropdowns — reveal on focus-within, not just hover */
.echo .q-has-sub:focus-within .q-sub,
.echo .q-has-sub:focus-within .q-mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* A8: 44px minimum tap targets on dropdown rows */
.echo .q-sub a, .echo .q-mega-col a, .echo .q-mega-links a { min-height: 44px; display: flex; align-items: center; }

/* B3: flatten the decorative radial "glow" pseudo-elements on the dark bands */
.echo .membership::before,
.echo .q-cta::before,
.echo .symptoms.dark::before,
.echo .framework.dark::before,
.echo .lakeway:not(.light)::before,
.echo .article.dark::before { background: none; }

/* B11: subtle, cohesive warm grade on editorial photography (not logos/icons) */
.echo .q-hero-photo img,
.echo .q-mega-feature { filter: saturate(0.95) contrast(1.02); }

/* B12: intentional motion — a gold underline draws in on nav-link hover */
.echo .q-nav-links > a,
.echo .q-nav-links > .q-has-sub > a { position: relative; }
.echo .q-nav-links > a::after,
.echo .q-nav-links > .q-has-sub > a::after { content: ''; position: absolute; left: 0; bottom: -3px; width: 100%; height: 1.5px; background: var(--q-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--q-ease); }
.echo .q-nav-links > a:hover::after,
.echo .q-nav-links > .q-has-sub:hover > a::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .echo .q-nav-links a::after { display: none; } }

/* B8: cinematic full-bleed editorial image band (breaks the card rhythm) */
.echo .q-imgband { padding: 0; }
.echo .q-imgband .imgband-inner { position: relative; width: 100%; aspect-ratio: 21 / 9; min-height: 300px; overflow: hidden; }
.echo .q-imgband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95) contrast(1.02); }
.echo .q-imgband .imgband-inner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(var(--t-forest-deep-rgb) / 0.62) 0%, rgb(var(--t-forest-deep-rgb) / 0.22) 52%, transparent 100%); }
.echo .q-imgband .imgband-cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: clamp(1.6rem, 4vw, 3.2rem); max-width: 560px; }
.echo .q-imgband .imgband-cap .eyebrow { color: var(--q-gold-soft); }
.echo .q-imgband .imgband-cap p { color: var(--t-cream); font-family: var(--q-serif); font-weight: 500; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.15; margin: 0.5rem 0 0; }
@media (max-width: 640px) { .echo .q-imgband .imgband-inner { aspect-ratio: 4 / 3; } }

/* Active Microbe Defense (page 698): keep the product CTA off the green-on-green path. */
/* PARKED (tv2): this rule never applied on the live site because a stray BOM sat in front of it.
   Kept disabled so v2 renders identically; enable after Chris/Kristine approve.
body.page-id-698 .echo .q-cta {
  background: linear-gradient(180deg, var(--q-cream) 0%, var(--q-sand) 100%);
  color: var(--q-forest);
  border-top: 1px solid var(--q-border);
  border-bottom: 1px solid var(--q-border);
}
*/
body.page-id-698 .echo .q-cta::before { display: none; }
body.page-id-698 .echo .q-cta .eyebrow { color: var(--q-forest) !important; }
body.page-id-698 .echo .q-cta h2 { color: var(--q-forest); }
body.page-id-698 .echo .q-cta .em-gold { color: var(--q-gold); -webkit-text-fill-color: var(--q-gold); }
body.page-id-698 .echo .q-cta p { color: var(--q-muted); }
body.page-id-698 .echo .q-cta .cta-note { color: var(--q-muted); }
body.page-id-698 .echo .q-cta .cta-note a { color: var(--q-forest) !important; text-decoration: underline !important; }

/* Content Desk — hidden-price CTA text (smaller than the price slot) */
.echo .mm-live-card .mm-live-price-cta {
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0.6rem 0 0.5rem;
}


/* ---- Impeccable fixes 2026-10-21 (folded from thrive-impeccable.css) ---- */
/* ==========================================================================
   THRIVE Impeccable fixes, 2026-10-21 (grok-thrivehormonalhealth)
   Style-only overrides. Loads last. Roll back: dequeue in functions.php or
   delete this file. Uses existing tokens: --q-gold-ink (now var(--t-gold-ink)) (text on light),
   --q-gold var(--t-gold) / --q-gold-soft (decoration + text on dark).
   ========================================================================== */

/* Darker gold ink so small gold text passes 4.5:1 on cream (5.51) AND sand (4.88). Was var(--t-gold-ink-legacy) (4.13 on sand). */

/* 1. Gold TEXT on light backgrounds -> --q-gold-ink (>= 4.5:1 on cream).
      Dark-section rules already in thrive-echo.css (.membership, .q-cta,
      .framework.dark, .symptoms.dark, .article.dark, .lakeway-content) have
      higher specificity and keep gold-soft. */
.echo em,
.echo .em-gold { color: var(--q-gold-ink); }
.echo .em-gold { -webkit-text-fill-color: var(--q-gold-ink); }
.echo .lakeway.light .lakeway-content .em-gold { color: var(--q-gold-ink); -webkit-text-fill-color: var(--q-gold-ink); }
.echo .q-mega-col-head { color: var(--q-gold-ink); }
.echo .phase-num { color: var(--q-gold-ink); opacity: 1; }
.echo .intro-points .num { color: var(--q-gold-ink); }
.echo .stat-num span { color: var(--q-gold-ink); }
.echo .faq-toggle { color: var(--q-gold-ink); }
.echo .faq-item.open .faq-toggle { color: var(--q-gold-soft); }
.si-eyebrow, .si-title em { color: var(--q-gold-ink) !important; }
/* plain <em> and numerals inside dark surfaces keep the light gold */
.echo .dark em, .echo .membership em, .echo .q-cta em, .echo .q-footer em,
.echo .adv-card.featured em, .echo .lakeway:not(.light) em, .echo .imgband em,
.echo .framework.dark .phase-num, .echo .dark .num, .echo .dark .stat-num span { color: var(--q-gold-soft); }

/* 2. Scroll-reveal: content is visible by default. No blank sections if JS
      is slow, blocked, or a crawler renders the page. No per-section motion. */
.echo .reveal,
.echo .reveal.in,
.thrive-reveal,
.thrive-reveal.is-visible { opacity: 1 !important; transform: none !important; }
.thrive-reveal.is-visible > * { animation: none !important; }

/* 4. Header: Portal is a quiet text link; Book a consultation is the primary. */
.echo .q-nav .q-portal-link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  margin-left: auto; font-size: .82rem; font-weight: 500; color: var(--q-text);
  opacity: .8; text-decoration: underline; text-decoration-color: rgb(var(--t-forest-rgb) / .25); text-underline-offset: .25em;
  white-space: nowrap;
}
.echo .q-nav .q-portal-link:hover { opacity: 1; text-decoration-color: currentColor; }
.echo .q-nav .q-nav-book { box-sizing: border-box; min-height: 44px; white-space: nowrap; }
@media (max-width: 1100px) {
  .echo .q-nav .q-portal-link { margin-left: auto; padding: 0 .5rem; font-size: .78rem; }
  .echo .q-nav .btn-primary.q-nav-book { margin-left: 0; }
}
@media (max-width: 480px) {
  .echo .q-nav .q-nav-book .q-hide-sm { display: none; }
  .echo .q-nav .btn-primary.q-nav-book { padding: .6rem .95rem; margin-right: .4rem; }
}

/* 5. Tap targets >= 44px without shifting layout (padding + negative margin,
      or an invisible hit area). */
.echo .q-nav-links > a,
.echo .q-nav-links > .q-has-sub > a { padding-block: 11px; margin-block: -11px; }
.echo .q-footer-bottom a,
.echo .q-footer a { display: inline-block; padding-block: 11px; margin-block: -11px; }
.echo .q-footer-bottom a img { vertical-align: middle; }
.wp-block-post-excerpt__more-link,
.page-numbers,
.wp-block-query-pagination-next,
.wp-block-query-pagination-previous { display: inline-block; padding-block: 11px; margin-block: -11px; min-width: 44px; text-align: center; }
.echo .si-cta { display: inline-block; padding-block: 10px; margin-block: -10px; }
/* SoundCloud embed credit links (home): taller hit area */
.echo a[href^="https://soundcloud.com/"] { display: inline-block; padding-block: 16px; margin-block: -16px; }

.echo .q-hero-free { margin: 0.85rem 0 0; font-size: 0.92rem; }
.echo .q-hero-free a { color: var(--q-forest); text-decoration: underline; }
.echo .q-hero-badge span a { color: var(--q-forest); text-decoration: underline; }
.echo .q-reviews { align-items: stretch; }
.echo .q-reviews .phase { margin: 0; }
.echo .q-reviews .phase p { font-family: var(--q-serif); font-size: 1.05rem; line-height: 1.45; }
.echo .q-reviews cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--q-gold-ink); }
.echo .q-callbar { display: none; }

@media (max-width: 768px) {
  .echo .q-callbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgb(var(--t-cream-rgb) / 0.96);
    border-top: 1px solid var(--q-border);
    box-shadow: 0 -8px 24px rgb(var(--t-black-rgb) / 0.08);
  }
  .echo .q-callbar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
  }
  .echo .q-callbar-call { background: transparent; color: var(--q-forest); border: 1px solid var(--q-forest); }
  .echo .q-callbar-book { background: var(--q-forest); color: var(--q-cream); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  elevenlabs-convai, .thrive-agent-widget { bottom: 76px !important; }
}
@media print {
  .echo .q-callbar { display: none !important; }
  body { padding-bottom: 0 !important; }
}
