/* ==========================================================================
   Utah Medical Cannabis RMP Practice — styles.css
   Design tokens from WEBSITE_SPEC.md §5. Mobile-first.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   -------------------------------------------------------------------------- */

:root {
  /* Backgrounds — warm wellness palette */
  --bg-page: #FAF8F3;              /* warm cream */
  --bg-surface: #FFFFFF;           /* white for cards */
  --bg-muted: #E8E0D3;             /* warm sand */

  /* Text — warm tones */
  --text-primary: #2A2520;         /* warm near-black */
  --text-secondary: #5A5048;       /* warm muted body */
  --text-tertiary: #8A8075;        /* warm captions */
  --text-on-dark: #FAF8F3;         /* warm off-white for text on green */
  --text-on-dark-muted: #E2DCD2;   /* muted text on green — 4.69:1 vs --brand-primary (AA) */

  /* Brand — green + warm clay */
  --brand-primary: #2D6A4F;        /* darker green from logo gradient */
  --brand-accent: #4A9B6F;         /* lighter green from logo */
  --brand-accent-dark: #1F4F3A;    /* darker green for hover/contrast */
  --brand-warm: #A85A16;           /* warm clay for primary CTAs — 4.78:1 with on-dark text (AA); deepened from #B8651C which measured 4.02 */
  --brand-warm-dark: #8F4D14;      /* darker clay for hover on warm CTAs */
  --brand-amber: #FFAA00;          /* logo wordmark amber — interactive accent on the green header/footer */

  /* Borders — warm green undertones */
  --border-subtle: rgba(45, 106, 79, 0.10);
  --border-default: rgba(45, 106, 79, 0.18);
  --border-strong: rgba(45, 106, 79, 0.30);

  /* Semantic */
  --color-success: #2D6A4F;
  --color-warning: #B45309;
  --color-danger: #991B1B;

  /* Radii & shadows */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 2px rgba(31, 42, 51, 0.04), 0 4px 12px rgba(31, 42, 51, 0.04);
  --shadow-elevated: 0 2px 4px rgba(31, 42, 51, 0.06), 0 8px 24px rgba(31, 42, 51, 0.06);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Container */
  --max-content: 1120px;
  --max-prose: 680px;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale — fluid, mobile-first */
  --fs-hero: clamp(2rem, 4.5vw, 3.25rem);
  --fs-h1: clamp(1.75rem, 3.5vw, 2.5rem);
  --fs-h2: clamp(1.375rem, 2.5vw, 1.75rem);
  --fs-h3: 1.125rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.75rem;
}


/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@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 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  height: auto;
}

a {
  color: var(--brand-accent-dark);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}

a:hover {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* Visible focus states — §5.6 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}

ul,
ol {
  list-style: none;
}


/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */

/* Screen-reader only — §5.4, §5.6 */
.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;
}

.container {
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.prose {
  max-width: var(--max-prose);
}


/* --------------------------------------------------------------------------
   4. TYPOGRAPHY
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--brand-primary);
  line-height: 1.2;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.15;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-small {
  font-size: var(--fs-small);
}


/* --------------------------------------------------------------------------
   5. BUTTONS — §5.4
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

a.btn,
a.btn:hover {
  text-decoration: none;
}

.btn.btn-primary {
  background-color: var(--brand-warm);
  color: var(--text-on-dark);
  padding: 12px 22px;
  border-radius: var(--radius-md);
}

.btn.btn-primary:hover {
  background-color: var(--brand-warm-dark);
  color: var(--text-on-dark);
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline-color: var(--brand-warm-dark);
}

.btn.btn-secondary {
  background-color: transparent;
  color: var(--brand-primary);
  padding: 12px 22px;
  border: 1px solid var(--brand-primary);
  border-radius: var(--radius-md);
}

.btn.btn-secondary:hover {
  background-color: var(--bg-muted);
  color: var(--brand-primary);
}

.btn-lg {
  padding: 16px 28px;
}


/* --------------------------------------------------------------------------
   6. CARDS — §5.4
   -------------------------------------------------------------------------- */

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-5);
  min-width: 0;
}

