/**
 * New Pages — Component Styles
 * Styles for: Injuries, Pricing, Insurance, New Patients,
 * What to Expect, Meet Founder, Meet Team
 *
 * Built on the DSM design token system (style.css :root vars).
 * @package DSM
 */

/* ═══════════════════════════════════════════════════
   ICON BASE
   ═══════════════════════════════════════════════════ */
.dsm-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Icon containers — used in cards and feature lists */
.card-icon,
.checklist-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dsm-red);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--dsm-radius-sm);
  background: rgba(215, 25, 32, 0.08);
  margin-bottom: 1.25rem;
}
.card-icon .dsm-icon { width: 24px; height: 24px; }

/* ═══════════════════════════════════════════════════
   INJURY CARD (template-parts/cards/injury-card.php)
   ═══════════════════════════════════════════════════ */
.injury-card {
  display: flex;
  flex-direction: column;
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
}
.injury-card:hover {
  transform: translateY(-6px);
  border-color: var(--dsm-red);
  box-shadow: 0 12px 32px rgba(215, 25, 32, 0.12);
}

/* Image */
.injury-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--dsm-surface-alt);
}
.injury-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.injury-card:hover .injury-card__img img {
  transform: scale(1.05);
}

/* Placeholder (no image) */
.injury-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dsm-text-muted);
}

/* Body */
.injury-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.injury-card__title {
  font-size: var(--dsm-h5);
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.injury-card__excerpt {
  font-size: var(--dsm-p3);
  color: var(--dsm-text-secondary);
  line-height: 1.6;
  margin: 0 0 1rem;
  flex: 1;
}
.injury-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--dsm-small);
  font-weight: 600;
  color: var(--dsm-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: gap 0.3s ease;
}
.injury-card:hover .injury-card__link {
  gap: 0.75rem;
}

/* ═══════════════════════════════════════════════════
   CAUSE CARDS (single-injuries.php)
   ═══════════════════════════════════════════════════ */
.cause-card {
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius);
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.cause-card:hover {
  border-color: var(--dsm-border-subtle);
  transform: translateY(-2px);
}
.cause-card__icon {
  color: var(--dsm-red);
  margin-bottom: 1rem;
}
.cause-card h4 {
  margin-bottom: 0.5em;
}
.cause-card p {
  font-size: var(--dsm-p2);
  color: var(--dsm-text-secondary);
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   TREATMENT CARDS (single-injuries.php)
   ═══════════════════════════════════════════════════ */
.treatment-card {
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
.treatment-card:hover {
  transform: translateY(-4px);
  border-color: var(--dsm-red);
  box-shadow: 0 8px 24px rgba(215, 25, 32, 0.1);
}
.treatment-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--dsm-radius-sm);
  background: rgba(215, 25, 32, 0.08);
  color: var(--dsm-red);
  margin-bottom: 1.25rem;
}
.treatment-card h4 {
  margin-bottom: 0.5em;
}
.treatment-card p {
  font-size: var(--dsm-p2);
  color: var(--dsm-text-secondary);
  line-height: 1.65;
  margin: 0;
  flex: 1;
}

/* ═══════════════════════════════════════════════════
   ALERT BOX (When to Seek Treatment)
   ═══════════════════════════════════════════════════ */
.alert-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  border-radius: var(--dsm-radius);
  background: var(--dsm-surface);
  border: 1px solid rgba(215, 25, 32, 0.25);
  border-left: 4px solid var(--dsm-red);
}
.alert-box__icon {
  color: var(--dsm-red);
  flex-shrink: 0;
  margin-top: 0.1em;
}
.alert-box__content h2 {
  margin-bottom: 0.75rem;
}
.alert-box__content p,
.alert-box__content div {
  color: var(--dsm-text-secondary);
}

/* ═══════════════════════════════════════════════════
   ACCORDION (FAQ sections)
   ═══════════════════════════════════════════════════ */
.accordion {
  max-width: 800px;
  margin-inline: auto;
}
.accordion__item {
  border-bottom: 1px solid var(--dsm-border-subtle);
}
.accordion__item:first-child {
  border-top: 1px solid var(--dsm-border-subtle);
}
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--dsm-text);
  font-family: var(--dsm-font);
  font-size: var(--dsm-p1);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
  gap: 1rem;
}
/* When .accordion__trigger is used inside a bare .accordion__item (no .feature-accordion wrapper),
   strip horizontal padding so the border-bottom divider reads cleanly full-width. */
