:root {
  --navy: #061d2f;
  --navy-soft: #0c2b43;
  --gold: #d7b967;
  --gold-deep: #a8893d;
  --linen: #f7f3eb;
  --surface: #ffffff;
  --ink: #17212b;
  --muted: #65707c;
  --line: rgba(6, 29, 47, 0.12);
  --shadow: 0 24px 70px rgba(6, 29, 47, 0.14);
  --max-width: 1160px;
  --font-body:
    "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 5vw, 62px);
  background: rgba(6, 29, 47, 0.92);
  border-bottom: 1px solid rgba(215, 185, 103, 0.18);
  backdrop-filter: blur(18px);
  transition:
    min-height 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(6, 29, 47, 0.98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(220px, 42vw);
}

.brand img {
  width: 100%;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
}

.main-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.header-action {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 12px 28px rgba(215, 185, 103, 0.2);
}

.header-action:hover,
.btn:hover,
.whatsapp-float:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: end;
  padding: 180px clamp(20px, 6vw, 80px) 90px;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -2;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero-media-offset {
  margin-top: 44px;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(6, 29, 47, 0.9) 0%,
      rgba(6, 29, 47, 0.7) 42%,
      rgba(6, 29, 47, 0.2) 100%
    ),
    linear-gradient(0deg, rgba(6, 29, 47, 0.9) 0%, rgba(6, 29, 47, 0.04) 48%);
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-deep);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 5.65rem;
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 3.55rem;
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary {
  color: var(--navy);
  background: var(--gold);
  box-shadow: 0 18px 36px rgba(215, 185, 103, 0.25);
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.section {
  padding: clamp(78px, 10vw, 130px) clamp(20px, 6vw, 80px);
}

.section-light {
  background: var(--linen);
}

.section-grid {
  width: min(var(--max-width), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  align-items: center;
  gap: clamp(40px, 7vw, 86px);
  margin: 0 auto;
}

.section-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.credential-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.credential-list span {
  position: relative;
  padding: 13px 16px 13px 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.96rem;
  font-weight: 700;
}

.credential-list span::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--gold);
}

.profile-panel {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.profile-panel div {
  padding: 24px;
  border-top: 4px solid var(--gold);
}

.profile-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.procedures {
  background: #fff;
}

.section-heading {
  width: min(820px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.procedure-grid {
  width: min(var(--max-width), 100%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0 auto;
}

.procedure-card {
  min-height: 264px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f0 100%);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.procedure-card:hover {
  border-color: rgba(215, 185, 103, 0.8);
  box-shadow: 0 22px 44px rgba(6, 29, 47, 0.11);
  transform: translateY(-6px);
}

.procedure-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  font-weight: 800;
}

.procedure-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.clinic-section {
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
}

.clinic-intro {
  width: min(var(--max-width), calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: start;
  gap: clamp(34px, 6vw, 76px);
  margin: 0 auto;
}

.clinic-details {
  display: grid;
  gap: 16px;
  padding-top: 10px;
}

.clinic-details div {
  padding: 22px 0 22px 22px;
  border-left: 3px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.clinic-details span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-deep);
  font-size: 0.88rem;
  font-weight: 800;
}

.clinic-details strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.45;
}

.carousel {
  width: min(1040px, calc(100% - 40px));
  margin: 48px auto 0;
}

.carousel-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(215, 185, 103, 0.22);
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 28px 80px rgba(6, 29, 47, 0.18);
}

.carousel-track {
  display: flex;
  transform: translateX(0);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  height: 500px;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.carousel-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgba(6, 29, 47, 0.58) 0%, rgba(6, 29, 47, 0.05) 48%),
    linear-gradient(90deg, rgba(6, 29, 47, 0.18), transparent 38%);
  pointer-events: none;
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 29, 47, 0.42);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  border-color: rgba(215, 185, 103, 0.72);
  background: rgba(6, 29, 47, 0.74);
  transform: translateY(-50%) scale(1.06);
}

.carousel-control span {
  display: block;
  margin-top: -3px;
  font-size: 2.1rem;
  line-height: 1;
}

.carousel-control.prev {
  left: 16px;
}

.carousel-control.next {
  right: 16px;
}

.carousel-meta {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(6, 29, 47, 0.58);
  backdrop-filter: blur(16px);
}

