/* ============================================
   Healthcare Block Theme — Custom Components
   Visual Design v2 — Polished & On-Brand
   ============================================ */

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

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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


/* --- WordPress Layout Resets --- */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}

.wp-site-blocks .entry-content > * + * {
  margin-block-start: 0;
}

.is-layout-flow > * + * {
  margin-block-start: 0;
}


/* --- WordPress Alignment Classes --- */
.alignwide {
  max-width: var(--width-wide);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}


/* --- WordPress Button Compatibility --- */
.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-8);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--healthcare-primary);
  color: var(--color-white);
  border-color: var(--healthcare-primary);
  min-height: 52px;
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  background: var(--healthcare-primary-dark);
  border-color: var(--healthcare-primary-dark);
  transform: translateY(-2px);
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 2px solid var(--healthcare-primary);
  outline-offset: 2px;
}


/* --- WordPress Image Block --- */
.wp-block-image {
  margin: 0;
}

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

/* --- Design Tokens --- */
:root {
  --color-muted: #6B7280;
  --color-border: #E2E8F0;
  --color-surface: #F8FAFC;
  --color-surface-alt: #F1F5F9;
  --color-white: #FFFFFF;
  --color-star: #FBBF24;
  --color-success: #10B981;
  --color-success-light: #D1FAE5;
  --color-amber: #F59E0B;
  --color-amber-light: #FEF3C7;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --gutter: 24px;
  --width-content: 720px;
  --width-wide: 1120px;

  /* Shadows — layered for depth */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.03);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.04), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.08);
  --shadow-xl: 0 8px 16px rgba(0,0,0,0.06), 0 24px 48px rgba(0,0,0,0.1);
  --shadow-glow: 0 4px 24px rgba(13, 148, 136, 0.2);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-card-hover: 0 4px 8px rgba(0,0,0,0.06), 0 12px 28px rgba(0,0,0,0.1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  --transition: 200ms ease;
  --transition-slow: 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
  --gradient-hero: linear-gradient(160deg, #ECFDF5 0%, #CCFBF1 40%, #F0FDF4 100%);
  --gradient-cta: linear-gradient(135deg, #111827 0%, #1F2937 50%, #111827 100%);
  --gradient-surface: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
}

@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
  }
}


/* ===========================================
   0. Layout — Container
   =========================================== */

.container {
  max-width: var(--width-wide);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--narrow {
  max-width: var(--width-content);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
  position: relative;
}

@media (min-width: 1024px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}


/* ===========================================
   1. Buttons
   =========================================== */

.wp-block-button.btn {
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.wp-block-button.btn.btn--primary > .wp-block-button__link {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}
.wp-block-button.btn.btn--primary > .wp-block-button__link:hover {
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
}

.wp-block-button.btn.btn--secondary > .wp-block-button__link {
  background: var(--color-white);
  color: var(--healthcare-primary);
  border-color: var(--healthcare-primary);
}
.wp-block-button.btn.btn--secondary > .wp-block-button__link:hover {
  background: var(--healthcare-primary-light);
  box-shadow: var(--shadow-md);
}

.wp-block-button.btn.btn--white > .wp-block-button__link {
  background: var(--color-white);
  color: var(--healthcare-primary);
  border-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.wp-block-button.btn.btn--white > .wp-block-button__link:hover {
  background: var(--healthcare-primary-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.wp-block-button.btn.btn--outline-white > .wp-block-button__link {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
}
.wp-block-button.btn.btn--outline-white > .wp-block-button__link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-8);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 52px;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--healthcare-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.btn--primary:hover {
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
  color: var(--color-white);
}

.btn--secondary {
  background: var(--color-white);
  color: var(--healthcare-primary);
  border-color: var(--healthcare-primary);
}

.btn--secondary:hover {
  background: var(--healthcare-primary-light);
  box-shadow: var(--shadow-md);
}

.btn--white {
  background: var(--color-white);
  color: var(--healthcare-primary);
  border-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn--white:hover {
  background: var(--healthcare-primary-light);
  border-color: var(--healthcare-primary-light);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.btn--outline-white {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(4px);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

@media (max-width: 479px) {
  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }
}


/* ===========================================
   2. Site Header
   =========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--healthcare-nav-bg, var(--color-white));
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--width-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--gutter);
}

.site-header__logo img {
  height: 40px;
  width: auto;
}

.site-header__phone a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--healthcare-nav-text, var(--healthcare-primary));
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all var(--transition);
}

.site-header__phone a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
}

.site-header__phone svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


/* ===========================================
   3. Announcement Bar
   =========================================== */

.announcement-bar {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--gutter);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.announcement-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.05) 50%, transparent 100%);
}

.announcement-bar__row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  max-width: var(--width-wide);
  margin: 0 auto;
  position: relative;
}

.announcement-bar__row span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.announcement-bar__row svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.announcement-bar__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.announcement-bar a {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
}

.announcement-bar a:hover {
  opacity: 0.9;
}

@media (max-width: 639px) {
  .announcement-bar__divider {
    display: none;
  }

  .announcement-bar__row {
    flex-direction: column;
    gap: var(--space-2);
  }
}


/* ===========================================
   4. Hero
   =========================================== */

.hero {
  padding: var(--space-12) var(--gutter);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: var(--width-wide);
  margin: 0 auto;
  align-items: start;
  position: relative;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }
}

.hero__grid[class*="is-layout-"] {
  display: grid !important;
}

@media (min-width: 1024px) {
  .hero {
    padding: var(--space-20) var(--gutter) var(--space-20) var(--gutter);
  }
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--healthcare-heading);
  margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 44px;
  }
}

