/* ==========================================================================
   LNH homepage preview — tokens derived from the live site's BlueTheme CSS
   (#23408e navy, #1792c8 blue, #00afd7 cyan, #b71c1c red) and logo.
   ========================================================================== */
:root {
  --navy-900: #14265a;
  --navy: #23408e;
  --blue: #1792c8;
  --blue-ink: #0d6a99;      /* blue darkened for AA text/buttons on white */
  --cyan: #00afd7;
  --red: #b71c1c;
  --ink: #101a33;
  --text: #2b3550;
  --muted: #56607a;
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #e8eef8;
  --line: #d9e1ee;
  --focus: #f5a400;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem);
  --fs-h1: clamp(2.2rem, 1.4rem + 3.6vw, 4rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem;
  --container: 1240px;
  --gutter: 16px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgb(16 26 51 / .06), 0 2px 8px rgb(16 26 51 / .05);
  --shadow-2: 0 2px 6px rgb(16 26 51 / .06), 0 14px 32px -8px rgb(16 26 51 / .18);
  --shadow-3: 0 30px 60px -20px rgb(20 38 90 / .45);

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-1: 180ms;   /* small controls */
  --dur-2: 240ms;
  --dur-3: 450ms;   /* panels */
  --dur-4: 600ms;   /* entrances */
  --header-h: 72px;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --header-h: 84px; } }
