:root {
  --navy: #1B2A4A;
  --navy-2: #22345A;
  --gold: #B8935F;
  --gold-soft: #D8BE93;
  --ivory: #F7F4EE;
  --ivory-2: #EEE8DD;
  --ink: #4A4A47;
  --ink-strong: #22252B;
  --sage: #8CA192;
  --line: rgba(27, 42, 74, 0.14);
  --line-dark: rgba(247, 244, 238, 0.18);

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.6vw, 5.1rem);

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  font-optical-sizing: auto;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
p { margin: 0 0 1em; max-width: 65ch; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap.narrow { max-width: 46rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { background: var(--navy); color: var(--ivory); position: relative; z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { color: var(--ivory); text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; }
.brand-sub { font-size: var(--step--1); color: var(--gold-soft); }
.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ivory); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-soft); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); }
.lang { border: 1px solid var(--line-dark); padding: 0.3rem 0.75rem; border-radius: 999px; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block; background: none; color: var(--ivory); border: 1px solid var(--line-dark);
    border-radius: 999px; padding: 0.45rem 1rem; font: inherit; font-size: 0.95rem; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--navy); flex-direction: column; align-items: flex-start;
    padding: 0.5rem var(--gutter) 1.5rem; border-top: 1px solid var(--line-dark);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line-dark); font-size: 1.05rem; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.35rem; border-radius: 999px; font-weight: 500;
  text-decoration: none; font-size: 1rem; line-height: 1.2; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--ivory); }
.on-dark .btn-primary { background: var(--gold); color: var(--navy); }
.on-dark .btn-primary:hover { background: var(--gold-soft); }
.on-dark .btn-ghost { border-color: var(--line-dark); color: var(--ivory); }
.on-dark .btn-ghost:hover { background: var(--ivory); color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: var(--ivory); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 7vw, 5.5rem); }
.hero h1 { color: var(--ivory); max-width: 14ch; }
.hero .lead { color: rgba(247, 244, 238, 0.82); font-size: var(--step-1); line-height: 1.5; max-width: 34em; }
.kicker { color: var(--gold-soft); margin-bottom: 1.25rem; }
.contour { width: 100%; height: auto; }
.contour path { fill: none; stroke: var(--gold); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-contour { max-height: 34rem; justify-self: center; }
.hero-contour path { stroke-dasharray: 800; stroke-dashoffset: 800; animation: draw 2.6s cubic-bezier(.45,.05,.3,1) .2s forwards; }
.hero-contour path + path { animation-delay: .45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-contour path { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; position: relative; }
  .hero-contour { position: absolute; right: -3rem; top: 1rem; width: 60%; opacity: 0.35; z-index: 0; }
  .hero-copy { position: relative; z-index: 1; }
}

/* Credentials */
.creds { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin: 0; font-size: var(--step--1); }
.creds div { display: flex; flex-direction: column; }
.creds dt { opacity: 0.75; }
.creds dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 500; }
.hero .creds { border-top: 1px solid var(--line-dark); padding-top: 1.25rem; margin-top: 0.5rem; }

/* Sections */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--ivory-2); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.section-head p { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: start; }
@media (max-width: 760px) { .section-head, .split { grid-template-columns: 1fr; } }
.text-link { color: var(--navy); font-weight: 500; }

/* Procedure list */
.proc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.proc-list li { border-bottom: 1px solid var(--line); }
.proc-list a {
  display: grid; grid-template-columns: minmax(12rem, 1.1fr) 2fr auto; gap: 0.35rem 2rem; align-items: baseline;
  padding: 1.35rem 0; text-decoration: none; color: var(--ink);
}
.proc-name { font-family: var(--serif); font-size: var(--step-2); color: var(--navy); line-height: 1.15; }
.proc-group { font-size: var(--step--1); color: var(--ink); opacity: 0.8; white-space: nowrap; }
.proc-list a:hover .proc-name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
@media (max-width: 760px) {
  .proc-list a { grid-template-columns: 1fr; }
  .proc-group { order: -1; }
}