.hero__subtitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--healthcare-primary);
  margin-bottom: var(--space-6);
  line-height: 1.3;
}

@media (min-width: 1024px) {
  .hero__subtitle {
    font-size: 26px;
  }
}

.hero__body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--healthcare-body);
  max-width: 580px;
  margin-bottom: var(--space-8);
}

.hero__body p + p {
  margin-top: 18px;
}

.hero .btn-group {
  margin-bottom: var(--space-8);
}

.hero__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-2xl);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .hero__image {
    margin-top: 80px;
  }
}

.hero__image img {
  width: 100%;
  height: auto;
  display: block;
}


/* ===========================================
   5. Trust Badges
   =========================================== */

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.trust-badges img {
  height: 40px;
  width: auto;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: filter var(--transition), opacity var(--transition);
}

.trust-badges img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 500;
  color: var(--healthcare-body);
}

.trust-badges svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--healthcare-primary);
}


/* ===========================================
   6. Trust Strip
   =========================================== */

.trust-strip {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.trust-strip__item::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  background: var(--healthcare-primary, #0D9488);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  opacity: 0.15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D9488' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}


/* ===========================================
   7. Availability Cue
   =========================================== */

.availability-cue {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.availability-cue strong {
  color: var(--healthcare-primary);
  font-weight: 600;
}


/* ===========================================
   8. Funding Strip
   =========================================== */

.funding-strip {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.funding-strip h2 {
  margin-bottom: var(--space-3);
  text-align: center;
}

.funding-strip__intro {
  text-align: center;
  color: var(--color-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto var(--space-10);
}

.funding-strip__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .funding-strip__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.funding-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6) var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.funding-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--healthcare-primary, #0D9488);
}

.funding-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: transparent;
}

.funding-card__tags {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-4);
}

.funding-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-success-light);
  color: #065F46;
  margin-bottom: var(--space-4);
}

.funding-card__tags .funding-card__tag {
  margin-bottom: 0;
}

.funding-card__tag--funded {
  background: var(--healthcare-primary-light, #CCFBF1);
  color: var(--healthcare-primary-dark);
}

.funding-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-2);
  color: var(--healthcare-heading, #111827);
}

.funding-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}

.funding-card:nth-child(1)::before { background: var(--healthcare-primary); }
.funding-card:nth-child(2)::before { background: var(--healthcare-primary-dark); }
.funding-card:nth-child(3)::before { background: var(--color-success); }
.funding-card:nth-child(4)::before { background: var(--color-amber); }

.funding-card:nth-child(4) .funding-card__tag {
  background: var(--color-amber-light);
  color: #92400E;
}

.funding-strip__note {
  text-align: center;
  font-size: 15px;
  color: var(--color-muted);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}


/* ===========================================
   9. Location Callout
   =========================================== */

.location-callout {
  background: var(--healthcare-primary-light);
  padding: var(--space-12) var(--gutter);
}

@media (min-width: 1024px) {
  .location-callout {
    padding: 158px var(--gutter);
  }
}

