/* Universal Community Services - Modern UI Components (2027) */

/* ========== Global 3D FX Background ========== */
.fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1400px 900px at 10% 10%, #e0f2fe 0%, transparent 60%),
    radial-gradient(1200px 800px at 90% 20%, #ede9fe 0%, transparent 60%),
    radial-gradient(1100px 900px at 50% 100%, #cffafe 0%, transparent 60%),
    linear-gradient(180deg, #f8fbff 0%, #f0f9ff 100%);
}
.fx-bg .fx-blobs,
.fx-bg .fx-neural {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.fx-bg .fx-blobs  { opacity: .6; }
.fx-bg .fx-neural { opacity: .45; }

/* Tech grid overlay */
.fx-bg .fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 80%);
}
.fx-bg .fx-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(15,23,42,0.06) 100%);
}

/* hide legacy orb bg if present */
.bg-ambient { display: none !important; }

/* ========== Card Spotlight (cursor-reactive glow) ========== */
.spotlight {
  position: relative;
  --mx: 50%;
  --my: 50%;
}
.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my),
                              rgba(14,165,233,0.18),
                              transparent 45%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::after { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* Glare strip on tilt-cards */
.tilt-card { position: relative; }
.tilt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.35) 50%,
    transparent 70%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 2;
}
.tilt-card:hover::before { opacity: 1; }

/* ========== Magnetic buttons ========== */
.magnetic {
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .3s ease !important;
  will-change: transform;
}
.magnetic:hover { box-shadow: 0 18px 44px rgba(14,165,233,.35), 0 0 0 1px rgba(14,165,233,.15); }

/* Pulsing glow border for primary CTAs */
.btn-primary, .btn-submit {
  position: relative;
}
.btn-primary::after, .btn-submit::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4, #8b5cf6, #0ea5e9);
  background-size: 200% 200%;
  opacity: 0;
  filter: blur(10px);
  transition: opacity .4s ease;
  z-index: -1;
  animation: gradShift 6s linear infinite;
}
.btn-primary:hover::after, .btn-submit:hover::after { opacity: .6; }
@keyframes gradShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Icon 3D micro-hover on cards */
.service-card:hover .service-icon,
.resource-card:hover .resource-icon,
.feature-card:hover .feature-card-icon,
.value-card:hover .value-icon,
.info-card:hover .info-icon,
.benefit-card:hover .benefit-icon {
  animation: iconFloat 1.4s ease-in-out infinite;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-4deg); }
}

/* Reveal variations */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.team-grid .team-card.reveal:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }

/* Accreditation shine */
.accreditation-logo { position: relative; overflow: hidden; height: 92px; display: flex; align-items: center; justify-content: center; }
.accreditation-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.accreditation-logo::after {
  content: '';
  position: absolute;
  top: -100%; left: -40%;
  width: 60%; height: 300%;
  background: linear-gradient(100deg, transparent 40%, rgba(14,165,233,.22) 50%, transparent 60%);
  transform: rotate(18deg);
  transition: left .9s ease;
  pointer-events: none;
}
.accreditation-logo:hover::after { left: 120%; }

/* Payment bubbles halo */
.payment-bubble { position: relative; }
.payment-bubble::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.25), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.payment-bubble:hover::after { opacity: 1; }
.payment-bubble { animation: bubbleBob 7s ease-in-out infinite; }
.payment-bubble:nth-child(1) { animation-delay: -0s; }
.payment-bubble:nth-child(2) { animation-delay: -1.5s; }
.payment-bubble:nth-child(3) { animation-delay: -3s; }
.payment-bubble:nth-child(4) { animation-delay: -4.5s; }
@keyframes bubbleBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.payment-bubble:hover { animation-play-state: paused; }

/* Hero cards depth glow */
.hero-card-3d {
  box-shadow:
    0 30px 80px rgba(2,132,199,.22),
    0 0 0 1px rgba(255,255,255,.55),
    inset 0 0 20px rgba(14,165,233,.06);
}
.hero-card-3d.main { backdrop-filter: blur(20px) saturate(160%); }

/* Team card photo glow on hover */
.team-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14,165,233,.6), rgba(139,92,246,.4), rgba(6,182,212,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.team-card:hover::after { opacity: 1; }

/* Conditions items pulse */
.condition-item { position: relative; overflow: hidden; }
.condition-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(125,211,252,.25) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.condition-item:hover::before { transform: translateX(100%); }

/* Section scroll-in: slight skew for energy */
.services-grid .service-card.reveal,
.features-grid .feature-card.reveal,
.benefits-grid .benefit-card.reveal {
  transition-timing-function: cubic-bezier(.34, 1.56, .64, 1);
}

/* Navbar frost ring when scrolled */
.navbar.scrolled {
  box-shadow: 0 12px 40px rgba(2,132,199,.10), inset 0 -1px 0 rgba(14,165,233,.15);
}

/* Section dividers — subtle line */
section + section { position: relative; }

/* Marquee keyword bar (optional use) */
.marquee {
  overflow: hidden;
  padding: 12px 0;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,.06), transparent);
  border-top: 1px solid rgba(14,165,233,.1);
  border-bottom: 1px solid rgba(14,165,233,.1);
}
.marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; }
.marquee-track span::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(14,165,233,.18);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reduce motion friendly */
@media (prefers-reduced-motion: reduce) {
  .fx-bg { display: none !important; }
  .btn-primary::after, .btn-submit::after,
  .payment-bubble, .accreditation-logo::after,
  .service-card:hover .service-icon,
  .resource-card:hover .resource-icon,
  .feature-card:hover .feature-card-icon,
  .value-card:hover .value-icon,
  .info-card:hover .info-icon,
  .benefit-card:hover .benefit-icon {
    animation: none !important;
  }
}


/* ========== HOME HERO (3D) ========== */
.hero-modern {
  position: relative;
  min-height: 100vh;
  padding: 160px 20px 100px;
  overflow: hidden;
  background: var(--grad-hero);
}
.hero-modern::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 20% 20%, rgba(14,165,233,.25), transparent 60%),
    radial-gradient(600px 500px at 80% 30%, rgba(139,92,246,.25), transparent 60%),
    radial-gradient(500px 400px at 50% 90%, rgba(6,182,212,.20), transparent 60%);
  animation: heroPulse 14s ease-in-out infinite;
}
@keyframes heroPulse {
  0%,100% { filter: hue-rotate(0deg); }
  50%     { filter: hue-rotate(20deg); }
}

/* Grid overlay */
.hero-modern::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 35%, transparent 75%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(14,165,233,.2);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(16,185,129,.22);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(16,185,129,.22); }
  50%     { box-shadow: 0 0 0 8px rgba(16,185,129,.10); }
}

