:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --soft: #f7f1e4;
  --muted: #eef4fa;
  --ink: #24231f;
  --text: #4b4942;
  --blue: #36558f;
  --blue-soft: #6fa8dc;
  --blue-pale: #dceaf6;
  --olive: #36558f;
  --olive-dark: #263f72;
  --gold: #bf9740;
  --gold-soft: #e8d7ad;
  --rose: #bf9740;
  --line: #ded8cc;
  --shadow: 0 22px 60px rgba(35, 58, 96, 0.13);
  --max: 1160px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(191, 151, 64, 0.62);
  outline-offset: 4px;
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.55rem, 7vw, 5.15rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
}

h3 {
  font-size: 1.35rem;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

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

.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;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(191, 151, 64, 0.26);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 40px;
  padding: 0.28rem;
  border-radius: var(--radius);
  background: var(--blue-soft);
}

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

.brand-copy {
  display: grid;
}

.brand-name {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.brand-subline {
  color: var(--olive);
  font-size: 0.82rem;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
  color: #38362f;
}

.site-nav a:hover {
  color: var(--olive);
}

.nav-toggle {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.74rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button-small {
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  font-size: 0.92rem;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: var(--olive-dark);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
}

.button-secondary:hover {
  border-color: var(--gold);
}

.section,
.section-soft {
  padding: clamp(4.5rem, 9vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2));
}

.section-soft {
  background:
    radial-gradient(circle at 15% 8%, rgba(191, 151, 64, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(111, 168, 220, 0.16), transparent 24rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--soft) 100%);
}

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

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-text {
  max-width: 690px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 460px;
}

.hero-media > img:first-child {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-logo {
  position: absolute;
  right: 50%;
  bottom: -4.4rem;
  width: min(52%, 230px);
  transform: translateX(50%);
  opacity: 0.34;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-body {
  font-size: 1.08rem;
}

.content-narrow {
  max-width: 820px;
}

.feature-grid {
  width: min(calc(100% - 32px), var(--max));
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-panel {
  min-height: 100%;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(54, 85, 143, 0.16);
  border-radius: var(--radius);
}

.info-panel h3 {
  margin-bottom: 0.7rem;
}

.condition-list {
  width: min(calc(100% - 32px), var(--max));
  margin: 2.4rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
}

.condition-list li {
  padding: 1rem 1.1rem;
  background: white;
  border: 1px solid rgba(54, 85, 143, 0.16);
  border-radius: var(--radius);
  color: var(--ink);
}

.steps {
  width: min(calc(100% - 32px), var(--max));
  margin: 2.8rem auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  padding: 1.25rem 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(54, 85, 143, 0.16);
  border-radius: var(--radius);
}

.steps span {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.82rem;
}

.doctor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.32fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

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

.facts div {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 750;
}

.facts dd {
  margin: 0;
}

.doctor-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 1.3rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(111, 168, 220, 0.78), var(--blue));
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doctor-small-photo {
  width: min(100%, 172px);
  aspect-ratio: 1;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  position: relative;
  z-index: 2;
}

.doctor-logo {
  position: absolute;
  right: -1.2rem;
  top: 0.4rem;
  width: 46%;
  opacity: 0.26;
}

.cta {
  text-align: center;
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 1.45rem auto 1.3rem;
}

.contact-details a,
.contact-details span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.48rem 0.72rem;
  border: 1px solid rgba(54, 85, 143, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-details a {
  font-weight: 750;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.site-footer {
  background: #223a67;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem max(1rem, calc((100vw - var(--max)) / 2));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.footer-logo {
  width: 74px;
  height: auto;
  margin-bottom: 0.8rem;
}

.site-footer strong {
  color: white;
}

.site-footer a {
  color: white;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.92rem;
}

.legal-page {
  min-height: 58vh;
}

.legal-page h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.legal-content {
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 2rem 0 0.7rem;
  font-size: 1.45rem;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
  }

  .nav-toggle-line,
  .nav-toggle-line::before,
  .nav-toggle-line::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    content: "";
  }

  .nav-toggle-line {
    position: relative;
  }

  .nav-toggle-line::before,
  .nav-toggle-line::after {
    position: absolute;
    left: 0;
  }

  .nav-toggle-line::before {
    top: -6px;
  }

  .nav-toggle-line::after {
    top: 6px;
  }

  .site-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0.7rem 1rem 1rem;
    background: rgba(251, 250, 247, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(58, 53, 42, 0.12);
  }

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

  .site-nav a {
    padding: 0.95rem 0.4rem;
    border-bottom: 1px solid rgba(222, 216, 204, 0.8);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .legal-nav {
    position: static;
    display: flex;
    flex-direction: row;
    width: auto;
    padding: 0;
    box-shadow: none;
    border: 0;
    background: transparent;
  }

  .legal-nav a {
    border: 0;
    padding: 0.4rem;
  }

  .header-inner > .button-small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

.hero-grid,
.section-grid,
.doctor {
  grid-template-columns: 1fr;
}

  .hero-media {
    min-height: 360px;
  }

  .feature-grid,
  .condition-list,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .facts {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .brand-subline {
    font-size: 0.76rem;
  }

  .brand-mark {
    width: 42px;
    height: 36px;
  }

  .section,
  .section-soft {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-actions,
  .cta-actions,
  .button {
    width: 100%;
  }

  .contact-details {
    display: grid;
    justify-items: stretch;
  }

  .contact-details a,
  .contact-details span {
    justify-content: center;
    text-align: center;
  }

  .feature-grid,
  .condition-list,
  .steps,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 300px;
  }

.hero-logo {
  right: 50%;
  bottom: -3.2rem;
}
}