.location-callout__inner {
  display: grid;
  gap: var(--space-8);
  max-width: var(--width-wide);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .location-callout__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.location-callout h3 {
  margin-bottom: var(--space-4);
}

.location-callout__detail {
  margin-bottom: var(--space-2);
  font-size: 16px;
}

.location-callout__detail strong {
  display: inline-block;
  min-width: 80px;
}

.location-callout__phone,
.location-callout__phone a {
  font-size: 20px;
  font-weight: 600;
  color: var(--healthcare-primary);
  text-decoration: none;
  display: inline-block;
  margin-top: var(--space-4);
}

.location-callout__phone:hover,
.location-callout__phone a:hover {
  color: var(--healthcare-primary-dark);
}

iframe.location-callout__map {
  width: 100%;
  height: 280px;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--color-border);
}

@media (min-width: 768px) {
  iframe.location-callout__map {
    height: 320px;
  }
}


/* ===========================================
   10. Conditions
   =========================================== */

.conditions {
  background: var(--color-surface);
  padding: var(--space-12) var(--gutter);
}

@media (min-width: 1024px) {
  .conditions {
    padding: 108px var(--gutter);
  }
}

.conditions h2 {
  font-size: 32px;
  margin-bottom: var(--space-4);
}

.conditions > .wp-block-heading,
.conditions > p,
.conditions__intro {
  max-width: var(--width-wide) !important;
  margin-bottom: var(--space-6);
}

.conditions__grid {
  display: grid;
  gap: 0;
  margin-bottom: var(--space-8);
  max-width: var(--width-wide);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .conditions__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 var(--space-8);
  }
}

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

.conditions__grid li {
  padding: var(--space-2) 0;
  padding-left: 28px;
  position: relative;
  font-size: 16px;
  border-bottom: 1px solid var(--color-border);
}

.conditions__grid li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 18px;
  height: 18px;
  background: var(--healthcare-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center;
}


/* ===========================================
   11. Callout Box
   =========================================== */

.callout-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 2px solid var(--healthcare-primary, #0D9488);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  margin: var(--space-8) auto;
  max-width: 770px;
}

.callout-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--healthcare-primary-light, #CCFBF1) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.callout-box p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--healthcare-heading);
  margin: 0;
  margin-bottom: var(--space-5);
  position: relative;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

.callout-box strong {
  font-weight: 700;
}

.callout-box .btn {
  position: relative;
  margin-top: 20px;
}


/* ===========================================
   12. Steps
   =========================================== */

.steps {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: var(--color-white);
}

.steps h2,
.steps .wp-block-heading {
  font-size: 34px;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.steps__intro {
  margin-bottom: var(--space-12);
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-muted);
  text-align: left;
}

.steps__grid,
.steps__list {
  display: grid;
  gap: 0;
  margin-bottom: var(--space-12);
  position: relative;
}

@media (min-width: 768px) {
  .steps__grid,
  .steps__list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    max-width: none;
  }
}

.step {
  padding: var(--space-6) var(--space-6) var(--space-8);
  position: relative;
  border-left: 2px solid var(--color-border);
  margin-left: var(--space-4);
}

@media (min-width: 768px) {
  .step {
    border-left: none;
    margin-left: 0;
    padding: 0;
    padding-top: var(--space-10);
    text-align: center;
  }

  .step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0.2;
  }
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
  position: absolute;
  z-index: 1;
  left: -21px;
  top: var(--space-6);
}

@media (min-width: 768px) {
  .step__number {
    position: relative;
    left: auto;
    top: auto;
    margin: 0 auto var(--space-5);
    margin-top: -20px;
  }
}

.step__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--healthcare-primary);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .step__label {
    display: none;
  }
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--healthcare-heading);
  margin-bottom: var(--space-3);
}

.step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-muted);
}

.steps .btn-group,
.steps .wp-block-buttons {
  justify-content: flex-start;
}

.steps.steps--white {
  background: var(--color-white);
}


/* ===========================================
   13. Services
   =========================================== */

.services {
  background: var(--color-surface);
  padding: var(--space-12) var(--gutter);
}

@media (min-width: 1024px) {
  .services {
    padding: 108px var(--gutter);
  }
}

.services h2 {
  font-size: 32px;
  margin-bottom: var(--space-4);
  text-align: center;
}

.services__intro {
  margin-bottom: var(--space-10);
  max-width: 660px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.services > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--healthcare-body);
  margin-bottom: var(--space-10);
  max-width: 660px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: var(--width-wide);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.services__grid.wp-block-columns {
  align-items: stretch;
}

.services__grid .wp-block-column {
  display: flex;
  flex-direction: column;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10) !important;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: transparent;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--healthcare-heading);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.service-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--healthcare-primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--healthcare-body);
  flex: 1;
}

