:root {
  --navy: #091d3e;
  --navy-soft: #102a54;
  --aqua: #34b7c8;
  --aqua-soft: #dff5f5;
  --ink: #13233a;
  --muted: #5e6978;
  --paper: #ffffff;
  --mist: #f3f6f6;
  --warm: #f4efe8;
  --line: #d7e0e2;
  --max: 1440px;
  --gutter: clamp(1.25rem, 4vw, 4.75rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: var(--navy);
  background: white;
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: relative;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 112px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 1.4vw, 1.5rem);
}

.brand {
  flex: 0 0 auto;
  width: 180px;
  height: 76px;
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: clamp(.75rem, 1.3vw, 1.4rem);
}

.desktop-nav a,
.phone-link,
.menu-toggle {
  font-size: .74rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a,
.phone-link { position: relative; }

.phone-link { min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; }

.phone-link-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; color: var(--aqua); }

.desktop-nav a,
.phone-link,
.button-small { white-space: nowrap; }

.desktop-nav a::after,
.phone-link::after,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.desktop-nav a:hover::after,
.phone-link:hover::after,
.text-link:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.button {
  min-height: 54px;
  padding: .9rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  color: white;
  background: var(--navy);
  font-size: .74rem;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

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

.button-small { min-height: 48px; padding-inline: .85rem; font-size: .69rem; }

.site-header .header-actions .menu-toggle {
  min-width: 0;
  min-height: 44px;
  padding: .5rem 0 .5rem .5rem;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: .7rem;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
}

.site-header .header-actions .menu-toggle::after {
  content: "";
  width: 19px;
  height: 15px;
  flex: 0 0 19px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.site-header .header-actions .menu-toggle[aria-expanded="true"]::after {
  border: 0;
  background:
    linear-gradient(45deg, transparent 44%, currentColor 46% 54%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 46% 54%, transparent 56%);
}

.mobile-nav { display: none; }

.desktop-nav .menu-list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  list-style: none;
}

.desktop-nav .menu-item,
.mobile-nav .menu-item { list-style: none; }

.mobile-nav .menu-list { display: contents; margin: 0; padding: 0; }

.mobile-nav .menu-item { width: 100%; }

.hero {
  max-width: var(--max);
  min-height: min(760px, calc(100vh - 112px));
  margin: 0 auto;
  padding-left: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
}

.hero-copy {
  padding: clamp(4.5rem, 10vh, 8.5rem) clamp(2rem, 6vw, 6.5rem) clamp(4rem, 8vh, 7rem) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 1.45rem;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1, h2 {
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: .98;
}

h1 { max-width: 760px; font-size: clamp(3rem, 4.8vw, 5.25rem); }

.hero-line { display: block; white-space: nowrap; }

h2 { font-size: clamp(2.8rem, 5vw, 5.75rem); }

h1 strong, h2 strong { font-weight: 720; }

.hero-intro {
  max-width: 570px;
  margin-bottom: 2.25rem;
  color: var(--muted);
  font-size: clamp(1.12rem, 1.6vw, 1.45rem);
  line-height: 1.55;
}

.button-row { display: flex; align-items: center; gap: 1.75rem; }

.text-link {
  position: relative;
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-media { margin: 0; min-height: 600px; overflow: hidden; }

.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 59% center; }

.section { padding: clamp(5.75rem, 11vw, 10.5rem) 0; }

.section-shell { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.intro-section { background: var(--mist); }

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  gap: clamp(3rem, 10vw, 10rem);
  align-items: end;
}

.intro-grid h2 { max-width: 850px; margin-bottom: 0; }

.intro-body { max-width: 500px; padding-bottom: .5rem; }

.intro-body p { margin-bottom: 1.2rem; color: var(--muted); font-size: 1.08rem; }

.intro-body .text-link { display: inline-block; margin-top: .8rem; }

.section-heading {
  margin-bottom: clamp(4rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .6fr);
  gap: 3rem;
  align-items: end;
}

.section-heading h2 { margin-bottom: 0; }

.section-heading > p { max-width: 440px; margin-bottom: .65rem; color: var(--muted); font-size: 1.13rem; }

.service-list { border-top: 1px solid var(--ink); }

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

.service-item button {
  width: 100%;
  min-height: 112px;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.service-item button > span:first-child {
  font-size: clamp(1.55rem, 2.3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.service-action {
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.service-detail {
  max-width: 880px;
  padding: 0 0 2.3rem clamp(1.2rem, 8vw, 8rem);
  color: var(--muted);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 3rem;
}

.service-detail[hidden] { display: none; }

.service-detail p { margin-bottom: 0; }

.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  justify-content: center;
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}

.doctor-card { width: 100%; max-width: 460px; margin: 0; }

.doctor-card-offset { margin-top: 0; }

.doctor-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 30%;
}

.doctor-card-offset img { object-position: center 10%; }

.doctor-copy { max-width: 540px; padding: 2rem 0 0; }

.doctor-copy .eyebrow { margin-bottom: .6rem; color: var(--aqua); }

.doctor-copy h3 { margin-bottom: .9rem; font-size: clamp(1.6rem, 2.4vw, 2.4rem); line-height: 1.2; }

.doctor-copy > p:last-child { color: var(--muted); }

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

.values .eyebrow, .values h2, .values h3 { color: white; }

.values-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(4rem, 10vw, 10rem); }

.values-intro { position: sticky; top: 3rem; align-self: start; }

.values-intro p:not(.eyebrow) { max-width: 520px; color: #c7d2df; font-size: 1.12rem; }

.values-list article { padding: 0 0 3.25rem; margin-bottom: 3.25rem; border-bottom: 1px solid rgba(255,255,255,.24); }

.values-list article:last-child { margin-bottom: 0; }

.value-index { margin-bottom: .7rem; color: var(--aqua); font-size: .7rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }

.values-list h3 { margin-bottom: .9rem; font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.2; }

.values-list article > p:last-child { max-width: 680px; margin-bottom: 0; color: #c7d2df; }

.visit { background: var(--warm); }

.visit-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; }

.visit-media { min-height: 0; aspect-ratio: 4 / 3; overflow: hidden; }

.visit-media img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }

.visit-copy { max-width: 600px; }

.visit-copy p:not(.eyebrow) { margin-bottom: 1.25rem; color: #465466; }

.visit-copy .button { margin-top: 1rem; }

.contact { color: white; background: var(--navy-soft); }

.contact .eyebrow, .contact h2 { color: white; }

.contact-lead {
  margin-bottom: clamp(4rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr);
  gap: 3rem;
  align-items: end;
}

.contact-lead h2 { margin-bottom: 0; }

.contact-lead > p:last-child { margin: 0 0 .6rem; color: #cbd8e6; font-style: normal; }

.contact-grid {
  margin-top: clamp(4.5rem, 8vw, 8rem);
  display: grid;
  grid-template-columns: .75fr 1.25fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,.25);
}

.contact-block, .hours-block { min-width: 0; padding-top: 2rem; }

.contact-block .eyebrow, .hours-block .eyebrow { color: var(--aqua); }

.contact-block a { font-size: clamp(1.1rem, 1.6vw, 1.4rem); overflow-wrap: anywhere; text-underline-offset: .3em; }

.contact-detail-link { max-width: 100%; min-height: 44px; display: inline-flex; align-items: flex-start; gap: .625rem; text-decoration: none; }

.contact-detail-link span { min-width: 0; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: .3em; }

.contact-detail-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; margin-top: calc((1.6em - 18px) / 2); color: var(--aqua); }

.hours-block dl { margin: 0; }

.hours-block dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }

.hours-block dt { font-weight: 650; }

.hours-block dd { margin: 0; color: #cbd8e6; }

.contact-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.map-panel,
.appointment-panel { min-width: 0; }

.map-panel h3,
.appointment-panel h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.12;
}

.map-panel > p:not(.eyebrow) { margin-bottom: 2rem; color: #cbd8e6; }

.map-frame {
  min-height: 520px;
  height: calc(100% - 160px);
  overflow: hidden;
  background: var(--aqua-soft);
}

.map-preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  background: #e7e7e2;
}

.map-preview-tiles {
  position: absolute;
  top: calc(50% - 518px);
  left: calc(51.328125% - 657px);
  width: 1280px;
  height: 1024px;
  display: grid;
  grid-template-columns: repeat(5, 256px);
  grid-template-rows: repeat(4, 256px);
}

.map-preview-tiles img { width: 256px; height: 256px; max-width: none; }

.map-preview-pin {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 51.328125%;
  display: block;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 3px 5px rgba(9, 29, 62, .3));
}

.map-preview-pin svg { display: block; width: 42px; height: 54px; }

.map-preview-card {
  position: absolute;
  z-index: 1;
  bottom: 2.2rem;
  left: clamp(1rem, 3vw, 2rem);
  max-width: calc(100% - 2rem);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  color: var(--ink);
  background: white;
  box-shadow: 0 8px 28px rgba(9, 29, 62, .18);
}

.map-preview-card strong { font-size: .95rem; line-height: 1.3; }
.map-preview-card > span { font-size: .85rem; color: var(--muted); }
.map-preview-card a { margin-top: .55rem; color: var(--navy); font-size: .75rem; font-weight: 750; letter-spacing: .04em; text-underline-offset: .25em; }

.map-preview-credit {
  position: absolute;
  z-index: 1;
  right: .4rem;
  bottom: .4rem;
  padding: .1rem .35rem;
  color: #273643;
  background: rgba(255, 255, 255, .92);
  font-size: .7rem;
  line-height: 1.2;
}

.map-preview-credit a { text-underline-offset: .15em; }

.button-light { color: var(--navy); background: white; }

.button-light:hover { color: white; border-color: var(--navy); background: var(--navy); }

.appointment-panel { padding: clamp(2rem, 4vw, 4rem); color: var(--ink); background: white; scroll-margin-top: 2rem; }

.appointment-panel .eyebrow { color: var(--aqua); }

.form-intro { max-width: 560px; margin-bottom: 2rem; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.form-field { min-width: 0; display: flex; flex-direction: column; gap: .5rem; }

.form-field-wide { grid-column: 1 / -1; }

.form-field span,
.consent-field {
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #b8c4cd;
  border-radius: 0;
  padding: .85rem .9rem;
  color: var(--ink);
  background: white;
  font: inherit;
}

.form-field input { min-height: 50px; }

.form-field textarea { resize: vertical; }

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.consent-field input[aria-invalid="true"] { outline: 2px solid #a82d2d; outline-offset: 2px; }

.consent-field { margin: 1.5rem 0; display: flex; align-items: flex-start; gap: .75rem; line-height: 1.55; text-transform: none; letter-spacing: 0; }

.consent-field input { width: 20px; height: 20px; flex: 0 0 auto; margin: .1rem 0 0; accent-color: var(--navy); }

.consent-field a { text-underline-offset: .25em; }

.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: 1.25rem 0 0; padding: .9rem 1rem; font-size: .92rem; }

.form-status[data-state="success"] { color: #174d31; background: #e4f4ea; }

.form-status[data-state="error"] { color: #772020; background: #f8e4e4; }

.site-footer { padding: 4rem 0; color: white; background: #06152e; }

.footer-grid { display: grid; grid-template-columns: 250px .9fr 1.3fr auto; gap: clamp(2rem, 5vw, 5rem); align-items: end; }

.footer-brand { width: 240px; height: 100px; }

.footer-brand img { width: 100%; height: 100%; object-fit: contain; }

.site-footer .eyebrow { margin-bottom: .75rem; color: var(--aqua); }

.site-footer address { color: #b9c7d8; font-style: normal; }

.footer-links, .footer-legal { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }

.footer-links a, .footer-legal a { color: #d9e1eb; text-underline-offset: .3em; overflow-wrap: anywhere; }

.footer-links { min-width: 0; }

.footer-links a { max-width: 100%; min-height: 24px; display: inline-flex; align-items: center; gap: .625rem; }

.footer-links a span { min-width: 0; overflow-wrap: anywhere; }

.footer-contact-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; color: var(--aqua); }

@media (max-width: 1240px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .site-header .header-actions .menu-toggle { display: inline-flex; }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    min-height: calc(100vh - 112px);
    min-height: calc(100dvh - 112px);
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    padding: 2.5rem var(--gutter) 4rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    color: white;
    background: var(--navy);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav:not([hidden]) { display: flex; }
  .mobile-nav a:not(.button) { width: 100%; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: clamp(1.3rem, 4vw, 2rem); text-decoration: none; }
  .mobile-nav .button { width: 100%; margin-top: 2rem; border-color: white; }
  .mobile-nav .button:hover { color: white; border-color: var(--aqua); }

  body.admin-bar .mobile-nav {
    min-height: calc(100dvh - 144px);
    max-height: calc(100dvh - 144px);
  }
}

@media (max-width: 900px) {
  .header-inner { min-height: 96px; }
  .brand { width: 170px; height: 70px; }
  .button-small { display: none; }
  .mobile-nav { min-height: calc(100dvh - 96px); max-height: calc(100dvh - 96px); }
  body.admin-bar .mobile-nav { min-height: calc(100dvh - 142px); max-height: calc(100dvh - 142px); }

  .hero { min-height: auto; padding: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 5rem var(--gutter) 4.5rem; }
  .hero-media { min-height: 56vw; }

  .intro-grid,
  .section-heading,
  .values-grid,
  .visit-grid,
  .contact-lead { grid-template-columns: 1fr; }

  .intro-grid { gap: 2.5rem; }
  .section-heading { gap: 2rem; }
  .values-intro { position: static; }
  .visit-media { min-height: 0; }
  .contact-lead { gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hours-block { grid-column: 1 / -1; margin-top: 1.5rem; }
  .contact-tools { grid-template-columns: 1fr; }
  .map-frame { height: auto; }
  .footer-grid { grid-template-columns: 220px 1fr; }
  .footer-legal { grid-column: 2; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 84px; gap: .75rem; }
  .brand { width: 138px; height: 58px; }
  .header-actions { gap: .8rem; }
  .phone-link { font-size: .68rem; }
  .site-header .header-actions .menu-toggle { font-size: .68rem; }

  .section { padding: 5rem 0; }

  .hero-copy { padding-top: 4.25rem; }
  h1 { font-size: clamp(2.55rem, 11vw, 3.25rem); }
  h2 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .hero-line { white-space: normal; }
  .hero-intro { font-size: 1.05rem; }
  .button-row { width: 100%; align-items: stretch; flex-direction: column; gap: 1.35rem; }
  .button-row .button { width: 100%; }
  .button-row .text-link { align-self: flex-start; }
  .hero-media { min-height: 82vw; }

  .section-heading { margin-bottom: 3.5rem; }

  .service-item button { min-height: 88px; }
  .service-item button > span:first-child { font-size: 1.45rem; }
  .service-detail { padding-left: 0; grid-template-columns: 1fr; }

  .doctor-grid { grid-template-columns: 1fr; gap: 4rem; }
  .doctor-card-offset { margin-top: 0; }
  .doctor-card { max-width: 460px; margin-inline: auto; }
  .doctor-card img { height: min(88vw, 360px); }
  .doctor-card:first-child img { object-position: center 25%; }

  .values-grid { gap: 4rem; }
  .visit-grid { gap: 3rem; }
  .mobile-nav { min-height: calc(100dvh - 84px); max-height: calc(100dvh - 84px); }
  body.admin-bar .mobile-nav { min-height: calc(100dvh - 130px); max-height: calc(100dvh - 130px); }

  .contact-grid { grid-template-columns: 1fr; }
  .hours-block { grid-column: auto; }
  .hours-block dl div { padding-block: .6rem; }
  .map-frame,
  .map-preview { min-height: 420px; }
  .appointment-panel { padding: 2rem 1.25rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-brand { width: 210px; height: 88px; }
  .footer-legal { grid-column: auto; margin-top: 1rem; }
}

@media (max-width: 380px) {
  .header-inner { padding-inline: .75rem; }
  .header-actions { gap: .6rem; }
  .header-actions .phone-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .phone-link-text { display: none; }
  .header-actions .phone-link::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
