:root {
  --ink: #10233c;
  --muted: #5d6b7c;
  --text: #5d6b7c;
  --navy: #053571;
  --navy-deep: #02183a;
  --line: #e4e8ee;
  --paper: #ffffff;
  --footer: #02183a;
  --content: 1160px;
  --wide: 1280px;
  --header: 82px;
  --shadow: 0 16px 32px rgba(5, 53, 113, 0.08);
  --home-gap: 300px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  font-family: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-2px);
}

.button-outline {
  margin-left: 10px;
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
}

.button-outline:hover {
  background: var(--navy);
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header);
  background: #fff;
  border-bottom: 1px solid rgba(5, 53, 113, 0.08);
  box-shadow: 0 8px 28px rgba(5, 53, 113, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
}

.brand-logo {
  width: 168px;
  height: auto;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle span + span {
  margin-top: 5px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 28px;
  transform: translate(-50%, -50%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav a {
  width: fit-content;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:not(.button) {
  color: #38515e;
}

.main-nav a:not(.button)::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 5px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:not(.button):hover::after,
.main-nav a:not(.button)[aria-current="page"]::after {
  transform: scaleX(1);
}

.main-nav a:not(.button):hover,
.main-nav a:not(.button)[aria-current="page"] {
  color: var(--navy);
}

.main-nav .button {
  box-sizing: border-box;
  height: 44px;
  margin-left: 0;
  padding-inline: 22px;
  min-height: 0;
  font-size: 15px;
}

.main-nav .button-outline {
  margin-left: 0;
  background: #fff;
  border: 1px solid var(--navy);
  color: var(--navy);
}

.main-nav .button-outline:hover {
  background: #fff;
  border-color: var(--navy-deep);
  color: var(--navy-deep);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: url("../img/hero.webp") center / cover;
}

.hero-shade {
  background: linear-gradient(
    90deg,
    rgba(2, 24, 58, 0.94) 0%,
    rgba(5, 53, 113, 0.86) 26%,
    rgba(5, 53, 113, 0.42) 54%,
    rgba(5, 53, 113, 0.08) 78%,
    rgba(5, 53, 113, 0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: inherit;
  width: min(var(--wide), calc(100% - 48px));
  margin-inline: auto;
  padding: 104px 0 168px;
}

.eyebrow {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(46px, 5vw, 76px);
}

.hero-description {
  max-width: 520px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero .button {
  background: #fff;
  color: var(--navy);
}

.hero .button:hover {
  background: #f4f7fb;
  color: var(--navy-deep);
}

.hero .button-outline {
  margin: 0;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.hero .button-outline:hover {
  background: #fff;
  color: var(--navy);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #fff;
  transform: translateX(-50%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-scroll.is-away {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
}

.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: hero-scroll-bounce 1.8s ease-in-out infinite;
}

.hero-scroll-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-scroll-arrow {
  display: flex;
  color: #fff;
  filter: drop-shadow(0 6px 10px rgba(2, 24, 58, 0.28));
}

@keyframes hero-scroll-bounce {
  0%,
  55%,
  100% { transform: translateY(0); }
  16% { transform: translateY(6px); }
  30% { transform: translateY(1px); }
  42% { transform: translateY(3px); }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.about-section,
.about-story,
.schedule-section {
  padding: 140px 0;
}

.hero + .about-section {
  padding-top: 180px;
  padding-bottom: 0;
}

.conditions-section {
  padding: var(--home-gap) 0;
}

.hours-section {
  padding-bottom: var(--home-gap);
  scroll-margin-top: calc(var(--header) + 28px);
}

.hours-section + .areas-section {
  padding-top: 0;
  padding-bottom: 140px;
}

.hours-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.72fr);
  gap: 48px;
  align-items: stretch;
}

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

.hours-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 18px 4px;
  border-bottom: 1px solid #e6ebf1;
}

.hours-list li:first-child {
  border-top: 1px solid #e6ebf1;
}

.hours-day-name {
  color: #7d8b9a;
  font-size: 16px;
  font-weight: 500;
}

.hours-time {
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hours-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e7f6ee;
  color: #2c9a58;
  font-size: 13px;
  font-weight: 700;
}

.hours-list li.is-closed .hours-status {
  background: #fdecee;
  color: #d16b75;
}

.hours-contact {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(5, 53, 113, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hours-contact-body {
  padding: 32px 28px 12px;
}

.hours-contact h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hours-contact-body > p {
  color: var(--text);
  line-height: 1.6;
}

.hours-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hours-contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef3f9;
  color: var(--navy);
  font-size: 15px;
}

.hours-contact-row div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hours-contact-row a,
.hours-contact-row p {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.hours-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding: 22px 28px 26px;
  background: var(--navy);
}

.hours-contact-actions .button {
  width: 100%;
  background: #fff;
  color: var(--navy);
}

.hours-contact-actions .button:hover {
  background: #f4f7fb;
  color: var(--navy-deep);
}

.hours-call {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.hours-call:hover {
  color: #fff;
}

.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 42px 32px;
}

.conditions-grid .area-card {
  flex: 0 1 calc((100% - 64px) / 3);
  max-width: calc((100% - 64px) / 3);
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 210px 180px;
  gap: 18px;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-image--professional {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.gallery-image--doctor {
  grid-column: 2;
  grid-row: 1;
}

.gallery-image--equipment {
  grid-column: 2;
  grid-row: 2;
}

.about-copy h2,
.about-story h2,
.section-heading h2,
.schedule-section h2,
.contact-section h2,
.focus-content h2,
.allies h2 {
  margin-bottom: 24px;
  font-size: clamp(36px, 4vw, 56px);
}

.about-copy p,
.about-story-copy > p,
.service-copy p,
.contact-appointment p,
.section-lead,
.allies > p {
  color: var(--text);
  line-height: 1.75;
}

.about-copy p + p,
.about-story-copy > p + p,
.service-copy p + p {
  margin-top: 24px;
}

.about-copy strong,
.about-story-copy strong,
.clinical-list strong {
  color: var(--ink);
  font-weight: 700;
}

.about-copy .button,
.allies .button {
  margin-top: 40px;
}

.areas-section {
  padding: var(--home-gap) 0;
}

.section-heading {
  margin-bottom: 96px;
  text-align: center;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px 32px;
}

.area-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(5, 53, 113, 0.08);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(5, 53, 113, 0.14);
}

.area-image-wrap {
  position: relative;
}

.area-image-wrap img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.area-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 190px;
  background: var(--navy);
  color: #fff;
  font-size: 42px;
}

.area-badge {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: -28px;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 0 0 8px var(--navy);
  font-size: 22px;
}

.area-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 64px 28px 40px;
}

.area-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.area-card p {
  flex: 1;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 15px;
}

.area-card a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.area-card a::before {
  content: "";
  position: absolute;
  inset: -48px -22px -22px;
}

.area-card a::after {
  content: "→";
  transition: transform 0.2s ease;
}

.area-card a:hover::after {
  transform: translateX(4px);
}

.focus-section {
  display: flex;
  align-items: center;
  padding: 88px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 24, 58, 0.82), rgba(5, 53, 113, 0.55)),
    url("../img/hero.webp") center 42% / cover;
}

.focus-content {
  max-width: 860px;
}

.focus-content .kicker {
  color: rgba(255, 255, 255, 0.86);
}

.focus-content h2 {
  color: #fff;
}

.focus-content p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}

.focus-content .button {
  margin-top: 40px;
  background: #fff;
  color: var(--navy);
}

.focus-content .button:hover {
  background: #f4f7fb;
  color: var(--navy-deep);
}

.page-hero {
  display: grid;
  place-items: center;
  margin-bottom: 120px;
  padding: 48px 32px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(2, 24, 58, 0.72), rgba(5, 53, 113, 0.55)),
    url("../img/hero.webp") center 42% / cover;
}

.page-hero + section {
  padding-top: 0;
}

.page-hero h1 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(40px, 4vw, 58px);
}

.breadcrumb {
  font-size: 16px;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  margin-left: 10px;
  color: #c5d7ee;
}

.breadcrumb-inline {
  margin-bottom: 18px;
  color: var(--navy);
}

.breadcrumb-inline span {
  color: var(--muted);
}

.about-collage {
  position: relative;
  min-height: 480px;
}

.about-collage img {
  position: absolute;
  object-fit: cover;
}

.about-collage-main {
  top: 0;
  right: 18%;
  width: 62%;
  height: 420px;
}

.about-collage-secondary {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 210px;
}

.difference-title {
  margin: 28px 0 8px;
  font-size: 22px;
}

.difference-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.difference-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}

.difference-list li::before {
  color: var(--navy);
  content: "✓";
  font-size: 22px;
  line-height: 1;
}

.service-copy .button {
  margin-top: 28px;
}

.schedule-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.schedule-list .is-closed {
  color: var(--muted);
}

.service-page {
  padding: 106px 0 106px;
}

.service-copy h1 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(32px, 3vw, 46px);
}