.service-card__link,
.service-card__link a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--healthcare-primary);
  text-decoration: none;
  margin-top: var(--space-4);
  transition: gap var(--transition), color var(--transition);
}

.service-card__link:hover,
.service-card__link a:hover {
  color: var(--healthcare-primary-dark);
  gap: var(--space-3);
}

.service-card__link::after {
  content: '\2192';
  font-size: 18px;
  color: var(--healthcare-primary);
  margin-top: 15px;
  transition: transform var(--transition);
}

.service-card:hover .service-card__link::after {
  transform: translateX(2px);
}

.services .btn-group {
  margin-top: var(--space-10);
  justify-content: center;
}


/* ===========================================
   14. Scroll Reveal
   =========================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="0"] { transition-delay: 0s; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }
.reveal[data-delay="4"] { transition-delay: 0.48s; }
.reveal[data-delay="5"] { transition-delay: 0.6s; }

.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ===========================================
   15. FAQ (native <details> / <summary>)
   =========================================== */

.faq {
  background: var(--color-white);
}

.faq h2 {
  font-size: 34px;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
  text-align: center;
}

.faq__list {
  max-width: var(--width-content);
  margin: 0 auto;
}

.faq__list details {
  border-bottom: 1px solid var(--color-border);
}

.faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6) 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--healthcare-heading);
  cursor: pointer;
  list-style: none;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::marker {
  display: none;
}

.faq__list summary::after {
  content: '+';
  font-size: 20px;
  color: var(--color-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-full);
}

.faq__list details[open] summary::after {
  content: '\2212';
  background: var(--healthcare-primary, #0D9488);
  color: var(--color-white);
}

.faq__list summary:hover {
  color: var(--healthcare-primary);
}

.faq__list details > *:not(summary) {
  padding-bottom: var(--space-6);
}

.faq__list details p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--healthcare-body);
}


/* ===========================================
   16. FAQ — Button-based accordion (LP pages)
   =========================================== */

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--healthcare-heading, #111827);
  text-align: left;
  gap: var(--space-4);
  line-height: 1.4;
  transition: color var(--transition);
}

.faq__question:hover {
  color: var(--healthcare-primary, #0D9488);
}

.faq__question:focus-visible {
  outline: 2px solid var(--healthcare-primary, #0D9488);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq__icon-wrap {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.faq__item.is-open .faq__icon-wrap {
  background: var(--healthcare-primary, #0D9488);
}

.faq__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  transition: all var(--transition);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  color: var(--color-white);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
  padding-bottom: var(--space-6);
}

.faq__answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--healthcare-body, var(--color-body, #374151));
}


/* ===========================================
   17. CTA Dark
   =========================================== */

.cta-dark {
  background: var(--gradient-cta);
  color: var(--color-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-dark::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.cta-dark::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-dark h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  position: relative;
}

.cta-dark p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto var(--space-10);
  position: relative;
}

.cta-dark a:where(:not(.wp-element-button)):where(:not(.btn)) {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-dark .btn-group {
  justify-content: center;
  position: relative;
}

.cta-dark .btn {
  text-decoration: none;
}

.cta-dark .btn:hover {
  text-decoration: none;
}

.cta-dark .btn--white {
  color: var(--healthcare-nav-bg, #111827);
}

.cta-dark .btn--white:hover {
  color: var(--healthcare-nav-bg, #111827);
}

.cta-dark .location-details {
  margin-top: var(--space-10);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-dark .location-details p {
  font-size: 15px;
  max-width: none;
  margin: 0 auto var(--space-2);
  color: rgba(255, 255, 255, 0.5);
}

.cta-dark .location-details p strong {
  color: rgba(255,255,255,0.8);
}


/* ===========================================
   18. Footer
   =========================================== */

.footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.6);
  padding: var(--space-16) var(--gutter) var(--space-8);
  font-size: 14px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: var(--width-wide);
  margin: 0 auto var(--space-12);
}

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

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand p {
  font-size: 15px;
  line-height: 1.7;
  margin-top: var(--space-4);
  color: rgba(255,255,255,0.6);
}

.footer h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-5);
}

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

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

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition);
}

.footer a:hover {
  color: var(--color-white);
}

.footer strong {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.footer__social a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.footer__social a:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.footer__hours {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.5);
}

.footer__hours strong {
  color: var(--color-white);
}

