/* ivanzapantamd.com shared styles. Radius rule: cards 16px, controls 8px, chips pill. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:root {
  --navy: #0D2B45;
  --navy-deep: #0a2238;
  --teal: #0E7C7B;
  --teal-dark: #0b6565;
  --teal-light: #0b6565;
  --teal-ink: #0b6a69; /* teal for text on light backgrounds, 5.6:1+ */
  --gold: #C9A84C;
  --gold-ink: #7a6020;
  --cream: #F8F5F0;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --ink: #14202B;
  --muted: #5C6776;
  --line: #E5E2DA;
  --line-soft: #EFECE5;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--font-sans);
  color: var(--ink); background: var(--white);
  line-height: 1.6; font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.18; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); margin-bottom: 14px; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; line-height: 1.72; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-ink); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; flex-shrink: 0; }
.eyebrow-white { color: rgba(255,255,255,0.78); }
.eyebrow-gold { color: var(--gold); }

.section-head { margin-bottom: 44px; max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- ICONS (Phosphor, inline) ---------- */
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.ic-md { width: 24px; height: 24px; flex-shrink: 0; color: var(--teal); }
.ic-lg { width: 34px; height: 34px; flex-shrink: 0; color: var(--teal); }

/* ---------- BUTTONS ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: transform 0.15s, background 0.15s, border-color 0.35s, color 0.35s;
  border: 1.5px solid transparent; font-family: inherit; cursor: pointer;
}
/* Hover: a fill floods the button from the left (same idea as the header's Book a Consult). */
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--flood, var(--navy)); transform: scaleX(0); transform-origin: right center;
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left center; }
.btn .ic { transition: transform 0.35s var(--ease-out); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: var(--white); --flood: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,0.38); color: var(--white); background: rgba(255,255,255,0.06); --flood: var(--white); }
.btn-outline:hover, .btn-outline:focus-visible { border-color: var(--white); color: var(--navy); }
.btn-line { border-color: rgba(13,43,69,0.22); color: var(--navy); background: transparent; --flood: var(--navy); }
.btn-line:hover, .btn-line:focus-visible { border-color: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--navy); --flood: var(--navy); }
.btn-gold:hover, .btn-gold:focus-visible { color: var(--gold); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-full { width: 100%; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px;
  color: var(--teal-ink); font-weight: 600; font-size: 0.92rem; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
  transition: background-size 0.45s var(--ease-out);
}
.btn-ghost:hover, .btn-ghost:focus-visible { background-size: 100% 1.5px; }
.btn-ghost .ic { transition: transform 0.35s var(--ease-out); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- NAV (floating pills) ---------- */
.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; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); color: var(--navy); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 14px 20px; pointer-events: none; view-transition-name: site-header; }
/* Once the hero has scrolled away, one shared cream backplate sits behind all the pills. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(248,245,240,0.85); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(13,43,69,0.07); box-shadow: 0 6px 24px rgba(13,43,69,0.06);
  opacity: 0; transition: opacity 0.3s;
}
.site-header.scrolled::before { opacity: 1; pointer-events: auto; }
.site-nav { position: relative; max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
.site-nav > * { pointer-events: auto; }
.nav-brand, .nav-links, .nav-toggle {
  background: rgba(255,255,255,0.94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(13,43,69,0.04), 0 8px 24px rgba(13,43,69,0.08); border: 1px solid rgba(13,43,69,0.06);
}
.nav-brand { transition: transform 0.35s var(--ease-out), box-shadow 0.35s; white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 8px; border-radius: 14px; text-decoration: none; color: var(--navy); font-family: var(--font-serif); font-weight: 700; font-size: 1.02rem; }
.nav-mark { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
.nav-mark img { width: 36px; height: 36px; transition: transform 0.6s var(--ease-out); }
.nav-name span { color: var(--teal); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; }
.nav-links a { display: block; padding: 9px 15px; border-radius: 999px; color: var(--navy); font-size: 0.86rem; font-weight: 500; text-decoration: none; transition: background 0.2s, color 0.2s; }
.nav-links a:hover { background: var(--cream); }
.site-header.scrolled .nav-links a:hover { background: rgba(13,43,69,0.06); }
.nav-links a[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav-links-cta { display: none; }
.site-header .nav-quick { display: none; gap: 6px; opacity: 0; transform: translateY(-140%); pointer-events: none; transition: transform 0.55s var(--ease-out), opacity 0.35s; }
.nav-quick a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(13,43,69,0.12); }
.nav-quick-primary { background: var(--teal); color: var(--white); }
.nav-quick-secondary { background: #F3E7BF; color: var(--navy); }
.nav-quick .ic { width: 18px; height: 18px; }
.site-header.scrolled .nav-quick { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1260px) {
  .site-header .nav-quick { display: flex; position: absolute; top: 0; right: 196px; }
}
.nav-cta { white-space: nowrap; flex-shrink: 0; margin-left: auto; display: inline-flex; align-items: center; gap: 12px; padding: 5px 5px 5px 20px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 0.88rem; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(13,43,69,0.18); }
.nav-cta-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: transform 0.35s var(--ease-out); }
.nav-cta-ic .ic { width: 18px; height: 18px; }
.nav-cta:hover .nav-cta-ic, .nav-cta:focus-visible .nav-cta-ic { transform: rotate(45deg); }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .ic-close { display: none; }
.nav-toggle[aria-expanded="true"] .ic-open { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
/* footer brand keeps the old logo style */
.nav-logo { color: var(--white); font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 36px; width: 36px; }
.nav-logo .nav-name span { color: var(--gold); }

