/* ==========================================================================
   Brittany Doring Therapy — styles.css
   ========================================================================== */

:root {
  --sage: #7656A5;
  --sage-dark: #5C3699;
  --cream: #FBFAFD;
  --cream-alt: #F1EDF7;
  --forest: #2E2635;
  --terracotta: #6F43C0;
  --terracotta-dark: #563295;
  --white: #FFFFFF;
  --border: #DED7E7;
  --muted: #655D6D;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1160px;
  --radius: 14px;
  --shadow-soft: 0 12px 34px rgba(46, 38, 53, 0.09);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--forest);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--forest);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

a {
  color: var(--sage-dark);
  text-decoration-color: rgba(92, 54, 153, 0.35);
  transition: text-decoration-color 0.2s ease, opacity 0.2s ease;
}
a:hover {
  text-decoration-color: currentColor;
}

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(86, 50, 149, 0.22);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(251, 250, 253, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(46, 38, 53, 0);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 24px rgba(46, 38, 53, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.logo:hover {
  opacity: 0.75;
}
.logo span {
  color: var(--sage-dark);
  font-weight: 400;
  font-style: italic;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--forest);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--terracotta);
  transition: right 0.25s ease;
}
.nav-links a:hover {
  color: var(--sage-dark);
}
.nav-links a:hover::after {
  right: 0;
}

.header-cta {
  max-width: 230px;
  padding: 10px 18px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  position: relative;
  transition: transform 0.2s ease;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

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

.section {
  padding: 76px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sage-dark);
  margin-bottom: 12px;
}

.center { text-align: center; }
.center.eyebrow { margin-bottom: 10px; }

.section-lede {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section > .container > h2.center {
  margin-bottom: 8px;
}

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

.hero {
  padding: 64px 0 60px;
  background: var(--cream);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-name,
.hero-credentials {
  display: block;
}

.hero-credentials {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sage-dark);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 26px 0;
}

.hero-service-area {
  max-width: 54ch;
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--terracotta);
  background: var(--cream-alt);
  color: var(--forest);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.trust-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 0;
  margin: 0;
}
.trust-badges li {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sage-dark);
  padding-left: 22px;
  position: relative;
}
.trust-badges li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.hero-elsewhere {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.hero-elsewhere a {
  color: var(--forest);
  font-weight: 600;
}

.professional-verification {
  min-height: 52px;
  margin-top: 14px;
  display: flex;
  align-items: center;
}

.professional-verification .sx-verified-seal {
  display: inline-block;
}

.hero-photo,
.headshot-photo {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.hero-photo { aspect-ratio: 4 / 5; }

.hero-photo:hover,
.headshot-photo:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 36px rgba(46, 38, 53, 0.16);
}

/* -------------------- About -------------------- */

.about {
  padding-bottom: 60px;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.headshot-photo {
  aspect-ratio: 4 / 5;
}

/* -------------------- Specialties tags -------------------- */

.specialties {
  padding-top: 60px;
}

.tag-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.tag-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tag-grid li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--sage);
}

/* -------------------- Approach: modality columns -------------------- */

.approach {
  background: var(--cream-alt);
}

.modality-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 32px;
  max-width: 960px;
  margin: 0 auto;
}

.modality-col {
  width: 190px;
  text-align: center;
}

.modality-name {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--forest);
  transition: color 0.25s ease;
}

.modality-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--terracotta);
  margin: 12px auto 14px;
  transition: width 0.3s ease;
}

.modality-desc {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

.modality-col:hover .modality-name {
  color: var(--sage-dark);
}
.modality-col:hover .modality-rule {
  width: 56px;
}

/* -------------------- How it works -------------------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0;
  margin: 0 0 48px;
  counter-reset: step;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.step p {
  color: var(--muted);
  font-size: 0.95rem;
}

.how-it-works-cta {
  text-align: center;
}

/* -------------------- Fees -------------------- */

.fees-simple {
  background: var(--cream-alt);
}

.fees-simple-inner {
  max-width: 820px;
}

.fees-copy .section-lede {
  margin: 0 0 24px;
  max-width: none;
  text-align: left;
}

.insurance-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 0 0 20px;
}
.insurance-pills li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.insurance-pills li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.fees-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* -------------------- FAQ accordion -------------------- */

.accordion {
  max-width: 760px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.accordion-trigger::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--terracotta);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.accordion-trigger[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--muted);
  transition: grid-template-rows 0.35s ease;
}
.accordion-panel.open {
  grid-template-rows: 1fr;
}
.accordion-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.accordion-panel-inner p {
  margin: 0;
  padding: 0 4px 22px;
}

/* -------------------- Contact -------------------- */

.contact {
  background: var(--cream);
}

.contact-inner {
  max-width: 920px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 58px clamp(24px, 7vw, 80px);
  border-radius: 22px;
  background: var(--forest);
  color: var(--white);
  text-align: center;
  box-shadow: 0 20px 50px rgba(46, 38, 53, 0.18);
}

.contact-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -130px;
  right: -70px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.contact-card .eyebrow,
.contact-card h2 {
  color: var(--white);
}

.contact-card p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto 26px;
  color: #E6DFEB;
}

.contact-cta {
  padding: 17px 32px;
  background: #8A62D3;
  font-size: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.contact-cta:hover {
  background: #9A74DD;
}

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

.site-footer {
  background: var(--forest);
  color: #DCD5E1;
  padding: 52px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 34px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo span {
  color: var(--cream-alt);
}

.footer-col h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}
.footer-credentials {
  color: var(--white);
  font-weight: 700;
}
.footer-email {
  overflow-wrap: anywhere;
}
.footer-col a {
  color: #E8E0EE;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.82rem;
  color: #A99BC2;
}

/* -------------------- Motion / scroll reveal -------------------- */

.reveal,
.reveal-item,
.hero-anim {
  opacity: 1;
  transform: none;
}

html.js-anim .reveal,
html.js-anim .reveal-item,
html.js-anim .hero-anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 0.8, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 0.8, 0.3, 1);
  will-change: opacity, transform;
}

html.js-anim .reveal.in-view,
html.js-anim .reveal-item.in-view,
html.js-anim .hero-anim.in-view {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .container { padding: 0 20px; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-photo { aspect-ratio: 16/8; object-position: center 38%; }
  .about-inner { grid-template-columns: 1fr; }
  .headshot-photo { max-width: 320px; aspect-ratio: 4/5; margin: 0 auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-nav {
    position: static;
    flex: 0 0 auto;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    transition: max-height 0.25s ease;
  }
  .nav-links.open {
    max-height: 400px;
  }
  .nav-links li {
    border-top: 1px solid var(--border);
  }
  .nav-links a {
    display: block;
    padding: 16px 24px;
  }
  .header-cta {
    display: none;
  }
  .header-inner {
    position: relative;
    min-height: 64px;
    padding-right: 58px;
  }
}

@media (max-width: 600px) {
  .section { padding: 54px 0; }
  .about { padding-bottom: 48px; }
  .specialties { padding-top: 48px; }
  .hero { padding-top: 30px; }
  .hero-inner { gap: 30px; }
  .hero-media { order: 2; }
  .hero-photo { aspect-ratio: 16/7; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .hero-service-area span { display: none; }
  .hero-service-area { line-height: 1.7; }
  .tag-grid { gap: 8px; }
  .tag-grid li { padding: 8px 13px; font-size: 0.84rem; }
  .contact-card { padding: 44px 22px; border-radius: 16px; }
  .contact-cta { width: 100%; padding: 16px 20px; }
}
