/* Final stabilising layer loaded after styles.css. */

:root {
  --fs-h1: clamp(2.45rem, 3.85vw, 4.35rem);
  --fs-h2: clamp(2.25rem, 3.15vw, 3.95rem);
  --fs-h3: clamp(1.18rem, 1.1vw, 1.34rem);
  --fs-lead: clamp(1.02rem, 1.03vw, 1.16rem);
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.06;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  max-width: none;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.18;
}

.lead,
.section-heading p:not(.eyebrow),
.trust-card p,
.service-card p,
.location-card p,
.doctor-card p,
.review-card p,
.contact-grid p,
.contact-grid dl {
  font-size: 1rem;
  line-height: 1.62;
}

.section-heading[data-reveal],
.trust-card[data-reveal],
.locations-showcase[data-reveal],
.service-card[data-reveal],
.doctor-card[data-reveal],
.review-card[data-reveal],
.cta-panel[data-reveal],
.contact-grid article[data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

.hero-grid {
  grid-template-columns: minmax(680px, 0.95fr) minmax(360px, 1.05fr);
}

.hero-copy {
  max-width: 860px;
}

.hero-copy h1 {
  max-width: min(820px, 58vw);
  font-size: clamp(2.85rem, 3.55vw, 4.35rem);
  line-height: 1.06;
}

.hero .lead {
  max-width: 58ch;
}

.hero-subline {
  margin-top: clamp(24px, 2.2vw, 34px);
}

.section-heading,
.services-section .section-heading,
.trust-section .section-heading {
  display: grid;
  grid-template-columns: minmax(340px, 0.8fr) minmax(360px, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: end;
  justify-items: start;
  text-align: left;
  width: 100%;
  max-width: none;
  margin: 0 0 clamp(42px, 4.5vw, 68px);
}

.section-heading .eyebrow,
.services-section .section-heading .eyebrow,
.trust-section .section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.services-section .section-heading h2,
.trust-section .section-heading h2 {
  max-width: 13.8ch;
}

.services-section .section-heading p:not(.eyebrow),
.trust-section .section-heading p:not(.eyebrow) {
  max-width: 58ch;
  align-self: center;
}

.services-section .container,
.trust-section .container,
.doctors-section .container,
.contact-section .container {
  width: min(1440px, calc(100% - clamp(56px, 7vw, 128px)));
}

.locations-section .container {
  width: min(1760px, calc(100% - clamp(56px, 6vw, 120px)));
}

.locations-showcase {
  grid-template-columns: minmax(360px, 0.35fr) minmax(780px, 1fr);
  gap: clamp(38px, 4vw, 68px);
  align-items: start;
}

.locations-side {
  min-width: 0;
}

.locations-main {
  min-width: 0;
  gap: clamp(34px, 3vw, 48px);
}

.locations-section .locations-main .section-heading.align-left {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 0 clamp(32px, 3.5vw, 48px);
}

.locations-section .locations-main .section-heading.align-left .eyebrow {
  margin-bottom: clamp(14px, 1.4vw, 22px);
}

.locations-section .locations-main .section-heading.align-left h2 {
  max-width: 720px;
  font-size: clamp(2.65rem, 3.05vw, 3.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.locations-section .locations-main .section-heading.align-left p:not(.eyebrow) {
  display: block;
  max-width: 54ch;
  margin-top: clamp(20px, 2vw, 28px);
  font-size: clamp(1rem, 1vw, 1.12rem);
  line-height: 1.68;
}

.location-card-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.2vw, 34px);
  align-items: stretch;
}

.locations-section .location-card {
  min-width: 0;
}

.locations-section .location-card .card-body {
  padding: clamp(24px, 2vw, 34px);
}

.locations-section .location-card h3 {
  max-width: none;
  font-size: clamp(1.45rem, 1.55vw, 2rem);
  line-height: 1.12;
}

.locations-section .location-card .text-link {
  width: 100%;
}

.location-benefit-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 30px);
  align-items: stretch;
  width: 100%;
  overflow: visible;
}

.service-card,
.service-card:nth-child(1),
.service-card:nth-child(2),
.service-card:nth-child(3),
.service-card:nth-child(4),
.service-card:nth-child(5),
.service-card:nth-child(6),
.service-card:nth-child(7),
.service-card:nth-child(8) {
  grid-column: auto;
  width: auto;
  min-width: 0;
  min-height: 340px;
}

.service-card .card-body {
  min-height: 340px;
  padding: clamp(26px, 2.4vw, 36px);
}

.service-card h3 {
  max-width: 13ch;
  font-size: clamp(1.18rem, 1.1vw, 1.34rem);
  line-height: 1.18;
}

.service-card p {
  max-width: 25ch;
  font-size: 1rem;
  line-height: 1.62;
}

.trust-grid,
.doctor-grid,
.contact-grid {
  display: grid;
  gap: clamp(20px, 2vw, 30px);
  align-items: stretch;
}

.trust-grid,
.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doctor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card,
.trust-card:nth-child(1),
.trust-card:nth-child(2),
.trust-card:nth-child(3),
.trust-card:nth-child(4) {
  min-height: 280px;
  margin-top: 0;
}

.doctor-card:nth-child(1),
.doctor-card:nth-child(3),
.doctor-card:hover:nth-child(1),
.doctor-card:hover:nth-child(3) {
  transform: none;
}

.doctor-card img {
  aspect-ratio: 4 / 3.7;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-copy h1 {
    max-width: 760px;
    font-size: clamp(2.7rem, 6.2vw, 4.25rem);
  }

  .locations-showcase {
    grid-template-columns: 1fr;
  }

  .locations-side {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(320px, 1fr);
    gap: 32px;
  }

  .location-reasons {
    align-self: center;
  }

  .location-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-grid,
  .trust-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .services-section .section-heading,
  .trust-section .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .services-section .section-heading h2,
  .trust-section .section-heading h2,
  .locations-section .locations-main .section-heading.align-left h2 {
    max-width: 15ch;
  }
}

@media (max-width: 820px) {
  .services-section .container,
  .trust-section .container,
  .doctors-section .container,
  .contact-section .container,
  .locations-section .container {
    width: min(var(--max-text), calc(100% - 28px));
  }

  .section-heading,
  .services-section .section-heading,
  .trust-section .section-heading,
  .locations-section .locations-main .section-heading.align-left {
    gap: 18px;
    margin-bottom: 30px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.28rem, 10vw, 3.25rem);
    line-height: 1.08;
  }

  .section-heading h2,
  .services-section .section-heading h2,
  .trust-section .section-heading h2,
  .locations-section .locations-main .section-heading.align-left h2 {
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
  }

  .service-grid,
  .trust-grid,
  .location-card-row,
  .doctor-grid,
  .review-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .locations-side,
  .location-benefit-strip {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card .card-body {
    min-height: 315px;
  }
}