/* ---------- PAGE HERO ---------- */
.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 136px 0 84px; min-height: 460px; display: flex; align-items: center;
}
.page-hero.compact { min-height: 0; padding: 128px 0 64px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform-origin: 70% 40%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(108deg, rgba(10,34,56,0.97) 0%, rgba(10,34,56,0.9) 42%, rgba(10,34,56,0.62) 72%, rgba(10,34,56,0.38) 100%);
}
.hero-ink-dark { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-aurora::before, .hero-aurora::after { content: ""; position: absolute; border-radius: 50%; will-change: transform; }
.hero-aurora::before {
  width: 70vmax; height: 70vmax; right: -20vmax; top: -25vmax;
  background: radial-gradient(circle, rgba(18,160,158,0.32) 0%, rgba(18,160,158,0) 62%);
}
.hero-aurora::after {
  width: 55vmax; height: 55vmax; right: 5vmax; bottom: -30vmax;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, rgba(201,168,76,0) 60%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 {
  color: var(--white); font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.12; margin-bottom: 18px; padding-bottom: 3px;
}
.page-hero h1 em { color: var(--gold); font-style: italic; }
.page-hero-sub { color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.72; max-width: 620px; margin-bottom: 0; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero .meta { color: rgba(255,255,255,0.62); font-size: 0.9rem; margin: 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; list-style: none; }
.hero-facts li {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.9); font-size: 0.85rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
}
.hero-facts .ic { color: var(--gold); }

.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--line); font-size: 0.82rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #a7aab0; }
.breadcrumb a { color: var(--teal-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- SHARED BLOCKS ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(13,43,69,0.09); border-color: rgba(14,124,123,0.4); }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: 0.93rem; line-height: 1.55; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66,77.66l-128,128a8,8,0,0,1-11.32,0l-56-56a8,8,0,0,1,11.32-11.32L96,188.69,218.34,66.34a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.on-dark .checklist li { color: rgba(255,255,255,0.86); }
.on-dark .checklist li::before { background: var(--gold); }

.callout {
  background: rgba(14,124,123,0.06); border: 1px solid rgba(14,124,123,0.18);
  border-radius: 16px; padding: 22px 24px; margin: 26px 0;
}
.callout-label { display: block; font-size: 1rem; font-weight: 700; color: var(--teal-ink); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout.gold { background: rgba(201,168,76,0.09); border-color: rgba(201,168,76,0.32); }
.callout.gold .callout-label { color: var(--gold-ink); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--navy); }

.prose { font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); margin-top: 2em; margin-bottom: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--teal-ink); text-underline-offset: 3px; }
.prose strong { color: var(--navy); }