@media (min-width: 768px) {
  .card {
    padding: var(--space-6);
  }
}


/* --------------------------------------------------------------------------
   7. EXTERNAL LINKS — §5.4, §2.8
   -------------------------------------------------------------------------- */

.external-link-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 3px;
  vertical-align: middle;
  flex-shrink: 0;
}

.external-link-icon svg {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: var(--text-tertiary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* --------------------------------------------------------------------------
   8. SKIP LINK — §5.6
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background-color: var(--brand-primary);
  color: var(--text-on-dark);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 1000;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-2);
  color: var(--text-on-dark);
}


/* --------------------------------------------------------------------------
   9. SITE HEADER — §4.1
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--brand-primary); /* dark-green fallback under the gradient */
  background-image: linear-gradient(135deg, #4A9B6F 0%, #2D6A4F 100%);
  transition: border-color 150ms ease;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
}

.site-header.scrolled {
  border-bottom-color: rgba(31, 79, 58, 0.5);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand-primary);
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
  color: var(--brand-primary);
}

.site-wordmark img {
  height: 72px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .site-wordmark img {
    height: 56px;
  }
}

/* Desktop nav */
.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-5);
}

.nav-desktop a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-on-dark);
}

.nav-desktop a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* Active-page indicator on the green header — persistent amber underline */
.nav-desktop a[aria-current="page"] {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-decoration-color: var(--brand-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }

  .nav-mobile-toggle {
    display: none;
  }
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-on-dark);
}

@media (min-width: 1024px) {
  .nav-mobile-toggle {
    display: none;
  }
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: var(--brand-primary);
  flex-direction: column;
  padding: var(--space-9) var(--space-4) var(--space-7);
}

.nav-mobile[aria-hidden="false"] {
  display: flex;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--text-on-dark);
  padding: var(--space-3) 0;
}

.nav-mobile a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-mobile a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brand-amber);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-mobile .btn {
  margin-top: var(--space-5);
  text-align: center;
}

.nav-mobile-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-on-dark);
}


/* --------------------------------------------------------------------------
   10. SITE FOOTER — §4.2
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--brand-primary);
  color: var(--text-on-dark);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-9);
}

.footer-grid {
  display: grid;
  gap: var(--space-7);
}

.footer-grid > * {
  min-width: 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: var(--space-8);
  }
}

.site-footer .wordmark {
  color: var(--text-on-dark);
  margin-bottom: var(--space-3);
  display: inline-block;
}

.site-footer p,
.site-footer address {
  color: rgba(250, 248, 243, 0.82);
  font-style: normal;
  font-size: var(--fs-small);
  line-height: 1.65;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-4);
}

.site-footer a {
  color: rgba(250, 248, 243, 0.82);
}

.site-footer a:hover {
  color: var(--text-on-dark);
  text-decoration: underline;
}

.site-footer nav a {
  display: block;
  font-size: var(--fs-small);
  padding: var(--space-1) 0;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  line-height: 1.55;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(250, 248, 243, 0.14);
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(250, 248, 243, 0.14);
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2);
}


/* --------------------------------------------------------------------------
   11. PAGE SECTIONS (shared)
   -------------------------------------------------------------------------- */

.page-section {
  padding: var(--space-8) 0;
}

.page-section + .page-section {
  padding-top: 0;
}

.section-header {
  margin-bottom: var(--space-6);
}


/* ==========================================================================
   HOME PAGE
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — §6.1
   -------------------------------------------------------------------------- */

.hero {
  padding: var(--space-8) 0 var(--space-9);
}

.hero-inner {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero-inner > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
  }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.1;
  color: var(--brand-primary);
  margin-top: var(--space-3);
  margin-bottom: var(--space-4);
}

