/* =========================================================
   Envision Therapy — design tokens
   Palette pulled from the brand mark: watercolour sage arc,
   sprouting leaves, and the soil it grows from.
   ========================================================= */
:root{
  --paper:        #F6F1E4;   /* warm background, matches watercolour paper */
  --paper-alt:    #FCFAF2;   /* card / panel background */
  --forest:       #2C4630;   /* wordmark green, headings */
  --forest-deep:  #1E3223;   /* darkest ink, footer bg */
  --sage:         #86A67B;   /* the arc / mid accent */
  --sage-soft:    #DCE6D2;   /* tint backgrounds */
  --sage-line:    #B9CCAE;   /* hairlines on light bg */
  --soil:         #A9805A;   /* accent from the seedling's soil */
  --soil-deep:    #8A6642;   /* hover state for soil accent */
  --ink:          #2B342A;   /* body text */
  --ink-soft:     #5B6357;   /* secondary text */
  --line:         #E4DCC5;   /* dividers on paper */
  --white:        #FFFFFF;

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body:    'Karla', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(44, 70, 48, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(44, 70, 48, 0.15);
  --maxw: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--forest);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 560; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3{ font-size: 1.28rem; }

p{ margin: 0 0 1em; color: var(--ink); }
a{ color: var(--forest); }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soil-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  display: none;
}

.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:focus-visible{ outline: 3px solid var(--soil); outline-offset: 3px; }

.btn-primary{
  background: var(--forest);
  color: var(--paper-alt);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ background: var(--forest-deep); transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-ghost:hover{ background: var(--forest); color: var(--paper-alt); }

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

.btn-row{ display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Nav ---------- */
.site-header{
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand{
  display: flex; align-items: center;
  text-decoration: none;
  color: var(--forest);
}
.brand img{ height: 84px; width: auto; display: block; }

.nav-links{
  display: flex; align-items: center; gap: 34px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a{
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a.active, .nav-links a:hover{ color: var(--forest); }
.nav-links a.active::after{
  content:'';
  position:absolute; left:0; right:0; bottom:-4px;
  height: 2px; background: var(--soil);
  border-radius: 2px;
}
.nav-cta-mobile{ display: none; width: 100%; }
.nav-cta-mobile .btn-primary{
  color: #FFFFFF;
  width: 100%;
  justify-content: center;
  padding: 16px 26px;
}
.nav-cta{ display:flex; align-items:center; gap: 14px; }
.nav-phone{
  font-weight: 700; font-size: 0.92rem; color: var(--forest); text-decoration: none;
  display: none;
}

.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--forest);
}
.nav-toggle svg{ width: 26px; height: 26px; }

@media (max-width: 860px){
  .nav{ padding: 10px 20px; }
  .brand img{ height: 54px; }
  .nav-links{
    position: fixed; top: 76px; right: 0; bottom: 0; left: 0;
    background: var(--paper-alt);
    z-index: 55;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 22px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.open{ opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a{ font-size: 1.15rem; }
  .nav-toggle{ display: block; }
  .nav-cta .btn-primary{ display: none; }
  .nav-cta-mobile{ display: block; margin-top: 6px; }
}

@media (max-width: 420px){
  .brand img{ height: 46px; }
  .nav{ padding: 8px 16px; }
  .nav-links{ top: 66px; right: 0; bottom: 0; left: 0; }
}

/* ---------- Hero arc motif ---------- */
.arc-decor{
  position: absolute;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  opacity: 0.55;
}

/* ---------- Sections ---------- */
section{ padding: 88px 0; position: relative; }
.section-tight{ padding: 56px 0; }
.section-alt{ background: var(--sage-soft); }
.section-forest{ background: var(--forest); color: var(--paper-alt); }
.section-forest h2, .section-forest h3{ color: var(--paper-alt); }
.section-forest p{ color: #D8E3D6; }
.section-forest a{ color: var(--paper-alt); text-decoration: underline; text-decoration-color: rgba(252,250,242,0.4); text-underline-offset: 3px; }
.section-forest a:hover{ text-decoration-color: var(--paper-alt); }
.section-forest a.btn{ text-decoration: none; }

/* ---------- Vine divider (signature element) ---------- */
.vine{
  display: flex; align-items: center; justify-content: center;
  margin: 8px 0 48px;
  color: var(--sage);
}
.vine svg{ width: 180px; height: 22px; }

/* ---------- Grid / cards ---------- */
.grid{ display: grid; gap: 26px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){
  .grid-3, .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

.card{
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card .leaf-icon{ margin-bottom: 16px; }
.card h3{ margin-bottom: 10px; }
.card p{ color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Steps (growth journey) ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 900px){ .steps{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .steps{ grid-template-columns: 1fr; } }

.step{ position: relative; padding-top: 8px; }
.step-num{
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sage);
  font-weight: 600;
  display:block;
  margin-bottom: 6px;
}
.step h4{ font-family: var(--font-body); color: var(--forest); font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.step p{ font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

/* ---------- Banner strip ---------- */
.banner{
  background: var(--soil);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.banner h3{ color: var(--white); margin-bottom: 4px; font-family: var(--font-display); }
.banner p{ color: #F3E7DA; margin: 0; }
.banner .btn-primary{ background: var(--forest); }

/* ---------- Footer ---------- */
.site-footer{
  background: var(--forest-deep);
  color: #CFDACB;
  padding: 60px 0 30px;
}
.site-footer a{ color: #E7EEE2; text-decoration: none; }
.site-footer a:hover{ text-decoration: underline; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h4{
  color: #E7EEE2; font-family: var(--font-body);
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.footer-grid ul{ list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img{ height: 38px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-tagline{ color: #AEC0AA; max-width: 34ch; font-size: 0.95rem; }
.social-link{
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #E7EEE2;
  margin-top: 18px; transition: background 0.18s ease;
}
.social-link:hover{ background: rgba(255,255,255,0.18); }
.footer-bottom{
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: #8FA089;
}

/* ---------- Utility ---------- */
.text-center{ text-align: center; margin: 0 auto; }
.mt-0{ margin-top: 0; }
.badge{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage-soft); color: var(--forest);
  border-radius: 999px; padding: 6px 16px;
  font-size: 0.82rem; font-weight: 700;
}
.two-col{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 860px){
  .two-col{ grid-template-columns: 1fr; gap: 32px; }
}

.hero-section{ padding-top: 36px; padding-bottom: 48px; }
.hero-section h1{ font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.hero-img-top{ width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto 22px; }
.hero-section .lede{ max-width: 60ch; font-size: 1.1rem; }
.hero-section .eyebrow{ margin-bottom: 12px; }
@media (max-width: 640px){
  .hero-section{ padding-top: 20px; padding-bottom: 32px; }
  .hero-section h1{ font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hero-img-top{ max-width: 240px; margin-bottom: 16px; }
}

.team-grid{ display:grid; grid-template-columns: 220px 1fr; gap:36px; align-items:start; max-width:760px; margin:0 auto; }
.team-photo{
  width:220px; height:220px; border-radius:50%; background:var(--sage-soft);
  display:flex; align-items:center; justify-content:center; color:var(--forest);
  overflow:hidden;
}
.team-photo svg{ width:62%; height:62%; }
@media (max-width: 640px){
  .team-grid{ grid-template-columns: 1fr; gap: 22px; }
  .team-grid .team-photo{ margin: 0 auto; }
  .team-grid .badge-row{ justify-content: center; }
  .team-grid h3, .team-grid .team-title{ text-align: center; }
}

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--forest); color: var(--paper);
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus{ left: 12px; top: 12px; }

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; scroll-behavior: auto !important; }
}