@media (min-width: 1500px) { :root { --container: 1320px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--surface); color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font); text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: .18em; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 var(--s4); text-wrap: balance; letter-spacing: -.015em; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 650; letter-spacing: -.005em; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.i { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 600; transition: top var(--dur-1) var(--ease); }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: var(--s3); }
.eyebrow--light { color: #9fe3f5; }

/* ---------- Buttons & links ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .6rem 1.2rem; border-radius: var(--r-pill);
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-weight: 650; font-size: .9375rem; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { --bg: var(--navy); --bd: var(--navy); }
.btn--quiet { --bg: transparent; --fg: var(--navy); --bd: var(--line); }
.btn--ghost { --bg: rgb(255 255 255 / .7); --fg: var(--navy); --bd: rgb(35 64 142 / .25); }
.btn--light { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn--outline-light { --bg: transparent; --fg: #fff; --bd: rgb(255 255 255 / .55); }
.btn .arrow, .link-arrow .arrow { transition: transform var(--dur-2) var(--ease); }

.btn--login {
  --bg: var(--navy); --bd: var(--navy);
  min-height: 46px; min-width: 46px; padding-inline: 1.05rem; gap: .45em; font-size: .9375rem;
  box-shadow: 0 6px 16px -6px rgb(35 64 142 / .55), inset 0 -2px 0 var(--cyan);
}
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; color: var(--blue-ink); text-decoration: none; min-height: 44px; }
.link-arrow--light { color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover, .btn--login:hover { --bg: var(--navy-900); --bd: var(--navy-900); box-shadow: 0 10px 22px -8px rgb(20 38 90 / .6), inset 0 -2px 0 var(--cyan); }
  .btn--quiet:hover, .btn--ghost:hover { --bd: var(--navy); --bg: #fff; }
  .btn--light:hover { --bg: var(--surface-3); --bd: var(--surface-3); }
  .btn--outline-light:hover { --bg: #fff; --fg: var(--navy); --bd: #fff; }
  .btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
  .link-arrow:hover { text-decoration: underline; }
}

/* ---------- Utility bar ---------- */
.utility { background: var(--navy-900); color: #e9efff; font-size: var(--fs-sm); display: none; }
@media (min-width: 1200px) { .utility { display: block; } }
.utility__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 46px; }
.utility__links, .utility__end { display: flex; align-items: center; gap: var(--s2) var(--s5); flex-wrap: wrap; }
.utility a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: .45em; min-height: 36px; }
.utility a:hover { text-decoration: underline; }
.utility .i { color: var(--cyan); }
.utility__tele { background: #fff; color: var(--red) !important; font-weight: 700; padding: 0 .8em; border-radius: var(--r-pill); }
.search { display: flex; align-items: center; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); border-radius: var(--r-pill); padding-left: .9rem; transition: background-color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.search:focus-within { background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .5); }
.search input { border: 0; background: transparent; width: 11rem; min-height: 36px; outline: none; }
.search input::placeholder { color: rgb(233 239 255 / .75); }
.search button { border: 0; background: none; color: inherit; width: 40px; height: 36px; cursor: pointer; border-radius: var(--r-pill); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
  padding-top: env(safe-area-inset-top);
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 8px 24px -16px rgb(16 26 51 / .35); }
.header__inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; min-height: 44px; margin-right: auto; }
.brand__full { display: none; width: 230px; height: auto; }
.brand__mark { width: 44px; height: 44px; }
@media (min-width: 480px) { .brand__full { display: block; } .brand__mark { display: none; } }
@media (min-width: 1200px) { .brand__full { width: 250px; } }
.header__actions { display: flex; align-items: center; gap: var(--s2); }
.menu-btn { display: inline-flex; align-items: center; gap: .45em; min-height: 46px; min-width: 46px; justify-content: center; padding: 0 .8rem; border-radius: var(--r-pill); border: 2px solid var(--line); background: #fff; color: var(--navy); font-weight: 650; cursor: pointer; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.menu-btn:hover { border-color: var(--navy); }
.menu-btn[hidden] { display: inline-flex !important; visibility: hidden; } /* reserve space until JS enables it */
.menu-btn .i { width: 1.35em; height: 1.35em; }
@media (max-width: 379px) { .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .menu-btn { padding: 0; } .btn--login { padding-inline: .85rem; } }

/* Desktop nav (≥1280px); below that the drawer carries it */
.nav { display: none; }
@media (min-width: 1280px) {
  .nav { display: block; }
  .header__inner { gap: var(--s4); }
  .menu-btn { padding: 0; }
  .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 1280px) and (max-width: 1499px) { .brand__full { width: 210px; } .nav__link { padding: 0 .45rem; font-size: .9rem; } }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; gap: .3em; min-height: 44px; padding: 0 .7rem; border-radius: var(--r-sm);
  color: var(--ink); font-weight: 600; font-size: .9375rem; text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap;
  background-image: linear-gradient(var(--cyan), var(--cyan)); background-size: 0 2px; background-repeat: no-repeat; background-position: 50% calc(100% - 6px);
  transition: background-size var(--dur-2) var(--ease), color var(--dur-1) var(--ease);
}
.nav__link::-webkit-details-marker { display: none; }
.nav__link:hover, .nav__menu[open] > .nav__link { color: var(--navy); background-size: calc(100% - 1.4rem) 2px; }
.chev { transition: transform var(--dur-2) var(--ease); }
details[open] > summary .chev { transform: rotate(180deg); }
.nav__menu { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2);
  padding: var(--s5); transform: translateX(-50%);
  animation: panel-in var(--dur-3) var(--ease-out);
}
.nav__panel--mega { width: min(880px, calc(100vw - 48px)); }
.nav__panel--edu { width: 340px; }
.nav__panel a { color: var(--text); text-decoration: none; display: flex; align-items: center; min-height: 36px; padding: .2rem .5rem; border-radius: 6px; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.nav__panel a:hover { background: var(--surface-2); color: var(--navy); }
.nav__panel .nav__all { font-weight: 700; color: var(--navy); gap: .4em; margin-bottom: var(--s3); border-bottom: 1px solid var(--line); border-radius: 0; padding-bottom: var(--s3); }
.nav__cols { columns: 3 220px; column-gap: var(--s5); }
.nav__cols li { break-inside: avoid; }
.nav__group { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: var(--s3) .5rem var(--s1); }
@keyframes panel-in { from { opacity: 0; transform: translate(-50%, -6px); } }
/* keep panels inside the viewport near the edges */
.nav__list > li:last-of-type .nav__panel, .nav__list > li:nth-last-of-type(3) .nav__panel { left: auto; right: 0; transform: none; animation-name: panel-in-r; }
@keyframes panel-in-r { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Drawer ---------- */
.drawer {
  margin: 0 0 0 auto; height: 100dvh; max-height: none; width: min(420px, 100vw); max-width: 100vw;
  border: 0; padding: 0 0 max(24px, env(safe-area-inset-bottom)); background: #fff; color: var(--text);
  overflow-y: auto; overscroll-behavior: contain;
  transition: transform var(--dur-3) var(--ease-out), overlay var(--dur-3) allow-discrete, display var(--dur-3) allow-discrete;
  transform: translateX(100%);
}
.drawer[open] { transform: none; }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer::backdrop { background: rgb(16 26 51 / 0); transition: background-color var(--dur-3) var(--ease), overlay var(--dur-3) allow-discrete, display var(--dur-3) allow-discrete; }
.drawer[open]::backdrop { background: rgb(16 26 51 / .5); }
@starting-style { .drawer[open]::backdrop { background: rgb(16 26 51 / 0); } }
.drawer__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: var(--s3); padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--line); }
.drawer__head img { margin-right: auto; }
.drawer__close { width: 46px; height: 46px; border-radius: var(--r-pill); border: 2px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.drawer .search { margin: 16px; background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.drawer .search input { flex: 1; width: auto; min-height: 44px; }
.drawer .search input::placeholder { color: var(--muted); }
.drawer nav { padding: 0 16px; }
.drawer__title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: var(--s5) 0 var(--s2); }
.drawer__nav ul, .drawer__list, .drawer__list ul { list-style: none; margin: 0; padding: 0; }
.drawer a:not(.btn), .drawer summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 48px; padding: 0 .5rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 8px; cursor: pointer; list-style: none; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer a:not(.btn):hover, .drawer summary:hover { background: var(--surface-2); }
.drawer__nav > ul > li, .drawer__list > li { border-bottom: 1px solid var(--surface-3); }
.drawer details ul { padding: 0 0 var(--s2) var(--s3); }
.drawer details ul a { font-weight: 450; min-height: 44px; color: var(--text); }
.drawer .nav__panel { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 var(--s2) var(--s3); animation: none; }
.drawer .nav__cols { columns: 1; }
.drawer .nav__panel .nav__all { border: 0; margin: 0; padding-bottom: 0; }
.drawer__phone img { width: 24px; height: 24px; }
.drawer__phone { margin-top: var(--s2); color: var(--navy) !important; gap: .5em !important; justify-content: flex-start !important; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: radial-gradient(120% 90% at 100% 0%, #dff4fb 0%, rgb(223 244 251 / 0) 55%), linear-gradient(180deg, #f5f8fd 0%, #eaf0f9 100%); padding: var(--s6) 0 calc(var(--s8) + 40px); }
.hero__grid { position: relative; display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); } .hero { padding-top: var(--s7); } }
.hero h1 { font-size: var(--fs-h1); font-weight: 750; letter-spacing: -.03em; line-height: 1.04; color: var(--navy-900); }
.hero__lead { font-size: var(--fs-lg); max-width: 36ch; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.hero__in { animation: rise var(--dur-4) var(--ease-out) both; animation-delay: calc(var(--d, 0) * 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hero__deco { position: absolute; inset: 0; pointer-events: none; }
.orbit { position: absolute; width: 520px; right: -140px; top: -170px; fill: none; stroke: rgb(23 146 200 / .28); stroke-width: .6; stroke-dasharray: 2 4; }
.orbit__dot { fill: var(--cyan); stroke: none; }
/* Rotational accent driven by scroll position (user-paced, not autonomous) */
@supports (animation-timeline: scroll()) {
  .orbit { animation: orbit linear both; animation-timeline: scroll(root); animation-range: 0 900px; }
  @keyframes orbit { to { transform: rotate(80deg) translateY(40px); } }
}

/* ---------- Carousel ---------- */
.carousel { position: relative; min-width: 0; }
.carousel__viewport { overflow: hidden; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-3); border: 1px solid rgb(255 255 255 / .8); touch-action: pan-y; }
.carousel__track { display: flex; transition: transform var(--dur-4) var(--ease-out); will-change: transform; }
.slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; }
.slide__media { margin: 0; aspect-ratio: 1349 / 500; background: var(--surface-3); }
.slide__media img { width: 100%; height: 100%; object-fit: contain; }
.slide__caption { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); padding: var(--s4) var(--s5); border-top: 1px solid var(--line); }
.slide__caption > div:first-child { flex: 1 1 260px; }
.slide__title { font-weight: 700; color: var(--ink); margin: 0; }
.slide__text { margin: .25rem 0 0; font-size: var(--fs-sm); color: var(--muted); }
.slide .link-arrow { flex: none; }
.badges { display: flex; flex-wrap: wrap; gap: var(--s2); }
.badges a { display: block; border-radius: 9px; transition: transform var(--dur-1) var(--ease); }
.badges img { width: 152px; height: auto; } /* ≥44px tall touch target */
.wa-cta img { width: 200px; }
@media (hover: hover) and (pointer: fine) { .badges a:hover, .wa-cta:hover { transform: translateY(-2px); } }
.wa-cta { display: block; transition: transform var(--dur-1) var(--ease); }
.carousel__controls { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); }
.carousel__controls[hidden] { display: flex !important; visibility: hidden; } /* reserve space: no layout shift when JS enables it */
.carousel__btn { width: 46px; height: 46px; border-radius: var(--r-pill); border: 2px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.carousel__btn:hover { border-color: var(--navy); }
.carousel__btn:active { transform: scale(.94); }
.carousel__dots { display: flex; gap: 2px; }
.carousel__dots button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.carousel__dots button::before { content: ""; width: 10px; height: 10px; border-radius: var(--r-pill); background: #b4c0d6; transition: width var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease); }
.carousel__dots button[aria-current="true"]::before { width: 28px; background: var(--navy); }
.carousel__count { margin-left: auto; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.carousel__count b { color: var(--ink); }

/* ---------- Patient tools ---------- */
.tools { position: relative; z-index: 2; margin-top: -48px; }
.tools__grid { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .tools__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow-2); transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.tool:first-child { border-top: 4px solid var(--navy); }
.tool__head { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.tool__head h3 { margin: 0; }
.tool__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.tool__icon .i { width: 22px; height: 22px; }
.tool__form { display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: .6rem .85rem; font-size: 1rem; border: 1.5px solid #b9c5d9; border-radius: 10px; background: #fff;
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgb(35 64 142 / .16); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__error { margin: 0; font-size: var(--fs-sm); color: var(--red); font-weight: 600; }
.field__error:empty { display: none; }
.select { position: relative; }
.select select { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select .chev { position: absolute; right: .85rem; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--navy); }
.tool__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: auto; padding-top: var(--s3); }
.tool__actions .btn { flex: 1 1 auto; }
.tool__text { font-size: .9375rem; }
.tool__dl { margin: 0 0 var(--s2); display: grid; gap: var(--s2); }
.tool__dl div { background: var(--surface-2); border-radius: 10px; padding: .6rem .8rem; border-left: 3px solid var(--blue); }
.tool__dl dt { font-weight: 650; color: var(--ink); font-size: .9375rem; }
.tool__dl dd { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.tool__note { font-size: .8125rem; color: var(--muted); margin: var(--s3) 0 0; }
.tool__foot { margin-top: var(--s2); font-size: .9375rem; }
.tool__links { display: flex; flex-direction: column; }
.tool__links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 52px; padding: .5rem 0; border-bottom: 1px solid var(--surface-3); color: var(--ink); font-weight: 600; text-decoration: none; }
.tool__links a .arrow { color: var(--blue-ink); transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tool:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgb(16 26 51 / .06), 0 24px 40px -14px rgb(16 26 51 / .25); }
  .tool__links a:hover { color: var(--navy); }
  .tool__links a:hover .arrow { transform: translateX(4px); }
}

/* Combobox */
.combo__list { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none; max-height: 264px; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-2); }
.combo__list[hidden] { display: none; }
.combo__list li { padding: .6rem .7rem; min-height: 44px; display: flex; align-items: center; border-radius: 7px; cursor: pointer; font-size: .9375rem; }
.combo__list li[aria-selected="true"] { background: var(--navy); color: #fff; }
.combo__list li:not([aria-selected="true"]):hover { background: var(--surface-2); }
.combo__list mark { background: #fff1a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.combo__list li[aria-selected="true"] mark { background: rgb(255 255 255 / .25); }
.combo__list .combo__empty { color: var(--muted); cursor: default; }

/* ---------- Emergency band ---------- */
.er { margin-top: var(--s7); }
.er__inner { display: grid; gap: var(--s4); align-items: center; background: linear-gradient(110deg, #7f1414, var(--red) 60%, #c62a2a); color: #fff; border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-2); }
@media (min-width: 1000px) { .er__inner { grid-template-columns: auto 1.1fr 1.4fr auto; padding: var(--s5) var(--s6); } }
.er h2 { color: #fff; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); margin-bottom: var(--s1); }
.er p { margin: 0; }
.er a:not(.btn) { color: #fff; font-weight: 700; white-space: nowrap; }
.er__badge { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; }
.er__badge img { width: 48px; }
.er__label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.er .btn--light { --fg: var(--red); justify-self: start; }

/* ---------- Sections ---------- */
.section { padding: var(--s8) 0 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3) var(--s5); margin-bottom: var(--s5); }
.section__head h2 { margin: 0; }
.section__links { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.svc { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s5) var(--s3); text-align: center; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-md); color: var(--navy); font-weight: 650; text-decoration: none; line-height: 1.3; min-height: 160px; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), background-color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.svc img { width: 120px; max-width: 100%; transition: transform var(--dur-3) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-4px); background: #fff; border-color: var(--line); box-shadow: var(--shadow-2); }
  .svc:hover img { transform: scale(1.04); }
}

/* Marquee */
.marquee { margin-top: var(--s7); background: var(--navy); color: #fff; padding: var(--s4) 0; overflow: hidden; }
.marquee__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-bottom: var(--s3); }
.marquee__title { color: #fff; font-size: 1rem; margin: 0 auto 0 0; letter-spacing: .02em; }
.marquee .link-arrow { color: #fff; font-size: .9375rem; }
.marquee__toggle { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); border: 1.5px solid rgb(255 255 255 / .5); background: transparent; color: #fff; font-weight: 600; cursor: pointer; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.marquee__toggle:hover { background: #fff; color: var(--navy); }
.marquee__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; gap: var(--s3); animation: marquee 42s linear infinite; }
.marquee__track li { white-space: nowrap; padding: .45rem 1rem; border-radius: var(--r-pill); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); font-size: .9375rem; }
.marquee__track li:nth-child(4n+2) { background: rgb(0 175 215 / .25); }
.marquee[data-paused] .marquee__track, .marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s3) / 2)); } }
/* Without JS the track is empty; show nothing but the heading and link */
.marquee__viewport { min-height: 2.75rem; }
.marquee:not([data-ready]) .marquee__viewport, .marquee:not([data-ready]) .marquee__toggle { visibility: hidden; }

