/* =========================================================
   New Path Counseling — Shared Stylesheet
   Brand fonts: Arial Rounded MT Bold (headings), Arial (body)
   ========================================================= */

:root {
  /* Brand palette (from client-supplied hex codes) */
  --purple-deep: #4021a2;
  --purple: #8321a2;
  --orchid: #dd89f0;
  --sage: #a3b3a1;
  --sage-dark: #8f9f8c;
  --forest: #5f6f63;
  --cream: #f4f1eb;
  --taupe: #d8d1cc;
  --lavender-pale: #e9ddeb;
  --charcoal: #4b4453;
  --sage-tint: #eef1ee;
  --sage-tint-deep: #dbe4d8;

  /* Semantic aliases */
  --color-bg: #ffffff;
  --color-bg-alt: var(--cream);
  --color-bg-tint: var(--lavender-pale);
  --color-bg-sage: var(--sage-tint);
  --color-text: var(--charcoal);
  --color-text-soft: #6b6274;
  --color-heading: var(--purple-deep);
  --color-accent: var(--purple);
  --color-accent-light: var(--orchid);
  --color-border: var(--taupe);

  /* Fonts: Arial Rounded MT Bold is a licensed Monotype face preinstalled
     with macOS / MS Office. No legal free web-font source exists, so we
     reference it as a local/system font with Arial as the safe fallback. */
  --font-heading: "Arial Rounded MT Bold", "Arial Rounded MT", "Helvetica Rounded",
    Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;

  --container-width: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(64, 33, 162, 0.08);
  --shadow-md: 0 8px 24px rgba(64, 33, 162, 0.12);
  --shadow-lg: 0 16px 48px rgba(64, 33, 162, 0.16);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: 1.2rem;
  color: var(--color-text-soft);
}

a.text-link {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--orchid);
  text-underline-offset: 3px;
}
a.text-link:hover { color: var(--purple-deep); }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple-deep);
  color: #fff;
  padding: 0.75em 1.25em;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--orchid);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-bg-alt { background: var(--color-bg-alt); }
.section-bg-tint { background: var(--color-bg-tint); }
.section-bg-sage { background: var(--sage-tint); }
.section-bg-deep {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple));
  color: #fff;
}
.section-bg-forest {
  background: linear-gradient(135deg, var(--forest), var(--sage-dark));
  color: #fff;
}
.section-bg-deep h1, .section-bg-deep h2, .section-bg-deep h3,
.section-bg-forest h1, .section-bg-forest h2, .section-bg-forest h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 0 2.5rem;
}
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--lavender-pale);
  padding: 0.4em 1em;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.section-bg-deep .eyebrow,
.section-bg-forest .eyebrow {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.two-col {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col.reverse > *:first-child { order: 2; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-heading);
  font-size: 1rem;
  padding: 0.85em 1.75em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--purple-deep);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--purple); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: #fff;
  color: var(--purple-deep);
  border-color: var(--purple-deep);
}
.btn-secondary:hover { background: var(--lavender-pale); }
.btn-on-dark {
  background: #fff;
  color: var(--purple-deep);
}
.btn-on-dark:hover { background: var(--lavender-pale); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand img { height: 56px; width: auto; }
.brand-text {
  font-family: var(--font-heading);
  color: var(--purple-deep);
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--forest);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: normal;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--purple-deep);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  text-decoration: none;
  font-weight: bold;
  color: var(--color-text);
  font-size: 0.98rem;
  padding: 0.25em 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--purple-deep);
  border-color: var(--orchid);
}

.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: none;
  font-family: var(--font-heading);
  color: var(--purple-deep);
  text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 1000px) { .header-phone { display: inline-flex; align-items:center; gap:0.4em; } }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 1.5rem;
    z-index: 600;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 1em 0.25em; }
}

@media (max-width: 560px) {
  .brand-text { font-size: 1rem; }
  .brand img { height: 44px; }
  .header-cta .btn-primary { display: none; }
}

.mobile-nav-cta { display: none; }
@media (max-width: 960px) {
  .mobile-nav-cta {
    display: block;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
  }
  .mobile-nav-cta .btn + .btn { margin-top: 0.75rem; }
}

/* ---------- Accepting clients badge ---------- */
.accepting-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  background: #fff;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.accepting-badge::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage-dark);
  box-shadow: 0 0 0 4px rgba(143, 159, 140, 0.25);
}

