:root {
  --ink: #143034;
  --muted: #59696d;
  --teal-900: #004b4b;
  --teal-700: #006d6d;
  --teal-100: #d9eeee;
  --mint-50: #f2f8f7;
  --ivory: #fbfaf7;
  --line: #c8dddd;
  --gold: #b99658;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 75, 75, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(260px, 0.9fr) minmax(360px, 1.2fr) auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(0, 75, 75, 0.1);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.header-action,
.primary-button,
.contact-button,
.documents-trigger {
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.08em;
  color: var(--teal-900);
}

.training-line {
  margin: 0;
  color: var(--teal-900);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.brand-logo {
  width: 32px;
  height: 38px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
}

.nav a {
  transition: color 180ms ease;
}

.nav a:hover {
  color: var(--teal-700);
}

.nav a.is-active {
  color: var(--teal-900);
  font-weight: 700;
  border-bottom: 2px solid var(--teal-700);
}

.header-action,
.primary-button,
.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  background: var(--teal-900);
  color: var(--white);
  padding: 0 22px;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 92px) clamp(36px, 7vw, 80px);
  overflow: hidden;
}

.hero-brand {
  text-align: center;
}

.hero-logo {
  width: 84px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 24px;
  color: var(--teal-900);
  font-size: clamp(3rem, 7vw, 7.2rem);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
}

.divider::before,
.divider::after {
  content: "";
  width: min(160px, 26vw);
  height: 2px;
  background: var(--teal-700);
}

.divider span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-700);
}