.hero-modern h1 {
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -.028em;
  color: var(--text-color);
}
.hero-modern h1 .accent {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== 3D hero headline ===== */
.hero-3d-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.03em;
  font-size: clamp(30px, 4.2vw, 54px);
  margin: 12px 0 22px;
  perspective: 1200px;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.23, 1, .32, 1);
  will-change: transform;
}
.hero-3d-title .word {
  display: inline-block;
  transform-style: preserve-3d;
  animation: heroFloat3d 7s ease-in-out infinite;
  color: var(--text-color);
  /* subtle extruded 3D face */
  text-shadow:
    0 1px 0 #c4e3f2,
    0 2px 0 #aed7ec,
    0 3px 0 #97cae5,
    0 5px 12px rgba(2,132,199,.22);
}
.hero-3d-title .w1 { --tz: 26px; animation-delay: 0s; }
.hero-3d-title .w2 { --tz: 15px; animation-delay: .3s; }
.hero-3d-title .w3 { --tz: 6px;  animation-delay: .6s; }
/* gradient text on ALL three lines — full cyan → blue → violet spectrum within
   each line (like "Wellbeing" in the old hero). No `filter` (it broke the clip). */
#hero3d .word {
  background-image: linear-gradient(120deg, #0ea5e9 0%, #06b6d4 38%, #3b82f6 68%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}
@keyframes heroFloat3d {
  0%, 100% { transform: translateZ(var(--tz, 20px)) translateY(0); }
  50%      { transform: translateZ(var(--tz, 20px)) translateY(-4px); }
}

/* ===== Click "vortex" — swirl out & back in ===== */
.hero-3d-title { cursor: pointer; }
.hero-3d-title.swirling .word {
  transform-origin: center;
  animation: heroSwirl .95s cubic-bezier(.55,.15,.25,1) both;
}
.hero-3d-title.swirling .w1 { animation-delay: 0s;   }
.hero-3d-title.swirling .w2 { animation-delay: .09s; }
.hero-3d-title.swirling .w3 { animation-delay: .18s; }
@keyframes heroSwirl {
  0%   { transform: scale(1)   rotateZ(0)      translateX(0);    opacity: 1; filter: blur(0); }
  42%  { transform: scale(.04) rotateZ(420deg) translateX(18px); opacity: 0; filter: blur(6px); }
  60%  { transform: scale(.04) rotateZ(560deg) translateX(-18px);opacity: 0; filter: blur(6px); }
  100% { transform: scale(1)   rotateZ(720deg) translateX(0);    opacity: 1; filter: blur(0); }
}

/* 3D headline — phone sizing (the 3 lines must fit cleanly, no overflow) */
@media (max-width: 768px) {
  #hero3d { font-size: clamp(25px, 6.6vw, 38px); line-height: 1.12; margin-top: 6px; }
}
@media (max-width: 360px) {
  #hero3d { font-size: 23px; }
}
.hero-3d-title .word { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  .hero-3d-title,
  .hero-3d-title .word { animation: none !important; transition: none !important; }
}

.hero-modern .subtitle {
  font-size: 20px;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 18px;
}
.hero-modern .lead {
  color: var(--text-light);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 34px;
  line-height: 1.7;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 560px;
}
.stat-item {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(14,165,233,.15);
  backdrop-filter: blur(12px);
  padding: 18px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-item .stat-num {
  font-size: 26px;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}
.stat-item p { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; font-weight: 500; }

/* 3D Hero Visual (right side) */
.hero-visual {
  position: relative;
  perspective: 1400px;
  height: 560px;
}
.hero-card-3d {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(2,132,199,.22);
  overflow: hidden;
  transform-style: preserve-3d;
  animation: float3d 8s ease-in-out infinite;
}
.hero-card-3d.main {
  inset: 40px 40px 80px 40px;
  padding: 42px;
  z-index: 3;
}
.hero-card-3d.chip-1 {
  width: 170px; height: 170px;
  top: 10px; right: -20px;
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
  color: #fff; padding: 20px;
  z-index: 4;
  animation-delay: -2s;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-card-3d.chip-1 .chip-num { font-size: 38px; font-weight: 800; }
.hero-card-3d.chip-1 .chip-label { font-size: 12px; opacity: .95; text-transform: uppercase; letter-spacing: .1em; }

.hero-card-3d.chip-2 {
  width: 220px; padding: 16px 18px;
  bottom: 10px; left: -10px;
  z-index: 4;
  animation-delay: -4s;
  display: flex; align-items: center; gap: 12px;
}
.hero-card-3d.chip-2 .chip-ico {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.hero-card-3d.chip-2 .chip-ico svg { width: 22px; height: 22px; }
.hero-card-3d.chip-2 .chip-info b { color: var(--text-color); font-size: 14px; display:block; }
.hero-card-3d.chip-2 .chip-info span { color: var(--text-muted); font-size: 12px; }

@keyframes float3d {
  0%,100% { transform: translateY(0) rotateX(4deg) rotateY(-6deg); }
  50%     { transform: translateY(-14px) rotateX(2deg) rotateY(-3deg); }
}

.hero-card-icon {
  width: 86px; height: 86px;
  border-radius: 24px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 12px 30px rgba(14,165,233,.35);
}
.hero-card-icon svg { width: 42px; height: 42px; fill: #fff; }

.hero-card-3d.main .hero-card-title { font-size: 22px; color: var(--primary-dark); margin-bottom: 10px; font-weight: 800; }
.hero-card-3d.main p { color: var(--text-light); margin-bottom: 18px; font-size: 15px; }

.feature-list { display: grid; gap: 10px; }
.feature-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; color: #334155; font-size: 14px; font-weight: 500;
}
.feature-list li svg {
  width: 22px; height: 22px; flex-shrink: 0;
  padding: 4px; border-radius: 8px;
  background: rgba(16,185,129,.15);
  fill: var(--mint);
}

/* ========== Services Preview / Services Grid ========== */
.services-preview, .services-content, .why-choose, .values-section {
  padding: 100px 20px;
  position: relative;
}
.services-preview, .why-choose, .services-content { background: transparent; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  display: block;
  background: var(--grad-card);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
  width: 100%;
  border: 1px solid rgba(14,165,233,.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, transparent 60%, rgba(14,165,233,.15));
  border-radius: inherit;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, var(--primary-wash), #fff);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition);
  box-shadow: inset 0 0 0 1px rgba(14,165,233,.15);
}
.service-card:hover .service-icon {
  background: var(--grad-primary);
  transform: rotate(-6deg) scale(1.08);
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--primary-color); stroke-width: 2; fill: none; transition: stroke .3s; }
.service-card:hover .service-icon svg { stroke: #fff; }

.service-card h3 { font-size: 19px; color: var(--text-color); margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--text-light); line-height: 1.65; margin-bottom: 16px; }

.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary-color); font-weight: 600; font-size: 14px;
}
.service-link svg { width: 16px; height: 16px; transition: transform .3s ease; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ========== Why Choose ========== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
  background: var(--grad-card);
  padding: 34px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,165,233,.08);
  transition: var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.feature-card-icon {
  width: 76px; height: 76px;
  background: var(--grad-primary);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 26px rgba(14,165,233,.35);
  transform: rotate(-6deg);
  transition: var(--transition);
}
.feature-card:hover .feature-card-icon { transform: rotate(0deg) scale(1.05); }
.feature-card-icon svg { width: 32px; height: 32px; fill: #fff; }
.feature-card h3 { font-size: 17px; color: var(--primary-dark); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.65; }

/* ========== CTA ========== */
.cta-section {
  position: relative;
  padding: 110px 20px;
  color: #fff; text-align: center;
  background: var(--grad-cta);
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 15% 20%, rgba(255,255,255,.2), transparent 60%),
    radial-gradient(800px 400px at 85% 80%, rgba(255,255,255,.15), transparent 60%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: #fff; margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,.1);
}
.cta-section p { font-size: 18px; color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto 30px; }

/* ========== Resources (Home) ========== */
.resources-section { padding: 90px 20px; background: transparent; }
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1140px; margin: 0 auto;
}
.resource-card {
  background: var(--grad-card);
  border: 1px solid rgba(14,165,233,.1);
  padding: 34px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.resource-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.resource-icon {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-wash), #fff);
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,.15), 0 8px 20px rgba(14,165,233,.12);
}
.resource-icon svg { width: 36px; height: 36px; stroke: var(--primary-color); stroke-width: 1.6; fill: none; }
.resource-card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; font-weight: 700; }
.resource-card h3 a { color: inherit; border-bottom: 2px solid rgba(14,165,233,.3); padding-bottom: 2px; transition: .3s; }
.resource-card h3 a:hover { border-color: var(--primary-color); }
.resource-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.resource-card p a { color: inherit; }
.resource-links { margin-top: 12px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.resource-links a {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--primary-wash);
  color: var(--primary-dark);
  font-weight: 600; font-size: 13px;
  transition: .3s;
}
.resource-links a:hover { background: var(--primary-color); color: #fff; }

/* ========== Payment Bubbles (Our Office Accept) ========== */
.payment-section { padding: 100px 20px; background: transparent; }
.payment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  max-width: 1000px; margin: 40px auto 0;
}
.payment-bubble {
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 16px 40px rgba(2,132,199,.18);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.payment-bubble::before {
  content: '';
  position: absolute;
  top: -20%; left: -20%; right: -20%; bottom: -20%;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 50%);
  pointer-events: none;
}
.payment-bubble:hover { transform: translateY(-8px) scale(1.05); box-shadow: 0 24px 50px rgba(2,132,199,.25); }