/* FAQ (native details) */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal);
  transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details > div { padding: 0 0 22px; color: var(--ink); line-height: 1.72; max-width: 72ch; }

/* Credentials strip */
.creds-bar { background: var(--cream); border-bottom: 1px solid var(--line); }
.creds-bar-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.cred-item { padding: 22px 24px; border-right: 1px solid var(--line); }
.cred-item:last-child { border-right: none; }
.cred-item strong { display: block; color: var(--navy); font-size: 0.84rem; font-weight: 700; }
.cred-item span { color: var(--muted); font-size: 0.78rem; line-height: 1.45; display: block; }

/* Hospital name list */
.hosp-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hosp-list li, .hosp-list a {
  display: flex; align-items: center; min-height: 52px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 18px; font-size: 0.88rem; color: var(--navy); font-weight: 500; text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.hosp-list a:hover { border-color: rgba(14,124,123,0.45); background: rgba(14,124,123,0.04); }
.hosp-list a { justify-content: space-between; gap: 10px; }
.hosp-list a small { color: var(--muted); font-size: 0.78rem; font-weight: 400; }

/* Numbered process */
.process { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.process li { border-top: 2px solid var(--navy); padding-top: 22px; }
.process-num { display: block; font-family: var(--font-serif); font-size: 2.6rem; line-height: 1; color: var(--teal); margin-bottom: 14px; }
.process h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: var(--white); max-width: 22ch; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,0.74); font-size: 1.05rem; max-width: 56ch; margin: 0 auto 28px; }
.cta-band p a { color: var(--gold); }
.cta-band .btn-row { justify-content: center; }
.cta-band .hero-aurora { opacity: 0.7; }