.accordion__item > .accordion__trigger {
  padding-inline: 0;
}
.accordion__trigger:hover {
  color: var(--dsm-red);
}
.accordion__icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--dsm-text-muted);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
  color: var(--dsm-red);
}
.accordion__panel[hidden] {
  display: none;
}
.accordion__panel-inner,
.accordion__body {
  padding: 0 0 1.5rem;
  color: var(--dsm-text-secondary);
  font-size: var(--dsm-p2);
  line-height: 1.7;
}

/* Details/summary accordion variant */
.accordion details {
  border-bottom: 1px solid var(--dsm-border-subtle);
}
.accordion details:first-of-type {
  border-top: 1px solid var(--dsm-border-subtle);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: var(--dsm-p1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s ease;
  gap: 1rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--dsm-red); }
.accordion summary .dsm-icon {
  transition: transform 0.3s ease;
  color: var(--dsm-text-muted);
  flex-shrink: 0;
}
.accordion details[open] summary .dsm-icon {
  transform: rotate(180deg);
  color: var(--dsm-red);
}
.accordion details > div {
  padding: 0 0 1.5rem;
  color: var(--dsm-text-secondary);
  font-size: var(--dsm-p2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   RELATED SERVICES LINKS (single-injuries.php)
   ═══════════════════════════════════════════════════ */
.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--dsm-gap);
}
.related-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border-subtle);
  border-radius: 999px;
  font-size: var(--dsm-p3);
  font-weight: 500;
  color: var(--dsm-text);
  transition: all 0.3s ease;
  text-decoration: none;
}
.related-service-link:hover {
  border-color: var(--dsm-red);
  color: var(--dsm-red);
  transform: translateY(-2px);
}
.related-service-link .dsm-icon {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════
   PRICING CARDS
   ═══════════════════════════════════════════════════ */
.pricing-card,
.membership-card {
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover,
.membership-card:hover {
  border-color: var(--dsm-border-subtle);
  transform: translateY(-4px);
}

.pricing-header h3,
.membership-header h3 {
  font-size: var(--dsm-h4);
  margin-bottom: 0;
}

/* Price display */
.pricing-amount,
.membership-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
  padding: 1.5rem 0;
}
.pricing-currency,
.membership-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dsm-red);
  align-self: flex-start;
  margin-top: 0.5em;
}
.pricing-number,
.membership-number {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--dsm-red);
  line-height: 1;
  letter-spacing: -0.03em;
}
.membership-period {
  font-size: var(--dsm-p2);
  color: var(--dsm-text-muted);
  font-weight: 400;
}

/* Feature lists */
.pricing-features ul,
.membership-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
}
.pricing-features li,
.membership-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: var(--dsm-p2);
  color: var(--dsm-text-secondary);
  border-bottom: 1px solid var(--dsm-border);
}
.pricing-features li:last-child,
.membership-features li:last-child {
  border-bottom: none;
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dsm-red);
  flex-shrink: 0;
}
.feature-icon .dsm-icon {
  width: 18px;
  height: 18px;
}

/* Featured / highlighted card */
.membership-card--featured {
  border-color: var(--dsm-red);
  position: relative;
}
.membership-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dsm-red);
  color: var(--dsm-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4em 1.5em;
  border-radius: 0 0 var(--dsm-radius-sm) var(--dsm-radius-sm);
}

/* CTA button inside pricing / membership cards */
.pricing-card .btn,
.membership-card .btn {
  margin-top: auto;
  width: 100%;
}

/* ═══════════════════════════════════════════════════
   HSA/FSA SECTION
   ═══════════════════════════════════════════════════ */
.hsa-section {
  padding: 2.5rem;
  border-radius: var(--dsm-radius);
  border: 1px solid var(--dsm-border-subtle);
  background: var(--dsm-surface-alt);
}
.hsa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--dsm-radius);
  background: rgba(215, 25, 32, 0.08);
  color: var(--dsm-red);
  margin: 0 auto 1.5rem;
}
.hsa-icon .dsm-icon { width: 32px; height: 32px; }