.payment-bubble.medicaid  { background: linear-gradient(135deg, #f472b6, #ec4899); }
.payment-bubble.medicare  { background: linear-gradient(135deg, #fb923c, #f97316); }
.payment-bubble.commercial { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.payment-bubble.selfpay   { background: linear-gradient(135deg, #34d399, #10b981); }

.payment-bubble span { padding: 0 18px; line-height: 1.3; position: relative; z-index: 1; }

/* Participation statement card */
.payment-statement {
  max-width: 880px;
  margin: 48px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 34px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(14,165,233,.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(2,132,199,.12);
}
.payment-statement-icon {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-primary);
  color: #fff;
}
.payment-statement-icon svg { width: 26px; height: 26px; }
.payment-statement p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-light);
}
@media (max-width: 640px) {
  .payment-statement { flex-direction: column; gap: 16px; padding: 24px; text-align: left; }
}

/* ========== Accreditation ========== */
.accreditation-section { padding: 100px 20px; background: transparent; }
.accreditation-logos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px; margin: 40px auto 0;
}
.accreditation-logo {
  aspect-ratio: 1/1;
  background: #fff;
  border: 1px solid rgba(14,165,233,.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  transition: var(--transition);
}
.accreditation-logo:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,165,233,.3); }
.accreditation-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.accreditation-placeholder {
  width: 100%; height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-md);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; text-align: center;
}

/* ========== ABOUT: Mission / Vision / Text ========== */
.about-content { padding: 80px 20px 100px; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; margin-bottom: 60px; }
.about-text p {
  color: var(--text-light);
  margin-bottom: 18px;
  line-height: 1.85;
  font-size: 16px;
}
.mission-card {
  background: var(--grad-card);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  border: 1px solid rgba(14,165,233,.1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.mission-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.mission-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--grad-primary);
  border-radius: 5px 0 0 5px;
}
.mission-card.vision::before { background: linear-gradient(180deg, #8b5cf6, #06b6d4); }
.mission-card h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; 
  font-size: 22px; color: var(--primary-dark); margin-bottom: 12px;
}
.mission-card h2 .tag {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
  background: rgba(6,182,212,.12);
  padding: 4px 10px; border-radius: var(--radius-full);
}
.mission-card p { color: var(--text-light); line-height: 1.75; }

/* ========== ABOUT: 3D Team Gallery ========== */
.team-section {
  padding: 90px 20px;
  background: linear-gradient(180deg, var(--bg-cloud), var(--bg-paper));
  position: relative;
}
.team-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 46px;
  font-size: 17px;
  letter-spacing: .15em; text-transform: uppercase;
}
.team-subtitle span { color: var(--primary-color); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  max-width: 1240px; margin: 0 auto;
}

.team-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s var(--ease-bounce), box-shadow .5s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,165,233,.08);
  transform-style: preserve-3d;
  perspective: 1000px;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

.team-photo {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-wash), var(--violet-soft));
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.team-card:hover .team-photo img { transform: scale(1.08); }

.team-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,23,42,.78));
  opacity: .85;
  transition: opacity .3s ease;
}

.team-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  color: var(--primary-dark);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  z-index: 2;
  border: 1px solid rgba(14,165,233,.2);
}

.team-info-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  color: #fff;
  z-index: 2;
}
.team-info-overlay h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.team-info-overlay p {
  font-size: 13px;
  color: #bae6fd;
  font-weight: 500;
}
.team-info-overlay .view-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 12px; font-weight: 600;
  color: #fff; opacity: .9;
  transition: gap .3s ease;
}
.team-card:hover .team-info-overlay .view-btn { gap: 10px; opacity: 1; }

.team-avatar-fallback {
  width: 100%; height: 100%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 52px;
}

