/* =========================================================
   Gentle Roots Counseling — shared styles
   Palette: sage green, warm white, soft beige, dusty olive,
   charcoal buttons. Fonts: Cormorant Garamond + Inter.
   ========================================================= */

:root {
  --warm-white: #faf7f0;
  --warm-white-2: #f4efe5;
  --soft-beige: #e9e0d0;
  --soft-beige-deep: #ddd2be;
  --sage: #9fae92;
  --sage-soft: #b9c4ad;
  --sage-deep: #7c8d6c;
  --dusty-olive: #7b7a55;
  --dusty-olive-deep: #64633f;
  --charcoal: #34332e;
  --charcoal-soft: #45443d;
  --text: #3d3b35;
  --muted: #726f64;
  --line: #e2d9c8;
  --shadow: 0 18px 50px -28px rgba(60, 55, 40, 0.45);
  --shadow-soft: 0 12px 34px -24px rgba(60, 55, 40, 0.4);
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Open Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.72;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.1px;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: 0.2px;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

p { margin: 0 0 1.1em; }

a { color: var(--dusty-olive-deep); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--sage-deep); }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 26px; }

.eyebrow {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin: 0 0 1.1rem;
}

.lead { font-size: 1.22rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--charcoal);
  color: #f6f2e9;
  padding: 0.95em 1.9em;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 10px 26px -18px rgba(52, 51, 46, 0.9);
}
.btn:hover { background: var(--charcoal-soft); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(52, 51, 46, 0.95); }
.btn svg { width: 16px; height: 16px; }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--warm-white-2); color: var(--charcoal); border-color: var(--sage); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 217, 200, 0.7);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand .mark { width: 38px; height: 46px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--charcoal);
  letter-spacing: 0.4px;
}
.brand-sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--sage-deep);
  margin-top: 3px;
}
.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--sage-deep);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--charcoal); }
/* keep the CTA button styled as a button, not a nav text link */
.nav-links a.btn { color: #f6f2e9; }
.nav-links a.btn:hover { color: #fff; }
.nav-links a.btn::after { display: none; }
.nav-cta { margin-left: 0.4rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: 0.3s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-scene {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-scene svg { width: 100%; height: 100%; object-fit: cover; }
/* optional photographic layer over the SVG scene (graceful fallback: SVG shows if it fails) */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(250,247,240,0.95) 0%, rgba(250,247,240,0.82) 34%, rgba(248,244,235,0.34) 66%, rgba(248,244,235,0.06) 100%);
}

/* ---------- Photographic band (light text over dark-tinted photo) ---------- */
.photo-band-img {
  position: relative;
  overflow: hidden;
  background: #33413a;
}
.photo-band-img::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--img, none);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.photo-band-img::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgba(38,42,32,0.74) 0%, rgba(46,52,38,0.55) 55%, rgba(60,70,48,0.5) 100%);
}
.photo-band-img .wrap { position: relative; z-index: 2; }
.photo-band-img h2,
.photo-band-img h3,
.photo-band-img blockquote { color: #fbf8f0; }
.photo-band-img .lead,
.photo-band-img p { color: #ece7da; }
.photo-band-img .eyebrow { color: #c7d3b4; }
.photo-band-img .btn-ghost { color: #fbf8f0; border-color: rgba(255,255,255,0.4); }
.photo-band-img .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.6); }
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) 26px clamp(4.5rem, 10vw, 8rem);
}
.hero-copy { max-width: 640px; }
.hero h1 { color: #2c2b25; }
.hero .lead { color: #4a473d; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section-beige { background: var(--warm-white-2); }
.section-sage {
  background: linear-gradient(160deg, #eef1e8 0%, #e7ecdd 100%);
}
.center { text-align: center; }
.measure { max-width: 720px; }
.measure-wide { max-width: 860px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.6rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #eef1e7;
  color: var(--sage-deep);
  margin-bottom: 1.1rem;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0; }

/* two-column feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  min-height: 320px;
}
.split-media svg { width: 100%; height: 100%; }
.split-media { background: linear-gradient(150deg, #e7ecdc 0%, #d7e0c9 100%); }
.split-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-caption { font-size: 0.82rem; color: var(--muted); margin: 0.7rem 0 0; text-align: center; }

/* ---------- Pill list ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.pills li {
  background: #eef1e7;
  color: var(--dusty-olive-deep);
  border: 1px solid #dbe1cf;
  padding: 0.45em 1em;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
}

/* ---------- Feature banner ---------- */
.quote-band { position: relative; overflow: hidden; }
.quote-band .wrap { position: relative; z-index: 2; }
.quote-band blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.35;
  color: var(--charcoal);
  margin: 0;
  max-width: 900px;
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.4rem 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.5rem 1.15rem 0;
  position: relative;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--charcoal);
  transition: color 0.25s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  color: var(--sage-deep);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--dusty-olive-deep); }
