/* Moonbridge Therapy — conversion landing site
   Palette drawn from the moon-over-water logo: deep night navy, moonlight blue,
   warm cream, soft gold accents. */
:root {
  --night: #101D2E;
  --night-deep: #0A1420;
  --moon: #9FC4DC;
  --moon-soft: #C9DEEC;
  --cream: #FAF6EF;
  --cream-warm: #F2EADC;
  --gold: #E3B265;
  --ink: #1B2737;
  --ink-soft: #45556B;
  --white: #FFFFFF;
  --radius: 18px;
  --shadow: 0 18px 46px rgba(10, 20, 32, 0.10);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 0.6em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
}
.center { text-align: center; margin-top: 2.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.micro { font-size: 0.85rem; color: var(--ink-soft); }
.micro.light { color: var(--moon-soft); }
.micro.light a { color: var(--white); font-weight: 600; }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--gold); color: var(--night-deep);
  font-weight: 700; font-size: 1.06rem; text-decoration: none;
  padding: 1.02rem 2.1rem; border-radius: 999px;
  box-shadow: 0 14px 34px rgba(227, 178, 101, 0.38);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(227, 178, 101, 0.5); }
.btn-primary.big { font-size: 1.18rem; padding: 1.2rem 2.7rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.4rem);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled { background: rgba(10, 20, 32, 0.92); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(10,20,32,0.35); padding-top: 0.55rem; padding-bottom: 0.55rem; }
.nav .logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.nav-phone { color: var(--moon-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; margin-left: auto; }
.nav-phone:hover { color: var(--white); }
.nav-cta {
  background: var(--gold); color: var(--night-deep); text-decoration: none; font-weight: 700;
  font-size: 0.92rem; padding: 0.6rem 1.25rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 120% 90% at 50% -10%, #24405C 0%, var(--night) 48%, var(--night-deep) 100%);
  color: var(--white);
  padding: clamp(7rem, 14vh, 9.5rem) 22px clamp(4.5rem, 9vh, 7rem);
  text-align: center;
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.8;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,0.85) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 41% 15%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 57% 42%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 68% 9%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 76% 56%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 88% 28%, rgba(255,255,255,0.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 78%, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 93% 70%, rgba(255,255,255,0.4) 50%, transparent 51%);
}
/* When the canvas starfield is running, retire the static CSS stars. */
.hero-stars.stars-live { background-image: none; }
.hero::after {
  /* moon glow — slowly "breathes" */
  content: ""; position: absolute; top: 7%; right: 12%;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, #F4EFE2 0%, #E8E2D0 58%, transparent 62%);
  box-shadow: 0 0 80px 32px rgba(244, 239, 226, 0.22);
  pointer-events: none;
  animation: moon-breathe 7s ease-in-out infinite;
}
@keyframes moon-breathe {
  0%, 100% { box-shadow: 0 0 80px 32px rgba(244, 239, 226, 0.20); transform: scale(1); }
  50% { box-shadow: 0 0 110px 48px rgba(244, 239, 226, 0.34); transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.hero-kicker { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--moon); margin-bottom: 1.1rem; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 4.9rem); color: var(--white); font-weight: 600; letter-spacing: -0.015em; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: clamp(1.06rem, 2vw, 1.3rem); color: var(--moon-soft); max-width: 36rem; margin: 1.1rem auto 1.8rem; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-bottom: 2rem; }
.hero-actions .micro { color: var(--moon); }
.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.55rem;
  font-size: 0.92rem; color: var(--moon-soft);
}
.hero-trust .stars { color: var(--gold); letter-spacing: 0.12em; }
.hero-trust strong { color: var(--white); }
.hero-trust a { color: var(--moon-soft); }
.hero-trust a:hover { color: var(--white); }
.hero-trust .dot { opacity: 0.5; }

/* ---------- insurance ---------- */
.insurance { background: var(--white); padding: 2.6rem 0 2.2rem; border-bottom: 1px solid rgba(27,39,55,0.07); }
.ins-line { text-align: center; max-width: 44rem; margin: 0 auto 1.6rem; color: var(--ink-soft); }
.ins-line strong { color: var(--ink); }
.ins-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.6rem 2.4rem; }
.ins-logos img { height: 34px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.62; transition: 0.2s; }
.ins-logos img:hover { filter: none; opacity: 1; }

/* ---------- steps ---------- */
.steps { padding: clamp(3.4rem, 7vw, 5.5rem) 0; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.2rem; text-align: left; }
.steps-grid article { background: var(--white); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); }
.steps-grid span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--night); color: var(--gold);
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem;
}
.steps-grid p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* ---------- concerns ---------- */
.concerns { background: var(--night); color: var(--white); padding: clamp(3.2rem, 7vw, 5rem) 0; text-align: center; }
.concerns h2 { color: var(--white); max-width: 36rem; margin: 0 auto 1.8rem; }
.chip-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; padding: 0; margin: 0; }
.chip-row li {
  background: rgba(159, 196, 220, 0.12); border: 1px solid rgba(159, 196, 220, 0.35);
  color: var(--moon-soft); border-radius: 999px; padding: 0.45rem 1.1rem; font-size: 0.92rem;
}

