/* CaliMed Health Center — design system (rebuild) */

:root {
  /* Brand greens — aligned with logo (deep forest + jade highlight) */
  --color-brand-900: #071f1a;
  --color-brand-800: #0c2e27;
  --color-brand-700: #123d34;
  --color-accent: #1a8f6f;
  --color-accent-hover: #157a5e;
  --color-accent-soft: rgba(26, 143, 111, 0.12);
  --color-accent-softer: rgba(26, 143, 111, 0.06);

  --color-bg: #f0f5f3;
  --color-surface: #ffffff;
  --color-surface-elevated: #f7faf8;
  --color-text: #0f221c;
  --color-text-muted: #4a635a;
  --color-border: #cfe0d8;
  --color-border-strong: #a8c4b8;
  --color-ink: #0c2e27;
  --color-footer: var(--color-brand-900);
  --color-footer-muted: rgba(255, 255, 255, 0.72);
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 24, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 28, 24, 0.08);
  --shadow-header: 0 1px 0 rgba(15, 28, 24, 0.06);
  --max-width: 72rem;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--color-accent-hover);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10000;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
}

.container {
  width: min(100% - var(--space-8), var(--max-width));
  margin-inline: auto;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.container--narrow {
  width: min(100% - var(--space-8), 40rem);
}

/* —— Top bar —— */
.cm-topbar {
  background: linear-gradient(180deg, var(--color-brand-800) 0%, var(--color-brand-900) 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
}

.cm-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.cm-topbar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.cm-topbar a:hover {
  text-decoration: underline;
  color: #fff;
}

/* —— Header —— */
.cm-header {
  position: sticky;
  top: 0;
  /* Above .cm-nav-backdrop (150) so the mobile drawer (fixed, inside header) receives taps */
  z-index: 200;
  background: var(--color-surface);
  box-shadow: var(--shadow-header);
}

.cm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: var(--header-h);
  padding-block: var(--space-3);
}

/* Mobile: logo gets remaining space and can shrink; keep CTAs + menu grouped on the right */
@media (max-width: 1023px) {
  .cm-header__inner {
    justify-content: flex-start;
    gap: var(--space-2);
  }

  .cm-header__inner > .cm-logo {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: var(--space-2);
  }

  .cm-header__actions {
    flex-shrink: 0;
    margin-left: 0;
  }
}

@media (min-width: 1024px) {
  /* Equal side columns so the nav cluster sits at true center between logo and CTA */
  .cm-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: clamp(1rem, 2.75vw, 2rem);
  }

  .cm-logo {
    justify-self: start;
  }

  .cm-nav {
    justify-self: center;
    max-width: min(100%, 100vw - 22rem);
  }

  .cm-nav__list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: var(--space-1);
  }

  .cm-header__actions {
    justify-self: end;
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }
}

.cm-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.cm-logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cm-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.cm-logo__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.cm-logo__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

/* Nav */
.cm-nav {
  display: flex;
}

.cm-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cm-nav__list a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cm-nav__list a:hover {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}

/* Mobile drawer: filled pill for active (clear on touch) */
.cm-nav__list a.is-active {
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .cm-nav__list a {
    padding: 0.45rem 0.7rem;
  }

  .cm-nav__list a:hover:not(.is-active) {
    background: var(--color-accent-softer);
    color: var(--color-ink);
  }

  /* Bar: underline accent only—reads as nav, not a second CTA */
  .cm-nav__list a.is-active {
    background: transparent;
    color: var(--color-accent);
    font-weight: 600;
    box-shadow: inset 0 -2px 0 0 var(--color-accent);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  }

  .cm-nav__list a.is-active:hover {
    background: var(--color-accent-softer);
    color: var(--color-accent-hover);
    box-shadow: inset 0 -2px 0 0 var(--color-accent-hover);
  }
}

.cm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.cm-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text);
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(26, 143, 111, 0.18);
}

.cm-nav-toggle__bars {
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 1px;
}

.cm-nav-toggle__bars::before,
.cm-nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.cm-nav-toggle__bars::before {
  top: -6px;
}

.cm-nav-toggle__bars::after {
  top: 6px;
}

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