/* ---------- FORMS ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.02em; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 0.95rem; color: var(--ink); background: var(--white); font-family: inherit; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,124,123,0.14); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit {
  width: 100%; background: var(--teal); color: var(--white); padding: 14px; border: 0; border-radius: 8px;
  font-size: 0.98rem; font-weight: 700; font-family: inherit; cursor: pointer; margin-top: 6px; transition: background 0.15s;
}
.btn-submit:hover { background: var(--teal-dark); }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.55; }
.form-note a { color: var(--teal-ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- FOOTER ---------- */
footer.site-footer { background: var(--navy); color: rgba(255,255,255,0.68); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 32px; }
.footer-brand p { font-size: 0.86rem; line-height: 1.72; max-width: 300px; margin-top: 14px; }
.footer-brand .bir-seal { margin-top: 16px; opacity: 0.92; height: auto; }
.footer-seal { display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
.footer-seal img { width: 86px; height: auto; opacity: 0.92; }
.footer-col .footer-h { color: var(--white); font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { display: inline-block; padding: 4px 0; margin: -4px 0; color: rgba(255,255,255,0.7); font-size: 0.86rem; text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--gold); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
}
.footer-legal a { display: inline-block; padding: 5px 0; margin: -5px 0 -5px 14px; color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-legal a:hover { color: var(--gold); }

.float-contact {
  position: fixed; bottom: 20px; right: 20px; z-index: 60; view-transition-name: float-contact;
  background: var(--navy); color: var(--white); border: 1px solid rgba(255,255,255,0.14);
  height: 48px; padding: 0 18px 0 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 24px rgba(13,43,69,0.3); transition: transform 0.2s, background 0.2s;
}
.float-contact svg { width: 22px; height: 22px; color: var(--gold); }
.float-contact:hover { background: var(--teal); }

/* NowServing embed button alignment */
.smd-booking-embed-btn { line-height: 1.2 !important; box-shadow: inset 0 0 0 0 var(--gold); transition: box-shadow 0.5s var(--ease-out), color 0.3s !important; }
.smd-booking-embed-btn:hover, .smd-booking-embed-btn:focus-visible { box-shadow: inset 24em 0 0 0 var(--gold); color: var(--navy) !important; }
.smd-booking-embed-btn img { height: 1.2em !important; width: auto !important; max-height: 1.2em !important; }

/* ---------- MOTION ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: hero-drift 32s ease-in-out infinite alternate; }
  .hero-aurora::before { animation: aurora-a 19s ease-in-out infinite alternate; }
  .hero-aurora::after { animation: aurora-b 23s ease-in-out infinite alternate; }
  .page-hero-inner > *, .hero-content > * { opacity: 0; animation: rise 0.9s var(--ease-out) forwards; }
  .page-hero-inner > :nth-child(2), .hero-content > :nth-child(2) { animation-delay: 0.12s; }
  .page-hero-inner > :nth-child(3), .hero-content > :nth-child(3) { animation-delay: 0.24s; }
  .page-hero-inner > :nth-child(n+4), .hero-content > :nth-child(n+4) { animation-delay: 0.36s; }
  .btn:hover .ic, .btn:focus-visible .ic, .btn-ghost:hover .ic, .btn-ghost:focus-visible .ic { transform: translateX(3px); }
  .nav-brand:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(13,43,69,0.04), 0 12px 28px rgba(13,43,69,0.14); }
  .nav-brand:hover .nav-mark img { transform: rotate(-14deg) scale(1.04); }
  .float-contact:hover { transform: translateY(-2px); }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
/* Page transitions: the header stays put while the content crossfades. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.22s ease both; }
  ::view-transition-new(root) { animation: vt-in 0.38s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes hero-drift { from { transform: scale(1.04) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-2%,-1.5%,0); } }
@keyframes aurora-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-14vmax,10vmax,0) scale(1.15); } }
@keyframes aurora-b { from { transform: translate3d(0,0,0) scale(1.1); } to { transform: translate3d(-18vmax,-12vmax,0) scale(0.9); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Word-by-word blur reveal for headings */
@media (prefers-reduced-motion: no-preference) {
  .words-ready .words .w { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(0.18em); transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms + 120ms); }
  .words-ready .words.words-in .w { opacity: 1; filter: none; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links-wrap { position: absolute; top: calc(100% + 10px); left: 0; right: 0; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; border-radius: 18px; padding: 8px; }
  .nav-links.open { display: flex; animation: menu-in 0.35s var(--ease-out); }
  .nav-links a { padding: 13px 16px; font-size: 1rem; border-radius: 12px; }
  .nav-links-cta { display: block; margin-top: 4px; }
  .nav-links-cta a { background: var(--teal); color: var(--white); text-align: center; font-weight: 600; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .creds-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .cred-item:nth-child(2) { border-right: none; }
  .cred-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hosp-list { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .page-hero, .page-hero.compact { min-height: 0; padding: 116px 0 56px; }
  .site-header { padding: 10px 12px; }
  .nav-cta-label { display: none; }
  .nav-cta { padding: 5px; }
  .page-hero h1 { font-size: 1.85rem; }
  .page-hero-sub { font-size: 1rem; }
  .page-hero .btn-row .btn { flex: 1 1 100%; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col ul { gap: 0; }
  .footer-col a { padding: 11px 0; margin: 0; }
  .footer-legal a { padding: 11px 0; margin: -11px 0 -11px 14px; }
  /* Viber: icon-only circle, and room at the end of the page so it never covers the copyright. */
  .float-contact { width: 52px; height: 52px; padding: 0; justify-content: center; bottom: 16px; right: 16px; }
  .float-contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .float-contact svg { width: 24px; height: 24px; }
  footer.site-footer { padding-bottom: calc(28px + 52px + 16px); }
  .creds-bar-inner { grid-template-columns: 1fr; }
  .cred-item { border-right: none; border-top: 1px solid var(--line); }
  .cred-item:first-child { border-top: none; }
  .hosp-list { grid-template-columns: 1fr; }
}

/* ---------- A11Y ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
/* Buttons clip their flood fill, so keep the ring outside the box; a navy halo keeps gold visible on teal and gold surfaces. */
.btn:focus-visible, .btn-ghost:focus-visible, .smd-booking-embed-btn:focus-visible, .cm-list a:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy);
}
.btn:focus-visible { border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  html { scroll-behavior: auto; }
}
