:root {
  --navy: #0d3672;
  --blue: #1057a5;
  --sky: #eaf4ff;
  --red: #b1282e;
  --orange: #f47d35;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e2ef;
  --paper: #ffffff;
  --soft: #f6f9fc;
  --shadow: 0 24px 70px rgba(13, 54, 114, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(13, 54, 114, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 1px solid rgba(13, 54, 114, 0.14);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(13, 54, 114, 0.12);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand small {
  max-width: 250px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: #253858;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

.header-call,
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.header-call {
  padding: 10px 16px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 26px rgba(177, 40, 46, 0.2);
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--navy);
}

.section-pad {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

section[id],
article[id] {
  scroll-margin-top: 92px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 73px);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  position: absolute;
  inset: auto clamp(18px, 5vw, 72px) clamp(34px, 7vw, 92px) auto;
  width: min(30vw, 360px);
  height: min(30vw, 360px);
  content: "";
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(177, 40, 46, 0.7), rgba(16, 87, 165, 0.85)) border-box;
  border: 16px solid transparent;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0.82;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
}

.hero h1 {
  max-width: 920px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.5rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: #39485f;
  font-size: clamp(1.02rem, 1.6vw, 1.28rem);
}

.hero-search {
  max-width: 720px;
  margin-top: 32px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 44px rgba(13, 54, 114, 0.1);
}

.hero-search label {
  display: block;
  padding: 0 8px 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-search div {
  display: flex;
  gap: 8px;
}

.hero-search input {
  min-width: 0;
  flex: 1;
  height: 50px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.hero-search input:focus {
  border-color: rgba(16, 87, 165, 0.45);
  box-shadow: 0 0 0 4px rgba(16, 87, 165, 0.1);
}

.hero-search button {
  height: 50px;
  padding: 0 18px;
  color: var(--navy);
  background: var(--sky);
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

.btn {
  min-width: 148px;
  padding: 12px 18px;
}

.btn.primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 16px 34px rgba(177, 40, 46, 0.24);
}

.btn.secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(13, 54, 114, 0.18);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.hero-stats li {
  min-height: 96px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  color: var(--navy);
  font-size: 1rem;
}

.hero-stats span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-actions a {
  display: grid;
  min-height: 162px;
  align-content: start;
  gap: 8px;
  padding: 26px clamp(18px, 3vw, 34px);
  background: #fff;
}

.quick-actions span {
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

.quick-actions strong {
  color: var(--navy);
  font-size: 1.16rem;
  line-height: 1.2;
}

.quick-actions small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2,
.doctor-copy h2,
.appointment-copy h2,
.contact-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.appointment-copy p,
.contact-card p {
  color: var(--muted);
}

.services-section {
  background: #fff;
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.tab-button {
  min-height: 42px;
  padding: 8px 15px;
  color: var(--navy);
  background: var(--sky);
  border: 1px solid rgba(13, 54, 114, 0.12);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

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

.result-count {
  min-height: 24px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.service-groups {
  display: grid;
  gap: 22px;
}

.service-panel {
  padding: clamp(20px, 3vw, 32px);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.accent-panel {
  background: linear-gradient(180deg, #f6faff, #fff);
}

.compact-panel {
  background: #fff8f2;
  border-color: rgba(244, 125, 53, 0.28);
}

.panel-kicker {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-panel h3 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.4vw, 2.3rem);
  line-height: 1.1;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  display: grid;
  min-height: 210px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(13, 54, 114, 0.13);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(13, 54, 114, 0.06);
}

.service-card.is-hidden {
  display: none;
}

.service-card span {
  display: inline-grid;
  width: fit-content;
  min-width: 42px;
  min-height: 34px;
  place-items: center;
  padding: 5px 8px;
  color: var(--navy);
  background: var(--sky);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.service-card h4 {
  margin: 0;
  color: #202b3f;
  font-size: 1.04rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.doctor-section {
  background: var(--navy);
  color: #fff;
}

.doctor-copy {
  max-width: 960px;
}

.doctor-copy .eyebrow {
  color: #ffb25d;
}

.doctor-copy h2 {
  color: #fff;
}

.lead {
  margin: 16px 0 0;
  color: #dbeafe;
  font-size: 1.16rem;
  font-weight: 800;
}

.credential-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.credential-list li {
  position: relative;
  padding-left: 24px;
  color: #f5f8ff;
}

.credential-list li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--orange);
  border-radius: 999px;
}

blockquote {
  margin: 32px 0 0;
  padding: 22px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  font-size: 1.08rem;
}

.why-section {
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.why-grid article {
  min-height: 230px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.why-grid span {
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 900;
}

.why-grid h3 {
  margin: 34px 0 10px;
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.22;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
}

.appointment-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--soft);
}

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

.appointment-contact {
  display: grid;
  gap: 6px;
  max-width: 320px;
  padding: 18px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.appointment-contact strong {
  color: var(--navy);
}

.appointment-contact a {
  color: var(--red);
  font-weight: 900;
}

.appointment-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.form-row textarea {
  min-height: 112px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(16, 87, 165, 0.45);
  box-shadow: 0 0 0 4px rgba(16, 87, 165, 0.1);
}

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

.appointment-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-section {
  background: var(--navy);
}

.contact-card {
  max-width: 1120px;
  padding: clamp(24px, 5vw, 48px);
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.contact-grid div {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-grid strong {
  display: block;
  color: var(--navy);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.contact-grid p {
  margin: 8px 0 0;
}

.contact-grid a {
  color: var(--blue);
  font-weight: 800;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #dbeafe;
  background: #081f42;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1180px) {
  .service-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav,
  .header-call {
    display: none;
  }

  .site-header.nav-open .site-nav {
    display: grid;
    grid-column: 1 / -1;
    justify-content: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .site-header.nav-open .site-nav a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .appointment-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    display: none;
  }

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

@media (max-width: 640px) {
  .section-pad {
    padding: 46px 16px;
  }

  .site-header {
    padding: 12px 16px;
  }

  .brand small {
    max-width: 180px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 13vw, 3.45rem);
  }

  .hero-search div,
  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .hero-search button,
  .btn {
    width: 100%;
  }

  .hero-stats,
  .quick-actions,
  .service-grid,
  .why-grid,
  .form-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .why-grid article {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