/* Team Modal */
.team-modal, .modal, .insurance-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15,23,42,.55);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .3s ease;
}
.team-modal.active, .modal.active, .insurance-modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.team-modal-content, .modal-content, .insurance-modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: popIn .4s var(--ease-bounce);
  border: 1px solid rgba(255,255,255,.7);
}
@keyframes popIn { from { transform: translateY(20px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

.team-modal-close, .modal-close, .insurance-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(14,165,233,.2);
  font-size: 22px; cursor: pointer;
  color: var(--primary-dark);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  z-index: 10;
}
.team-modal-close:hover, .modal-close:hover, .insurance-modal-close:hover {
  background: var(--primary-color); color: #fff; transform: rotate(90deg);
}

.team-modal-header, .insurance-modal-header {
  background: var(--grad-primary);
  padding: 50px 40px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.team-modal-header::before, .insurance-modal-header::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 20% 20%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(400px 200px at 80% 80%, rgba(255,255,255,.15), transparent 60%);
}
.team-modal-avatar, .insurance-modal-logo {
  position: relative;
  width: 130px; height: 130px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  font-size: 48px; font-weight: 700;
  color: var(--primary-dark);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  border: 4px solid rgba(255,255,255,.5);
}
.team-modal-avatar img, .insurance-modal-logo img {
  width: 100%; height: 100%; object-fit: cover;
}
.insurance-modal-logo img { width: auto; height: auto; max-width: 70%; max-height: 70%; object-fit: contain; }
.insurance-modal-logo-placeholder {
  width: 90px; height: 90px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 28px;
}
.team-modal-header h3, .insurance-modal-header h3 { font-size: 24px; margin-bottom: 6px; position: relative; }
.team-modal-header p { font-size: 15px; opacity: .95; position: relative; }

.team-modal-body, .modal-body, .insurance-modal-body { padding: 30px 34px; }
.team-modal-body h4 {
  font-size: 12px; color: var(--primary-color);
  margin: 20px 0 8px;
  letter-spacing: .14em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.team-modal-body h4:first-child { margin-top: 0; }
.team-modal-body h4::before {
  content: ''; width: 20px; height: 2px;
  background: var(--grad-primary); border-radius: 2px;
}
.team-modal-body p, .modal-body p { color: var(--text-light); line-height: 1.75; font-size: 14.5px; }

.team-modal-contact { display: flex; gap: 10px; margin-top: 22px; }
.team-modal-contact a {
  flex: 1; padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px; font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  background: var(--primary-mist);
}
.team-modal-contact a:first-child {
  background: var(--grad-primary); color: #fff; border: none;
  box-shadow: 0 8px 20px rgba(14,165,233,.35);
}
.team-modal-contact a:first-child:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(14,165,233,.45); }
.team-modal-contact a:last-child:hover { background: var(--primary-wash); border-color: var(--primary-color); }

.modal-header {
  padding: 28px 30px 0;
  display: flex; align-items: center; gap: 14px;
}
.modal-header svg {
  width: 32px; height: 32px; stroke: var(--primary-color); stroke-width: 2; fill: none;
}
.modal-header h3 { font-size: 24px; color: var(--primary-dark); }
.modal-body ul { padding-left: 20px; margin: 12px 0; color: var(--text-light); }
.modal-body li { margin-bottom: 6px; }

.insurance-modal-body { text-align: center; }
.insurance-modal-body p { text-align: left; margin-bottom: 22px; }

/* ============================================================
   PREMIUM SERVICE MODAL
   ============================================================ */
.service-modal-v2 .modal-content { max-width: 600px; }
.svc-modal-header {
  position: relative; overflow: hidden;
  padding: 46px 40px 36px; text-align: center; color: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 46%, #6366f1 100%);
}
.svc-modal-header::before {            /* ambient light blobs */
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 16% 10%, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(440px 240px at 86% 92%, rgba(139,92,246,.40), transparent 62%);
}
.svc-modal-header::after {             /* faint technical grid, masked */
  content: ''; position: absolute; inset: 0; opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 28%, transparent 76%);
          mask-image: radial-gradient(ellipse at center, #000 28%, transparent 76%);
}
.svc-modal-icon {
  position: relative; z-index: 1;
  width: 92px; height: 92px; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.40);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 18px 44px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.45);
  animation: svcIconFloat 4.5s ease-in-out infinite;
}
@keyframes svcIconFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.svc-modal-icon svg { width: 46px; height: 46px; fill: #fff; stroke: #fff; }
.svc-modal-eyebrow {
  position: relative; z-index: 1;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: rgba(255,255,255,.88); margin-bottom: 8px;
}
.svc-modal-header h3 {
  position: relative; z-index: 1;
  font-size: 27px; line-height: 1.15; color: #fff; margin: 0;
}

.svc-modal-body { padding: 30px 36px 34px; }
.svc-modal-body p { color: var(--text-light); line-height: 1.75; font-size: 15px; margin-bottom: 12px; }
.svc-modal-body p:last-of-type { margin-bottom: 0; }
.svc-modal-body strong { color: var(--text-color); font-weight: 700; }
.svc-modal-body br { display: none; }   /* legacy <br> spacing handled by margins */
.svc-modal-body ul { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; gap: 11px; }
.svc-modal-body li {
  position: relative; padding-left: 32px;
  color: var(--text-light); line-height: 1.55; font-size: 14.5px;
}
.svc-modal-body li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-size: 12px; font-weight: 800;
  display: grid; place-items: center;
  box-shadow: 0 5px 12px rgba(14,165,233,.32);
}
.svc-modal-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; margin-top: 26px;
}
@media (prefers-reduced-motion: reduce) { .svc-modal-icon { animation: none; } }
.insurance-modal-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--grad-primary); color: #fff;
  border-radius: var(--radius-full);
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(14,165,233,.35);
  transition: var(--transition);
}
.insurance-modal-link:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(14,165,233,.45); }