.service-copy h2 {
  margin-bottom: 18px;
  color: #526872;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
}

.service-image-wrap {
  align-self: start;
}

.service-image-wrap img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow);
}

.study-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  min-height: 420px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.study-panel i {
  font-size: 64px;
}

.study-panel span {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-page,
.legal-section,
.contact-section {
  padding: 0 0 var(--home-gap);
}

.section-lead {
  max-width: 1080px;
  margin-inline: auto;
}

.clinical-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 0 0 72px;
  padding: 0;
  list-style: none;
}

.clinical-list li {
  display: flex;
  gap: 12px;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid rgba(5, 53, 113, 0.08);
  box-shadow: var(--shadow);
  color: var(--text);
}

.clinical-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--navy);
}

.services-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 52px 48px;
  background: #fff;
  border: 1px solid rgba(5, 53, 113, 0.08);
  box-shadow: var(--shadow);
}

.services-cta p {
  max-width: 680px;
  margin: 0;
  color: var(--text);
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 112px;
}

.location-card {
  padding: 40px 32px;
  border: 1px solid rgba(5, 53, 113, 0.08);
  border-top: 4px solid var(--navy);
  background: #fff;
  box-shadow: var(--shadow);
}

.location-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.location-addresses {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.location-addresses li {
  padding: 14px 14px 14px 16px;
  border-left: 3px solid var(--navy);
  background: #f7f9fc;
  color: var(--text);
  font-size: 15px;
}

.location-addresses a {
  color: var(--navy);
  font-weight: 700;
}

.map {
  height: 380px;
  margin-bottom: 112px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-appointment {
  margin-bottom: 112px;
}

.contact-appointment img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.contact-appointment-copy p:not(.kicker) {
  max-width: 420px;
  margin-bottom: 28px;
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 28px 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  font: 700 17px/1.4 Montserrat, sans-serif;
  text-align: left;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-answer p {
  min-height: 0;
  overflow: hidden;
  color: var(--text);
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer p {
  padding-bottom: 18px;
}

.faq-item.active .faq-question i {
  transform: rotate(45deg);
}

.faq-answer a {
  color: var(--navy);
  font-weight: 700;
}

.legal-copy {
  max-width: 760px;
  margin-inline: auto;
}

.legal-copy p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.7;
}

.legal-copy a {
  color: var(--navy);
  font-weight: 700;
}

.site-footer {
  padding: 104px 0 0;
  background: var(--footer);
  color: #eaf0f2;
  border-top: 5px solid var(--navy);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.4fr;
  gap: 40px;
  padding: 28px 0 88px;
}

.footer-logo {
  width: min(190px, 70vw);
  height: auto;
  margin-bottom: 28px;
}

.footer-column h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.footer-column p,
.footer-column a {
  color: #aebbc0;
  font-size: 14px;
  line-height: 1.7;
}

.footer-column > a {
  display: block;
  margin-bottom: 10px;
}

.footer-column > a:hover,
.footer-column .location a:hover {
  color: #fff;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1.5px solid #eaf0f2;
  border-radius: 50%;
  color: #fff;
}

.social-links a:hover {
  background: #fff;
  color: var(--footer);
}

.location {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.location span {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: #7ea0d4;
}

.footer-bottom {
  padding: 14px 0;
  border-top: 1px solid rgba(208, 222, 227, 0.1);
  color: #68777e;
  font-size: 13px;
  text-align: right;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 16px;
  }

  .areas-grid,
  .locations-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .conditions-grid .area-card {
    flex-basis: calc((100% - 32px) / 2);
    max-width: calc((100% - 32px) / 2);
  }

  .footer-visits {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: var(--header);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 20px 24px 28px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(5, 53, 113, 0.08);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-links,
  .header-actions {
    position: static;
    top: auto;
    left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    transform: none;
  }

  .header-actions {
    align-items: stretch;
    gap: 12px;
  }

  .main-nav .button {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --header: 72px;
    --home-gap: 220px;
  }

  .split,
  .clinical-list,
  .services-cta,
  .hours-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .services-cta {
    display: grid;
  }

  .about-gallery {
    grid-template-rows: 180px 150px;
  }

  .about-collage {
    min-height: 420px;
    margin-top: 12px;
  }

  .service-image-wrap,
  .contact-appointment img {
    order: -1;
  }

  .page-hero {
    padding: 40px 24px;
  }

  .service-page {
    padding: 40px 0 6px;
  }

  .button-outline {
    margin-left: 0;
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .wrap,
  .wrap-wide,
  .header-inner {
    width: min(100% - 32px, var(--wide));
  }

  .brand-logo {
    width: 140px;
  }

  .hero-shade {
    background: linear-gradient(
      90deg,
      rgba(2, 24, 58, 0.94) 0%,
      rgba(5, 53, 113, 0.84) 46%,
      rgba(5, 53, 113, 0.28) 74%,
      rgba(5, 53, 113, 0) 100%
    );
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hours-list li {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .hours-time {
    grid-column: 1;
    grid-row: 2;
  }

  .hours-status {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .hours-time:empty {
    display: none;
  }

  .hours-list li.is-closed .hours-status {
    grid-row: 1;
  }

  .about-gallery,
  .areas-grid,
  .locations-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .conditions-grid .area-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .about-gallery {
    grid-template-rows: 220px 160px 160px;
  }

  .gallery-image--professional,
  .gallery-image--doctor,
  .gallery-image--equipment {
    grid-column: auto;
    grid-row: auto;
  }

  .about-collage-main {
    height: 280px;
  }

  .section-heading h2,
  .about-copy h2,
  .about-story h2,
  .schedule-section h2,
  .allies h2 {
    font-size: 34px;
  }

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

  .map {
    height: 260px;
  }
}

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

  .hero-scroll-cue {
    animation: hero-scroll-bounce 1.8s ease-in-out infinite;
  }
}