.faq .faq-body { padding: 0 0 1.4rem; color: var(--muted); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* payment / insurance columns */
.info-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 1.4rem; }
.info-cols h4 { font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--sage-deep); margin-bottom: 0.8rem; }
.info-cols ul { list-style: none; padding: 0; margin: 0; }
.info-cols li { padding: 0.28rem 0; color: var(--muted); font-size: 0.95rem; border-bottom: 1px dashed var(--line); }

/* price cards */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; margin-top: 1rem; }
.price {
  background: #fffdf8; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-soft);
}
.price .amt { font-family: "Cormorant Garamond", serif; font-size: 2.6rem; color: var(--charcoal); line-height: 1; }
.price .amt span { font-size: 1rem; color: var(--muted); font-family: "Inter", sans-serif; }
.price h4 { font-family: "Inter", sans-serif; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--sage-deep); margin: 0 0 0.9rem; }
.price .sub { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0 0; }

/* ---------- Contact ---------- */
.contact-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: center;
}
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.contact-list li { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0; font-size: 1.05rem; }
.contact-list .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: #eef1e7; color: var(--sage-deep); }
.contact-list .ico svg { width: 20px; height: 20px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.cta-band .lead { max-width: 34em; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  background: var(--charcoal);
  color: #cfc9ba;
  padding: 4rem 0 2.4rem;
  margin-top: 0;
}
.footer a { color: #cfc9ba; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.footer .brand-name { color: #f4efe4; }
.footer .brand-sub { color: var(--sage-soft); }
.footer h4 { color: #f4efe4; font-family: "Inter", sans-serif; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 0.32rem 0; font-size: 0.94rem; }
.footer .fine { color: #9a948680; }
.footer-tag { font-size: 0.95rem; color: #b7b1a3; max-width: 24em; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  margin-top: 3rem; padding-top: 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.82rem; color: #8f897b;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Page hero (interior) ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #eef1e8, #e6ecdc); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: clamp(3.5rem, 8vw, 5.5rem); padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
/* subtle photographic layer behind interior page headers */
.page-hero.has-photo::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img, none);
  background-size: cover;
  background-position: center;
}
.page-hero.has-photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(240,243,234,0.94) 0%, rgba(238,241,232,0.8) 40%, rgba(236,240,228,0.42) 72%, rgba(236,240,228,0.16) 100%);
}
.page-hero .eyebrow { color: var(--sage-deep); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); }
.page-hero p { max-width: 40em; color: var(--muted); }
.page-hero-deco { position: absolute; inset: 0; z-index: 1; opacity: 0.9; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { aspect-ratio: 16/10; min-height: 260px; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .info-cols { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(82vw, 330px);
    z-index: 55;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    background: var(--warm-white);
    padding: 2rem 2.2rem;
    box-shadow: -24px 0 60px -30px rgba(0,0,0,0.45);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: none; }
  /* dimming scrim behind the open drawer */
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(45, 42, 32, 0.42);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
    z-index: 39;
    pointer-events: none;
  }
  body.nav-open::after { opacity: 1; visibility: visible; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  .nav-links a { font-size: 1.2rem; }
  .nav-toggle { display: block; z-index: 60; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ---- ensure light text wins on photographic bands (source-order override) ---- */
.photo-band-img h2,
.photo-band-img h3,
.photo-band-img blockquote { color: #fbf8f0; }
.photo-band-img .lead,
.photo-band-img p { color: #ece7da; }
.photo-band-img .eyebrow { color: #c7d3b4; }

/* ---- checklist (Approach page) ---- */
.checklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.95rem; max-width: 640px; }
.checklist.mx-auto { margin-left: auto; margin-right: auto; }
.checklist li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 1.05rem; color: var(--text); }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--sage-deep); margin-top: 3px; }