/* ---------- team ---------- */
.team { padding: clamp(3.4rem, 7vw, 5.5rem) 0; }
.team .eyebrow, .team h2 { text-align: center; }
.team h2 { max-width: 34rem; margin-left: auto; margin-right: auto; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.4rem; }
.t-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.t-card > img { width: 100%; height: 250px; object-fit: cover; object-position: center 22%; }
.t-body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.45rem; }
.t-body h3 { margin: 0; }
.t-cred { color: var(--gold); font-weight: 600; font-size: 0.86rem; margin: 0; }
.t-body > p:not(.t-cred) { color: var(--ink-soft); font-size: 0.94rem; margin: 0.3rem 0 0.6rem; }
.t-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: auto 0 0; }
.t-tags li { background: var(--cream-warm); color: var(--ink-soft); border-radius: 999px; padding: 0.22rem 0.7rem; font-size: 0.76rem; font-weight: 600; }

/* ---------- testimonials ---------- */
.quotes { background: var(--cream-warm); padding: clamp(3.4rem, 7vw, 5.5rem) 0; }
.quotes .eyebrow, .quotes h2 { text-align: center; }
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.2rem; }
.quote-grid blockquote { background: var(--white); margin: 0; border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow); position: relative; }
.quote-grid blockquote::before {
  content: "“"; position: absolute; top: 0.3rem; left: 1.1rem;
  font-family: var(--font-display); font-size: 3.4rem; color: var(--gold); opacity: 0.55;
}
.quote-grid p { font-size: 0.99rem; color: var(--ink); margin: 0.9rem 0 0.8rem; }
.quote-grid footer { color: var(--ink-soft); font-size: 0.88rem; font-weight: 600; }

/* ---------- faq ---------- */
.faq { padding: clamp(3.4rem, 7vw, 5.5rem) 0; }
.faq .eyebrow, .faq h2 { text-align: center; }
.faq-list { max-width: 720px; margin: 2rem auto 0; display: flex; flex-direction: column; gap: 0.7rem; }
.faq-list details { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); padding: 0; overflow: hidden; }
.faq-list summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem;
  padding: 1.1rem 3rem 1.1rem 1.3rem; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); margin: 0; }

/* ---------- final cta ---------- */
.final {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 130% 100% at 50% 0%, #24405C 0%, var(--night) 55%, var(--night-deep) 100%);
  color: var(--white); text-align: center; padding: clamp(4rem, 8vw, 6rem) 0;
}
.final .hero-stars { position: absolute; inset: 0; pointer-events: none; }
.final .container { position: relative; }
.final h2 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
.final p { color: var(--moon-soft); max-width: 32rem; margin: 0 auto 1.8rem; }
.final .micro { margin-top: 1.2rem; }

/* ---------- footer ---------- */
.footer { background: var(--night-deep); color: var(--moon-soft); padding: 2.6rem 0 5.5rem; text-align: center; font-size: 0.9rem; }
.footer img { margin: 0 auto 0.9rem; filter: brightness(0) invert(1); opacity: 0.9; height: 36px; width: auto; }
.footer nav { margin: 0.4rem 0 0.8rem; }
.footer a { color: var(--moon-soft); }
.footer .copy { opacity: 0.6; margin: 0; }

/* ---------- sticky mobile cta ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: none; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--gold); color: var(--night-deep); text-decoration: none;
  font-weight: 700; font-size: 1rem; padding: 1rem; border-radius: 14px;
  box-shadow: 0 12px 34px rgba(10, 20, 32, 0.35);
}
.sticky-cta span { font-weight: 500; font-size: 0.85rem; opacity: 0.75; }

/* ---------- local SEO sub-pages ---------- */
.hero-sub-page { padding: clamp(6.4rem, 12vh, 8rem) 22px clamp(3.4rem, 7vh, 5rem); }
.hero-sub-page h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.82rem; color: var(--moon); margin-bottom: 1rem; }
.breadcrumb a { color: var(--moon); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span { opacity: 0.6; }
.card-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.card-list li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); font-size: 0.96rem; }
.card-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.mini-team { padding: 0 0 clamp(3rem, 6vw, 4.5rem); }
.mini-team .eyebrow { text-align: center; }
.mini-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 1.2rem; max-width: 880px; margin: 1.4rem auto 0; }
.mini-t { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--white); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.mini-t img { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; object-position: center 22%; flex-shrink: 0; }
.mini-t h3 { margin: 0 0 0.15rem; font-size: 1.08rem; }
.mini-t .t-cred { color: var(--gold); font-weight: 600; font-size: 0.8rem; margin: 0 0 0.4rem; }
.mini-t p:not(.t-cred) { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }
.related { background: var(--cream-warm); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.related .eyebrow, .related h2 { text-align: center; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 1.8rem; }
.related-grid a { background: var(--white); border-radius: 14px; padding: 1.05rem 1.2rem; text-decoration: none; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.2rem; transition: transform 0.15s ease; }
.related-grid a:hover { transform: translateY(-2px); }
.related-grid span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.related-grid strong { font-size: 0.98rem; color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .steps-grid, .team-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .quote-grid { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .t-card > img { height: 300px; }
  .mini-team-grid { grid-template-columns: 1fr; max-width: 520px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-phone { display: none; }
  .nav-cta { display: none; }
  .sticky-cta { display: flex; }
  .hero { padding-top: 6rem; }
  .hero::after { width: 72px; height: 72px; right: 7%; top: 5%; }
  .ins-logos { gap: 1.1rem 1.6rem; }
  .ins-logos img { height: 26px; }
  .footer { padding-bottom: 6.5rem; }
}
