:root {
  --navy-950: #071a36;
  --navy-900: #0a2244;
  --navy-800: #12325b;
  --blue-200: #dce9ef;
  --blue-100: #edf4f7;
  --gold-600: #b98636;
  --gold-500: #c99a4f;
  --gold-100: #f7ead2;
  --white: #ffffff;
  --paper: #fbfaf7;
  --ink: #0d2442;
  --muted: #627086;
  --line: rgba(10, 34, 68, 0.14);
  --shadow: 0 28px 70px rgba(7, 26, 54, 0.16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body::before {
  content: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 82px;
  padding: 16px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  background: rgba(251, 250, 247, 0.84);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(10, 34, 68, 0.09);
  box-shadow: 0 12px 36px rgba(7, 26, 54, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--gold-500);
  border: 1px solid rgba(185, 134, 54, 0.38);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  color: var(--navy-950);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--gold-600);
  font-size: 12px;
  line-height: 1.2;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.7vw, 36px);
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding-block: 8px;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--gold-500);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 6px auto;
  background: var(--navy-950);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.74fr);
  gap: clamp(38px, 6vw, 94px);
  min-height: min(780px, calc(100vh - 82px));
  padding: clamp(48px, 7vw, 74px) clamp(22px, 6vw, 88px) clamp(26px, 4vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 26, 54, 0.98) 0%, rgba(7, 26, 54, 0.9) 46%, rgba(7, 26, 54, 0.54) 100%),
    url("./assets/alivio-bg-split-dark-light.png") center center / cover no-repeat,
    var(--navy-950);
}

.hero::after {
  position: absolute;
  right: -10vw;
  bottom: -26vw;
  z-index: 0;
  width: 58vw;
  height: 58vw;
  min-width: 620px;
  min-height: 620px;
  background: radial-gradient(circle, rgba(220, 233, 239, 0.56), rgba(220, 233, 239, 0) 66%);
  content: "";
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 700px;
}

.doctor-title {
  margin: 0 0 8px;
  color: var(--gold-500);
  font-family: var(--serif);
  font-size: clamp(30px, 4.2vw, 60px);
  line-height: 1;
}

.hero h1,
.section-heading h2,
.about-copy h2,
.alivio-band h2,
.contact h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
}

.hero h1 {
  color: var(--white);
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(56px, 7.5vw, 108px);
  letter-spacing: 0;
}

.hero h1::after,
.section-heading h2::after {
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 22px;
  background: var(--gold-500);
  content: "";
}

.hero-lead {
  max-width: 550px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.28;
}

.hero-text {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg,
.social-row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 18px 42px rgba(7, 26, 54, 0.18);
}

.hero .button-primary {
  color: var(--navy-950);
  background: linear-gradient(135deg, #e8c27a, var(--gold-500));
  box-shadow: 0 18px 46px rgba(201, 154, 79, 0.24);
}

.button-primary:hover {
  background: var(--navy-800);
}

.button-secondary {
  color: var(--navy-950);
  border-color: rgba(10, 34, 68, 0.22);
  background: rgba(255, 255, 255, 0.82);
}

.hero .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.button-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.social-row a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--navy-950);
  border: 1px solid rgba(10, 34, 68, 0.12);
  background: rgba(255, 255, 255, 0.78);
}

.hero .social-row a {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.hero-media {
  align-self: end;
  max-width: 580px;
  margin-inline: auto 0;
}

.hero-media img {
  width: 100%;
  max-height: calc(100vh - 132px);
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.section {
  padding: clamp(74px, 9vw, 124px) clamp(22px, 6vw, 88px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading span,
.contact-copy > span {
  display: block;
  margin-bottom: 10px;
  color: var(--gold-600);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2 {
  font-size: clamp(34px, 4.2vw, 58px);
}

.section-heading h2::after {
  margin-inline: auto;
}

.section-heading.align-left h2::after {
  margin-inline: 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.areas-grid article {
  min-height: 290px;
  padding: 38px 30px;
  border-right: 1px solid var(--line);
}

.areas-grid article:nth-child(3n) {
  border-right: 0;
}

.areas-grid article:nth-child(-n + 3) {
  border-bottom: 1px solid var(--line);
}

.area-icon {
  color: var(--gold-500);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.areas-grid h3,
.feature-article h3,
.link-list strong {
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.16;
}

.areas-grid p,
.about-copy p,
.credentials,
.feature-article p,
.link-list span,
.contact-copy p {
  color: var(--muted);
  font-size: 16px;
}

.about {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
  background: linear-gradient(180deg, var(--white), rgba(255, 255, 255, 0.88));
}

.about-image img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow);
}

.about-copy {
  max-width: 690px;
}

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

.credentials li {
  position: relative;
  padding-left: 24px;
}

.credentials li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  content: "";
}

.alivio-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(48px, 7vw, 86px) clamp(22px, 6vw, 88px);
  min-height: clamp(360px, 44vw, 520px);
  color: var(--white);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 26, 54, 0.94) 0%, rgba(7, 26, 54, 0.76) 44%, rgba(7, 26, 54, 0.2) 100%),
    url("./assets/dr-victor-capa-horizontal.png") center center / cover no-repeat;
}

.alivio-band::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 26, 54, 0.24), rgba(7, 26, 54, 0.42)),
    radial-gradient(circle at 12% 18%, rgba(201, 154, 79, 0.22), transparent 34%);
  content: "";
}