.hero-subhead {
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-card {
  padding: var(--space-5);
}

.hero-card .eyebrow {
  margin-bottom: var(--space-4);
}

.hero-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-body);
  color: var(--text-primary);
}

.hero-card-list svg {
  flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Overview cards — §6.1 #overview
   -------------------------------------------------------------------------- */

.overview-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

.overview-card h2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
}

.overview-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.card-link {
  font-weight: 500;
  font-size: var(--fs-small);
}


/* --------------------------------------------------------------------------
   Trust strip — §6.1 #credentials
   -------------------------------------------------------------------------- */

.trust-strip {
  background-color: var(--bg-muted);
  padding: var(--space-7) 0;
}

.trust-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-primary);
}

.trust-item svg {
  flex-shrink: 0;
}

/* On warm sand the lighter accent green is < 3:1; use the darker green for the icons */
.trust-item svg path {
  stroke: var(--brand-accent-dark);
}


/* --------------------------------------------------------------------------
   Steps — §6.1 #how-it-works
   -------------------------------------------------------------------------- */

.steps-list {
  display: grid;
  gap: var(--space-5);
  max-width: 680px;
}

.step-item {
  display: flex;
  gap: var(--space-4);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-muted);
  color: var(--brand-accent-dark);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1;
}

.step-item h3 {
  margin-bottom: var(--space-1);
}

.step-item p {
  color: var(--text-secondary);
}


/* --------------------------------------------------------------------------
   Closing CTA — §6.1
   -------------------------------------------------------------------------- */

.closing-cta {
  padding: var(--space-8) 0;
  text-align: center;
}

.closing-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.closing-cta h2 {
  font-size: var(--fs-h2);
}


/* ==========================================================================
   SHARED INNER-PAGE STYLES
   ========================================================================== */

.page-header {
  margin-bottom: var(--space-7);
}

.page-header h1 {
  margin-bottom: var(--space-3);
}

.page-intro {
  color: var(--text-secondary);
  font-size: clamp(1.0625rem, 1.2vw, 1.1875rem);
  max-width: var(--max-prose);
}


/* ==========================================================================
   SERVICES PAGE — §6.3
   ========================================================================== */

.services-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Three-card variant — stacks single-column until there's room for all three
   side by side, avoiding an orphaned third card in a 2-up layout. */
@media (min-width: 768px) {
  .services-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card h2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-1);
}

.service-format {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--brand-accent-dark);
  margin-bottom: var(--space-4);
}

