/* ==========================================================================
   2026-10 visual refresh — loaded after styles.css.
   Remove the <link> to refresh.css in index.html to revert to the old look.
   ========================================================================== */

:root {
  --page: #f6f8f9;
  --ink: #0b1a2a;
  --muted: #5a6876;
  --line: #e3e9ec;
  --primary: #0a6f72;
  --primary-dark: #064f52;
  --primary-soft: #e8f4f3;
  --star: #f4b400;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 26, 42, 0.04), 0 18px 48px -12px rgba(11, 26, 42, 0.16);
  --shadow-soft: 0 1px 2px rgba(11, 26, 42, 0.04), 0 8px 24px -8px rgba(11, 26, 42, 0.1);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body {
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography ------------------------------------------------------------- */

.section-kicker,
.path-kicker,
.location-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

/* Header ----------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  transition: box-shadow 200ms var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(11, 26, 42, 0.35);
}

.primary-nav a {
  transition: color 160ms var(--ease);
}

.primary-nav a:hover {
  color: var(--primary);
}

/* Buttons ---------------------------------------------------------------- */

.btn,
.header-cta {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background-color 160ms var(--ease);
}

.btn-primary,
.header-cta {
  border-color: transparent;
  background: linear-gradient(180deg, #0c7c80 0%, var(--primary) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 22px -10px rgba(10, 111, 114, 0.7);
}

.btn:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.btn-primary:hover,
.header-cta:hover {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 16px 28px -12px rgba(10, 111, 114, 0.75);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--line);
}

.btn:focus-visible,
.header-cta:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(10, 111, 114, 0.35);
  outline-offset: 2px;
}

/* Cards ------------------------------------------------------------------ */

.service-card,
.location-card,
.doctor-card,
.proof-card,
.path-card,
.resource-card,
.mri-option-card,
.why-feature,
.safety-item,
.faq-item,
.location-control-card,
.location-map-card,
.hero-media-card,
.insurance-panel,
.reviews-panel,
.full-body-panel {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card,
.location-card,
.doctor-card,
.path-card,
.mri-option-card {
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}

@media (hover: hover) {
  .service-card:hover,
  .location-card:not(.coming-location):hover,
  .doctor-card:hover,
  .path-card:hover,
  .mri-option-card:hover {
    transform: translateY(-4px);
    border-color: rgba(10, 111, 114, 0.25);
    box-shadow: var(--shadow);
  }
}

.service-card img,
.service-card video,
.location-card > img,
.location-card > video {
  transition: transform 600ms var(--ease);
}

@media (hover: hover) {
  .service-card:hover img,
  .location-card:hover > img {
    transform: scale(1.03);
  }
}

.service-tag {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.review-card {
  border-radius: var(--radius);
}

.review-stars,
.review-stars i {
  color: var(--star);
}

/* Location cards: Google rating ----------------------------------------- */

.location-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px;
}

.location-rating {
  margin: 14px 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #fbfcfc 0%, #f4f8f8 100%);
}

.location-rating-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: var(--ink);
  text-decoration: none;
}

.location-rating-score .fa-google {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
  color: #4285f4;
  font-size: 12px;
}

.location-rating-score strong {
  font-size: 18px;
  line-height: 1;
}

.location-rating-score .review-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 13px;
}

.location-rating-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}

.location-rating-score:hover .location-rating-count {
  color: var(--primary);
  text-decoration-color: currentColor;
}

.location-review-quote {
  margin: 10px 0 0;
  color: #2b3a48;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.5;
}

.location-review-quote cite {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Reviews section: per-location Google ratings ------------------------- */

.google-ratings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 22px;
}