/* ========== Values ========== */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card {
  text-align: center;
  padding: 44px 30px;
  background: var(--grad-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(14,165,233,.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.15), transparent 70%);
  transition: transform .8s ease;
}
.value-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.value-card:hover::before { transform: scale(1.6); }
.value-icon {
  width: 80px; height: 80px;
  background: var(--grad-primary);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 12px 30px rgba(14,165,233,.35);
  transform: rotate(-6deg);
  transition: var(--transition);
  position: relative;
}
.value-card:hover .value-icon { transform: rotate(0deg) scale(1.08); }
.value-icon svg { width: 36px; height: 36px; fill: #fff; }
.value-card h3 { font-size: 22px; color: var(--primary-dark); margin-bottom: 12px; position: relative; }
.value-card p { color: var(--text-light); line-height: 1.75; position: relative; }

/* ========== Services Conditions (dark section) ========== */
.conditions-section {
  padding: 100px 20px;
  background:
    linear-gradient(135deg, #0b1120 0%, #082f49 55%, #164e63 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.conditions-section::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 15% 15%, rgba(14,165,233,.22), transparent 60%),
    radial-gradient(600px 400px at 85% 85%, rgba(139,92,246,.22), transparent 60%);
}
.conditions-section .container { position: relative; z-index: 1; }
.conditions-section .section-header h2 {
  background: linear-gradient(120deg, #ffffff 10%, #7dd3fc 60%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.conditions-section .section-header p { color: #cbd5e1; }
.conditions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.condition-item {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 18px;
  border-radius: var(--radius-md);
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}
.condition-item:hover {
  background: rgba(14,165,233,.18);
  border-color: rgba(125,211,252,.45);
  transform: translateY(-3px);
}

/* ========== Insurances ========== */
.insurances-content { padding: 70px 20px 100px; background: transparent; }
.insurances-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.insurance-card {
  background: #fff;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,165,233,.08);
  transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 140px;
  cursor: pointer;
}
.insurance-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: rgba(14,165,233,.3);
}
.insurance-logo {
  width: 70px; height: 70px;
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
}
.insurance-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.insurance-logo-placeholder {
  width: 56px; height: 56px;
  background: var(--grad-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700;
}
.insurance-card p { font-weight: 600; color: var(--text-color); font-size: 13px; }

.insurances-note {
  text-align: center;
  margin-top: 50px;
  padding: 36px;
  background: var(--grad-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,165,233,.1);
}
.insurances-note p { color: var(--text-light); margin-bottom: 18px; font-size: 16px; }

/* Insurance category sections */
.insurance-category { margin-top: 64px; }
.insurance-category:first-of-type { margin-top: 8px; }
.insurance-category.hide-filter { display: none; }

/* Honeypot (spam trap) — hidden from humans */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Generic form success state (contact) */
.form-success { display: none; text-align: center; padding: 20px 0 6px; }
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; color: var(--mint, #10b981); margin-bottom: 10px; }
.form-success h4 { font-size: 20px; font-weight: 800; color: var(--text-color); margin: 0 0 8px; }
.form-success p { color: var(--text-light); font-size: 15px; line-height: 1.6; margin: 0; }

/* ========== Legal pages (Terms / Privacy) ========== */
.legal-section { padding: 60px 20px 90px; }
.legal-wrap {
  max-width: 820px; margin: 0 auto;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(14,165,233,.14);
  border-radius: var(--radius-lg, 18px);
  padding: 44px 48px;
  box-shadow: 0 20px 60px rgba(2,132,199,.10);
}
.legal-wrap .eff { color: var(--text-light); font-size: 14px; margin-bottom: 26px; }
.legal-wrap .intro { font-size: 17px; color: var(--text-color); line-height: 1.8; margin-bottom: 26px; }
.legal-wrap h2 {
  font-size: 20px; font-weight: 800; color: var(--text-color);
  margin: 32px 0 10px; letter-spacing: -.01em;
}
.legal-wrap h2:first-of-type { margin-top: 0; }
.legal-wrap p, .legal-wrap li { color: var(--text-light); line-height: 1.8; font-size: 15.5px; }
.legal-wrap p { margin-bottom: 12px; }
.legal-wrap ul { margin: 6px 0 14px 22px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-wrap .legal-note {
  margin-top: 28px; padding: 18px 20px; border-radius: 14px;
  background: var(--primary-wash, #e0f2fe); border: 1px solid rgba(14,165,233,.2);
}
.legal-wrap .legal-note p { color: var(--primary-dark); margin: 0; font-size: 14.5px; }
@media (max-width: 600px) { .legal-wrap { padding: 28px 22px; } }

/* Footer legal links */
.footer-legal { margin-top: 12px; font-size: 13.5px; }
.footer-legal a { color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { opacity: 1; }

/* ========== Application Modal (Careers) ========== */
.apply-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  background: rgba(8, 20, 40, 0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}
.apply-modal.active { display: flex; }
.apply-modal-content {
  width: 100%; max-width: 620px;
  background: #fff;
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 40px 100px rgba(2,132,199,.28);
  border: 1px solid rgba(14,165,233,.15);
  position: relative;
  animation: applyIn .45s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
@keyframes applyIn { from { opacity:0; transform: translateY(24px) scale(.97); } to { opacity:1; transform:none; } }
.apply-modal-head {
  padding: 28px 32px 22px;
  background: var(--grad-primary);
  color: #fff;
}
.apply-modal-head h3 { font-size: 22px; font-weight: 800; margin: 0 0 4px; color:#fff; }
.apply-modal-head p { margin: 0; font-size: 14px; opacity: .92; }
.apply-modal-close {
  position: absolute; top: 16px; right: 18px;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 22px; line-height: 1; display:flex; align-items:center; justify-content:center;
  transition: background .25s;
}
.apply-modal-close:hover { background: rgba(255,255,255,.32); }
.apply-form { padding: 26px 32px 32px; }
.apply-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apply-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.apply-field.full { grid-column: 1 / -1; }
.apply-field label { font-size: 13px; font-weight: 600; color: var(--primary-dark); }
.apply-field label .req { color: #e11d48; }
.apply-field input,
.apply-field select,
.apply-field textarea {
  font-family: inherit; font-size: 16px; color: var(--text-color);
  padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(14,165,233,.22); background: #f8fbff;
  transition: border-color .25s, box-shadow .25s; width: 100%;
}
.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  outline: none; border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}
.apply-field input[type="file"] { padding: 10px 14px; background:#fff; cursor: pointer; }
.apply-field textarea { resize: vertical; min-height: 90px; }
.apply-actions { margin-top: 8px; }
.apply-actions .btn-primary { width: 100%; justify-content: center; }
.apply-note { font-size: 12px; color: var(--text-light); margin-top: 12px; text-align: center; }
.apply-success {
  display: none; text-align: center; padding: 16px 0 6px;
}
.apply-success.show { display: block; }
.apply-success svg { width: 56px; height: 56px; color: var(--mint, #10b981); margin-bottom: 10px; }
.apply-success h4 { font-size: 20px; font-weight: 800; color: var(--text-color); margin: 0 0 8px; }
.apply-success p { color: var(--text-light); font-size: 15px; line-height: 1.6; }
@media (max-width: 560px) {
  .apply-grid { grid-template-columns: 1fr; }
  .apply-modal { padding: 0; }
  .apply-modal-content { max-width: 100%; min-height: 100%; border-radius: 0; }
}
.insurance-category-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(14,165,233,.12);
}
.insurance-category-head h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -.02em;
  margin: 0;
}
@media (max-width: 600px) {
  .insurance-category-head { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.info-section { padding: 100px 20px; background: transparent; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.info-card {
  text-align: center;
  padding: 44px 30px;
  background: var(--grad-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(14,165,233,.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.info-icon {
  width: 78px; height: 78px;
  background: var(--grad-primary);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 12px 30px rgba(14,165,233,.35);
  transform: rotate(-6deg);
  transition: var(--transition);
}
.info-card:hover .info-icon { transform: rotate(0); }
.info-icon svg { width: 34px; height: 34px; fill: #fff; }
.info-card h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 12px; }
.info-card p { color: var(--text-light); line-height: 1.75; }

/* ========== Contact ========== */
.contact-content { padding: 70px 20px 100px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: 32px; }
.contact-grid > * { min-width: 0; }   /* allow columns to shrink to the track (no grid blow-out) */
.contact-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.contact-card {
  background: var(--grad-card);
  padding: 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,165,233,.08);
  display: flex; gap: 16px;
  transition: var(--transition);
  min-width: 0;
  overflow-wrap: anywhere;   /* long emails/URLs wrap instead of overflowing */
}
.contact-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.contact-card-link { display: flex; gap: 16px; width: 100%; min-width: 0; color: inherit; align-items: flex-start; overflow-wrap: anywhere; }
.contact-card.clickable { cursor: pointer; }
.contact-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(14,165,233,.28);
}
.contact-icon svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; }
.contact-details .contact-label { font-size: 15px; color: var(--primary-dark); margin-bottom: 6px; font-weight: 700; }
.contact-details p { color: var(--text-light); font-size: 14px; line-height: 1.7; }
.contact-details p a { color: inherit; }

.contact-form-card {
  background: var(--grad-card);
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14,165,233,.1);
  position: relative;
  overflow: hidden;
}
.contact-form-card::before {
  content: '';
  position: absolute; top: -50%; right: -30%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contact-form-card h2 {
  position: relative;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; 
  font-size: 26px; color: var(--primary-dark); margin-bottom: 10px;
}
.contact-form-card .form-lead {
  position: relative;
  color: var(--text-light); font-size: 15px; margin-bottom: 24px;
}
.contact-form-card form { position: relative; }

.map-section { padding: 0 20px 100px; background: transparent; }
.map-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(14,165,233,.1);
  height: 460px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }

.forms-section { padding: 100px 20px; background: transparent; }
.forms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.form-card {
  background: var(--grad-card);
  padding: 38px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  border: 1px solid rgba(14,165,233,.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.form-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.form-card svg { width: 52px; height: 52px; margin-bottom: 18px; fill: var(--primary-color); }
.form-card h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; }
.form-card p { color: var(--text-light); font-size: 14px; margin-bottom: 22px; }

.crisis-banner {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 50%, #fef3c7 100%);
  border-top: 1px solid rgba(239,68,68,.15);
  border-bottom: 1px solid rgba(239,68,68,.15);
  padding: 70px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.crisis-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(500px 200px at 20% 30%, rgba(239,68,68,.12), transparent 60%),
    radial-gradient(500px 200px at 80% 70%, rgba(245,158,11,.12), transparent 60%);
}
.crisis-banner .container { position: relative; z-index: 1; }
.crisis-banner h3 { font-size: 26px; color: #dc2626; margin-bottom: 12px; }
.crisis-banner h3 a { color: inherit; }
.crisis-banner p { color: #7f1d1d; margin-bottom: 18px; max-width: 620px; margin-inline: auto; }
.crisis-banner .call-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  background: #dc2626; color: #fff;
  border-radius: var(--radius-full);
  font-weight: 700; font-size: 16px;
  box-shadow: 0 12px 30px rgba(239,68,68,.35);
  transition: var(--transition);
}
.crisis-banner .call-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(239,68,68,.45); }

/* ========== Careers ========== */
.careers-content {
  padding: 80px 20px 60px;
  background: transparent;
}
.careers-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}
.careers-hero p {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 36px;
}

.benefits-section { padding: 100px 20px; background: transparent; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--grad-card);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(14,165,233,.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.benefit-icon {
  width: 68px; height: 68px;
  background: var(--grad-primary);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 10px 24px rgba(14,165,233,.35);
  transform: rotate(-6deg);
  transition: var(--transition);
}
.benefit-card:hover .benefit-icon { transform: rotate(0); }
.benefit-icon svg { width: 30px; height: 30px; fill: #fff; }
.benefit-card h3 { font-size: 18px; color: var(--primary-dark); margin-bottom: 10px; }
.benefit-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.positions-section { padding: 90px 20px; background: transparent; }
.positions-list { max-width: 860px; margin: 0 auto; }
.position-card {
  background: #fff;
  padding: 28px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(14,165,233,.08);
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
  gap: 20px;
}
.position-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: rgba(14,165,233,.25); }
.position-info h3 { font-size: 20px; color: var(--primary-dark); margin-bottom: 8px; }
.position-info p { color: var(--text-light); font-size: 14.5px; }
.position-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.position-tag {
  background: var(--primary-wash);
  color: var(--primary-dark);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

/* ========== Insurance Page — Redesign ========== */

/* Stats strip */
.insurance-stats { padding: 50px 20px 20px; }
.insurance-stats-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.stat-tile {
  background: var(--grad-card);
  border: 1px solid rgba(14,165,233,.12);
  border-radius: var(--radius-xl);
  padding: 26px 28px;
  display: flex; align-items: center; gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-tile::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.14), transparent 70%);
  transition: transform .8s ease;
}
.stat-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-tile:hover::before { transform: scale(1.4); }
.stat-tile-icon {
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 16px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 22px rgba(14,165,233,.32);
  transform: rotate(-6deg);
  transition: var(--transition);
}
.stat-tile:hover .stat-tile-icon { transform: rotate(0) scale(1.05); }
.stat-tile-icon svg { width: 26px; height: 26px; fill: #fff; }
.stat-tile-text { position: relative; z-index: 1; }
.stat-tile-num {
  font-size: 30px; font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1; letter-spacing: -.02em;
}
.stat-tile-label {
  color: var(--text-light); font-size: 14px; margin-top: 6px; font-weight: 500;
}

/* Filter pills */
.insurance-filter {
  display: flex; justify-content: center; gap: 6px;
  margin: 0 auto 44px;
  flex-wrap: wrap;
  padding: 6px;
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(14,165,233,.18);
  border-radius: var(--radius-full);
  max-width: fit-content;
  box-shadow: var(--shadow-sm);
}
.insurance-filter button {
  padding: 10px 20px;
  border: none; background: transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-weight: 600; font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  transition: all .3s ease;
  letter-spacing: .04em;
  white-space: nowrap;
}
.insurance-filter button:hover { color: var(--primary-dark); background: rgba(14,165,233,.08); }
.insurance-filter button.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(14,165,233,.38);
}

/* Redesigned insurance cards */
.insurances-grid.grid-v2 {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.insurances-grid.grid-v2 .insurance-card {
  padding: 26px 18px 22px;
  min-height: 170px;
  position: relative;
  background: var(--grad-card);
  border-radius: var(--radius-xl);
}
.insurance-card.hide-filter { display: none; }
.insurance-card .insurance-logo {
  width: 80px; height: 80px;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(14,165,233,.08);
  padding: 8px;
}
.insurance-cat {
  position: absolute; top: 12px; right: 12px;
  padding: 3px 9px;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: 1px solid transparent;
}
.insurance-cat.medicaid   { background: rgba(236,72,153,.12);  color: #be185d;  border-color: rgba(236,72,153,.22); }
.insurance-cat.medicare   { background: rgba(251,146,60,.14);  color: #c2410c;  border-color: rgba(251,146,60,.25); }
.insurance-cat.commercial { background: rgba(14,165,233,.12);  color: #0369a1;  border-color: rgba(14,165,233,.22); }
.insurance-cat.eap        { background: rgba(139,92,246,.12);  color: #6d28d9;  border-color: rgba(139,92,246,.22); }

/* Verification process timeline */
.insurance-process { padding: 100px 20px; }
.process-timeline {
  max-width: 1000px; margin: 50px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 46px; left: 15%; right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0ea5e9 20%, #06b6d4 50%, #8b5cf6 80%, transparent);
  background-size: 200% 100%;
  animation: flowLine 6s linear infinite;
  z-index: 0;
  opacity: .6;
}
@keyframes flowLine {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-step-icon {
  width: 94px; height: 94px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(14,165,233,.25);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(14,165,233,.18);
  transition: var(--transition);
  position: relative;
}
.process-step-icon::before {
  content: attr(data-step);
  position: absolute;
  top: -6px; right: -6px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(14,165,233,.45);
}
.process-step-icon svg {
  width: 40px; height: 40px;
  stroke: var(--primary-color); stroke-width: 1.8; fill: none;
}
.process-step:hover .process-step-icon {
  background: var(--grad-primary);
  border-color: transparent;
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 40px rgba(14,165,233,.4);
}
.process-step:hover .process-step-icon svg { stroke: #fff; }
.process-step h3 { font-size: 19px; color: var(--primary-dark); margin-bottom: 10px; }
.process-step p { color: var(--text-light); font-size: 14.5px; line-height: 1.7; max-width: 280px; margin: 0 auto; }

/* FAQ accordion */
.faq-section { padding: 90px 20px 100px; }
.faq-list {
  max-width: 820px; margin: 40px auto 0;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--grad-card);
  border: 1px solid rgba(14,165,233,.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.faq-item:hover { box-shadow: var(--shadow-sm); border-color: rgba(14,165,233,.22); }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: rgba(14,165,233,.4); }
.faq-item summary {
  padding: 20px 26px;
  font-weight: 600; font-size: 16px;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary-wash);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  transition: var(--transition);
}
.faq-item[open] summary { color: var(--primary-color); }
.faq-item[open] summary::after {
  content: '−';
  background: var(--grad-primary);
  color: #fff;
}
.faq-answer {
  padding: 4px 26px 24px;
  color: var(--text-light);
  line-height: 1.75; font-size: 15px;
}
.faq-answer a { color: var(--primary-color); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .insurances-grid.grid-v2 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .insurance-stats-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; gap: 36px; }
  .process-timeline::before { display: none; }
  .insurances-grid.grid-v2 { grid-template-columns: repeat(2, 1fr); }
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
  .insurances-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid, .features-grid, .resources-grid, .values-grid, .info-grid, .forms-grid,
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid, .conditions-grid { grid-template-columns: repeat(2, 1fr); }
  .insurances-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .payment-grid, .accreditation-logos { grid-template-columns: repeat(4, 1fr); max-width: 600px; }
}
@media (max-width: 768px) {
  .hero-modern h1 { font-size: 36px; }
  .hero-modern .subtitle { font-size: 18px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .features-grid, .resources-grid, .values-grid, .info-grid, .forms-grid, .team-grid,
  .benefits-grid, .conditions-grid { grid-template-columns: 1fr; }
  .insurances-grid { grid-template-columns: repeat(2, 1fr); }
  .payment-grid { grid-template-columns: repeat(2, 1fr); }
  .accreditation-logos { grid-template-columns: repeat(2, 1fr); }
  .position-card { flex-direction: column; text-align: center; }
  .position-tags { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
}

/* ============================================================
   REVIEWS / TESTIMONIALS — dark "control-room" section
   ============================================================ */
.reviews-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 15% 0%, #0c2a47 0%, transparent 55%),
    radial-gradient(1000px 800px at 90% 100%, #10233f 0%, transparent 55%),
    linear-gradient(180deg, #081726 0%, #0b1f38 100%);
  color: #e7f3fb;
  isolation: isolate;
}
.reviews-section .section-header h2 { color: #ffffff; }
.reviews-section .section-header p  { color: #9cc4dd; }
.eyebrow-light {
  color: var(--accent-soft, #a5f3fc);
  background: rgba(6,182,212,0.12);
  border: 1px solid rgba(6,182,212,0.28);
}

/* ambient layer */
.reviews-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.reviews-bg .rv-orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
}
.rv-orb-1 { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); animation: rvDrift 38s ease-in-out infinite; }
.rv-orb-2 { width: 520px; height: 520px; bottom: -160px; right: -120px;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%); animation: rvDrift 46s ease-in-out infinite reverse; }
@keyframes rvDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,30px) scale(1.12); }
}
.rv-bigquote {
  position: absolute; top: 40px; right: 6%;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22rem; line-height: 1; color: rgba(125,211,252,0.06);
  user-select: none; pointer-events: none;
}

/* ---- Aggregate card ---- */
.reviews-aggregate {
  display: flex; align-items: center; gap: 40px;
  max-width: 880px; margin: 0 auto 56px;
  padding: 34px 44px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(125,211,252,0.20);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
  transition: transform .4s cubic-bezier(.23,1,.32,1), box-shadow .4s ease;
  transform-style: preserve-3d;
}
.rv-agg-score { text-align: center; flex-shrink: 0; }
.rv-agg-num {
  display: block; font-size: 4.6rem; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #67e8f9 0%, #38bdf8 50%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rv-agg-label { display: block; margin-top: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: #8fb6d2; }
.rv-agg-divider { width: 1px; align-self: stretch; background: linear-gradient(180deg, transparent, rgba(125,211,252,.3), transparent); }
.rv-agg-meta p { color: #c4ddef; font-size: .98rem; line-height: 1.6; margin: 12px 0 18px; }
.rv-agg-meta strong { color: #fff; }
.rv-agg-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.rv-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); color: #dbeafe;
}
.rv-badge-verified { color: #6ee7b7; border-color: rgba(110,231,183,0.3); }
.rv-agg-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: #e7f3fb; background: transparent; border: 1.5px solid rgba(125,211,252,0.4);
  transition: all .3s ease; cursor: pointer;
}
.btn-ghost-light:hover { background: rgba(125,211,252,0.12); border-color: rgba(125,211,252,0.7); transform: translateY(-2px); }

/* ---- Stars ---- */
.rv-stars { display: inline-flex; gap: 2px; letter-spacing: 1px; }
.rv-stars span { color: #fbbf24; font-size: 1.05rem; line-height: 1; text-shadow: 0 0 12px rgba(251,191,36,0.45); }
.rv-stars span.rv-star-empty { color: rgba(255,255,255,0.22); text-shadow: none; }
.rv-stars-lg { margin-top: 10px; }
.rv-stars-lg span { font-size: 1.55rem; }

/* ---- Marquee ---- */
.reviews-marquee {
  position: relative; overflow: hidden; padding: 10px 0 4px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reviews-track {
  display: flex; gap: 24px; width: max-content;
  animation: rvScroll 60s linear infinite;
}
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
@keyframes rvScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- Review card ---- */
.review-card {
  position: relative; flex: 0 0 360px; max-width: 360px;
  padding: 28px 28px 24px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(125,211,252,0.16);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform .4s cubic-bezier(.23,1,.32,1), box-shadow .4s ease, border-color .4s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}
.review-card::before {  /* ambient glow */
  content: ''; position: absolute; inset: 0; border-radius: 22px; z-index: -1;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,0%), rgba(56,189,248,0.18), transparent 60%);
  opacity: 0; transition: opacity .4s ease;
}
.review-card:hover { border-color: rgba(125,211,252,0.45); box-shadow: 0 26px 64px rgba(2,132,199,0.30), inset 0 1px 0 rgba(255,255,255,0.12); }
.review-card:hover::before { opacity: 1; }
.review-card .rv-text {
  color: #dcebf6; font-size: 1rem; line-height: 1.66; margin: 14px 0 20px;
  transform: translateZ(8px);
}
.review-card .rv-stars { transform: translateZ(18px); }
.rv-author { display: flex; align-items: center; gap: 13px; transform: translateZ(14px); }
.rv-avatar {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  box-shadow: 0 6px 18px rgba(14,165,233,0.4);
}
.rv-meta { display: flex; flex-direction: column; line-height: 1.3; }
.rv-meta strong { color: #fff; font-size: .97rem; }
.rv-meta em { color: #8fb6d2; font-size: .8rem; font-style: normal; }
.reviews-widget:empty { display: none; }
.reviews-widget { margin-top: 50px; }
.rv-widget-title {
  text-align: center; color: #cfe6f5; font-size: 1.15rem; font-weight: 700;
  margin: 0 0 22px; letter-spacing: .2px;
}

/* ---- Star picker (modal) ---- */
.star-picker { display: inline-flex; gap: 6px; }
.star-picker .star {
  background: none; border: none; cursor: pointer; padding: 2px;
  font-size: 2.1rem; line-height: 1; color: #d7e2ec;
  transition: transform .15s ease, color .15s ease;
}
.star-picker .star:hover { transform: scale(1.18); }
.star-picker .star.on { color: #fbbf24; text-shadow: 0 0 14px rgba(251,191,36,0.55); }

.review-modal .apply-modal-content { max-width: 560px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .rv-orb { animation: none; }
  .reviews-marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .reviews-section { padding: 80px 0; }
  .reviews-aggregate { flex-direction: column; gap: 22px; text-align: center; padding: 28px 24px; }
  .rv-agg-divider { width: 70%; height: 1px; align-self: center; background: linear-gradient(90deg, transparent, rgba(125,211,252,.3), transparent); }
  .rv-agg-badges, .rv-agg-actions { justify-content: center; }
  .rv-bigquote { font-size: 12rem; top: 10px; right: 2%; }
  .review-card { flex-basis: 290px; max-width: 290px; }
  .reviews-track { animation-duration: 48s; }
}
@media (max-width: 480px) {
  .review-card { flex-basis: 84vw; max-width: 84vw; }
  .star-picker .star { font-size: 2.4rem; }
}

/* anchor offset so the navbar doesn't cover the heading on jump */
.reviews-section { scroll-margin-top: 90px; }

/* ---- Floating "Reviews" launcher ---- */
.reviews-fab {
  position: fixed; z-index: 80;
  top: 118px; right: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 13px; border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb 55%, #8b5cf6);
  color: #fff; font-size: .85rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 30px rgba(14,165,233,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(0); opacity: 1;
  transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .35s ease, box-shadow .3s ease;
}
.reviews-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 38px rgba(14,165,233,0.6); }
.reviews-fab .rv-fab-stars { color: #fde047; font-size: 1rem; line-height: 1; text-shadow: 0 0 10px rgba(253,224,71,0.7); }
.reviews-fab .rv-fab-text strong { font-weight: 800; }
.reviews-fab.hide { opacity: 0; transform: translateY(-12px) scale(.9); pointer-events: none; }
@media (max-width: 768px) {
  /* bottom-left on phones: clear of the top nav and the reCAPTCHA badge (bottom-right) */
  .reviews-fab { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); right: auto; left: 14px; padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-fab { transition: opacity .3s ease; }
}

/* ---- Review modal: choice step ---- */
.review-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 6px 0 4px; }
.review-choice-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 18px; border-radius: 18px; cursor: pointer; text-decoration: none;
  background: var(--bg-light, #f8fafc);
  border: 1.5px solid rgba(2,132,199,0.16);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.review-choice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(2,132,199,0.45);
  box-shadow: 0 16px 40px rgba(2,132,199,0.16);
  background: #fff;
}
.review-choice-card .rc-ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 8px; color: var(--primary-color, #0284c7);
  background: rgba(2,132,199,0.08);
}
.review-choice-card strong { color: var(--text-color, #0f172a); font-size: 1.02rem; }
.review-choice-card em { color: var(--text-light, #475569); font-size: .82rem; font-style: normal; line-height: 1.4; }

/* ---- Review modal: back button ---- */
.review-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--primary-color, #0284c7); font-size: .9rem; font-weight: 600;
  padding: 2px 4px; margin: 0 0 6px -4px;
}
.review-back:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .review-choice { grid-template-columns: 1fr; }
}

/* ============================================================
   iOS: prevent auto-zoom — 16px minimum on every form field
   ============================================================ */
input, select, textarea { font-size: 16px; }

/* Skip-to-content link + visible keyboard focus (accessibility) */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--primary-color, #0284c7); color: #fff;
  padding: 12px 20px; font-weight: 700; font-size: 15px;
  border-radius: 0 0 10px 0; text-decoration: none;
}
.skip-link:focus { left: 0; outline: 3px solid #fff; outline-offset: -3px; }
:focus-visible { outline: 3px solid var(--accent-color, #06b6d4); outline-offset: 2px; }

/* reCAPTCHA disclosure (Google-required wording) */
.recaptcha-note { font-size: 11px; line-height: 1.5; color: var(--text-muted, #64748b); margin-top: 12px; text-align: center; }
.recaptcha-note a { color: inherit; text-decoration: underline; }
.review-form .recaptcha-note, .apply-form .recaptcha-note { margin-top: 8px; }

/* ============================================================
   MOBILE STICKY ACTION BAR (Call / Contact) — injected by app.js
   ============================================================ */
.mobile-action-bar { display: none; }
@media (max-width: 768px) {
  .mobile-action-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8,18,30,.92);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid rgba(125,211,252,.18);
  }
  .mab-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: 12px; font-weight: 700; font-size: .98rem;
    text-decoration: none; letter-spacing: .2px;
  }
  .mab-call    { background: linear-gradient(135deg, #0ea5e9, #2563eb); color: #fff; box-shadow: 0 6px 18px rgba(14,165,233,.45); }
  .mab-contact { background: rgba(255,255,255,.10); color: #e7f3fb; border: 1px solid rgba(255,255,255,.22); }
  .mab-btn svg { width: 18px; height: 18px; }

  /* keep page content clear of the bar */
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  /* lift the floating launcher + reCAPTCHA badge above the bar */
  .reviews-fab     { top: auto; bottom: calc(76px + env(safe-area-inset-bottom)) !important; right: auto; left: 14px; padding: 10px 16px; }
  .grecaptcha-badge { bottom: 72px !important; }
}

/* ============================================================
   Community & Crisis Support — home page hotline cards
   ============================================================ */
.crisis-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.crisis-grid > .crisis-card { flex: 1 1 100%; }

.crisis-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition-delay: calc(var(--d, 0) * 70ms);
}
.crisis-card .resource-icon { margin-bottom: 14px; }

.resource-tag {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.crisis-card h3 { margin-bottom: 10px; }
/* equal-height cards: the copy stretches so every CTA lines up */
.crisis-card p { flex: 1 0 auto; }

.resource-action {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-wash);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition: var(--transition);
}
.resource-action svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  transition: transform .35s var(--ease-bounce);
}
.crisis-card:hover .resource-action,
.crisis-card:focus-visible .resource-action {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(2, 132, 199, .28);
}
.crisis-card:hover .resource-action svg,
.crisis-card:focus-visible .resource-action svg { transform: translateX(5px); }

/* Immediate emergency notice under the grid */
.emergency-note {
  max-width: 900px;
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, #fff5f5 0%, #ffffff 100%);
  border: 1px solid rgba(239, 68, 68, .22);
  box-shadow: 0 10px 30px rgba(239, 68, 68, .08);
}
.emergency-note svg {
  width: 28px; height: 28px;
  flex-shrink: 0;
  stroke: var(--danger-color);
  stroke-width: 1.7;
  fill: none;
}
.emergency-note p { font-size: 15px; line-height: 1.65; color: var(--text-color); }
.emergency-note strong { color: var(--danger-color); font-weight: 800; }
.emergency-note a {
  color: var(--danger-color);
  font-weight: 800;
  border-bottom: 2px solid rgba(239, 68, 68, .35);
  transition: .3s;
}
.emergency-note a:hover { border-color: var(--danger-color); }

@media (min-width: 768px) {
  .crisis-grid > .crisis-card { flex: 0 1 calc((100% - 24px) / 2); }
  .resource-action { padding: 11px 22px; font-size: 15px; }
  .emergency-note { flex-direction: row; text-align: left; gap: 18px; padding: 24px 30px; }
}
@media (min-width: 1024px) {
  .crisis-grid { gap: 28px; }
  .crisis-grid > .crisis-card { flex: 0 1 calc((100% - 56px) / 3); }
}