.specialty-line {
  margin-bottom: 28px;
  color: var(--teal-900);
  font-size: clamp(0.78rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 650px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.text-link {
  color: var(--teal-900);
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}

.doctor-portrait {
  position: relative;
  margin: 0;
  min-height: 620px;
  border-radius: 0 0 0 120px;
  overflow: hidden;
  background: var(--mint-50);
  box-shadow: var(--shadow);
}

.doctor-portrait::before {
  content: "";
  position: absolute;
  inset: 10% -18% -8% 10%;
  border-radius: 50%;
  background: rgba(217, 238, 238, 0.72);
}

.doctor-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 52%;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.intro-strip article {
  background: var(--white);
  padding: 28px clamp(20px, 4vw, 54px);
}

.intro-strip strong,
.intro-strip span {
  display: block;
}

.intro-strip strong {
  margin-bottom: 6px;
  color: var(--teal-900);
}

.intro-strip span,
.profile-copy,
.section-heading p,
.service-item p,
.echo-content p,
.contact-section p {
  color: var(--muted);
}

.profile-section,
.documents-section,
.services-section,
.preop-section,
.echo-section,
.contact-section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 92px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  color: var(--teal-900);
  font-size: clamp(2.2rem, 4vw, 4.8rem);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.profile-copy {
  max-width: 760px;
  font-size: 1.1rem;
}

.profile-card {
  display: grid;
  gap: 8px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.profile-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-card strong {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.documents-trigger {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.documents-section {
  background: linear-gradient(180deg, var(--ivory), var(--mint-50));
}

.documents-main-button {
  margin-top: 14px;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.documents-modal {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  overflow-y: auto;
}

.documents-modal::backdrop {
  background: rgba(10, 31, 34, 0.62);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--ivory);
  box-shadow: 0 34px 110px rgba(0, 24, 25, 0.34);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 75, 75, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-900);
  cursor: pointer;
  font-size: 1.55rem;
  line-height: 1;
}

.clinic-room {
  padding: clamp(24px, 4vw, 46px);
}

.room-header {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-bottom: 24px;
}

.room-header h2 {
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.office-photo-wall {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef0e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.office-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 830;
  object-fit: cover;
}

.photo-diploma {
  position: absolute;
  z-index: 2;
  padding: 0.45%;
  border: 0.55vw solid rgba(126, 110, 78, 0.95);
  background: #f8f5ed;
  box-shadow: 0 1.1vw 2vw rgba(58, 54, 45, 0.22);
  cursor: zoom-in;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.photo-diploma:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 1.4vw 2.6vw rgba(58, 54, 45, 0.28);
}

.photo-diploma img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.diploma-one {
  left: 19.4%;
  top: 8.8%;
  width: 8.5%;
  height: 20.5%;
}

.diploma-two {
  left: 31.2%;
  top: 8.5%;
  width: 8.7%;
  height: 20.2%;
}

.diploma-three {
  left: 42.8%;
  top: 9.3%;
  width: 14.5%;
  height: 13.2%;
}

.diploma-four {
  left: 59.4%;
  top: 8.9%;
  width: 8.8%;
  height: 20.4%;
}

.diploma-five {
  left: 70.7%;
  top: 9.4%;
  width: 14.6%;
  height: 12.2%;
}

.document-zoom-modal {
  width: min(960px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.document-zoom-modal::backdrop {
  background: rgba(10, 31, 34, 0.72);
  backdrop-filter: blur(8px);
}

.zoom-shell {
  position: relative;
  padding: clamp(18px, 3vw, 34px);
  background: var(--ivory);
  box-shadow: 0 34px 110px rgba(0, 24, 25, 0.34);
}

.zoom-shell h2 {
  max-width: calc(100% - 60px);
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.zoom-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: var(--white);
}

.services-section {
  background: var(--white);
}

.cardiovascular-page {
  border-top: 1px solid var(--line);
}

.cardio-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 1120px;
  margin: 0 auto clamp(34px, 5vw, 66px);
  border: 1px solid var(--line);
  background: var(--line);
}

.cardio-summary article {
  padding: clamp(22px, 3vw, 34px);
  background: var(--mint-50);
}

.cardio-summary span,
.cardio-summary strong {
  display: block;
}

.cardio-summary span {
  margin-bottom: 10px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.35rem;
}

.cardio-summary strong {
  margin-bottom: 8px;
  color: var(--teal-900);
  font-size: 1.1rem;
}

.cardio-summary p {
  margin: 0;
  color: var(--muted);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.services-list {
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-item span {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.service-item h3 {
  margin-bottom: 6px;
  color: var(--teal-900);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.2;
}

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

.publication-preview {
  position: sticky;
  top: 108px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--mint-50);
}

.publication-preview img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
}

.preop-section {
  background:
    linear-gradient(180deg, var(--mint-50), var(--ivory));
  border-top: 1px solid var(--line);
}

.preop-warning {
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-700);
  background: var(--white);
  color: var(--muted);
}

.preop-warning strong {
  color: var(--ink);
}

.preop-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.preop-card,
.preop-results article,
.preop-synthesis {
  border: 1px solid var(--line);
  background: var(--white);
}

.preop-card {
  padding: clamp(20px, 3vw, 30px);
}

.preop-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.preop-card-head span {
  border-radius: 999px;
  background: var(--teal-900);
  color: var(--white);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preop-card h3,
.preop-results h3,
.preop-synthesis h3 {
  margin: 0;
  color: var(--teal-900);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.preop-card p,
.preop-card label,
.preop-results p {
  color: var(--muted);
  font-size: 0.94rem;
}

.preop-check,
.preop-fieldset label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.preop-check input,
.preop-fieldset input {
  margin-top: 3px;
  accent-color: var(--teal-700);
  flex: none;
}

.preop-fieldset {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.preop-fieldset legend,
.preop-eagle strong {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-900);
  font-weight: 700;
}

.preop-eagle {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed var(--line);
  background: var(--mint-50);
}

.preop-calc {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--teal-900);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.preop-results {
  display: none;
  max-width: 1180px;
  margin: 28px auto 0;
}

.preop-results.show {
  display: block;
}

.preop-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.preop-results article {
  padding: 24px;
}

.preop-score {
  margin: 8px 0 12px;
  font-weight: 700;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.9rem;
  font-weight: 700;
}

.risk-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.risk-badge.low {
  background: #e7f3ec;
  color: #2f7d5d;
}

.risk-badge.mid {
  background: #faf1e0;
  color: #b8760f;
}

.risk-badge.high {
  background: #f8e9e8;
  color: #a83c3c;
}

.preop-synthesis {
  margin-top: 18px;
  background: var(--teal-900);
}

.preop-synthesis h3,
.preop-synthesis p,
.preop-synthesis strong {
  color: var(--white);
}

.preop-synthesis p {
  opacity: 0.82;
}

.preop-synthesis strong {
  display: block;
  margin-top: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.echo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(217, 238, 238, 0.58), rgba(251, 250, 247, 0)),
    var(--mint-50);
}

.echo-content {
  max-width: 720px;
}

.echo-points {
  display: grid;
  gap: 12px;
}

.echo-points span {
  padding: 18px 20px;
  border-left: 3px solid var(--teal-700);
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-900);
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--teal-900);
  color: var(--white);
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section p {
  max-width: 680px;
  margin-bottom: 0;
}

.contact-button {
  background: var(--white);
  color: var(--teal-900);
}

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

  .training-line {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    overflow-x: auto;
    padding-top: 4px;
    white-space: nowrap;
  }

  .hero,
  .profile-grid,
  .services-layout,
  .preop-form,
  .echo-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .doctor-portrait {
    min-height: 520px;
    border-radius: 0 0 0 78px;
  }

  .publication-preview {
    position: static;
    max-width: 560px;
    margin-inline: auto;
  }

  .cardio-summary {
    grid-template-columns: 1fr;
  }

  .preop-result-grid {
    grid-template-columns: 1fr;
  }

  .documents-modal {
    width: min(760px, calc(100vw - 20px));
  }

  .photo-diploma {
    border-width: 5px;
  }

  .diploma-one {
    left: 15.5%;
  }

  .diploma-five {
    left: 73%;
    width: 15.8%;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 18px;
  }

  .header-action {
    min-height: 40px;
    padding-inline: 16px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-logo {
    width: 54px;
    height: 66px;
  }

  h1 {
    font-size: clamp(2.7rem, 13vw, 4.5rem);
  }

  .specialty-line {
    line-height: 1.8;
  }

  .doctor-portrait {
    min-height: 460px;
  }

  .intro-strip {
    grid-template-columns: 1fr;
  }

  .service-item {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .contact-button,
  .primary-button {
    width: 100%;
  }

  .clinic-room {
    padding: 18px;
    overflow-x: auto;
  }

  .modal-close {
    top: 12px;
    right: 12px;
  }

  .room-header {
    margin-bottom: 14px;
  }

  .office-photo-wall {
    min-width: 680px;
  }

  .office-photo {
    max-width: none;
  }

  .photo-diploma {
    border-width: 4px;
  }
}

@media (max-width: 470px) {
  .brand span:last-child {
    display: none;
  }

  .doctor-portrait {
    min-height: 390px;
  }

  .doctor-portrait img {
    object-position: 80% 50%;
  }
}