.alivio-band > * {
  position: relative;
  z-index: 1;
}

.alivio-band p {
  margin: 0 0 8px;
  color: var(--gold-500);
  font-family: var(--serif);
  font-size: 28px;
}

.alivio-band h2 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(32px, 4vw, 54px);
}

.alivio-band .button-light {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(7, 26, 54, 0.22);
  backdrop-filter: blur(10px);
}

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

.content-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(280px, 0.72fr);
  gap: clamp(32px, 5vw, 70px);
  max-width: 1180px;
  margin: 0 auto;
}

.feature-article {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 28px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.feature-article img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.feature-article h3 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.5vw, 46px);
}

.feature-article p {
  margin: 0;
}

.link-list {
  display: grid;
  align-content: center;
  border-top: 1px solid var(--line);
}

.link-list a {
  display: grid;
  gap: 8px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.link-list a:hover strong {
  color: var(--gold-600);
}

.link-list strong {
  font-size: 24px;
}

.contact {
  padding: clamp(60px, 8vw, 92px) clamp(22px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96), rgba(251, 250, 247, 0.82)),
    url("./assets/alivio-bg-light.png") center bottom / cover no-repeat;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(340px, 0.94fr);
  gap: 0;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact h2 {
  font-size: clamp(36px, 4.4vw, 62px);
}

.contact-copy {
  max-width: 640px;
  padding: clamp(34px, 5vw, 58px) clamp(26px, 5vw, 58px) clamp(34px, 5vw, 58px) 0;
}

.contact-copy p {
  max-width: 540px;
  margin: 18px 0 0;
}

.clinic-details {
  display: grid;
  gap: 6px;
  max-width: 560px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(10, 34, 68, 0.14);
  color: var(--muted);
  font-size: 15px;
}

.clinic-details strong {
  color: var(--navy-950);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.contact-panel {
  display: grid;
  gap: 18px;
  align-content: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 58px) 0 clamp(34px, 5vw, 58px) clamp(26px, 5vw, 58px);
  border-left: 1px solid var(--line);
}

.contact-panel .contact-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.contact-panel iframe {
  width: 100%;
  min-height: 390px;
  border: 0;
  box-shadow: var(--shadow);
  filter: saturate(0.92) contrast(0.96);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(22px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-950);
}

.footer-brand strong {
  color: var(--white);
}

.footer-brand small {
  color: var(--gold-500);
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    width: min(520px, 100%);
    margin-inline: 0;
  }

  .hero-media img {
    max-height: none;
  }

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

  .areas-grid article,
  .areas-grid article:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .areas-grid article:nth-child(2n) {
    border-right: 0;
  }

  .areas-grid article:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .about,
  .content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
    padding-inline: 18px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 16px 18px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(251, 250, 247, 0.96);
    box-shadow: 0 24px 42px rgba(7, 26, 54, 0.12);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

  .main-nav.is-open {
    transform: translateY(0);
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(10, 34, 68, 0.08);
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .doctor-title {
    font-size: 32px;
  }

  .hero-actions,
  .contact-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

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

  .areas-grid article,
  .areas-grid article:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .areas-grid article:last-child {
    border-bottom: 0;
  }

  .about-image {
    order: 2;
  }

  .feature-article {
    grid-template-columns: 1fr;
  }

  .alivio-band,
  .contact,
  .site-footer {
    display: grid;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    padding: 34px 0;
  }

  .contact-panel {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .contact-panel iframe {
    min-height: 320px;
  }
}

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