.hsa-callout {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--dsm-radius-sm);
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border-subtle);
  font-size: var(--dsm-p2);
  color: var(--dsm-text-secondary);
}
.hsa-callout strong {
  color: var(--dsm-text);
}

/* ═══════════════════════════════════════════════════
   INSURANCE CARRIERS GRID
   ═══════════════════════════════════════════════════ */
.carriers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--dsm-gap);
}
.carrier-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius-sm);
  transition: border-color 0.3s ease;
}
.carrier-card:hover {
  border-color: var(--dsm-border-subtle);
}
.carrier-card .dsm-icon {
  color: var(--dsm-red);
  flex-shrink: 0;
}
.carrier-name {
  font-weight: 500;
  font-size: var(--dsm-p2);
}
.carriers-note {
  text-align: center;
  color: var(--dsm-text-muted);
  font-size: var(--dsm-p3);
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   COVERAGE LISTS (Covered / Not Covered)
   ═══════════════════════════════════════════════════ */
.coverage-column h3 {
  margin-bottom: 1.25rem;
}
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.coverage-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: var(--dsm-p2);
  color: var(--dsm-text-secondary);
}
.coverage-list .dsm-icon {
  flex-shrink: 0;
  margin-top: 0.1em;
}
.coverage-list--covered .dsm-icon {
  color: #4ade80;
}
.coverage-list--not-covered .dsm-icon {
  color: var(--dsm-text-muted);
}

/* ═══════════════════════════════════════════════════
   PAYMENT METHODS
   ═══════════════════════════════════════════════════ */
.payment-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius-sm);
  text-align: center;
  font-size: var(--dsm-p2);
  font-weight: 500;
}
.payment-method .dsm-icon {
  color: var(--dsm-red);
}

/* ═══════════════════════════════════════════════════
   CHECKLIST (New Patients, What to Expect)
   ═══════════════════════════════════════════════════ */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--dsm-border);
  font-size: var(--dsm-p1);
}
.checklist li:last-child {
  border-bottom: none;
}
.checklist .dsm-icon {
  color: var(--dsm-red);
  flex-shrink: 0;
}

/* Checklist 2-col grid (What to Expect) */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
}
@media (max-width: 640px) {
  .checklist-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   QUICK LINKS (New Patients)
   ═══════════════════════════════════════════════════ */
.quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.4s ease;
}
.quick-link-card:hover {
  transform: translateY(-6px);
  border-color: var(--dsm-red);
  box-shadow: 0 12px 32px rgba(215, 25, 32, 0.12);
}
.quick-link-card .card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}
.quick-link-card h3 {
  margin-bottom: 0.25em;
}
.quick-link-card p {
  font-size: var(--dsm-p3);
  color: var(--dsm-text-secondary);
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════════ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--dsm-gap);
  text-align: center;
  padding: 2.5rem 0;
}
.stat-item {
  padding: 1rem;
}
.stat-number {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--dsm-red);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: var(--dsm-p2);
  color: var(--dsm-text-secondary);
}
@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   TIMELINE (What to Expect)
   ═══════════════════════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
  padding-left: 3.5rem;
}
/* Connecting line */
.timeline::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--dsm-red),
    var(--dsm-border-subtle)
  );
}

.timeline-step {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-step:last-child {
  padding-bottom: 0;
}

/* Number circle */
.timeline-step__number {
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dsm-red);
  color: var(--dsm-white);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  z-index: 1;
}