/* About + Telemedicine */
.about__grid { display: grid; gap: var(--s6); align-items: stretch; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.about__text { max-width: 62ch; }
.about__lead { font-size: var(--fs-lg); color: var(--ink); font-weight: 500; }
.tele { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--navy) 0%, var(--navy-900) 70%); color: #e8eeff; border-radius: var(--r-lg); padding: var(--s6) var(--s5); box-shadow: var(--shadow-3); }
.tele::after { content: ""; position: absolute; width: 340px; aspect-ratio: 1; right: -120px; bottom: -160px; border-radius: 50%; border: 1px dashed rgb(0 175 215 / .45); box-shadow: 0 0 0 40px rgb(0 175 215 / .06); pointer-events: none; }
.tele h2 { color: #fff; }
.tele a:not(.btn):not(.link-arrow) { color: #fff; font-weight: 700; white-space: nowrap; }
.tele__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s5) 0 var(--s3); }
@media (min-width: 600px) { .tele { padding: var(--s6); } }

/* Education */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s4); }
@media (min-width: 1100px) { .inst-grid { grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: space-between; } }
.inst { display: block; text-decoration: none; color: var(--ink); border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); max-width: 360px; margin-inline: auto; height: 100%; }
.inst__img { display: block; aspect-ratio: 360 / 204; overflow: hidden; background: var(--surface-3); }
.inst__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease); }
.inst__name { display: flex; align-items: center; min-height: 64px; padding: var(--s3) var(--s4); font-weight: 650; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
  .inst:hover { transform: translateY(-4px) rotate(-.6deg); box-shadow: var(--shadow-2); }
  .inst:hover .inst__img img { transform: scale(1.04); }
}
.vise { display: grid; gap: var(--s5); align-items: center; margin-top: var(--s7); background: var(--surface-2); border-radius: var(--r-lg); padding: var(--s4); }
@media (min-width: 900px) { .vise { grid-template-columns: minmax(0, 560px) 1fr; gap: var(--s7); padding: var(--s6); } }
.vise__media { margin: 0; border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-2); transform: rotate(-1.5deg); transition: transform var(--dur-3) var(--ease); }
.vise:hover .vise__media { transform: rotate(0); }
.vise__invite { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.vise__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); border: 1.5px solid var(--line); color: var(--navy); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease); }
.chips a:hover { border-color: var(--navy); background: var(--surface-2); }