@media (max-width: 1023px) {
  .cm-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 20rem);
    max-width: 88vw;
    background: var(--color-surface);
    padding:
      calc(var(--header-h) + var(--space-6))
      max(var(--space-6), env(safe-area-inset-right))
      max(var(--space-8), env(safe-area-inset-bottom))
      var(--space-6);
    box-shadow: var(--shadow-md);
    transform: translateX(100%);
    transition: transform 0.28s var(--ease);
    z-index: 200;
  }

  #siteNav.is-open {
    transform: translateX(0);
  }

  .cm-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
  }

  .cm-nav__list a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: var(--space-3) var(--space-4);
  }

}

.cm-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 42, 38, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}

/* —— Buttons —— */
.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.15rem;
  min-height: 2.75rem;
  font-family: inherit;
  font-size: max(1rem, 0.9375rem);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: rgba(26, 143, 111, 0.2);
  touch-action: manipulation;
}

.cm-btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.cm-btn--primary:hover {
  background: var(--color-accent-hover);
  color: #fff;
}

a.cm-btn {
  text-decoration: none;
}

a.cm-btn--primary,
a.cm-btn--primary:hover {
  color: #fff;
}

a.cm-btn--secondary,
a.cm-btn--secondary:hover {
  color: #fff;
}

a.cm-btn--light,
a.cm-btn--light:hover {
  color: var(--color-ink);
}

a.cm-btn--ghost:not([style*="color"]) {
  color: var(--color-text);
}

a.cm-btn--ghost:not([style*="color"]):hover {
  color: var(--color-text);
}

.cm-btn--secondary {
  background: var(--color-ink);
  color: #fff;
}

.cm-btn--secondary:hover {
  background: #152a26;
  color: #fff;
}

.cm-btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.cm-btn--ghost:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-elevated);
  color: var(--color-text);
}

.cm-btn--light {
  background: #fff;
  color: var(--color-ink);
}

.cm-btn--light:hover {
  background: var(--color-bg);
  color: var(--color-ink);
}

.cm-btn--block {
  width: 100%;
}

/* —— Typography blocks —— */
.cm-eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

.cm-lead {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 38rem;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
  margin: 0 0 var(--space-4);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.125rem;
}

/* —— Home hero —— */
.cm-hero {
  position: relative;
  padding-block: var(--space-12) var(--space-10);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 85% 55% at 12% 18%, var(--color-accent-soft) 0%, transparent 58%),
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(18, 61, 52, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 78% 88%, var(--color-accent-softer) 0%, transparent 50%),
    linear-gradient(165deg, #e4f0eb 0%, var(--color-bg) 42%, var(--color-bg) 100%);
  overflow: hidden;
}

.cm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

.cm-hero > .container {
  position: relative;
  z-index: 1;
}

.cm-hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.cm-hero__panel {
  display: flex;
  flex-direction: column;
}

.cm-hero__panel-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

@media (min-width: 960px) {
  .cm-hero__grid {
    grid-template-columns: 1fr minmax(18rem, 24rem);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: stretch;
  }

  .cm-hero__main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding-block: var(--space-2);
  }

  .cm-hero__panel {
    min-height: 100%;
    height: 100%;
  }

  .cm-hero__panel-head {
    flex-shrink: 0;
  }

  .cm-hero__loc-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
  }

  .cm-hero__panel-foot {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: var(--space-5);
  }
}

.cm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (max-width: 559px) {
  .cm-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cm-hero__actions .cm-btn {
    width: 100%;
    justify-content: center;
  }
}

.cm-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.cm-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  white-space: normal;
  line-height: 1.38;
}

.cm-pill strong {
  color: var(--color-ink);
  font-weight: 600;
}

.cm-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.cm-card--accent {
  border-color: rgba(26, 143, 111, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 248, 244, 0.95) 100%),
    linear-gradient(180deg, rgba(26, 143, 111, 0.04) 0%, transparent 40%);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(26, 143, 111, 0.06) inset;
}

/* Tighter padding than default cards so the hero panel aligns visually with headline block */
.cm-card.cm-hero__panel {
  padding: var(--space-5);
}

@media (min-width: 960px) {
  .cm-card.cm-hero__panel {
    padding: var(--space-5) var(--space-6);
  }
}

.cm-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.cm-hero__panel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-ink);
  margin: 0 0 var(--space-3);
}

.cm-hero__panel .cm-eyebrow {
  margin-bottom: var(--space-2);
}