.timeline-step__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.timeline-step__header .dsm-icon {
  color: var(--dsm-red);
}
.timeline-step__header h3 {
  margin: 0;
  font-size: var(--dsm-h5);
}
.timeline-step__body {
  color: var(--dsm-text-secondary);
  font-size: var(--dsm-p2);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════
   FOUNDER BIO (page-meet-founder.php)
   Uses the existing .about-bio pattern from page-about.php
   ═══════════════════════════════════════════════════ */
.founder-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.founder-intro__photo img {
  border-radius: var(--dsm-radius);
  width: 100%;
  object-fit: cover;
}
.founder-intro__photo .placeholder-photo {
  aspect-ratio: 3 / 4;
  background: var(--dsm-surface-alt);
  border-radius: var(--dsm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dsm-text-muted);
}

.credentials-heading,
.philosophy-heading,
.community-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.credentials-heading .dsm-icon,
.philosophy-heading .dsm-icon,
.community-heading .dsm-icon {
  color: var(--dsm-red);
}

@media (max-width: 768px) {
  .founder-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ═══════════════════════════════════════════════════
   PHILOSOPHY CARDS (page-meet-team.php)
   ═══════════════════════════════════════════════════ */
.philosophy-card {
  text-align: center;
}
.philosophy-card .card-icon {
  margin-inline: auto;
  width: 56px;
  height: 56px;
}

/* ═══════════════════════════════════════════════════
   FEATURE ITEMS (page-meet-team.php, etc.)
   ═══════════════════════════════════════════════════ */
.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.feature-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--dsm-radius-sm);
  background: rgba(215, 25, 32, 0.08);
  color: var(--dsm-red);
}
.feature-item h3 {
  color: var(--dsm-red);
  font-size: var(--dsm-h5);
  margin-bottom: 0.25em;
}
.feature-item p {
  color: var(--dsm-text-secondary);
  font-size: var(--dsm-p2);
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   CTA BLOCK VARIANTS
   ═══════════════════════════════════════════════════ */
.cta-block {
  padding: 3rem;
  border-radius: var(--dsm-radius);
  text-align: center;
}

/* Red background CTA (used with .section--red) */
.section--red h2,
.section--red p {
  color: var(--dsm-white);
}
.section--red .text-muted {
  color: rgba(255, 255, 255, 0.8);
}

/* Button group (side-by-side buttons) */
.button-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   OOP / BENEFIT CARDS (insurance page)
   ═══════════════════════════════════════════════════ */
.oop-card {
  text-align: center;
  padding: 2rem;
  background: var(--dsm-surface);
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.oop-card:hover {
  transform: translateY(-4px);
  border-color: var(--dsm-border-subtle);
}
.oop-card .card-icon {
  margin-inline: auto;
}

/* ═══════════════════════════════════════════════════
   CTA BAND (red full-width call-to-action)
   ═══════════════════════════════════════════════════ */
.cta-band {
  background: var(--dsm-red);
}
.cta-band h2 {
  color: var(--dsm-text);
  margin-bottom: 1rem;
}
.cta-band p {
  color: var(--dsm-text-secondary);
  margin-bottom: var(--dsm-section-pad);
}
.cta-band .btn--outline {
  border-color: var(--dsm-text);
  color: var(--dsm-text);
}
.cta-band .btn--invert {
  background: var(--dsm-text);
  color: var(--dsm-red);
}

/* Button group (flex row of CTAs) */
.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Coverage list (insurance page) */
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.coverage-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dsm-border);
}
.coverage-list li:last-child {
  border-bottom: none;
}
.coverage-list .dsm-icon {
  flex-shrink: 0;
}
.coverage-list--positive .dsm-icon { color: var(--dsm-red); }
.coverage-list--muted .dsm-icon { color: var(--dsm-text-muted); }

/* Two-col split layout */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--dsm-gap);
  max-width: 900px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .split-grid { grid-template-columns: 1fr; }
}

/* Callout box */
.callout-box {
  background: var(--dsm-surface-alt);
  border: 1px solid var(--dsm-border-subtle);
  border-radius: var(--dsm-radius);
  padding: 1.5rem;
}
.callout-box__inner {
  background: var(--dsm-surface);
  padding: 1rem;
  border-radius: calc(var(--dsm-radius) * 0.5);
  margin-bottom: 1rem;
}

/* Alert / notice box */
.notice-box {
  text-align: center;
  margin-top: var(--dsm-section-pad);
  padding: 1.5rem;
  background: rgba(215, 25, 32, 0.05);
  border-radius: var(--dsm-radius);
}

/* What-to-Expect checklist grid items */
.wte-checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--dsm-surface-alt);
  border-radius: var(--dsm-radius);
}
.wte-checklist-item .dsm-icon {
  flex-shrink: 0;
  color: var(--dsm-red);
}

