/**
 * ============================================================
 *  CSS / COMPONENTS
 *  Site-wide chrome and reusable pieces: nav, sticky bar,
 *  mobile menu, buttons, tooltip. Rendered by js/core/chrome.js
 *  on every page.
 * ============================================================
 */

/* ─────────────────────────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────────────────────────── */
nav#mainNav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(247,246,242,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); transition: box-shadow 0.2s;
}
nav#mainNav.scrolled { box-shadow: 0 4px 20px rgba(8,104,96,0.08); }

.logo {
  font-family: var(--display); font-size: 1.15rem; font-weight: 400; font-style: italic;
  color: var(--ink); letter-spacing: -0.01em; text-decoration: none;
}
.logo em { color: var(--teal); }

.nav-mid { display: flex; gap: 2rem; }
.nav-mid a { font-size: 0.8rem; font-weight: 400; color: var(--muted); text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s; }
.nav-mid a:hover { color: var(--teal); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--teal); color: #fff;
  padding: 0.55rem 1.2rem; border-radius: var(--radius-btn);
  font-size: 0.78rem; font-weight: 500; text-decoration: none;
  border: none; cursor: pointer; transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal-dark); }
.nav-cta svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.nav-cta:hover svg { transform: translate(2px,-2px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.4rem; color: var(--ink); }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

/* ── STICKY DISCOVERY BAR ── */
.sticky-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--teal); padding: 0.65rem 2.5rem;
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  transform: translateY(-100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 4px 24px rgba(8,104,96,0.22);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-text { font-size: 0.8rem; color: rgba(247,246,242,0.7); letter-spacing: 0.01em; }
.sticky-bar-text em { font-family: var(--display); font-style: italic; color: rgba(247,246,242,0.45); }
.sticky-bar-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(247,246,242,0.15); border: 1px solid rgba(247,246,242,0.25);
  color: var(--cream); padding: 0.4rem 1rem; border-radius: var(--radius-btn);
  font-size: 0.78rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background 0.2s;
}
.sticky-bar-cta:hover { background: rgba(247,246,242,0.25); }
.sticky-bar-cta svg { width: 12px; height: 12px; fill: currentColor; flex-shrink: 0; }
.sticky-bar-dismiss {
  position: absolute; right: 1.25rem; background: none; border: none;
  color: rgba(247,246,242,0.4); cursor: pointer; font-size: 1.1rem; line-height: 1;
  transition: color 0.2s; padding: 0.25rem;
}
.sticky-bar-dismiss:hover { color: var(--cream); }

/* ── MOBILE MENU (fullscreen slide-in) ── */
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 200; padding: 5rem 2rem 2rem;
  flex-direction: column; gap: 0.25rem;
  transform: translateX(100%); transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--display); font-size: 1.75rem; font-weight: 400;
  color: var(--ink); text-decoration: none; padding: 0.75rem 0;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--teal); }
.mobile-menu .mm-cta {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: #fff; padding: 1rem 1.75rem;
  border-radius: var(--radius-btn); font-size: 0.9rem; font-weight: 500; font-family: var(--body);
}
.mobile-menu-close { position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none; font-size: 1.75rem; color: var(--ink); cursor: pointer; }

/* ── MOBILE FLOATING ISLAND NAV ── */
.mobile-island {
  display: none; position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  z-index: 300; background: rgba(28,43,42,0.82);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(247,246,242,0.12); border-radius: 100px;
  padding: 0.55rem 0.65rem; gap: 0.15rem; align-items: center;
  box-shadow: 0 8px 32px rgba(8,104,96,0.35), 0 2px 8px rgba(0,0,0,0.2);
  min-width: 320px; max-width: calc(100vw - 2rem);
}
.island-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.5rem 0.9rem; border-radius: 100px; text-decoration: none;
  background: none; border: none; color: rgba(247,246,242,0.5); cursor: pointer;
  transition: color 0.2s, background 0.2s; font-family: var(--body);
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.island-item:hover { color: var(--cream); background: rgba(247,246,242,0.08); }
.island-item svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.island-item-cta {
  display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 1.1rem;
  border-radius: 100px; background: var(--teal); color: #fff !important;
  font-size: 0.72rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  flex-shrink: 0; transition: background 0.2s;
}
.island-item-cta:hover { background: var(--teal-mid); }
.island-item-cta svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.island-divider { width: 1px; height: 20px; background: rgba(247,246,242,0.12); flex-shrink: 0; margin: 0 0.15rem; }

/* ─────────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: #fff; padding: 0.9rem 1.75rem;
  border-radius: var(--radius-btn); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.btn-primary:hover svg { transform: translate(2px,-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--teal-20); color: var(--ink); padding: 0.9rem 1.75rem;
  border-radius: var(--radius-btn); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; background: transparent; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-secondary svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.btn-secondary:hover svg { transform: translate(2px,-2px); }

.btn-cream {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--cream); color: var(--ink); padding: 0.9rem 2rem;
  border-radius: var(--radius-btn); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.btn-cream:hover { background: var(--teal-soft); color: var(--teal-dark); }
.btn-cream svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s; }
.btn-cream:hover svg { transform: translate(2px,-2px); }

.btn-ghost-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(247,246,242,0.22); color: rgba(247,246,242,0.65);
  padding: 0.9rem 2rem; border-radius: var(--radius-btn); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; background: transparent; transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-dark:hover { border-color: rgba(247,246,242,0.5); color: var(--cream); }

/* ── TOOLTIP ── */
.discovery-tooltip {
  position: absolute; top: calc(100% + 10px); right: 0; width: 280px;
  background: var(--teal-dark); color: var(--cream); border-radius: 0.75rem;
  padding: 1rem 1.1rem; font-size: 0.78rem; line-height: 1.6;
  opacity: 0; pointer-events: none; transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s; z-index: 200;
  box-shadow: 0 20px 40px rgba(8,104,96,0.25);
}
.discovery-tooltip.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.discovery-tooltip::before {
  content: ''; position: absolute; bottom: 100%; right: 1.5rem;
  border: 6px solid transparent; border-bottom-color: var(--teal-dark);
}
.discovery-tooltip .dt-icon { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; color: var(--teal-soft); }
.discovery-tooltip .dt-icon svg { width: 14px; height: 14px; }