.cm-hours-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: linear-gradient(180deg, rgba(26, 143, 111, 0.14) 0%, rgba(26, 143, 111, 0.08) 100%);
  color: var(--color-brand-700);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(26, 143, 111, 0.2);
  margin-bottom: var(--space-4);
}

/* Compact 2×2 location grid inside hero panel — balances height vs. headline column */
.cm-hero__loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-3);
  margin-bottom: 0;
}

@media (max-width: 400px) {
  .cm-hero__loc-grid {
    grid-template-columns: 1fr;
  }
}

.cm-hero__loc-cell {
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 143, 111, 0.12);
  border-radius: var(--radius-md);
  min-width: 0;
}

.cm-hero__loc-cell strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.cm-hero__loc-addr {
  display: block;
  margin: 0.15rem 0 0.35rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--color-text-muted);
}

.cm-hero__loc-cell a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-accent);
  -webkit-tap-highlight-color: rgba(26, 143, 111, 0.18);
}

.cm-hero__loc-cell a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.cm-loc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.cm-loc-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.cm-loc-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cm-loc-item a {
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 481px) {
  .cm-loc-item a {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .cm-loc-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
  }

  .cm-loc-item a {
    align-self: flex-start;
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
  }
}

.cm-loc-item a:hover {
  text-decoration: underline;
}

/* —— Sections —— */
.cm-section {
  padding-block: var(--space-12);
}

.cm-section--muted {
  background: var(--color-surface-elevated);
  border-block: 1px solid var(--color-border);
}

.cm-section__head {
  max-width: 40rem;
  margin-bottom: var(--space-10);
}

.cm-section__head p {
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
}

/* —— Grids —— */
.cm-grid {
  display: grid;
  gap: var(--space-5);
}

.cm-grid--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cm-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cm-grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cm-grid--4 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cm-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cm-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cm-feature:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.cm-feature__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cm-feature p {
  margin: 0 0 var(--space-4);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.cm-feature a {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

.cm-feature a:hover {
  text-decoration: underline;
}

/* —— Process —— */
.cm-process {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .cm-process:not(.cm-process--stack) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cm-step {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.cm-step__num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--space-4);
}

.cm-step p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* —— Location cards —— */
.cm-loc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cm-loc-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.cm-loc-card__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.cm-loc-card address {
  font-style: normal;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.cm-loc-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  flex: 1;
}

.cm-loc-card__meta a {
  font-weight: 700;
  text-decoration: none;
}

/* —— Page hero (inner) —— */
.cm-page-hero {
  padding-block: var(--space-10) var(--space-8);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.cm-page-hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 880px) {
  .cm-page-hero__grid {
    grid-template-columns: 1fr minmax(16rem, 20rem);
  }
}

.cm-aside-note {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.cm-aside-note h2 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.cm-aside-note p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* —— Split layout —— */
.cm-split {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

.cm-split--balance {
  align-items: stretch;
}

.cm-split--balance > * {
  min-height: 0;
}

@media (min-width: 880px) {
  .cm-split {
    grid-template-columns: 1fr 1fr;
  }
}

.cm-grid--2.cm-grid--balance > .cm-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* —— Lists —— */
.cm-list-check {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.cm-list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-accent-soft);
  border: 2px solid var(--color-accent);
}

.cm-list-plain {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.cm-list-plain li {
  margin-bottom: var(--space-2);
}

/* —— Doctors —— */
.cm-doc-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .cm-doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cm-doc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-sm);
}

.cm-doc-card__media {
  flex-shrink: 0;
}

.cm-doc-card__media img {
  width: 5.25rem;
  height: 5.25rem;
  border-radius: var(--radius-md);
  object-fit: cover;
  display: block;
}

.cm-doc-card__body {
  padding: 0;
  flex: 1;
  min-width: 0;
}

.cm-doc-card__body h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}

.cm-doc-card__role {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-2);
}

.cm-doc-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (max-width: 380px) {
  .cm-doc-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cm-doc-card__media img {
    width: 4.5rem;
    height: 4.5rem;
  }
}

/* —— Provider profiles (about): side‑by‑side, compact —— */
.cm-provider-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  align-items: stretch;
}

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

.cm-provider-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  height: 100%;
}

.cm-provider-card__top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.cm-provider-card__media {
  flex-shrink: 0;
}

