:root {
  --blue: #4e7dad;
  --blue-bright: #4e91ba;
  --blue-deep: #2a4663;
  --navy: #1e3348;
  --silver: #d6d6d6;
  --mist: #eef3f7;
  --paper: #f7f9fb;
  --text: #243040;
  --muted: #5d6b7a;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(30, 51, 72, 0.12);
  --container: 1120px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--blue-deep);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--navy);
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

iframe {
  border: 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.center {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
}

.site-header.is-stuck {
  box-shadow: 0 8px 24px rgba(30, 51, 72, 0.08);
}

.top-bar {
  background: var(--navy);
  color: #d7e4ef;
  font-size: 13px;
  font-weight: 600;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}

.top-bar-note,
.top-bar-inner p {
  margin: 0;
}

.top-bar-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-bar-meta a,
.top-bar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.top-bar-meta .icon {
  fill: currentColor;
  flex-shrink: 0;
}

.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}

.mobile-header {
  display: none;
  border-bottom: 1px solid var(--silver);
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}

.navbar-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle.is-open .icon-bar:first-child {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.is-open .icon-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.is-open .icon-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-navbar {
  border-bottom: 1px solid var(--silver);
  background: var(--white);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
}

.site-logo img,
.custom-logo-link img {
  height: 52px;
  width: auto;
  max-width: 340px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-menu a {
  display: block;
  padding: 10px 14px;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  color: var(--blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

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

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--blue-deep);
  border-color: var(--white);
}

.btn-white:hover {
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.navbar-cta {
  flex-shrink: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: 0;
}

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

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(30, 51, 72, 0.88) 0%, rgba(30, 51, 72, 0.62) 34%, rgba(30, 51, 72, 0.18) 62%, rgba(30, 51, 72, 0.08) 100%),
    linear-gradient(to top, rgba(30, 51, 72, 0.28), transparent 38%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 64px 24px;
  min-height: 620px;
}

.hero-building .hero-grid {
  grid-template-columns: minmax(0, 560px) 1fr;
  min-height: 640px;
}

.hero-copy {
  padding: 12px 0 24px;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow.dark {
  color: var(--blue);
}

.hero h1,
.page-banner h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 18px;
}

.hero .lead,
.page-banner .lead {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.hero-phone {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.hero-phone a {
  color: var(--white);
  font-weight: 800;
}

.hero-photos {
  position: relative;
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.portrait {
  margin: 0;
  position: relative;
  width: 250px;
  text-align: center;
  filter: drop-shadow(0 18px 30px rgba(20, 40, 60, 0.35));
}

.portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(214, 214, 214, 0.55);
}

.portrait figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 1px 8px rgba(30, 51, 72, 0.55);
}

.portrait-ryan {
  z-index: 1;
  transform: translate(18px, 8px);
}

.portrait-natalie {
  z-index: 2;
  width: 220px;
  transform: translate(-10px, -28px);
}

.section {
  padding: 80px 0;
}

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

.section-blue {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: var(--white);
}

.section-blue h2,
.section-blue p {
  color: var(--white);
}

.intro-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}

.intro-split h2,
.section h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.section-desc {
  color: var(--muted);
  font-size: 18px;
}

.section-desc.center {
  max-width: 640px;
  margin: 0 auto 40px;
}

.value-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.value-card,
.service-card,
.info-card,
.appt-card,
.contact-card,
.post-card {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(30, 51, 72, 0.04);
}

.service-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}

.value-icon,
.service-icon,
.service-mark {
  width: 56px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--white);
  margin-bottom: 16px;
  box-shadow: 0 0 0 4px var(--silver);
}

.value-icon .icon,
.service-icon .icon,
.service-mark .icon {
  fill: currentColor;
}

.value-card h3,
.service-card h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 800;
}

.service-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}

.learn-more {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 800;
  color: var(--blue);
}