/* FAQ accordion */
.faq-accordion details {
  margin-bottom: 1rem;
  border: 1px solid var(--dsm-border);
  border-radius: var(--dsm-radius);
  overflow: hidden;
}
.faq-accordion summary {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dsm-surface-alt);
  list-style: none;
  user-select: none;
}
.faq-accordion summary .dsm-icon {
  flex-shrink: 0;
  color: var(--dsm-red);
  transition: transform 0.3s ease;
}
.faq-accordion details[open] summary .dsm-icon {
  transform: rotate(180deg);
}
.faq-accordion .faq-answer {
  padding: 1.5rem;
  border-top: 1px solid var(--dsm-border);
}

/* Narrow centered content */
.narrow-center {
  max-width: 700px;
  margin-inline: auto;
}

/* Section heading spacer */
.section-heading {
  margin-bottom: var(--dsm-section-pad);
}

/* FAQ section spacing */
.faq-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.faq-section--first {
  padding-top: 0;
}
.faq-section__heading {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dsm-red, #E63946);
}

/* 404 error page */
.error-404 {
  text-align: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Text color helpers */
.text-primary { color: var(--dsm-red); }

/* ═══════════════════════════════════════════════════
   UTILITY SPACING
   ═══════════════════════════════════════════════════ */
.mb-0  { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }
.mb-lg { margin-bottom: 2.5rem; }
.mb-xl { margin-bottom: 3.5rem; }
.mt-lg { margin-top: 2.5rem; }

/* ═══════════════════════════════════════════════════
   GRID: 5-col (insurance carriers)
   ═══════════════════════════════════════════════════ */
.grid--5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--dsm-gap);
}
@media (max-width: 768px) {
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════
   FILTER PILLS (tab navigation)
   ═══════════════════════════════════════════════════ */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.filter-pills__btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--dsm-border-subtle);
  background: transparent;
  color: var(--dsm-text-secondary);
  font-family: var(--dsm-font);
  font-size: var(--dsm-p3);
  cursor: pointer;
  transition: var(--dsm-transition);
}
.filter-pills__btn:hover {
  border-color: var(--dsm-red);
  color: var(--dsm-white);
}
.filter-pills__btn.is-active {
  background: var(--dsm-red);
  border-color: var(--dsm-red);
  color: var(--dsm-white);
}
[data-tab-panel] {
  display: none;
}
[data-tab-panel].is-active {
  display: block;
}

/* ═══════════════════════════════════════════════════
   DURATION CARDS
   ═══════════════════════════════════════════════════ */
.duration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--dsm-gap);
  margin-top: 2rem;
}
.duration-card {
  background: var(--dsm-surface);
  border-left: 4px solid var(--dsm-red);
  border-radius: var(--dsm-radius-sm);
  padding: 1.5rem 2rem;
  text-align: center;
}
.duration-card__time {
  font-size: var(--dsm-h3);
  font-weight: 700;
  color: var(--dsm-red);
  margin-bottom: 0.25rem;
}
.duration-card__label {
  font-size: var(--dsm-p2);
  color: var(--dsm-text-secondary);
}

/* ═══════════════════════════════════════════════════
   JOURNEY STEPS (horizontal process)
   ═══════════════════════════════════════════════════ */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--dsm-gap);
  margin-top: 2rem;
  position: relative;
}
.journey-step {
  text-align: center;
  position: relative;
}
.journey-step__number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--dsm-red);
  color: var(--dsm-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--dsm-p2);
  margin-bottom: 0.75rem;
}
.journey-step__title {
  font-weight: 600;
  color: var(--dsm-white);
  margin-bottom: 0.25rem;
  font-size: var(--dsm-p2);
}
.journey-step__label {
  font-size: var(--dsm-p3);
  color: var(--dsm-text-muted);
}

/* ═══════════════════════════════════════════════════
   DUAL CTA BOXES
   ═══════════════════════════════════════════════════ */
.cta-dual {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--dsm-gap);
}
.cta-dual__box {
  background: var(--dsm-surface);
  border-radius: var(--dsm-radius);
  padding: 2.5rem;
  text-align: center;
}
.cta-dual__box h3 {
  margin-bottom: 0.75rem;
}
.cta-dual__box p {
  color: var(--dsm-text-secondary);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════════════════════
   SOCIAL ICONS ROW
   ═══════════════════════════════════════════════════ */
.social-icons-row {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
}
.social-icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dsm-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dsm-white);
  transition: var(--dsm-transition);
}
.social-icon-link:hover {
  background: var(--dsm-red-hover);
}
.social-icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ═══════════════════════════════════════════════════
   INSURANCE LOGOS STATIC
   ═══════════════════════════════════════════════════ */