.google-rating-chip {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.google-rating-chip:hover {
  border-color: rgba(10, 111, 114, 0.3);
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.google-rating-name {
  font-size: 13px;
  font-weight: 700;
}

.google-rating-score {
  font-size: 20px;
  font-weight: 800;
}

.google-rating-score i {
  color: var(--star);
  font-size: 15px;
}

.google-rating-count {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .google-ratings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Inputs ----------------------------------------------------------------- */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border-radius: var(--radius-sm);
}

/* Motion preferences ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* The old card-link arrow ("->") shouldn't follow the review count. */
.location-card .location-rating-score::after,
.google-rating-chip::after {
  content: none !important;
  display: none !important;
}

/* The reviews panel is half-width on desktop: 2x2 chips, name left, score right. */
.reviews-panel .google-ratings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reviews-panel .google-rating-chip {
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name score"
    "count score";
  align-items: center;
  column-gap: 10px;
}

.reviews-panel .google-rating-name { grid-area: name; }
.reviews-panel .google-rating-count { grid-area: count; }
.reviews-panel .google-rating-score { grid-area: score; }

@media (max-width: 420px) {
  .reviews-panel .google-ratings {
    grid-template-columns: 1fr;
  }
}

/* Performance ------------------------------------------------------------
   About 57 cards used backdrop-filter blur over the fixed page background,
   so every scroll frame re-blurred the layer behind each card. Solid
   surfaces scroll smoothly. The modal overlay keeps its blur. */
html body *:not(.contact-modal__backdrop) {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Same artwork as "Background 4.png", as a 49 KB WebP instead of 1.5 MB. */
body::before {
  background-image:
    linear-gradient(180deg, rgba(242, 249, 248, 0.22) 0%, rgba(242, 249, 248, 0.38) 100%),
    url("../assets/images/background-4.webp") !important;
}

/* Below-the-fold sections skip layout and paint until they're near the viewport. */
.faq-band,
.doctors-band,
.reviews-payment-band,
.workflow-band,
.safety-band,
.comparison-band {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Hero ------------------------------------------------------------------- */

.hero h1 em {
  font-style: normal;
  letter-spacing: -0.035em !important;
}

.hero-lede {
  max-width: 34em;
}

/* ==========================================================================
   Modern redesign layer (2026-10-18, pass 3)
   Dark hero, flat page background, alternating section bands,
   navy "why us" band, teal CTA, navy footer.
   Uses :not(#_) and section ids so it outranks the legacy !important rules.
   ========================================================================== */

:root {
  --navy: #0b1f2e;
  --navy-2: #12293b;
  --mint: #5eead4;
  --sky: #7dd3fc;
  --band: #f3f6f7;
}

/* Page background: flat, no wave artwork */
html {
  background-color: var(--page) !important;
}

body::before {
  background: var(--page) !important;
}

/* Section rhythm: alternate white and light gray bands */
main > section:not(.hero):not(#_) {
  position: relative;
  z-index: 1;
  background: #ffffff;
}

#services,
#why-us + section,
#how-it-works,
#locations,
#reviews-payment,
#get-started {
  background: var(--band) !important;
}

.insurance-marquee-band:not(#_) {
  background: #ffffff !important;
  border-bottom: 1px solid var(--line);
}

/* Headings: larger and tighter */
main section h2:not(#_) {
  font-size: clamp(30px, 3.4vw, 46px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.08 !important;
}

/* Hero ------------------------------------------------------------------- */

main .hero:not(#_) {
  min-height: min(86vh, 760px);
  background: var(--navy) !important;
  color: #ffffff;
}

main .hero:not(#_)::before,
main .hero:not(#_)::after {
  display: none !important;
}

main .hero .hero-bg:not(#_) {
  background: var(--navy) !important;
}

main .hero .hero-bg video:not(#_) {
  opacity: 0.5 !important;
}

main .hero .hero-bg:not(#_)::after {
  background:
    linear-gradient(90deg, rgba(11, 31, 46, 0.96) 0%, rgba(11, 31, 46, 0.85) 38%, rgba(11, 31, 46, 0.45) 72%, rgba(11, 31, 46, 0.3) 100%),
    linear-gradient(0deg, rgba(11, 31, 46, 0.7) 0%, rgba(11, 31, 46, 0) 45%) !important;
}

main .hero h1:not(#_),
main .hero h1 span:not(#_) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-size: clamp(42px, 5.2vw, 72px) !important;
}

main .hero h1 em:not(#_) {
  display: inline-block;
  padding-bottom: 0.06em;
  background: linear-gradient(90deg, var(--mint) 0%, var(--sky) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

main .hero .hero-lede:not(#_) {
  color: rgba(255, 255, 255, 0.78) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.78) !important;
  font-size: clamp(16px, 1.3vw, 19px) !important;
  line-height: 1.6 !important;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms var(--ease);
}

.hero-rating:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-rating-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--star);
  font-size: 12px;
}

.hero-rating span:last-child {
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions .btn {
  min-height: 52px;
  padding: 0 24px;
  font-size: 15px;
}

.hero-actions .hero-btn-ghost:not(#_) {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.hero-actions .hero-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
}

.hero-facts i {
  margin-right: 6px;
  color: var(--mint);
}

/* "How can we help?" panel: crisp white card on the dark hero */
main .hero .path-panel:not(#_) {
  border: 0 !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.55) !important;
}

main .hero .path-card:not(#_) {
  border-radius: 14px !important;
}

/* "Why us": navy band ---------------------------------------------------- */

#why-us:not(#_) {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(20, 163, 166, 0.28), transparent 70%),
    radial-gradient(700px 360px at 0% 100%, rgba(125, 211, 252, 0.12), transparent 70%),
    var(--navy) !important;
}

#why-us h2:not(#_),
#why-us h3:not(#_) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#why-us .section-heading p:not(#_),
#why-us .why-feature p:not(#_) {
  color: rgba(255, 255, 255, 0.7) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7) !important;
}

#why-us .why-feature:not(#_) {
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

#why-us .why-feature:not(#_):hover {
  border-color: rgba(94, 234, 212, 0.35) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

#why-us .why-feature > i:not(#_) {
  border-radius: 12px !important;
  background: rgba(94, 234, 212, 0.12) !important;
  color: var(--mint) !important;
  -webkit-text-fill-color: var(--mint) !important;
}

/* Final call to action: teal gradient card ------------------------------- */

#get-started .final-cta-shell:not(#_) {
  border: 0 !important;
  border-radius: 28px !important;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(94, 234, 212, 0.3), transparent 70%),
    linear-gradient(135deg, #0a6f72 0%, #0b4a5e 100%) !important;
  box-shadow: 0 30px 70px -30px rgba(10, 111, 114, 0.7) !important;
}