.carousel-meta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 800;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.carousel-dots button {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition:
    width 180ms ease,
    background 180ms ease;
}

.carousel-dots button.is-active {
  width: 34px;
  background: var(--gold);
}

.contact-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--linen) 100%);
}

.contact-card {
  width: min(var(--max-width), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 62px);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 29, 47, 0.98), rgba(12, 43, 67, 0.94)),
    var(--navy);
  box-shadow: var(--shadow);
}

.contact-card .eyebrow {
  color: var(--gold);
}

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

.contact-list {
  display: grid;
  gap: 14px;
  align-content: center;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  overflow-wrap: anywhere;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.contact-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(215, 185, 103, 0.12);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-list a > span:last-child {
  min-width: 0;
}

.contact-list a:hover {
  border-color: rgba(215, 185, 103, 0.76);
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 40px 20px 48px;
  color: rgba(255, 255, 255, 0.72);
  background: var(--navy);
  text-align: center;
}

.site-footer img {
  width: min(280px, 76vw);
  max-height: 140px;
  object-fit: contain;
}

.site-footer p {
  margin-bottom: 0;
}

.site-credit {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}

.site-credit a {
  color: var(--gold);
  font-weight: 800;
  transition: color 180ms ease;
}

.site-credit a:hover,
.site-credit a:focus-visible {
  color: #fff;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.34);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.whatsapp-float svg {
  width: 31px;
  height: 36px;
  color: #fff;
  fill: currentColor;
}

.whatsapp-float:hover {
  background: #20bd5a;
  box-shadow: 0 22px 48px rgba(37, 211, 102, 0.42);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

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

@media (max-width: 1040px) {
  h1 {
    font-size: 4.65rem;
  }

  h2 {
    font-size: 3rem;
  }

  .header-action {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    justify-content: flex-end;
  }

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

@media (max-width: 760px) {
  .site-header {
    min-height: 74px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    overflow: visible;
  }

  .site-header.is-scrolled {
    min-height: 68px;
  }

  .brand {
    flex: 1 1 auto;
    width: auto;
    max-width: min(198px, calc(100vw - 84px));
    min-width: 0;
  }

  .brand img {
    width: 100%;
    height: 50px;
    max-height: 50px;
    object-fit: contain;
  }

  .nav-toggle {
    display: grid;
    flex: 0 0 auto;
    justify-self: end;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid rgba(215, 185, 103, 0.28);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .nav-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 74px;
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 28px));
    display: grid;
    gap: 0;
    justify-items: end;
    padding: 12px 18px 22px 24px;
    background: rgba(6, 29, 47, 0.98);
    border-left: 1px solid rgba(215, 185, 103, 0.14);
    border-bottom: 1px solid rgba(215, 185, 103, 0.18);
    border-radius: 0 0 0 8px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

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

  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: right;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: 680px;
    align-items: end;
    padding: 142px 20px 72px;
  }

  .hero-media-offset {
    margin-top: 16px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(6, 29, 47, 0.9), rgba(6, 29, 47, 0.55)),
      linear-gradient(0deg, rgba(6, 29, 47, 0.92), rgba(6, 29, 47, 0.14));
  }

  .hero-actions {
    display: grid;
  }

  h1 {
    font-size: 3.6rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .section-grid,
  .clinic-intro,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .section-heading {
    text-align: left;
  }

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

  .carousel-slide {
    height: 430px;
  }

  .carousel-control {
    width: 40px;
    height: 40px;
  }

  .carousel-meta {
    display: grid;
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 12px;
    padding: 12px;
  }

  .carousel-dots {
    justify-content: flex-start;
  }

  .contact-card {
    padding: 30px 22px;
  }
}

@media (max-width: 460px) {
  .site-header {
    min-height: 68px;
    padding: 8px 12px;
  }

  .site-header.is-scrolled {
    min-height: 64px;
  }

  .brand {
    max-width: min(168px, calc(100vw - 76px));
  }

  .brand img {
    height: 44px;
    max-height: 44px;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
  }

  .main-nav {
    top: 68px;
    width: min(292px, calc(100vw - 20px));
    padding: 10px 16px 18px;
  }

  h1 {
    font-size: 2.95rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .carousel-slide {
    height: 330px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
  }
}

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