/* ---------- Hero (full-bleed photo background) ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  padding-block: clamp(56px, 10vw, 110px);
  overflow: hidden;
  background: var(--charcoal);
  isolation: isolate;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(37, 17, 71, 0.88) 0%, rgba(37, 17, 71, 0.72) 38%, rgba(37, 17, 71, 0.32) 68%, rgba(37, 17, 71, 0.15) 100%),
    linear-gradient(0deg, rgba(20, 10, 38, 0.35) 0%, rgba(20, 10, 38, 0) 35%);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-content { max-width: 640px; }
.hero-content .eyebrow {
  background: rgba(255, 255, 255, 0.95);
}
.hero-content h1 {
  color: #fff;
  margin-bottom: 0.6em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}
.hero-content .lede {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}
.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
@media (max-width: 700px) {
  .hero { min-height: auto; }
}
.hero-compact { min-height: min(56vh, 460px); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lavender-pale);
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.card-icon-sage { background: var(--sage-tint-deep); color: var(--forest); }
.card-top-accent { border-top: 4px solid var(--purple); }
.card-top-accent.accent-sage { border-top-color: var(--sage-dark); }
.card h3 { margin-bottom: 0.5rem; }

.media-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #fff;
  height: 100%;
}
.media-card img {
  width: 100%;
  height: 200px;
  flex-shrink: 0;
  object-fit: cover;
}
.media-card-body { padding: 1.5rem; flex: 1; }
@media (max-width: 480px) {
  .media-card img { height: 170px; }
}

/* ---------- Lists ---------- */
.check-list li {
  position: relative;
  padding-left: 1.75em;
  margin-bottom: 0.6em;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-dark);
  font-weight: bold;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.pill {
  background: var(--cream);
  border: 1px solid var(--color-border);
  color: var(--charcoal);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.92rem;
}
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: var(--lavender-pale);
  border: 1px solid transparent;
  color: var(--purple-deep);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.pill-link:hover { background: var(--purple); color: #fff; }
.pill-link .arrow { font-size: 0.85em; }

/* ---------- Bio hero (About page) ---------- */
.bio-hero-photo {
  max-width: 340px;
  margin: 0 auto 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.bio-hero-photo img { width: 100%; height: 453px; display: block; object-fit: cover; object-position: center 20%; }
@media (max-width: 480px) {
  .bio-hero-photo { max-width: 280px; }
  .bio-hero-photo img { height: 373px; }
}
.bio-quote {
  text-align: left;
  display: inline-block;
  margin: 1.5rem 0;
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 700px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--purple-deep);
  display: block;
}
.section-bg-deep .stat-num,
.section-bg-forest .stat-num { color: #fff; }

/* ---------- Testimonial / quote ---------- */
.quote-block {
  border-left: 4px solid var(--orchid);
  padding-left: 1.5rem;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-text);
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: bold; font-size: 0.95rem; }
.field input,
.field select,
.field textarea {
  padding: 0.75em 1em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 1rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(131, 33, 162, 0.15);
}
.field-hint { font-size: 0.85rem; color: var(--color-text-soft); }
.radio-group { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.radio-group label { display: flex; align-items: center; gap: 0.5em; font-weight: normal; }
.form-status {
  padding: 1em 1.25em;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  display: none;
}
.form-status.success { display: block; background: #e9f2e7; color: var(--forest); }
.form-status.error { display: block; background: #fbeaea; color: #8a2c2c; }

/* ---------- Callout / disclaimer ---------- */
.callout {
  background: var(--cream);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
}
.callout-emergency {
  border-left-color: #b23b3b;
  background: #fdf3f3;
}
.callout strong { color: var(--purple-deep); }
.callout-emergency strong { color: #8a2c2c; }

/* ---------- FAQ / accordion ---------- */
.accordion-item {
  border-bottom: 1px solid var(--color-border);
}
.accordion-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  color: var(--purple-deep);
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--purple);
  flex-shrink: 0;
}
.accordion-item[open] summary::after { content: "\2212"; }
.accordion-item p { padding-bottom: 1.25rem; color: var(--color-text-soft); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  padding-block: 1rem;
}
.breadcrumbs a { color: var(--purple); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Blog ---------- */
.blog-prose { max-width: 720px; margin-inline: auto; }
.blog-prose h2 { margin-top: 1.8em; margin-bottom: 0.6em; color: var(--color-heading); }
.blog-prose h3 { margin-top: 1.5em; margin-bottom: 0.5em; }
.blog-prose p { margin-bottom: 1.25em; }
.blog-prose ul, .blog-prose ol { margin: 0 0 1.25em 1.25em; padding: 0; }
.blog-prose li { margin-bottom: 0.5em; }
.blog-prose a { color: var(--purple); text-decoration: underline; }
.blog-prose a:hover { color: var(--purple-deep); }

.blog-meta { color: var(--color-text-soft); font-size: 0.9rem; margin-bottom: 0.5rem; }
.blog-meta span:not(:first-child)::before { content: "\2022"; margin: 0 0.6em; }

.tag-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--lavender-pale);
  padding: 0.3em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.tag-badge.sage { color: var(--forest); background: var(--sage-tint-deep); }

.blog-card-meta { font-size: 0.82rem; color: var(--color-text-soft); margin-top: 0.75rem; }

.author-box {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: var(--sage-tint);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-top: 3rem;
}
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box h4 { margin-bottom: 0.25rem; color: var(--purple-deep); }
.author-box p { margin-bottom: 0; font-size: 0.92rem; }

.related-posts-grid { margin-top: 1rem; }

.blog-filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.blog-filter-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.blog-filter-btn:hover { border-color: var(--purple); color: var(--purple); }
.blog-filter-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; }
.blog-card > a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.blog-card-desc { font-size: 0.9rem; color: var(--color-text-soft); margin-bottom: 0.5rem; }
.blog-card-meta { font-size: 0.8rem; color: var(--color-text-soft); }
.blog-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-card.is-hidden { display: none; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.filter-pills a {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.filter-pills a:hover { border-color: var(--purple); color: var(--purple); }
.filter-pills a.active { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--taupe);
  color: var(--charcoal);
  padding-block: 3.5rem 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer h4 { color: var(--purple-deep); margin-bottom: 1rem; font-size: 1rem; }
.site-footer a { color: var(--charcoal); text-decoration: none; }
.site-footer a:hover { color: var(--purple-deep); }
.footer-brand img { width: 96px; height: 96px; margin-bottom: 1rem; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(75, 68, 83, 0.2);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}
.footer-bottom a { color: var(--color-text-soft); }
.footer-bottom a:hover { color: var(--purple-deep); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