.insurance-logos--static {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.insurance-logos--static img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  filter: grayscale(0.2);
  transition: var(--dsm-transition);
}
.insurance-logos--static img:hover {
  opacity: 1;
  filter: none;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

/* --- Tablet / Large Phone (768px) --- */
@media (max-width: 768px) {
  .stats-bar {
    gap: 1rem;
  }
  .stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }
}

/* --- Narrow phones (380px) — iPhone SE / very small screens --- */
@media (max-width: 380px) {
  .timeline {
    padding-left: 2.5rem;
  }
  .timeline-step__number {
    left: -2.5rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.6875rem;
  }
  .timeline::before {
    left: 0.875rem;
  }
}

@media (max-width: 640px) {
  .pricing-card,
  .membership-card {
    padding: 2rem;
  }
  .pricing-number,
  .membership-number {
    font-size: 3rem;
  }
  .alert-box {
    flex-direction: column;
    gap: 1rem;
  }
  .timeline {
    padding-left: 3rem;
  }
  .timeline-step__number {
    left: -3rem;
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
  }
  .timeline::before {
    left: 1rem;
  }
  .button-group {
    flex-direction: column;
    align-items: stretch;
  }
  .carriers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .duration-grid {
    grid-template-columns: 1fr;
  }
  .cta-dual {
    grid-template-columns: 1fr;
  }
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .filter-pills__btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .journey-steps {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════════════
   CTA READY — end-of-page "Ready to X" band
   Shared across: Meet Founder, Meet Team, What to Expect,
   New Patients, Insurance (right cell), Pricing
   ═══════════════════════════════════════════════════ */
.cta-ready {
  background: var(--dsm-black);
  padding-block: clamp(4rem, 8vw, 6rem);
  text-align: center;
}
.cta-ready__inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.cta-ready h2 {
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}
.cta-ready p {
  color: var(--dsm-text-muted);
  font-size: var(--dsm-p1);
  line-height: 1.7;
  margin: 0 0 0.75rem;
  max-width: 620px;
  margin-inline: auto;
}
.cta-ready p + p {
  margin-top: 0.25rem;
}
.cta-ready .btn {
  margin-top: 2rem;
}
/* Embedded variant — when .cta-ready lives inside a grid cell (e.g. Insurance
   dual-grid) it should fill the cell and lose its own vertical padding. */
.cta-ready--embedded {
  padding-block: clamp(2rem, 4vw, 3rem);
  border-radius: var(--dsm-radius);
  height: 100%;
}

/* ═══ Password-protected post form ══════════════════════════════════════
   Styles the native WordPress password form to match the DSM theme.
   ═══════════════════════════════════════════════════════════════════════ */
.dsm-password-form form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
.dsm-password-form label {
  display: block;
  width: 100%;
  font-size: var(--dsm-small);
  font-weight: 600;
  color: var(--dsm-text-secondary);
  margin-bottom: 0.25rem;
  text-align: left;
}
.dsm-password-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--dsm-border-subtle);
  border-radius: var(--dsm-radius-sm);
  background: var(--dsm-surface);
  color: var(--dsm-white);
  font-size: var(--dsm-p2);
  outline: none;
  transition: border-color 0.2s;
}
.dsm-password-form input[type="password"]:focus {
  border-color: var(--dsm-red);
}
.dsm-password-form input[type="submit"] {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--dsm-red);
  color: var(--dsm-white);
  border: none;
  border-radius: var(--dsm-radius-sm);
  font-size: var(--dsm-p2);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.25rem;
}
.dsm-password-form input[type="submit"]:hover {
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════
   THERAPIES GRID — square service cards (matches locations)
   ═══════════════════════════════════════════════════ */
.therapies-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.therapies-grid .card--service {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.therapies-grid .card--service__label {
  text-transform: none;
  font-size: var(--dsm-h5);
}
@media (max-width: 900px) {
  .therapies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .therapies-grid {
    grid-template-columns: 1fr;
  }
}