#get-started h2:not(#_),
#get-started .final-cta-copy p:not(#_),
#get-started .final-cta-points li:not(#_),
#get-started .final-cta-points span:not(#_),
#get-started .section-kicker:not(#_) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#get-started .final-cta-copy p:not(#_) {
  opacity: 0.85;
}

#get-started .final-cta-icon:not(#_) {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

#get-started .final-cta-points li:not(#_) {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

#get-started .btn-primary:not(#_) {
  background: #ffffff !important;
  color: var(--primary-dark) !important;
  -webkit-text-fill-color: var(--primary-dark) !important;
}

#get-started .btn-secondary:not(#_) {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

#get-started i:not(#_) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

/* Footer: navy ----------------------------------------------------------- */

.site-footer:not(#_),
.site-footer .footer-top-band:not(#_),
.site-footer .footer-main-band:not(#_),
.site-footer .footer-bottom:not(#_) {
  background: var(--navy) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.site-footer:not(#_) :is(p, li, span, small, address, a, h3, h4, strong) {
  color: rgba(255, 255, 255, 0.72) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.72) !important;
}

.site-footer:not(#_) :is(h3, h4, strong) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.site-footer:not(#_) a:hover {
  color: var(--mint) !important;
  -webkit-text-fill-color: var(--mint) !important;
}

.site-footer:not(#_) i {
  color: var(--mint) !important;
}

/* The logo artwork is dark; render it white on navy */
.site-footer .footer-logo:not(#_) {
  filter: brightness(0) invert(1);
}

.site-footer .footer-brand-chips span:not(#_) {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.site-footer :is(.footer-social a, .social-links a):not(#_) {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Mobile hero spacing */
@media (max-width: 760px) {
  main .hero:not(#_) {
    min-height: 0;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    gap: 8px 16px;
    font-size: 13px;
  }
}

/* Pass 3 fixes */
main .hero .hero-actions .btn:not(#_) {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
}

main .hero .path-panel h2:not(#_) {
  font-size: 24px !important;
  letter-spacing: -0.02em !important;
}

main .hero h1:not(#_),
main .hero h1 span:not(#_) {
  font-size: clamp(40px, 4.6vw, 64px) !important;
}

@media (max-width: 760px) {
  main .hero .hero-actions .btn:not(#_) {
    flex: 1 1 100% !important;
    justify-content: center;
  }
}

main .hero .hero-actions:not(#_) {
  display: flex !important;
  width: auto !important;
  max-width: none !important;
  grid-template-columns: none !important;
}

.service-tag:not(#_) {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100%;
}

.site-footer:not(#_) h2 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

@media (max-width: 760px) {
  main .hero .hero-inner:not(#_) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Lighter hero: a softer, bluer overlay so the video reads through */
main .hero:not(#_),
main .hero .hero-bg:not(#_) {
  background: #16405a !important;
}

main .hero .hero-bg video:not(#_) {
  opacity: 0.85 !important;
}

main .hero .hero-bg:not(#_)::after {
  background:
    linear-gradient(90deg, rgba(14, 52, 76, 0.86) 0%, rgba(14, 52, 76, 0.66) 40%, rgba(14, 52, 76, 0.28) 72%, rgba(14, 52, 76, 0.12) 100%),
    linear-gradient(0deg, rgba(14, 52, 76, 0.5) 0%, rgba(14, 52, 76, 0) 40%) !important;
}