/* ─────────────────────────────────────────────────────────────────
   FOOTER
   Shared across every page — nav's counterpart. Rendered by
   js/core/chrome.js from content/site.js's footer object.
───────────────────────────────────────────────────────────────── */
footer {
  background: var(--teal-dark); border-top: 1px solid rgba(247,246,242,0.07);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; padding: 3rem 2.5rem; gap: 2rem;
}
.f-brand { font-family: var(--display); font-size: 1.15rem; font-style: italic; font-weight: 400; color: var(--cream); margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.f-brand em { color: var(--teal-soft); }
.f-desc { font-size: 0.78rem; color: rgba(247,246,242,0.38); line-height: 1.75; }
.f-label { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(247,246,242,0.28); margin-bottom: 1rem; }
footer a { display: block; font-size: 0.82rem; color: rgba(247,246,242,0.48); text-decoration: none; line-height: 2.1; transition: color 0.2s; }
footer a:hover { color: var(--cream); }
.f-bottom {
  background: var(--teal-dark); border-top: 1px solid rgba(247,246,242,0.06);
  padding: 1.25rem 2.5rem; display: flex; justify-content: space-between;
  font-size: 0.68rem; color: rgba(247,246,242,0.22); letter-spacing: 0.04em;
}
.f-crisis { font-size: 0.68rem; color: rgba(247,246,242,0.5); letter-spacing: 0.02em; }
.f-crisis a { color: rgba(247,246,242,0.75); text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────
   FOOTER CTA (dark banner just above the footer)
   Shared by the home page and every conditions page. Therapist
   profile pages use their own similarly-styled .pfc-* variant
   defined locally in css/pages/therapist-profile.css, since that
   one needs a per-therapist name inserted into the heading.
───────────────────────────────────────────────────────────────── */
.footer-cta { padding: 7rem 2.5rem 6rem; background: var(--ink); text-align: center; position: relative; overflow: hidden; }
.fcta-bg { position: absolute; bottom: -4rem; left: 50%; transform: translateX(-50%); font-family: var(--display); font-size: 17vw; font-style: italic; font-weight: 400; color: rgba(249,244,235,0.04); white-space: nowrap; pointer-events: none; letter-spacing: -0.04em; line-height: 1; }
.fcta-eyebrow { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(249,244,235,0.3); margin-bottom: 1.5rem; }
.fcta-h { font-family: var(--display); font-size: clamp(3rem,6vw,5.5rem); font-weight: 400; font-style: italic; line-height: 1.05; letter-spacing: -0.04em; color: var(--cream); margin-bottom: 0.5rem; position: relative; z-index: 1; }
.fcta-h em { color: var(--accent); }
.fcta-sub { font-size: 0.95rem; font-weight: 300; color: rgba(249,244,235,0.45); line-height: 1.7; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.fcta-actions { display: flex; gap: 1rem; justify-content: center; position: relative; z-index: 1; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────────────────
   POST CONTENT (readable-width column)
   Shared by blog post bodies (blog/*.html) and the legal pages
   (about, tnc, privacy) — constrains long-form text to a
   comfortable reading width instead of spanning the full viewport.
───────────────────────────────────────────────────────────────── */
.post-content {
  max-width: 760px; margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

/* ─────────────────────────────────────────────────────────────────
   PROSE (long-form article/legal-page typography)
   Shared by blog post bodies (blog/*.html) and the legal pages
   (about, tnc, privacy, consent-form) — both are one-off,
   non-repeating long-form text, styled identically.
───────────────────────────────────────────────────────────────── */
.prose { line-height: 1.8; }
.prose p { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; }
.prose p:first-child { font-size: 1.15rem; color: var(--ink); font-weight: 300; }
.prose h2 {
  font-family: var(--display); font-size: 1.7rem;
  font-weight: 400; font-style: italic;
  letter-spacing: -0.02em; color: var(--ink);
  margin: 3rem 0 1rem; line-height: 1.2;
}
.prose h3 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 400;
  color: var(--ink); margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em;
}
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(212,106,69,0.4); transition: text-decoration-color 0.2s; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.75rem; }
.prose li { font-size: 1.05rem; color: var(--muted); margin-bottom: 0.6rem; line-height: 1.7; }
.prose blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem; margin: 2.5rem 0;
  font-family: var(--display); font-size: 1.3rem;
  font-style: italic; color: var(--ink); line-height: 1.45;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* Uploaded logo image (see content/site.js → site.logo) */
.logo .brand-logo, .f-brand .brand-logo { display: block; width: auto; max-width: 200px; }