.footer__hours li {
  list-style: none;
  margin-bottom: var(--space-2);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 4px 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-8);
  text-align: center;
  font-size: 13px;
  max-width: var(--width-wide);
  margin: 0 auto;
  color: rgba(255,255,255,0.3);
}

.footer__bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}


/* ===========================================
   19. Utilities
   =========================================== */

.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;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--healthcare-primary);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }


/* ===========================================
   20. Sticky Mobile CTA
   =========================================== */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: var(--space-3) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  border-top: 1px solid var(--color-border);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  flex: 1;
  max-width: 200px;
  padding: var(--space-3) var(--space-4);
  font-size: 15px;
  min-height: 48px;
}

@media (min-width: 768px) {
  .sticky-cta,
  .wp-block-group.sticky-cta {
    display: none !important;
  }
}


/* ===========================================
   21. Pain Points Section
   =========================================== */

.pain-points {
  background: var(--gradient-surface);
  position: relative;
}

.pain-points h2 {
  margin-bottom: var(--space-3);
}

.pain-points__intro {
  margin-bottom: var(--space-8);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 600px;
}

.pain-points__grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
  .pain-points__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pain-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-primary);
  border-radius: 0 2px 2px 0;
}

.pain-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: transparent;
}

.pain-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-3);
  color: var(--healthcare-heading, #111827);
  padding-left: var(--space-3);
}

.pain-card p {
  font-size: 15px;
  color: var(--healthcare-body, var(--color-body, #374151));
  line-height: 1.65;
  padding-left: var(--space-3);
}


/* ===========================================
   22. Features Section
   =========================================== */

.features {
  background: var(--gradient-surface);
  position: relative;
}

.features h2 {
  margin-bottom: var(--space-3);
}

.features__intro {
  margin-bottom: var(--space-10);
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-muted);
}

.features__grid {
  display: grid;
  gap: var(--space-6);
}

.features .btn-group {
  margin-top: var(--space-12);
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.features__grid--compact {
  max-width: 960px;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--healthcare-primary-light, #CCFBF1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--healthcare-primary, #0D9488);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-3);
  color: var(--healthcare-heading, #111827);
}

/* Remove the bar ::before from v1 feature cards */
.feature-card h3::before {
  display: none;
}

.feature-card p {
  font-size: 15px;
  color: var(--healthcare-body, var(--color-body, #374151));
  line-height: 1.65;
  flex: 1;
}


/* ===========================================
   23. Paragraph spacing
   =========================================== */

p + p {
  margin-top: 18px;
}


/* ===========================================
   24. Logo size
   =========================================== */

.site-header__logo img,
.site-header__logo .custom-logo {
  height: 52px !important;
  width: auto !important;
}

@media (min-width: 1024px) {
  .site-header__logo img,
  .site-header__logo .custom-logo {
    height: 60px !important;
  }
}


/* ===========================================
   25. Native wp:button variant support
   =========================================== */

.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  color: var(--healthcare-primary);
  border: 2px solid var(--healthcare-primary);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: var(--healthcare-primary-light);
}

.cta-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link {
  background: var(--color-white);
  color: var(--healthcare-primary);
  border-color: var(--color-white);
}

.cta-dark .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
  background: var(--color-surface);
  border-color: var(--color-surface);
}

.cta-dark .wp-block-button.is-style-outline > .wp-block-button__link {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
}

.cta-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
}

.wp-block-buttons.btn-group {
  gap: var(--space-4);
}

@media (max-width: 479px) {
  .wp-block-buttons.btn-group {
    flex-direction: column;
  }
  .wp-block-buttons.btn-group .wp-block-button {
    width: 100%;
  }
  .wp-block-buttons.btn-group .wp-block-button__link {
    width: 100%;
    justify-content: center;
  }
}

.callout-box .wp-block-buttons {
  margin-top: var(--space-4);
}

.hero .wp-block-buttons {
  margin-bottom: var(--space-8);
}


/* ===========================================
   26. Hero Rating
   =========================================== */

.hero__rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero__stars {
  display: flex;
  gap: 2px;
}

.hero__stars svg {
  width: 20px;
  height: 20px;
  color: var(--color-star);
}

.hero__rating-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--healthcare-heading, #111827);
  letter-spacing: 0.01em;
}


/* ===========================================
   27. Funding Strip CTA
   =========================================== */

.funding-strip__cta {
  text-align: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
}

.funding-strip__cta p {
  font-size: 17px;
  font-weight: 600;
  color: var(--healthcare-heading, #111827);
  margin-bottom: var(--space-4);
}
