/*
Theme Name:   Grounded in Growth
Theme URI:    https://groundedingrowth.ca
Author:       Crystal Van Den Bussche
Author URI:   https://groundedingrowth.ca
Description:  A warm, earthy one-page therapy website theme for Grounded in Growth. Features a full-width hero, smooth-scroll navigation, animated section reveals, FAQ accordion, and a calming ivory–clay–moss colour palette.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  grounded-in-growth
Tags:         one-page, custom-logo, full-width-template, responsive-layout
*/

/* ================================================================
   CSS CUSTOM PROPERTIES
================================================================ */
:root {
  --ivory:      #FBF7F1;
  --clay:       #F1E8DC;
  --charcoal:   #2B2B2B;
  --warm-grey:  #6F6861;
  --moss:       #6F7552;
  --copper:     #A65F2B;
  --near-black: #1A1A1A;
  --sand:       #E3DBCE;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw:       1180px;
  --gutter:     clamp(1.5rem, 5vw, 5rem);
  --section-y:  clamp(4.5rem, 9vw, 9rem);
  --logo-align: center;
  --hero-scrim: 0.45;
}

/* ================================================================
   RESET & BASE
================================================================ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 107.5%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--near-black);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  letter-spacing: 0.005em;
}

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ================================================================
   LAYOUT UTILITIES
================================================================ */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--moss);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--copper);
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  max-width: 16ch;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--warm-grey);
  max-width: 56ch;
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.95rem 1.7rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn--primary { background: var(--moss); color: var(--ivory); }
.btn--primary:hover { background: var(--copper); }
.btn--ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--warm-grey);
}
.btn--ghost:hover { border-color: var(--copper); color: var(--copper); }

/* ================================================================
   HEADER & NAVIGATION
================================================================ */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ivory) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
header.site.scrolled { border-bottom-color: var(--sand); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--serif);
  color: var(--near-black);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.logo-mark { flex: none; color: var(--moss); display: flex; align-items: center; }
.logo-mark svg { width: 30px; height: 38px; display: block; }
.logo-words { text-align: var(--logo-align); }
.logo .l-main { display: block; font-size: 1.5rem; font-weight: 600; }
.logo .l-in {
  display: block;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--warm-grey);
  margin: 0.05rem 0;
}

nav.links {
  display: flex;
  align-items: center;
  gap: clamp(1.05rem, 2.4vw, 2.25rem);
}
nav.links a.nav-link {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--warm-grey);
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
  transition: color .2s ease;
}
nav.links a.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--copper);
  transition: width .25s ease;
}
nav.links a.nav-link:hover { color: var(--near-black); }
nav.links a.nav-link:hover::after { width: 100%; }
nav.links .btn { padding: 0.7rem 1.25rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: .3s;
}

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: clamp(6rem, 12vw, 9rem);
  padding-bottom: clamp(4rem, 9vw, 7rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }

.field-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(95% 60% at 50% 70%, rgba(255,228,176,0.85) 0%, rgba(248,196,128,0) 48%),
    linear-gradient(180deg, #e7b478 0%, #dda05f 20%, #cc8c4c 38%, #bb9750 52%, #a08e44 66%, #807c3a 82%, #605e2e 100%);
}

.hero-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none; /* shown via JS once loaded */
}

.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(17,17,17,calc(var(--hero-scrim) * 0.65)) 0%,
    rgba(17,17,17,calc(var(--hero-scrim) * 0.30)) 38%,
    rgba(17,17,17,var(--hero-scrim)) 100%);
}

.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-inner { max-width: 60ch; }