/* News */
.news__layout { display: grid; gap: var(--s5); }
@media (min-width: 1000px) { .news__layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.news__list { display: grid; gap: var(--s3); align-content: start; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-content: start; }
.tiles li:first-child { grid-column: 1 / -1; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s5); height: 100%; min-height: 150px; padding: var(--s5); border-radius: var(--r-md); color: #fff; text-decoration: none; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); font-weight: 650; line-height: 1.2; background: #5b6474; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease); }
.tile--wide { min-height: 180px; background: linear-gradient(135deg, #4b5566, #6b7587); }
.tile--navy { background: var(--navy); }
.tile--blue { background: var(--blue-ink); }
.tile .arrow { align-self: flex-end; width: 1.4em; height: 1.4em; transition: transform var(--dur-2) var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); } .tile:hover .arrow { transform: translateX(5px); } }
@media (max-width: 379px) { .tiles { grid-template-columns: 1fr; } }
.post { position: relative; display: flex; gap: var(--s4); align-items: flex-start; height: 100%; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: transform var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.post img { width: 56px; height: 56px; flex: none; }
.post h3 { font-size: 1.0625rem; margin: 0 0 var(--s2); line-height: 1.35; }
.post h3 a { color: var(--ink); text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post h3 a:focus-visible { outline: none; }
.post:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.post__meta { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .post:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #c4d0e4; }
  .post:hover h3 a { color: var(--navy); }
}

/* Connect */
.connect { margin-top: var(--s8); }
.connect__inner { display: grid; gap: var(--s5); padding-block: var(--s6); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .connect__inner { grid-template-columns: 1fr 1fr; } }
.connect h2 { font-size: 1.25rem; }
.connect .badges img { width: 160px; }
.social { display: flex; flex-wrap: wrap; gap: var(--s2); }
.social a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: var(--r-pill); background: var(--surface-2); color: var(--navy); font-weight: 600; font-size: .9375rem; text-decoration: none; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.social a:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.footer { background: #1d2230; color: #c9cfdd; font-size: .9375rem; padding-top: var(--s7); }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: var(--s6); padding-bottom: var(--s7); }
.footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
.footer__brand, .footer__contact { grid-column: 1 / -1; }
@media (max-width: 359px) { .footer__grid { grid-template-columns: 1fr; } }
@media (min-width: 700px) { .footer__brand, .footer__contact { grid-column: auto; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.footer__title { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: var(--s3); }
.footer__brand img { margin-bottom: var(--s4); border-radius: 10px; }
.footer nav ul a { display: inline-flex; align-items: center; min-height: 40px; color: #c9cfdd; text-decoration: none; transition: color var(--dur-1) var(--ease); }
.footer nav ul a:hover { color: #fff; text-decoration: underline; }
.footer dl { margin: 0 0 var(--s4); display: grid; gap: var(--s3); }
.footer dt { color: #fff; font-weight: 650; }
.footer dd { margin: 0; }
.footer__bar { background: var(--navy); color: #fff; font-size: .8125rem; text-align: center; padding: var(--s4) 0 max(var(--s4), env(safe-area-inset-bottom)); }
.footer__bar p { margin: 0; }

/* Floating WhatsApp */
.wa-float { display: none; position: fixed; z-index: 40; right: max(12px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); align-items: center; flex-direction: row-reverse; gap: var(--s2); text-decoration: none; }
.wa-float img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 6px 18px -4px rgb(0 0 0 / .35); transition: transform var(--dur-2) var(--ease); }
.wa-float__tip { background: #1e7a3c; color: #fff; font-weight: 700; font-size: .875rem; padding: .45rem .8rem; border-radius: 8px; opacity: 0; transform: translateX(6px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); pointer-events: none; }
.wa-float:hover .wa-float__tip, .wa-float:focus-visible .wa-float__tip { opacity: 1; transform: none; }
.wa-float:hover img { transform: scale(1.06); }
/* Only where the right margin is wide enough that the button never covers content */
@media (min-width: 1400px) { .wa-float { display: flex; } }

/* ---------- Scroll reveal (only armed once JS confirms IntersectionObserver) ---------- */
.reveal-on .reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
.reveal-on .reveal { transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Reduced motion: static equivalents ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .orbit { animation: none !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; padding-inline: var(--gutter); max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .marquee__viewport { -webkit-mask-image: none; mask-image: none; }
  .marquee__toggle { display: none !important; }
  .vise__media { transform: none; }
  .reveal-on .reveal:not(.is-in) { opacity: 1; transform: none; }
}
