/* ============================================================
   Generations Mental Health and Wellness — site stylesheet
   Brand: #016853 (forest green) · amber gradient · #1D1D1B ink
   Type: Playfair Display (display serif) + Montserrat (body)
   ============================================================ */

:root {
  --green: #016853;
  --green-dark: #014e3f;
  --green-deep: #013a2f;
  --green-tint: #eaf3f0;
  --green-tint-2: #f3f8f6;
  --amber: #d99a17;
  --amber-soft: #e5a812;
  --amber-tint: #fdf6e7;
  --ink: #1d1d1b;
  --ink-soft: #4c4f4d;
  --cream: #faf8f4;
  --white: #ffffff;
  --line: #e4e9e6;
  --radius: 18px;
  --shadow-sm: 0 1px 3px rgba(29, 29, 27, 0.06), 0 4px 14px rgba(29, 29, 27, 0.05);
  --shadow-md: 0 6px 28px rgba(1, 104, 83, 0.12);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

.container { width: min(1140px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; color: var(--ink); }

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.accent { color: var(--green); }
.accent-amber { color: var(--amber); font-style: italic; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}

.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46em; }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { margin-top: 0.9rem; color: var(--ink-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--green); color: var(--white); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); }

.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green-tint); color: var(--green-dark); }

.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--amber-tint); color: var(--green-dark); transform: translateY(-2px); }

.btn-ghost-light { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); color: var(--white); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.logo img { height: 44px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 1.6rem; }

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover { color: var(--green); }
.main-nav a.active { color: var(--green); border-bottom-color: var(--amber); }

.nav-cta { margin-left: 0.4rem; }
.nav-cta .btn { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--green);
  margin: 5.5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 480px at 88% -10%, rgba(229, 168, 18, 0.13), transparent 60%),
    radial-gradient(ellipse 620px 420px at 3% 96%, rgba(156, 196, 174, 0.28), transparent 65%),
    radial-gradient(ellipse 520px 380px at 99% 78%, rgba(156, 196, 174, 0.22), transparent 65%),
    radial-gradient(ellipse 900px 560px at -8% 110%, rgba(1, 104, 83, 0.10), transparent 60%),
    var(--cream);
  overflow: hidden;
}

.hero-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(1, 104, 83, 0.14);
  padding: 1.7rem 0 2.3rem;
}

.hero-values span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.4;
}

.hero-values span + span { border-left: 1px solid rgba(1, 104, 83, 0.14); }
.hero-values svg { color: var(--green); width: 26px; height: 26px; flex-shrink: 0; }

.metabolic-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 40em;
  margin: 2.4rem auto 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  padding: 5.5rem 0 5rem;
}

.hero h1 { margin: 0.6rem 0 1.3rem; }

.hero .lead { margin-bottom: 2.1rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero-note { margin-top: 1.4rem; font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.5rem; }
.hero-note svg { color: var(--green); flex-shrink: 0; }

/* hero visual card */
.hero-visual { position: relative; }

.hero-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(1, 74, 59, 0.16);
  padding: 2.2rem 2rem;
  position: relative;
  z-index: 2;
}

.hero-card h3 { font-size: 1.35rem; margin-bottom: 0.4rem; color: var(--green); }
.hero-card > p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1.3rem; }

.hero-card ul { list-style: none; display: grid; gap: 0.75rem; }

.hero-card li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--green-tint-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-card li svg { color: var(--green); flex-shrink: 0; }

.hero-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 2px solid rgba(217, 154, 23, 0.35);
  top: -60px;
  right: -70px;
  z-index: 1;
}

.hero-ring::after {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 1.5px dashed rgba(1, 104, 83, 0.25);
}

/* ---------- Sections ---------- */

section { padding: 4.5rem 0; }

.section-alt { background: var(--green-tint-2); }
.section-cream { background: var(--cream); }

/* icon grid (How we can help / services) */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.6rem;
}

.icon-grid.three { grid-template-columns: repeat(3, 1fr); }

.icon-item { text-align: center; padding: 0.6rem 0.4rem; }

.icon-circle {
  width: 92px;
  height: 92px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.icon-item:hover .icon-circle { transform: translateY(-4px); border-color: var(--amber); }

.icon-item h3 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.icon-item p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* service cards */

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card[id] { scroll-margin-top: 110px; }

.card:target { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 154, 23, 0.18), var(--shadow-md); }

.card .icon-circle { width: 64px; height: 64px; margin: 0; flex-shrink: 0; background: var(--green-tint); border: none; }

.card h3 { margin-bottom: 0.45rem; font-size: 1.15rem; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .card-more { display: inline-block; margin-top: 0.7rem; font-size: 0.85rem; font-weight: 700; }

/* integrative band */

.band {
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green) 70%, #027a62 100%);
  color: var(--white);
  border-radius: 26px;
  padding: 3.2rem clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.6rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.band::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 168, 18, 0.35);
  right: -130px; bottom: -190px;
}