/* Steps: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 0 0 1rem; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--serif); font-size: var(--step-2); color: var(--gold); line-height: 1; }
.steps strong { display: block; color: var(--navy); font-weight: 600; margin-bottom: 0.2rem; }
.steps.compact li { padding: 0.9rem 0; align-items: center; }
.steps.compact li::before { font-size: var(--step-1); }

/* Hospitals */
.hospitals { list-style: none; margin: 0; padding: 0; }
.hospitals li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.hospitals .city { font-family: var(--serif); color: var(--navy); font-size: var(--step-1); line-height: 1.3; }
.hospitals .pending, .muted { color: var(--ink); opacity: 0.7; font-style: italic; }

/* Page heads */
.page-head { background: var(--navy); color: var(--ivory); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.page-head h1 { color: var(--ivory); font-size: var(--step-4); max-width: 18ch; }
.page-head .lead { color: rgba(247, 244, 238, 0.82); font-size: var(--step-1); line-height: 1.5; }
.crumb { font-size: var(--step--1); color: var(--gold-soft); }
.crumb a { color: var(--gold-soft); }

/* Procedure detail */
.proc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 4rem; }
.proc-grid h2 { font-size: var(--step-2); }
@media (max-width: 760px) { .proc-grid { grid-template-columns: 1fr; gap: 2rem; } }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.6rem; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 0.1rem; top: 1.1rem; width: 0.7rem; height: 1px; background: var(--gold); }
.ticks.minus li { color: var(--ink); }
.ticks.minus li::before { background: var(--ink); opacity: 0.5; }
.fine { font-size: var(--step--1); opacity: 0.8; margin-top: 3rem; max-width: 60ch; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem 5rem; align-items: start; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { margin: 0; background: var(--navy); aspect-ratio: 4 / 5; display: grid; place-items: center; position: relative; border-radius: 2px; }
.portrait .contour { width: 55%; opacity: 0.8; }
.portrait figcaption { position: absolute; bottom: 1rem; left: 1rem; color: var(--gold-soft); font-size: var(--step--1); }
.about-body h2 { font-size: var(--step-2); margin-top: 2.5rem; }
.about-body .creds dt { opacity: 0.75; }
.lead-dark { font-size: var(--step-1); line-height: 1.55; color: var(--ink-strong); }
blockquote { margin: 0; font-family: var(--serif); font-size: var(--step-2); color: var(--navy); line-height: 1.3; }

/* Empty states, blog */
.empty { border: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 2.5rem); background: #fff; border-radius: 2px; }
.empty .btn { margin-top: 0.5rem; }
.soon-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.soon-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.soon-list li span:first-child { font-family: var(--serif); font-size: var(--step-1); color: var(--navy); line-height: 1.3; }
.tag { font-size: var(--step--1); color: var(--ink); white-space: nowrap; }

/* Contact facts */
.facts { margin: 0; }
.facts > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); opacity: 0.75; }
.facts dd { margin: 0.2rem 0 0; font-size: var(--step-1); }
.facts .hospitals li { grid-template-columns: 7.5rem 1fr; padding: 0.5rem 0; font-size: 1rem; }
.facts .hospitals li:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(247, 244, 238, 0.8); padding-block: 3rem 6rem; font-size: 0.95rem; }
.foot { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 2rem; }
.foot p { margin: 0 0 0.3rem; }
.foot-name { font-family: var(--serif); color: var(--ivory); font-size: 1.2rem; }
.foot-links { display: flex; flex-direction: column; gap: 0.45rem; }
.site-footer a { color: var(--ivory); }
.site-footer .creds { flex-direction: column; gap: 0.6rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Floating WhatsApp on mobile */
.wa-float {
  display: none; position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 30;
  background: var(--gold); color: var(--navy); text-decoration: none; font-weight: 600;
  padding: 0.9rem 1rem; border-radius: 999px; justify-content: center; align-items: center; gap: 0.5rem;
  box-shadow: 0 6px 24px rgba(27, 42, 74, 0.28);
}
@media (max-width: 760px) { .wa-float { display: flex; } }
.wa-float { transition: transform .25s ease, opacity .25s ease; }
.wa-float.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