.cm-provider-card__media img {
  width: 4.75rem;
  height: 4.75rem;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  display: block;
}

.cm-provider-card__intro {
  flex: 1;
  min-width: 0;
}

.cm-provider-card__intro h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-ink);
  margin: 0 0 var(--space-1);
}

.cm-provider-card__subtitle {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  line-height: 1.35;
}

.cm-provider-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  flex: 1;
}

.cm-provider-block h4 {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin: 0 0 var(--space-2);
}

.cm-provider-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cm-provider-block li {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.cm-provider-block li strong {
  display: block;
  font-weight: 600;
  color: var(--color-ink);
  font-size: 0.8125rem;
}

.cm-provider-block li span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.cm-provider-lang {
  margin: 0;
  padding-top: var(--space-2);
  border-top: 1px solid var(--color-border);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.cm-provider-lang strong {
  color: var(--color-ink);
  font-weight: 600;
  margin-right: 0.35em;
}

@media (max-width: 767px) {
  .cm-provider-card__top {
    align-items: center;
  }
}

/* —— Services: care coordination band —— */
.cm-coord-band {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}

.cm-coord-band__intro {
  max-width: 40rem;
  margin-bottom: var(--space-8);
}

.cm-coord-band__intro p {
  margin: var(--space-4) 0 0;
  color: var(--color-text-muted);
}

.cm-coord-layout {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .cm-coord-layout {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.cm-step-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .cm-step-row {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

.cm-step-row__item {
  list-style: none;
  position: relative;
  padding: var(--space-4);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  height: 100%;
}

.cm-step-row__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.cm-step-row__item h3 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
  color: var(--color-ink);
}

.cm-step-row__item p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.cm-coord-aside {
  background: linear-gradient(160deg, var(--color-accent-softer) 0%, var(--color-surface) 55%);
  border: 1px solid rgba(26, 143, 111, 0.18);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.cm-coord-aside h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--space-3);
  color: var(--color-ink);
}

.cm-coord-aside > p {
  margin: 0 0 var(--space-4);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.cm-coord-aside .cm-list-plain {
  font-size: 0.875rem;
}

/* —— Insurance plan logos —— */
.cm-plan-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 640px) {
  .cm-plan-logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .cm-plan-logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.cm-plan-logo-cell {
  --cm-plan-logo-slot: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(var(--space-4) * 2 + var(--cm-plan-logo-slot));
  padding: var(--space-4);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
}

/* Same bounding box for every mark: wide logos scale by height, tall marks by width. */
.cm-plan-logo-cell img {
  display: block;
  width: 100%;
  height: var(--cm-plan-logo-slot);
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 640px) {
  .cm-plan-logo-cell {
    --cm-plan-logo-slot: 3.375rem;
  }
}

@media (min-width: 900px) {
  .cm-plan-logo-cell {
    --cm-plan-logo-slot: 3.625rem;
  }
}

.cm-plan-logo-note {
  margin-top: var(--space-5);
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}

/* —— Badges —— */
.cm-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.cm-badge {
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* —— Notes & legal: full-width body text, minimal chrome —— */
.cm-section--note {
  padding-block: var(--space-4);
}

.cm-note-line {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  padding: var(--space-3) 0 0;
  border: none;
  border-top: 1px solid var(--color-border);
  max-width: none;
}

.cm-note-line a {
  font-weight: 600;
  color: var(--color-accent);
}

.cm-note-line a:hover {
  color: var(--color-accent-hover);
}

.cm-note-line--spaced {
  margin-top: var(--space-6);
}

.cm-note-line__label {
  font-weight: 500;
  color: var(--color-text);
  margin-right: 0.35em;
}

.cm-legal-line {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.cm-legal-line--footer {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
}

.cm-legal-line--footer .cm-legal-line__label {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
}

.cm-legal-line__label {
  font-weight: 600;
}

.cm-legal-line--footer-sub {
  margin: var(--space-3) 0 0;
  padding: 0;
  border: none;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.48);
}

.cm-legal-line--footer-sub .cm-legal-line__label {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.cm-footer .cm-legal-line--footer-sub a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.cm-footer .cm-legal-line--footer-sub a:hover {
  color: #fff;
}

/* —— CTA —— */

.cm-cta {
  margin-bottom: 0;
  padding-block: var(--space-10);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-brand-700) 55%, var(--color-brand-800) 100%);
  color: #fff;
}

.cm-cta .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .cm-cta .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cm-cta h2 {
  color: #fff;
  margin-bottom: var(--space-3);
}

.cm-cta p {
  margin: 0;
  opacity: 0.92;
  max-width: 32rem;
}

.cm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .cm-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .cm-cta__actions .cm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* —— Contact cards —— */
.cm-contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.cm-contact-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}

@media (max-width: 559px) {
  .cm-contact-card > .cm-btn {
    width: 100%;
    justify-content: center;
  }
}

.cm-phone-lg {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--space-4) 0;
}

.cm-phone-lg a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  color: var(--color-accent);
  -webkit-tap-highlight-color: rgba(26, 143, 111, 0.18);
}

.cm-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

.cm-hours-list li:last-child {
  border-bottom: none;
}

@media (max-width: 480px) {
  .cm-hours-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}

/* —— Insurance —— */
.cm-plans-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.cm-plans-figure img {
  width: 100%;
}

.cm-plans-figure figcaption {
  padding: var(--space-4) var(--space-5);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}

.cm-plan-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.cm-chip {
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.cm-chip--highlight {
  background: var(--color-accent-soft);
  border-color: rgba(26, 143, 111, 0.35);
  color: var(--color-accent);
}

.cm-sliding-box {
  background: linear-gradient(145deg, rgba(228, 240, 235, 0.95) 0%, var(--color-surface) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.cm-sliding-box h2 {
  margin-bottom: var(--space-4);
}

.cm-sliding-box p {
  color: var(--color-text-muted);
  margin: 0 0 var(--space-4);
}

.cm-timeline {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.cm-timeline li {
  margin-bottom: var(--space-3);
}

/* —— Form —— */
.cm-form-layout {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 960px) {
  .cm-form-layout {
    grid-template-columns: 1fr minmax(16rem, 20rem);
  }
}

.cm-form-card {
  padding: var(--space-8);
}

.cm-status {
  padding: var(--space-4) var(--space-5);
  background: var(--color-accent-soft);
  border: 1px solid rgba(26, 143, 111, 0.28);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-size: 0.9375rem;
  margin-bottom: var(--space-6);
}

.cm-form-row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 560px) {
  .cm-form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.cm-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.cm-field label,
.cm-fieldset legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink);
}

.cm-field input,
.cm-field select,
.cm-field textarea {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}

.cm-field input,
.cm-field select {
  min-height: 2.75rem;
}

.cm-field input:focus,
.cm-field select:focus,
.cm-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.cm-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.cm-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.cm-fieldset legend {
  margin-bottom: var(--space-2);
}

.cm-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.cm-radio-row label {
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.cm-form-actions {
  margin-top: var(--space-6);
}

.cm-form-hint {
  margin: var(--space-4) 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.cm-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-6) 0;
}

/* —— Footer —— */
.cm-footer {
  background: var(--color-footer);
  color: var(--color-footer-muted);
  padding-block: var(--space-12) var(--space-6);
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  margin-top: 0;
}

.cm-footer a {
  color: #fff;
  text-decoration: none;
}

.cm-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

.cm-footer__grid {
  display: grid;
  gap: var(--space-10);
}

@media (min-width: 768px) {
  .cm-footer__grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }
}

.cm-footer__brand p {
  margin: var(--space-4) 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: 22rem;
}

.cm-footer__col h2 {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 var(--space-4);
}

.cm-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cm-footer__col li {
  margin-bottom: var(--space-3);
  font-size: 0.9375rem;
}

.cm-footer__contact p {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin: 0 0 var(--space-4);
  font-size: 0.875rem;
  line-height: 1.45;
}

.cm-footer__contact svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  opacity: 0.7;
}

.cm-footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}

.cm-footer .cm-logo__tag {
  color: rgba(255, 255, 255, 0.5);
}

.cm-footer .cm-logo__name {
  color: #fff;
}

@media (max-width: 559px) {
  .cm-form-card {
    padding: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cm-nav {
    transition: none;
  }
}

/* —— Utility —— */
.cm-mt-0 {
  margin-top: 0;
}

.cm-mb-6 {
  margin-bottom: var(--space-6);
}