.band h2 { color: var(--white); margin-bottom: 1rem; }
.band p { color: rgba(255,255,255,0.86); font-size: 0.97rem; }

.band ul { list-style: none; display: grid; gap: 0.7rem; position: relative; z-index: 1; }

.band li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
}

.band li svg { color: var(--amber-soft); flex-shrink: 0; margin-top: 0.2rem; }

/* providers */

.provider-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.provider-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.provider-photo { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--green-tint); }

.provider-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }

.provider-photo img.pos-mid { object-position: center 46%; }

.provider-body { padding: 1.8rem 1.8rem 2rem; display: flex; flex-direction: column; flex: 1; }

.provider-body .pt-seal { margin-top: auto; padding-top: 1.3rem; }

.provider-body h3 { font-size: 1.4rem; }

.credential {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin: 0.5rem 0 0.9rem;
}

.provider-body p { font-size: 0.93rem; color: var(--ink-soft); }

.provider-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}

/* insurance pills */

.pill-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }

.pill {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}

/* steps */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--amber);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--ink-soft); }

/* FAQ */

.faq { max-width: 780px; margin: 0 auto; }

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 0.98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq .faq-body { padding: 0 1.4rem 1.3rem; font-size: 0.92rem; color: var(--ink-soft); }

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--green-deep), var(--green) 60%, #027a62);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-band::before, .cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(229, 168, 18, 0.3);
}
.cta-band::before { width: 380px; height: 380px; left: -140px; top: -180px; }
.cta-band::after { width: 300px; height: 300px; right: -110px; bottom: -150px; }

.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 34em; margin: 0 auto 2rem; }

.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; position: relative; z-index: 1; }

/* contact page */

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2.2rem 1.8rem;
  text-align: center;
}

.contact-card .icon-circle { margin-bottom: 1.2rem; }
.contact-card h3 { margin-bottom: 0.4rem; }
.contact-card p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.contact-card .contact-value { font-weight: 700; font-size: 1.05rem; color: var(--green); word-break: break-word; }

.notice {
  max-width: 780px;
  margin: 3rem auto 0;
  background: var(--amber-tint);
  border: 1px solid #f0dcae;
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

.notice strong { color: var(--ink); }

/* page hero (inner pages) */

.page-hero {
  background:
    radial-gradient(ellipse 700px 380px at 92% -20%, rgba(229, 168, 18, 0.12), transparent 60%),
    radial-gradient(ellipse 700px 420px at -5% 130%, rgba(1, 104, 83, 0.09), transparent 60%),
    var(--cream);
  padding: 4rem 0 3.4rem;
  text-align: center;
}

.page-hero h1 { margin: 0.5rem 0 1rem; }
.page-hero .lead { margin: 0 auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--green-deep); color: rgba(255,255,255,0.8); padding: 3.5rem 0 0; font-size: 0.9rem; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-grid img { height: 42px; width: auto; margin-bottom: 1rem; }

.site-footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--amber-soft); }

.footer-crisis {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.3rem 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  text-align: center;
}

.footer-crisis strong { color: var(--amber-soft); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1.2rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Care journey (home) ---------- */

.journey-section { padding: 3.8rem 0 4.2rem; border-bottom: 1px solid var(--line); }
.journey-section .section-head { margin-bottom: 2.4rem; }

.journey {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.journey-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.3rem 1.6rem;
  text-align: center;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.journey-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--amber); color: inherit; }

.journey-step .icon-circle { width: 64px; height: 64px; margin: 0 0 1rem; background: var(--green-tint); border: none; box-shadow: none; }

.journey-step strong { font-size: 0.95rem; line-height: 1.35; }
.journey-step span { font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.35rem; }

/* amber chevron connectors between steps */
.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1.35rem;
  top: 50%;
  width: 13px;
  height: 13px;
  border-top: 2.5px solid var(--amber);
  border-right: 2.5px solid var(--amber);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Whole-person wheel (hero visual) ---------- */

.wheel-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }

.wheel-leaf { position: absolute; z-index: 0; width: 190px; height: auto; filter: blur(1.5px); pointer-events: none; }
.wheel-leaf-l { left: -85px; bottom: 90px; }
.wheel-leaf-r { right: -60px; top: -50px; }
.wheel-wrap { position: relative; z-index: 1; }

.wheel-values {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 1.3rem;
  width: 100%;
}

.wheel-values span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  padding: 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.35;
}

.wheel-values span + span { border-left: 1px solid var(--line); }
.wheel-wrap .wheel-values svg, .wheel-values svg { color: var(--green); width: 22px !important; height: 22px; flex-shrink: 0; }