.hero h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.1rem);
  font-weight: 500;
  letter-spacing: 0.003em;
  margin-bottom: 1.6rem;
  color: var(--ivory);
  text-shadow: 0 2px 28px rgba(0,0,0,0.42), 0 1px 3px rgba(0,0,0,0.25);
}
.hero h1 em { font-style: italic; color: #f3dcb8; }

.hero .eyebrow { color: #f7ecd9; }
.hero .eyebrow::before { background: #f7ecd9; }

.hero .lede {
  color: #fbf7f1;
  margin-bottom: 2.2rem;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.25);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn--ghost { color: var(--ivory); border-color: rgba(246,241,234,0.55); }
.hero .btn--ghost:hover { color: #f3dcb8; border-color: #f3dcb8; }

body.hero-center .hero-inner { margin: 0 auto; text-align: center; }
body.hero-center .hero .eyebrow { justify-content: center; }
body.hero-center .hero-cta { justify-content: center; }
body.hero-left .hero-inner { margin: 0; text-align: left; }
body.hero-left .hero-cta { justify-content: flex-start; }

/* ================================================================
   CERTIFICATIONS
================================================================ */
.certs {
  padding-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  text-align: center;
  border-top: 1px solid var(--sand);
}
.certs .eyebrow { display: inline-flex; justify-content: center; margin-bottom: 2.4rem; }
.cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.cert-card {
  background: #FCFAF5;
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 1.1rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-card img { width: 150px; height: 96px; object-fit: contain; }

/* ================================================================
   ABOUT
================================================================ */
.about {
  background: var(--clay);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.about-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 487 / 571;
  object-fit: cover;
  border-radius: 10px;
}
.about-figure .cred {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--warm-grey);
  letter-spacing: 0.04em;
}
.about-figure .cred strong {
  color: var(--near-black);
  font-weight: 600;
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.about h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.about .body-lg { font-size: 1.12rem; color: #34302b; }
.about .approach-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.8rem; }
.approach-tags .tag {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--moss);
  border: 1px solid color-mix(in srgb, var(--moss) 40%, transparent);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: color-mix(in srgb, var(--ivory) 50%, transparent);
}

/* ================================================================
   FINDING THE RIGHT FIT
================================================================ */
.fit-intro { max-width: 64ch; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.fit-intro .lede { color: var(--charcoal); margin-bottom: 1.2rem; }
.fit-block { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.fit-h {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand);
}
.fit-prose { max-width: 68ch; color: #3a352f; }
.fit-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.fit-card { background: var(--clay); border-radius: 8px; padding: 2rem 1.9rem; }
.fit-card .fit-num {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--copper);
  display: block;
  margin-bottom: 0.8rem;
  letter-spacing: 0.06em;
}
.fit-card h4 { font-size: 1.4rem; margin-bottom: 0.7rem; }
.fit-card p { font-size: 0.98rem; color: #423c35; line-height: 1.65; margin: 0; }
.fit-refer { max-width: 72ch; }
.fit-refer > p { color: #3a352f; margin-bottom: 1.5rem; }
.refer-list { list-style: none; margin: 0; padding: 0; }
.refer-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 1rem;
  color: var(--warm-grey);
}
.refer-list li:last-child { margin-bottom: 0; }
.refer-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 13px; height: 1px;
  background: var(--warm-grey);
}
.fit-connect {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--clay);
  border-radius: 10px;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.fit-connect h3 { font-size: 1.8rem; margin-bottom: 0.6rem; }
.fit-connect p { max-width: 52ch; color: #3a352f; margin: 0; }
.fit-connect .btn { flex: none; }

/* ================================================================
   SECTION BASE
================================================================ */
section.block {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 60ch;
}
.section-head .lede { margin-top: 1.6rem; }

/* ================================================================
   SERVICES
================================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.svc-card {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 2.25rem;
}
.svc-card h3 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sand);
}
.price-row:last-of-type { border-bottom: 0; }
.price-row .label { color: var(--charcoal); }
.price-row .amount {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--near-black);
  font-weight: 600;
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.85rem;
  color: #3a352f;
}
.svc-list li:last-child { margin-bottom: 0; }
.svc-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.65em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--moss);
}
.svc-note { margin-top: 1.75rem; font-size: 0.95rem; color: var(--warm-grey); }

/* ================================================================
   APPROACH MODALITIES
================================================================ */
.approach { background: var(--clay); }
.pill-cloud { display: flex; flex-wrap: wrap; gap: 0.85rem; max-width: 70ch; }
.pill {
  background: var(--ivory);
  border: 1px solid var(--sand);
  color: var(--charcoal);
  padding: 0.7rem 1.3rem;
  border-radius: 100px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: border-color .2s ease, color .2s ease;
}
.pill:hover { border-color: var(--moss); color: var(--moss); }

/* ================================================================
   AREAS OF SUPPORT
================================================================ */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2.5rem;
}
.support-grid .col { display: flex; flex-direction: column; }
.support-grid .item {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--sand);
  font-size: 1.02rem;
  color: #34302b;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.support-grid .item::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--copper);
  flex: none;
}

/* ================================================================
   FAQ
================================================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sand); }
.faq-item:first-child { border-top: 1px solid var(--sand); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--near-black);
  font-weight: 500;
  transition: color .2s ease;
}
.faq-q:hover { color: var(--moss); }
.faq-q .icon { flex: none; width: 22px; height: 22px; position: relative; }
.faq-q .icon::before,
.faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--copper);
  transition: transform .3s ease, opacity .3s ease;
}
.faq-q .icon::before {
  left: 0; top: 50%;
  width: 100%; height: 1.5px;
  transform: translateY(-50%);
}
.faq-q .icon::after {
  top: 0; left: 50%;
  height: 100%; width: 1.5px;
  transform: translateX(-50%);
}
.faq-item.open .faq-q .icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}
.faq-a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 0 1.6rem; max-width: 64ch; }
.faq-a-inner p { color: #4a443d; }

/* ================================================================
   EMDR
================================================================ */
.emdr { background: var(--charcoal); color: var(--ivory); }
.emdr h2, .emdr h3 { color: var(--ivory); }
.emdr .eyebrow { color: #c9b9a6; }
.emdr .eyebrow::before { background: var(--copper); }
.emdr .lede { color: #c8c1b8; }
.emdr-summary {
  max-width: 64ch;
  color: #ddd6cc;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.phases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.phase {
  display: flex;
  gap: 1.4rem;
  padding: 1.7rem 2rem 1.7rem 0;
  border-top: 1px solid rgba(207,197,184,0.18);
  align-items: baseline;
}
.phase .num {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--copper);
  line-height: 1;
  flex: none;
  width: 2.2ch;
}
.phase h4 { font-size: 1.3rem; margin-bottom: 0.35rem; color: var(--ivory); }
.phase p { font-size: 0.95rem; color: #b8b1a7; margin: 0; line-height: 1.6; }

/* ================================================================
   CONTACT
================================================================ */
.contact { background: var(--clay); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
}
.contact-card {
  background: var(--ivory);
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.contact-card h3 { font-size: 1.45rem; margin-bottom: 1.3rem; }
.contact-line { margin-bottom: 1.1rem; }
.contact-line .k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--moss);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}
.contact-line .v { font-size: 1.15rem; color: var(--near-black); }
.contact-line .v a:hover { color: var(--copper); }
.contact-card.crisis { background: var(--sand); }
.contact-card.crisis h3 { color: var(--near-black); }
.small-note { font-size: 0.92rem; color: var(--warm-grey); margin-top: 0.4rem; }
.ack {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2.5rem;
  border-top: 1px solid var(--sand);
  max-width: 70ch;
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--warm-grey);
  line-height: 1.55;
}

/* ================================================================
   FOOTER
================================================================ */
footer.site {
  background: var(--near-black);
  color: var(--ivory);
  padding: clamp(3.5rem, 6vw, 5rem) 0 2.5rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-logo { text-align: var(--logo-align); }
.footer-logo .l-main {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
}
.footer-logo .l-in {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: #9a948b;
  font-size: 0.95rem;
  margin: 0.1rem 0;
}
.footer-cred { color: #b8b1a7; font-size: 0.92rem; margin-top: 1rem; letter-spacing: 0.04em; }
.footer-cred strong {
  color: var(--ivory);
  font-weight: 500;
  display: block;
  font-size: 1rem;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.85rem; }
.footer-nav a {
  color: #b8b1a7;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color .2s ease;
}
.footer-nav a:hover { color: var(--copper); }
.footer-bottom {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: #8a847b;
  font-size: 0.8rem;
}

/* ================================================================
   REVEAL ANIMATION
================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 940px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 360px; }
  .fit-cards { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  nav.links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: var(--ivory);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 2rem 2rem;
    gap: 1.6rem;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,0.08);
  }
  nav.links.open { transform: none; }
  .nav-toggle { display: block; z-index: 60; }
  .support-grid { grid-template-columns: 1fr; }
  .phase { padding-right: 0; }
}