.service-meta {
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.service-price {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  color: var(--brand-primary);
  overflow-wrap: anywhere;
}

.service-duration {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.service-required {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.service-purpose {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.service-includes {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.service-includes li {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  padding-left: var(--space-5);
  position: relative;
}

.service-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M11.667 3.5 5.25 9.917 2.333 7' stroke='%234A9B6F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.service-note {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-style: italic;
}

/* Multiple per-visit notes (card validity, eligibility caveats),
   set off below the included list with a subtle rule. */
.service-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.service-notes li {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-style: italic;
  padding-left: var(--space-4);
  position: relative;
}

.service-notes li::before {
  content: '—';
  position: absolute;
  left: 0;
  font-style: normal;
}

.services-footer {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  max-width: var(--max-prose);
}

.services-footer p + p {
  margin-top: var(--space-2);
}

/* Patient journey timeline — a single shared visualization below the three
   service cards. Three filled brand-green dots joined by a solid line, with a
   short dashed continuation after the last dot implying the annual renewal
   cycle repeats indefinitely. Decorative dots are aria-hidden; the wrapper
   carries a descriptive label. */
.patient-journey {
  /* No max-width / horizontal padding: the wrapper shares the parent
     .container bounds with the services grid above, so the track can mirror
     the grid exactly and the dots line up with the card centers. */
  margin: 56px 0 0;
  padding: 32px 0;
}

.patient-journey__track {
  display: grid;
  /* Mirror .services-grid--three: three equal columns + the same gap, so each
     step's centered dot sits under the center of its card. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: start;
  position: relative;
}

.patient-journey__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
}

.patient-journey__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 2px solid var(--brand-primary);
  margin-bottom: 12px;
  z-index: 2;
  position: relative;
}

/* Solid connecting line between dots — spans from this dot to the next,
   crossing the column gap (the extra -var(--space-5) accounts for it). */
.patient-journey__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 12px);
  right: calc(-50% - var(--space-5) + 12px);
  height: 2px;
  background: var(--brand-primary);
  z-index: 1;
}

/* Dashed continuation line after the last step */
.patient-journey__step:last-child::before {
  content: "";
  position: absolute;
  top: 8px;
  left: calc(50% + 12px);
  width: 60px;
  height: 2px;
  background-image: linear-gradient(to right, var(--brand-primary) 50%, transparent 50%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  z-index: 1;
  opacity: 0.6;
}

.patient-journey__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.patient-journey__detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Mobile: stack vertically with a vertical connecting line */
@media (max-width: 540px) {
  .patient-journey__track {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Dashed continuation — runs DOWNWARD below the last dot, mirroring the
     desktop horizontal cue (same color, dash pattern, and 0.6 opacity). */
  .patient-journey__step:last-child::before {
    content: "";
    display: block;
    position: absolute;
    left: 7px;
    top: 18px;
    width: 2px;
    height: 24px;
    background-image: linear-gradient(to bottom, var(--brand-primary) 50%, transparent 50%);
    background-size: 2px 8px;
    background-repeat: repeat-y;
    opacity: 0.6;
  }

  .patient-journey__step {
    padding-left: 24px;
    text-align: left;
    align-items: flex-start;
    position: relative;
  }

  .patient-journey__dot {
    position: absolute;
    left: 0;
    top: 2px;
    margin-bottom: 0;
  }

  /* Vertical connecting line for mobile */
  .patient-journey__step:not(:last-child)::after {
    content: "";
    display: block;
    position: absolute;
    left: 7px;
    top: 18px;
    bottom: -24px;
    right: auto;
    width: 2px;
    height: auto;
    background: var(--brand-primary);
  }
}


/* ==========================================================================
   CONDITIONS PAGE — §6.4
   ========================================================================== */

.conditions-content > * + * {
  margin-top: var(--space-5);
}

.conditions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.conditions-list li {
  padding: var(--space-3) 0;
  padding-left: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  position: relative;
}

.conditions-list li:first-child {
  border-top: 1px solid var(--border-subtle);
}

.conditions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(var(--space-3) + 5px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-accent-dark);
  opacity: 0.55;
}

.conditions-note {
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}

.conditions-note p {
  color: var(--text-secondary);
}

.conditions-note h2 {
  margin-top: 0;
  margin-bottom: var(--space-3);
  font-size: var(--fs-h3);
}

.conditions-note p + p {
  margin-top: var(--space-3);
}

/* Alert callout — reusable "important patient guidance" component.
   Soft peach field with a warm-clay left rule; Inter heading for a direct,
   non-editorial tone. Reusable site-wide for safety/guidance content. */
.alert-callout {
  background-color: #FCE9E0;            /* soft peach */
  border-left: 5px solid var(--brand-warm);
  padding: var(--space-5) 28px;
  border-radius: var(--radius-md);
}

.alert-callout__heading {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
  margin: 0 0 var(--space-3) 0;
  line-height: 1.4;
}

.alert-callout__list {
  margin: 0;
  padding-left: var(--space-5);
  color: var(--text-primary);
  line-height: 1.6;
}

.alert-callout__list li {
  margin-bottom: var(--space-2);
}

.alert-callout__list li:last-child {
  margin-bottom: 0;
}

.alert-callout__list strong {
  font-weight: 600;
}

@media (max-width: 640px) {
  .alert-callout {
    padding: var(--space-4) 22px;
  }
}

.conditions-source {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

/* "Want to learn more?" block — small DHHS link (replaced the prior State resources block) */
.conditions-learn-more {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: var(--fs-small);
}


/* ==========================================================================
   FAQ PAGE — §6.5
   ========================================================================== */

.faq-list {
  max-width: var(--max-prose);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--brand-primary);
  cursor: pointer;
  list-style: none;
}

/* Remove default marker across browsers */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: '';
}

/* Custom chevron indicator */
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%235A5048' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 150ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after {
    transition: none;
  }
}

.faq-item summary:hover {
  color: var(--brand-accent-dark);
}

.faq-answer {
  padding-bottom: var(--space-5);
  color: var(--text-secondary);
}

.faq-answer p + p {
  margin-top: var(--space-3);
}


/* ==========================================================================
   ABOUT PAGE — §6.2
   ========================================================================== */

.about-layout {
  display: grid;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .about-layout {
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .about-layout {
    grid-template-columns: 320px 1fr;
  }
}

.about-layout > * {
  min-width: 0;
}

.portrait-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.about-content h1 {
  margin-bottom: var(--space-4);
}

.about-leadin {
  max-width: var(--max-prose);
  margin-bottom: var(--space-5);
}

.about-name {
  display: block;
  font-size: 1.375rem;
  line-height: 1.3;
  color: var(--text-primary);
  font-weight: 500;
}

.about-role {
  display: block;
  margin-top: var(--space-1);
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.about-bio {
  max-width: var(--max-prose);
}

.about-bio p {
  color: var(--text-secondary);
}

.about-bio p + p {
  margin-top: var(--space-4);
}

.about-credentials {
  margin-bottom: var(--space-8);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border-subtle);
}

.about-credentials h2 {
  margin-bottom: var(--space-5);
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: var(--max-prose);
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--text-primary);
}

.credentials-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.about-philosophy {
  padding-top: var(--space-7);
  border-top: 1px solid var(--border-subtle);
}

.about-philosophy h2 {
  margin-bottom: var(--space-5);
}

.about-philosophy p {
  color: var(--text-secondary);
  max-width: var(--max-prose);
}

.about-philosophy p + p {
  margin-top: var(--space-4);
}


/* ==========================================================================
   CONTACT PAGE — §6.6
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-7);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.contact-grid > * {
  min-width: 0;
}

.contact-info h2 {
  margin-bottom: var(--space-5);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.contact-row dt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-row dt svg {
  flex-shrink: 0;
}

.contact-row dd {
  color: var(--text-primary);
  padding-left: 28px;
}

.hours-note {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.contact-booking {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-booking h2 {
  margin: 0;
}

.contact-booking p {
  color: var(--text-secondary);
}

.contact-note {
  margin-top: var(--space-7);
  padding: var(--space-4) var(--space-5);
  background-color: var(--bg-muted);
  border-radius: var(--radius-md);
}

.contact-note p {
  color: var(--text-secondary);
  font-size: var(--fs-small);
}


/* ==========================================================================
   LEGAL PAGES — §6.7, §6.8 (Privacy, Terms)
   ========================================================================== */

.legal-content {
  max-width: var(--max-prose);
}

.legal-content > * + * {
  margin-top: var(--space-4);
}

.legal-content h2 {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.legal-content h2:first-of-type {
  margin-top: var(--space-5);
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  margin-top: var(--space-5);
}

.legal-content p {
  color: var(--text-secondary);
}

.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-left: var(--space-5);
}

.legal-content ul li {
  list-style: disc;
  color: var(--text-secondary);
}

.legal-content ul li::marker {
  color: var(--brand-accent-dark);
}

.legal-address {
  font-style: normal;
  color: var(--text-primary);
  background-color: var(--bg-muted);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  line-height: 1.8;
}