.wheel-caption {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  text-align: center;
}
.wheel-wrap svg { width: min(540px, 100%); height: auto; filter: drop-shadow(0 18px 40px rgba(1, 74, 59, 0.18)); overflow: visible; }

.wheel-wrap .orbit-ring {
  transform-origin: 320px 320px;
  animation: wheelSpin 80s linear infinite;
}

.wheel-wrap .sat {
  transform-box: fill-box;
  transform-origin: center;
  animation: satFloat 6s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.wheel-wrap .sat:nth-of-type(2) { animation-delay: -1.5s; }
.wheel-wrap .sat:nth-of-type(3) { animation-delay: -3s; }
.wheel-wrap .sat:nth-of-type(4) { animation-delay: -4.5s; }

.wheel-wrap .sat:hover { animation-play-state: paused; transform: scale(1.045); }

@keyframes wheelSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.wheel-wrap .wheel-ctr {
  transform-box: fill-box;
  transform-origin: center;
  animation: ctrPulse 7s ease-in-out infinite;
}

@keyframes ctrPulse { 0%, 100% { scale: 1; } 50% { scale: 1.025; } }
@keyframes satFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }

@media (prefers-reduced-motion: reduce) {
  .wheel-wrap .orbit-ring, .wheel-wrap .sat, .wheel-wrap .wheel-ctr { animation: none; }
}

/* ---------- Clickable condition icons ---------- */

a.icon-item { display: block; color: inherit; }
a.icon-item:hover { color: inherit; }
a.icon-item .icon-more {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 0.45rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}
a.icon-item:hover .icon-more { opacity: 1; transform: none; }

/* ---------- Conditions page ---------- */

.cond-list { display: grid; gap: 1.6rem; max-width: 860px; margin: 0 auto; }

.cond-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.9rem;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  scroll-margin-top: 100px;
}