.mini-list {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.mini-list li {
  padding: 4px 0 4px 16px;
  position: relative;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.doctors-tease-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.doctors-tease-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.doctors-tease-photos img {
  border-radius: 24px;
  border: 4px solid rgba(255, 255, 255, 0.35);
}

.visit-grid,
.exam-layout,
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.visit-facts {
  margin: 24px 0;
}

.visit-facts li {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
}

.visit-facts .icon {
  fill: var(--blue);
  margin-top: 4px;
  flex-shrink: 0;
}

.visit-facts strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.map-frame {
  overflow: hidden;
  border-radius: 24px;
  min-height: 360px;
  border: 1px solid var(--silver);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.page-banner {
  background: linear-gradient(120deg, var(--blue-bright), var(--blue-deep));
  color: var(--white);
  padding: 64px 0 56px;
}

.prose,
.prose-wide {
  max-width: 720px;
}

.prose-wide {
  max-width: 800px;
}

.prose p,
.prose-wide p {
  color: var(--muted);
  font-size: 18px;
}

.prose h2,
.prose-wide h2,
.prose h3,
.prose-wide h3,
.prose h4 {
  margin-top: 28px;
}

.doctor-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.doctor-row-alt {
  grid-template-columns: 1.15fr 0.85fr;
}

.doctor-row-alt .doctor-shot {
  order: 2;
}

.doctor-shot {
  margin: 0;
}

.doctor-shot img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip-list li {
  background: var(--mist);
  border: 1px solid var(--silver);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
}

.why-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 12px 0;
  font-weight: 600;
}

.why-list .icon {
  fill: var(--blue);
  flex-shrink: 0;
}

.why-list.compact {
  margin-bottom: 24px;
}

.service-related h3 {
  font-family: var(--sans);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-related a {
  font-weight: 700;
}

.office-line {
  margin-top: 28px;
}

.appt-card h3,
.contact-card h3 {
  font-family: var(--sans);
  font-weight: 800;
}

.contact-card-phone {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  margin: 8px 0 20px;
}

.contact-card-phone a {
  color: var(--navy);
}

.appt-intro {
  color: var(--muted);
  font-size: 15px;
}

.appt-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

.appt-form input,
.appt-form select,
.appt-form textarea,
.search-form input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--silver);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--paper);
}

.appt-form input:focus,
.appt-form select:focus,
.appt-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check-label {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600 !important;
  color: var(--muted) !important;
}

.check-label input {
  width: auto;
  margin-top: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-notice {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.form-notice-ok {
  background: #e7f6ee;
  color: #1f6b3d;
}

.form-notice-err {
  background: #fdecea;
  color: #8a1f16;
}

.is-invalid {
  border-color: #c0392b !important;
}

.faq-list {
  max-width: 760px;
  margin: 32px auto 0;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 16px;
  padding: 8px 20px;
  margin-bottom: 12px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 12px 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(214, 214, 214, 0.6);
  font-size: 15px;
}

.hours-list-card {
  background: var(--paper);
  border: 1px solid var(--silver);
  border-radius: 16px;
  padding: 8px 18px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.post-card .thumb img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
}

.post-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.search-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
}

.search-form label {
  flex: 1;
}

.site-footer {
  background: var(--navy);
  color: #c9d7e4;
}

.site-footer a {
  color: #e8eef3;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-top {
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo img {
  width: auto;
  max-width: 280px;
  height: auto;
}

.footer-logo--fallback img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  color: #b7c6d4;
}

.footer-contact {
  font-weight: 700;
  color: var(--white) !important;
}

.footer-col h6 {
  color: var(--white);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  margin-bottom: 14px;
}

.footer-col li,
.footer-col .menu li {
  margin: 8px 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  font-size: 13px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.legal-links {
  display: flex;
  gap: 18px;
}

.copyright {
  margin: 0;
}

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.icon-clock {
  fill: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .intro-split,
  .value-grid,
  .service-grid,
  .doctors-tease-grid,
  .visit-grid,
  .exam-layout,
  .two-col,
  .doctor-row,
  .doctor-row-alt,
  .footer-grid,
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .doctor-row-alt .doctor-shot {
    order: 0;
  }

  .hero-grid {
    min-height: 0;
    padding: 48px 24px 36px;
    gap: 28px;
  }

  .hero-building .hero-grid {
    min-height: 560px;
    align-items: end;
  }

  .hero-media img {
    object-position: 42% 58%;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(30, 51, 72, 0.22) 0%, rgba(30, 51, 72, 0.4) 38%, rgba(30, 51, 72, 0.86) 100%);
  }

  .desktop-logo {
    display: none;
  }

  .mobile-header {
    display: block;
  }

  .primary-navbar {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--silver);
    box-shadow: var(--shadow);
  }

  .primary-navbar.is-open {
    display: block;
  }

  .navbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 24px;
    min-height: 0;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .navbar-cta {
    margin-top: 8px;
  }

  .top-bar-note {
    display: none;
  }

  .form-row,
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 640px) {
  .btn-mobile-call {
    min-height: 40px;
    padding: 0 16px;
  }

  .site-logo img,
  .custom-logo-link img {
    height: 36px;
    max-width: 190px;
  }
}