.cond-card .icon-circle { width: 70px; height: 70px; margin: 0; flex-shrink: 0; background: var(--green-tint); border: none; }
.cond-card h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.cond-card p { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.cond-card p:last-child { margin-bottom: 0; }

/* ---------- Consultation modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 29, 27, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 3vh 4% 5vh;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 20px;
  width: min(640px, 100%);
  padding: 2.3rem clamp(1.3rem, 4vw, 2.5rem) 2rem;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.modal h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.modal .modal-sub { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.6rem; }

.modal-close {
  position: absolute;
  top: 1.3rem;
  right: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.3rem;
  line-height: 0;
}
.modal-close:hover { color: var(--green); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.form-field label .req { color: var(--amber); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #cfd8d4;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(1, 104, 83, 0.12);
}

.form-field .hint { font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.3rem; }

.form-consent { grid-column: 1 / -1; font-size: 0.78rem; color: var(--ink-soft); background: var(--green-tint-2); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; }

.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 0.8rem; margin-top: 0.4rem; }

.btn-amber { background: var(--amber-soft); color: var(--white); }
.btn-amber:hover { background: var(--amber); color: var(--white); transform: translateY(-1px); }

.btn-plain { background: none; border: none; color: var(--ink-soft); font-weight: 600; cursor: pointer; font-size: 0.9rem; padding: 0.85rem 1rem; }
.btn-plain:hover { color: var(--ink); }

.form-status { grid-column: 1 / -1; font-size: 0.9rem; font-weight: 600; display: none; }
.form-status.ok { display: block; color: var(--green); }
.form-status.err { display: block; color: #b3261e; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Self-assessment quiz ---------- */

.modal.modal-wide { width: min(760px, 100%); }

.quiz-timeframe {
  background: var(--green-tint-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
}

.quiz-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.quiz-item:last-of-type { border-bottom: none; }

.quiz-q { font-weight: 600; font-size: 0.93rem; margin-bottom: 0.7rem; }
.quiz-num { color: var(--amber); font-weight: 700; margin-right: 0.2rem; }

.quiz-opts { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }

.quiz-opt span {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border: 1.5px solid #cfd8d4;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quiz-opt:hover span { border-color: var(--green); color: var(--green); }

.quiz-opt input:checked + span {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.quiz-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(1, 104, 83, 0.25); }

.quiz-credit { font-size: 0.72rem; color: var(--ink-soft); margin-top: 1.4rem; opacity: 0.8; }

/* results */

.result-badge {
  border-radius: 16px;
  padding: 1.6rem 1.5rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.result-badge.sev-low { background: var(--green-tint); border: 1px solid #cfe4dc; }
.result-badge.sev-mid { background: var(--amber-tint); border: 1px solid #f0dcae; }
.result-badge.sev-high { background: #fdecea; border: 1px solid #f2c4bf; }

.result-score { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.sev-low .result-score { color: var(--green); }
.sev-mid .result-score { color: #a67208; }
.sev-high .result-score { color: #b3261e; }

.result-label { font-weight: 700; font-size: 1.05rem; margin-top: 0.3rem; }

.result-detail { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }

.result-crisis { margin: 1rem 0; text-align: left; }

.result-disclaimer { font-size: 0.82rem; color: var(--ink-soft); background: var(--cream); border-radius: 10px; padding: 0.9rem 1.1rem; margin-bottom: 1.6rem; }

.result-outreach { border-top: 1.5px solid var(--line); padding-top: 1.4rem; }
.result-outreach h3 { margin-bottom: 0.3rem; }
.result-outreach > p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1.1rem; }

.btn-assess { margin-top: 1rem; padding: 0.6rem 1.25rem; font-size: 0.85rem; }

/* ---------- Legal / privacy page ---------- */

.legal { max-width: 800px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.7rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 0.95rem; color: var(--ink-soft); }
.legal ol, .legal ul { padding-left: 1.4rem; display: grid; gap: 0.6rem; margin: 0.6rem 0 1rem; }
.legal li strong { color: var(--ink); }
.legal .effective { font-size: 0.85rem; font-weight: 600; color: var(--green); margin-bottom: 1.5rem; }

/* ---------- Psychology Today seal ---------- */

.pt-seal { margin-top: 1.2rem; }
.pt-seal-center { display: flex; justify-content: center; margin-top: 1.6rem; }
.pt-seal img { max-height: 48px; width: auto; }
.pt-seal-frame { border: none; width: 220px; height: 64px; overflow: hidden; }

/* ---------- Reveal animation ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0 3.5rem; gap: 2.5rem; }
  .hero-ring { display: none; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-grid.three { grid-template-columns: repeat(2, 1fr); }
  .band { grid-template-columns: 1fr; }
  .provider-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(29,29,27,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open { max-height: 420px; }

  .main-nav a {
    width: 100%;
    padding: 0.95rem 5%;
    border-bottom: 1px solid var(--line);
  }

  .main-nav a.active { border-bottom-color: var(--line); }

  .nav-cta { margin: 0.9rem 5% 1.1rem; }

  .card-grid { grid-template-columns: 1fr; }
  .card { flex-direction: column; }
  section { padding: 3.2rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .form-grid { grid-template-columns: 1fr; }
  .cond-card { flex-direction: column; }
}

@media (max-width: 980px) {
  .hero-values { grid-template-columns: 1fr 1fr; gap: 1.2rem 0; }
  .hero-values span:nth-child(3) { border-left: none; }
  .journey { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .journey-step:not(:last-child)::after { display: none; }
}

@media (max-width: 480px) {
  .icon-grid, .icon-grid.three { grid-template-columns: 1fr 1fr; gap: 1.5rem 0.8rem; }
  .icon-circle { width: 78px; height: 78px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}

/* ============ HERO BLOOM ============ */
.bloom-wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.bloom-wrap svg { width: min(520px, 100%); height: auto; filter: drop-shadow(0 18px 40px rgba(1, 74, 59, 0.16)); overflow: visible; }
.bloom-ring { transform-origin: 320px 320px; animation: wheelSpin 90s linear infinite; }
.bloom-petals { transform-box: fill-box; transform-origin: center; animation: bloomBreath 8s ease-in-out infinite; }
.bloom-hub { transform-box: fill-box; transform-origin: center; animation: ctrPulse 7s ease-in-out infinite; }
@keyframes bloomBreath { 0%, 100% { scale: 1; } 50% { scale: 1.02; } }
@media (prefers-reduced-motion: reduce) {
  .bloom-ring, .bloom-petals, .bloom-hub { animation: none; }
}

/* ============ PYRAMID COMPARISON (metabolic section) ============ */
.pyramid-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.6rem;
  align-items: end;
  max-width: 940px;
  margin: 3rem auto 0;
}
.pyramid-fig { text-align: center; margin: 0; }
.pyramid-fig svg { width: 100%; max-width: 420px; height: auto; display: block; margin: 0 auto; }
.pyramid-fig figcaption { margin-top: 1rem; }
.pyramid-fig figcaption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.pyramid-fig figcaption span { font-size: 0.85rem; color: var(--ink-soft); }
.pyramid-flip {
  align-self: center;
  color: var(--amber);
  padding-bottom: 3.2rem;
}
.pyr-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  fill: #fff;
  text-anchor: middle;
}
.pyr-label.small { font-size: 11px; }
.pyr-label.dark { fill: var(--green-dark); }
.pyramid-punchline {
  text-align: center;
  max-width: 46em;
  margin: 2.2rem auto 0;
  color: var(--ink-soft);
}
.pyramid-punchline strong { color: var(--green-dark); }
@media (max-width: 760px) {
  .pyramid-compare { grid-template-columns: 1fr; gap: 2.2rem; }
  .pyramid-flip { transform: rotate(90deg); padding-bottom: 0; justify-self: center; }
}
