/* ==========================================================================
   Shree Satya Sai Health Care — stylesheet
   1. Tokens & base      5. Hero & trust bar     9. Care approach
   2. Buttons & helpers  6. About                10. Doctors
   3. Header & nav       7. Services / Why       11. Patient, Gallery, Lightbox
   4. Sections & reveal  8. Facilities           12. Appointment, Contact, Footer
   ========================================================================== */

/* ---------- 1. Tokens & base ---------- */
:root {
  --blue: #0B5E75;
  --teal: #0F8B8D;
  --teal-strong: #0D7F82;         /* darker teal end so white button text keeps >= 4.5:1 contrast */
  --green: #35A66F;
  --green-strong: #23824F;
  --white: #FFFFFF;
  --bg-blue: #F3FAFC;
  --bg-green: #F1FAF5;
  --text: #17313B;
  --muted: #667980;
  --line: #DCEBEF;
  --danger: #B3261E;

  --grad: linear-gradient(135deg, #0B5E75, #0F8B8D);
  --grad-btn: linear-gradient(135deg, #0B5E75, var(--teal-strong));

  --r-sm: 14px;
  --r: 20px;
  --r-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(11, 94, 117, .07);
  --shadow: 0 12px 34px rgba(11, 94, 117, .11);
  --shadow-lg: 0 24px 60px rgba(11, 94, 117, .18);

  --header-h: 84px;
  --gutter: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--text); background: var(--white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* inline svg icons (injected by main.js into <i data-icon>) */
i[data-icon] { display: inline-flex; line-height: 0; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- 2. Buttons & helpers ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-align: center; white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn .ico { width: 1.15em; height: 1.15em; transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ico:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 54px; padding: 14px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 22px rgba(11, 94, 117, .28); }
.btn--primary:hover { box-shadow: 0 12px 28px rgba(11, 94, 117, .38); }
.btn--green { background: var(--green-strong); color: #fff; box-shadow: 0 8px 22px rgba(35, 130, 79, .26); }
.btn--green:hover { box-shadow: 0 12px 28px rgba(35, 130, 79, .36); }
.btn--outline { border-color: var(--blue); color: var(--blue); background: rgba(255, 255, 255, .6); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--outline-dark { border-color: var(--line); color: var(--blue); background: #fff; }
.btn--outline-dark:hover { border-color: var(--blue); background: var(--bg-blue); }
.btn--white { background: #fff; color: var(--blue); box-shadow: 0 10px 26px rgba(0, 0, 0, .16); }
.btn--white:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .22); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-strong); margin-bottom: 14px;
}
.eyebrow--light { color: #BFF0DA; }
.lead { font-size: 1.1rem; color: var(--muted); }

.icon-badge {
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(11, 94, 117, .1), rgba(15, 139, 141, .16)); color: var(--blue); font-size: 1.35rem;
}
.icon-badge--green { background: linear-gradient(135deg, rgba(53, 166, 111, .14), rgba(53, 166, 111, .22)); color: var(--green-strong); }
.icon-badge--glass { background: rgba(255, 255, 255, .16); color: #fff; }

.deco { position: absolute; pointer-events: none; }
.deco--circle { border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(15, 139, 141, .16), rgba(11, 94, 117, .04)); }
.deco--dots { width: 120px; height: 120px; right: -26px; top: -22px; z-index: -1;
  background-image: radial-gradient(var(--teal) 1.6px, transparent 1.8px); background-size: 16px 16px; opacity: .32; }
.deco--plus { width: 26px; height: 26px; opacity: .55; animation: float 7s ease-in-out infinite; }
.deco--plus::before, .deco--plus::after { content: ""; position: absolute; background: var(--green); border-radius: 3px; }
.deco--plus::before { left: 10px; top: 0; width: 6px; height: 26px; }
.deco--plus::after { left: 0; top: 10px; width: 26px; height: 6px; }
.deco--plus1 { left: -14px; top: 18%; }
.deco--plus2 { right: 8%; bottom: -14px; width: 18px; height: 18px; animation-delay: -3s; }
.deco--plus2::before { left: 6px; width: 5px; height: 18px; }
.deco--plus2::after { top: 6px; width: 18px; height: 5px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- 3. Header & nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: height .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.site-header.is-scrolled { height: 68px; box-shadow: 0 6px 24px rgba(11, 94, 117, .12); background: rgba(255, 255, 255, .97); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 44px; height: auto; transition: width .3s ease; }
.is-scrolled .brand__mark { width: 38px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.14rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }
.brand__text small { font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--green-strong); margin-top: 3px; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #9FE3C2; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a { position: relative; display: block; padding: 10px 12px; font-size: .93rem; font-weight: 600; color: var(--text); border-radius: 10px; transition: color .2s ease; }
.nav__list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s ease; }
.nav__list a:hover, .nav__list a.is-active { color: var(--blue); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__cta { display: none; }
.header__cta { display: none; min-height: 44px; padding: 10px 22px; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center;
  width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--bg-blue); color: var(--blue); position: relative; z-index: 130;
}
.nav-toggle span { width: 22px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile / tablet: slide-in panel */
@media (max-width: 1099.98px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(86vw, 360px);
    display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
    padding: 96px 24px 28px; background: #fff; box-shadow: -20px 0 50px rgba(11, 94, 117, .2);
    transform: translateX(105%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a { padding: 14px 14px; font-size: 1.05rem; border-radius: 14px; }
  .nav__list a::after { display: none; }
  .nav__list a:hover, .nav__list a.is-active { background: var(--bg-blue); }
  .nav__list li { opacity: 0; transform: translateX(16px); transition: opacity .3s ease, transform .3s ease; }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: .10s; } .nav.is-open .nav__list li:nth-child(2) { transition-delay: .14s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .18s; } .nav.is-open .nav__list li:nth-child(4) { transition-delay: .22s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: .26s; } .nav.is-open .nav__list li:nth-child(6) { transition-delay: .30s; }
  .nav.is-open .nav__list li:nth-child(7) { transition-delay: .34s; } .nav.is-open .nav__list li:nth-child(8) { transition-delay: .38s; }
  .nav__cta { display: inline-flex; width: 100%; }
  /* backdrop-filter would make the header the containing block of the fixed slide-in panel, so drop it here */
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
}
.nav-backdrop { position: fixed; inset: 0; z-index: 99;   /* just under the header (100), whose stacking context holds the panel */ background: rgba(9, 32, 40, .5); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
body.nav-open { overflow: hidden; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .header__cta { display: inline-flex; }
}
@media (max-width: 399.98px) { .brand__text small { letter-spacing: .2em; } .brand__text strong { font-size: 1.02rem; } }

/* ---------- 4. Sections & reveal ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 112px); overflow: hidden; }
.section--tint { background: var(--bg-blue); }
.section--green { background: var(--bg-green); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head h2 { margin-bottom: 14px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 5. Hero & trust bar ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px) 0 clamp(96px, 11vw, 132px); background: linear-gradient(180deg, var(--bg-blue) 0%, #fff 100%); }
.hero__c1 { width: 520px; height: 520px; left: -220px; top: -200px; }
.hero__c2 { width: 340px; height: 340px; right: -120px; bottom: 40px; }
.hero__grid { position: relative; display: grid; gap: clamp(36px, 6vw, 56px); align-items: center; }
.hero__copy h1 { margin-bottom: 20px; }
.hero__copy .lead { max-width: 540px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero__ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .95rem; color: var(--blue); }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks i { display: flex; }
.hero__ticks .ico { color: var(--green); width: 1.2em; stroke-width: 2.6; }

.hero__media { position: relative; isolation: isolate; width: 100%; max-width: 640px; margin-inline: auto; }
@media (min-width: 960px) { .hero__media { max-width: none; margin-inline: 0; } }
.hero__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 5 / 4.4; box-shadow: var(--shadow-lg); background: var(--bg-blue); }
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__tint { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(11, 94, 117, .18), rgba(15, 139, 141, 0) 55%); }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: #fff; border-radius: 18px; box-shadow: var(--shadow); font-size: .82rem; line-height: 1.3;
  animation: float 6.5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .95rem; color: var(--text); }
.float-card div > span { color: var(--muted); }
.float-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; flex: none; font-size: 1.15rem; }
.float-card__icon--green { background: linear-gradient(135deg, #2E9A62, #35A66F); }
.float-card--loc { left: -10px; bottom: 26px; }
.float-card--care { right: -6px; top: 26px; }
.hero__c1, .hero__c2 { z-index: 0; }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; }
  .float-card--loc { left: -34px; }
  .float-card--care { right: -22px; }
}
@media (max-width: 519.98px) {
  .float-card--loc { left: 8px; bottom: 14px; }
  .float-card--care { display: none; }
  .hero__actions .btn { width: 100%; }
  .deco--plus1 { display: none; }
}

.trust { position: relative; z-index: 3; margin-top: -60px; }
.trust__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.trust-card { display: flex; align-items: center; gap: 16px; padding: 22px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid rgba(220, 235, 239, .7); transition: transform .3s ease, box-shadow .3s ease; }
.trust-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.trust-card h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; }
.trust-card p { color: var(--muted); font-size: .9rem; line-height: 1.45; }
@media (min-width: 640px) { .trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } .trust-card { flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; } }

/* ---------- 6. About ---------- */
.about__grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.about__media { position: relative; isolation: isolate; }
.about__frame { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.6; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; }
.float-card--about { right: 14px; bottom: -26px; padding: 16px 22px 16px 16px; animation-duration: 8s; }
.float-card--about div > span { display: block; font-size: .8rem; }
.about__c1 { width: 240px; height: 240px; left: -70px; top: -60px; z-index: -1; }
.about__copy h2 { margin-bottom: 20px; }
.about__copy > p { color: var(--muted); margin-bottom: 16px; }
.checklist { display: grid; gap: 14px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li .ico { margin-top: 3px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--bg-green); color: var(--green-strong); stroke-width: 3; box-sizing: content-box; }
.checklist strong { color: var(--text); }
.checklist span { color: var(--muted); }
@media (min-width: 960px) { .about__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519.98px) { .float-card--about { right: 8px; } }

/* ---------- 7. Services / Why ---------- */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--services, .cards--doctors { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards--services, .cards--doctors { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-card:hover, .service-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-card .icon-badge { width: 58px; height: 58px; font-size: 1.5rem; transition: background .3s ease, color .3s ease, transform .3s ease; }
.service-card:hover .icon-badge { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.06); }
.service-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.service-card__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: var(--blue); }
.service-card__link .ico { transition: transform .25s ease; }
.service-card__link:hover .ico { transform: translateX(4px); }
.service-card__link::after { content: ""; position: absolute; inset: 0; }   /* whole card is the click target */

.why { background: linear-gradient(180deg, var(--bg-green) 0%, var(--bg-blue) 100%); }
.why::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(15, 139, 141, .2) 1.2px, transparent 1.4px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 50%, #000 0%, transparent 70%); }
.why__grid { position: relative; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { text-align: center; padding: 34px 24px; background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); backdrop-filter: blur(4px); transition: transform .3s ease, box-shadow .3s ease; }
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.why-item h3 { margin: 18px 0 8px; }
.why-item p { color: var(--muted); font-size: .95rem; }
.why-icon { position: relative; display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem; box-shadow: 0 10px 24px rgba(11, 94, 117, .28); }
.why-icon::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(15, 139, 141, .35); animation: ring 3.2s ease-out infinite; }
.why-item:nth-child(even) .why-icon { background: linear-gradient(135deg, #2A9560, #35A66F); }
.why-item:nth-child(even) .why-icon::after { border-color: rgba(53, 166, 111, .4); }
@keyframes ring { 0% { transform: scale(.9); opacity: .9; } 70%, 100% { transform: scale(1.22); opacity: 0; } }
.ico--draw * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-visible .ico--draw *, .no-js .ico--draw * { animation: draw 1.5s .25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 8. Facilities ---------- */
.facility-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.facility { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-blue); box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; isolation: isolate; }
.facility img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.facility::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 40, 52, 0) 38%, rgba(8, 40, 52, .86) 100%); }
.facility:hover img { transform: scale(1.06); }
.facility__text { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 24px; color: #fff; }
.facility__text h3 { color: #fff; font-size: 1.15rem; margin-bottom: 4px; }
.facility__text p { font-size: .9rem; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 46ch; }
@media (min-width: 720px) {
  .facility-grid { grid-template-columns: repeat(2, 1fr); }
  .facility--lg { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .facility--wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
}
@media (min-width: 1000px) {
  .facility-grid { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 236px; }
  .facility { aspect-ratio: auto; }
  .facility--sm::after { background: linear-gradient(180deg, rgba(8, 40, 52, 0) 15%, rgba(8, 40, 52, .9) 100%); }
  .facility--sm .facility__text { padding: 18px 20px; }
  .facility--sm .facility__text h3 { font-size: 1.02rem; }
  .facility--sm .facility__text p { font-size: .84rem; }
  .facility--lg { grid-column: 1 / span 6; grid-row: span 2; }
  .facility--sm { grid-column: span 3; }
  .facility--wide { grid-column: 7 / span 6; aspect-ratio: auto; }
  .facility--lg .facility__text { padding: 30px; }
  .facility--lg .facility__text h3 { font-size: 1.4rem; }
}

/* ---------- 9. Care approach ---------- */
.steps { display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: none; }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; padding-bottom: 34px; align-content: start; }
.step:last-child { padding-bottom: 0; }
.step__num { grid-column: 2; grid-row: 1; font-size: .8rem; font-weight: 800; letter-spacing: .16em; color: var(--green-strong); }
.step__icon { grid-column: 1; grid-row: 1 / span 3; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--blue); font-size: 1.6rem; border: 2px solid var(--teal); box-shadow: 0 8px 20px rgba(11, 94, 117, .14); transition: background .35s ease, color .35s ease; }
.step h3 { grid-column: 2; margin: 2px 0 4px; font-size: 1.3rem; }
.step p { grid-column: 2; color: var(--muted); }
.step:hover .step__icon { background: var(--grad); color: #fff; }
/* connecting line (vertical on mobile) */
.step:not(:last-child)::before, .step:not(:last-child)::after { content: ""; position: absolute; left: 31px; top: 64px; width: 2px; height: calc(100% - 64px); border-radius: 2px; }
.step:not(:last-child)::before { background: rgba(15, 139, 141, .25); }
.step:not(:last-child)::after { background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .9s ease .35s; z-index: 1; }
.step.is-visible:not(:last-child)::after, .no-js .step:not(:last-child)::after { transform: scaleY(1); }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 18px; }
  .step__num, .step h3, .step p { grid-column: 1; }
  .step__num { grid-row: 1; margin-bottom: 12px; }
  .step__icon { grid-column: 1; grid-row: 2; margin-bottom: 20px; width: 72px; height: 72px; font-size: 1.8rem; }
  .step h3 { grid-row: 3; } .step p { grid-row: 4; max-width: 24ch; }
  .step:not(:last-child)::before, .step:not(:last-child)::after { left: calc(50% + 36px); top: calc(.8rem * 1.65 + 12px + 36px - 1px); width: calc(100% - 72px); height: 2px; }
  .step:not(:last-child)::after { transform: scaleX(0); transform-origin: left; }
  .step.is-visible:not(:last-child)::after, .no-js .step:not(:last-child)::after { transform: scaleX(1); }
}

/* ---------- 10. Doctors ---------- */
.doctor-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-card__top { --av: 112px; position: relative; display: grid; place-items: center; padding: 28px 20px; background: linear-gradient(160deg, var(--bg-blue), var(--bg-green)); }
.avatar { position: relative; z-index: 1; display: grid; place-items: center; width: var(--av); height: var(--av); border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); background: var(--grad); color: #fff; font-size: 2.1rem; font-weight: 800; letter-spacing: .02em; }
.doctor-card:nth-child(even) .avatar { background: linear-gradient(135deg, #2A9560, #0F8B8D); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.doctor-card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 22px 22px 24px; }
.doctor-card h3 { font-size: 1.15rem; }
.doctor-card__role { color: var(--teal-strong); font-weight: 700; font-size: .92rem; line-height: 1.4; }
.doctor-card__qual, .doctor-card__focus { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.doctor-card__meta { display: flex; gap: 10px; align-items: flex-start; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg-blue); font-size: .85rem; font-weight: 600; color: var(--blue); line-height: 1.4; }
.doctor-card__meta .ico { margin-top: 2px; width: 1.1em; }
.doctor-card .btn { margin-top: auto; width: 100%; }
.doctor-card__meta { margin-bottom: 8px; }
.more-doctors { display: grid; gap: 0; margin-top: 28px; background: var(--bg-blue); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.more-doctors__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.more-doctors__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; justify-content: center; }
.more-doctors__copy p { color: var(--muted); max-width: 54ch; }
.more-doctors__copy .btn-row { margin-top: 6px; }
@media (min-width: 860px) { .more-doctors { grid-template-columns: 380px 1fr; } .more-doctors__img img { aspect-ratio: auto; } .more-doctors__copy { padding: 36px 44px; } }
@media (max-width: 519.98px) {
  .more-doctors__copy .btn { width: 100%; }
  .doctor-card__top { --av: 88px; padding: 22px 20px; }
  .avatar { font-size: 1.7rem; }
}

/* ---------- 11. Patient, Gallery, Lightbox ---------- */
.patient { color: #fff; background: linear-gradient(135deg, #0A5268 0%, #0B5E75 45%, #0E7F81 100%); }
.patient h2 { color: #fff; margin-bottom: 14px; }
.patient .lead { color: rgba(255, 255, 255, .85); margin-bottom: 30px; max-width: 520px; }
.patient__c1 { width: 520px; height: 520px; right: -180px; top: -200px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }
.patient__grid { position: relative; display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
.patient__list { display: grid; gap: 16px; margin-bottom: 36px; }
.patient__list li { display: flex; align-items: center; gap: 16px; }
.patient__list .icon-badge { width: 46px; height: 46px; border-radius: 14px; font-size: 1.15rem; }
.patient__list strong { display: block; font-size: 1.02rem; }
.patient__list span:not(.icon-badge) { display: block; font-size: .9rem; color: rgba(255, 255, 255, .78); line-height: 1.45; }
.patient__media { position: relative; }
.patient__media::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r-lg); border: 2px solid rgba(255, 255, 255, .28); }
.patient__media img { position: relative; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
@media (min-width: 960px) { .patient__grid { grid-template-columns: 1.05fr 1fr; } }
@media (max-width: 519.98px) { .patient .btn { width: 100%; } .patient__media::before { inset: 12px -8px -12px 12px; } }

.gallery { display: grid; gap: 14px; grid-template-columns: 1fr; grid-auto-flow: dense; }
.gallery__item { position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--r); background: var(--bg-blue); aspect-ratio: 4 / 3; isolation: isolate; box-shadow: var(--shadow-sm); text-align: left; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.gallery__item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 40, 52, 0) 45%, rgba(8, 40, 52, .82) 100%); opacity: 0; transition: opacity .35s ease; }
.gallery__cap { position: absolute; z-index: 2; left: 16px; right: 56px; bottom: 14px; color: #fff; font-size: .9rem; font-weight: 600; line-height: 1.35; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.gallery__zoom { position: absolute; z-index: 2; right: 14px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--blue); opacity: 0; transform: scale(.8); transition: opacity .35s ease, transform .35s ease; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.07); }
.gallery__item:hover::after, .gallery__item:focus-visible::after, .gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { opacity: 1; }
.gallery__item:hover .gallery__cap, .gallery__item:focus-visible .gallery__cap { transform: none; }
.gallery__item:hover .gallery__zoom, .gallery__item:focus-visible .gallery__zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery__item::after, .gallery__cap { opacity: 1; transform: none; } .gallery__zoom { display: none; } .gallery__cap { right: 16px; } }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery__item--feature { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; background: rgba(6, 26, 33, .95); animation: fade .25s ease; touch-action: pan-y; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; padding: 20px 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .25s ease, transform .25s ease; }
.lightbox__figure img.is-changing { opacity: 0; transform: scale(.985); }
.lightbox figcaption { display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; text-align: center; color: #fff; font-weight: 600; padding-inline: 8px; }
.lightbox__count { color: rgba(255, 255, 255, .6); font-size: .85rem; font-weight: 600; }
.lightbox__btn { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.3rem; justify-self: center; transition: background .2s ease, transform .2s ease; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .26); transform: scale(1.06); }
.lightbox__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
@media (max-width: 639.98px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 20px; z-index: 2; }
  .lightbox__prev { left: 16px; } .lightbox__next { right: 16px; }
  .lightbox__figure img { max-height: calc(100dvh - 190px); border-radius: 10px; }
  .lightbox__figure { padding: 70px 12px 96px; }
}

/* ---------- 12. Appointment, Contact, Footer ---------- */
.appointment { color: #fff; background: linear-gradient(135deg, #093F52 0%, #0B5E75 50%, #0E7F81 100%); }
.appt__c1 { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .1), rgba(255, 255, 255, 0)); }
.appointment h2 { color: #fff; margin-bottom: 14px; }
.appointment .lead { color: rgba(255, 255, 255, .86); max-width: 480px; margin-bottom: 26px; }
.appointment__grid { position: relative; display: grid; gap: clamp(32px, 5vw, 60px); align-items: start; }
.appt-points { display: grid; gap: 12px; margin-bottom: 30px; }
.appt-points li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .9); font-size: .95rem; }
.appt-points .ico { margin-top: 3px; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #9FE3C2; stroke-width: 3; box-sizing: content-box; width: 1em; height: 1em; }
.appt-points strong { color: #fff; }
.appt-call { display: grid; gap: 10px; }
.appt-call a { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding: 10px 20px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-weight: 700; transition: background .25s ease; }
.appt-call a:hover { background: rgba(255, 255, 255, .22); }
.appt-call a i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--blue); }
.appointment__card { padding: clamp(22px, 4vw, 38px); background: #fff; color: var(--text); border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, .28); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .86rem; font-weight: 700; color: var(--text); }
.field label span { color: var(--danger); }
.field label small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg-blue); border: 1.5px solid transparent; border-radius: 14px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230B5E75' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.field input::placeholder, .field textarea::placeholder { color: #8FA0A6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 139, 141, .15); }
.field.has-error input, .field.has-error select { border-color: var(--danger); background: #FFF6F5; }
.field-error { font-size: .82rem; font-weight: 600; color: var(--danger); line-height: 1.4; }
.field-error:empty { display: none; }
.field--full { grid-column: 1 / -1; }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
.form-status { margin-top: 18px; padding: 18px; border-radius: var(--r-sm); background: var(--bg-green); border: 1px solid #BFE6D2; }
.form-status h3 { font-size: 1.02rem; color: var(--green-strong); margin-bottom: 6px; }
.form-status p { font-size: .92rem; color: var(--text); }
.form-status--error { background: #FFF6F5; border-color: #F2C4C0; }
.form-status--error h3 { color: var(--danger); }
.form-status .btn-row { margin-top: 14px; }
.form-status .btn { min-height: 44px; padding: 10px 18px; font-size: .92rem; }
@media (min-width: 560px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .appointment__grid { grid-template-columns: 1fr 1.15fr; } }

.contact__grid { display: grid; gap: clamp(28px, 4vw, 44px); align-items: stretch; }
.contact-list { display: grid; gap: 14px; margin-bottom: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--bg-blue); border-radius: var(--r); }
.contact-list h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.contact-list p, .contact-list a { font-weight: 600; font-size: 1.02rem; line-height: 1.5; }
.contact-list a:hover { color: var(--teal-strong); }
.contact__note { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.contact__emergency { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: #FFF8EC; border: 1px solid #F3DFB4; color: #6B4E10; font-size: .88rem; line-height: 1.5; }
.contact__emergency:empty { display: none; }
.contact__map { min-height: 340px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-blue); }
.contact__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.1fr; } .contact__map, .contact__map iframe { min-height: 100%; } }
.contact__info .btn-row .btn { padding-inline: 18px; }
.contact-form { margin-top: 24px; padding: clamp(22px, 4vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); scroll-margin-top: 110px; }
.contact-form__title { font-size: 1.35rem; margin-bottom: 6px; }
.contact-form__lead { color: var(--muted); margin-bottom: 22px; }
.contact__side { min-width: 0; }
.contact__side .contact-form { margin-top: 0; height: 100%; }
.contact-form .form-status { margin-top: 0; margin-bottom: 18px; }
.contact-form .form-status:last-child { margin-bottom: 0; }
@media (max-width: 519.98px) { .contact__info .btn { width: 100%; } }

.site-footer { background: #0A2F3B; color: rgba(255, 255, 255, .78); font-size: .95rem; }
.footer__grid { display: grid; gap: 38px; padding-block: clamp(52px, 7vw, 84px); grid-template-columns: 1fr; }
.footer__about p { margin-top: 18px; max-width: 34ch; line-height: 1.7; }
.footer__col h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.footer__col li + li { margin-top: 10px; }
.footer__col a { transition: color .2s ease, padding-left .2s ease; }
.footer__col ul:not(.footer__contact) a:hover { color: #fff; padding-left: 4px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.footer__contact .ico { margin-top: 3px; color: #7FD8B3; width: 1.1em; }
.footer__contact a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px 0; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; text-align: center; }
.footer__credit a { color: rgba(255, 255, 255, .82); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255, 255, 255, .35); transition: color .2s ease, text-decoration-color .2s ease; }
.footer__credit a:hover { color: #fff; text-decoration-color: currentColor; }
@media (min-width: 560px) {
  .footer__bottom .container { flex-wrap: nowrap; }
  .footer__credit::before { content: "\2022"; margin-right: 6px; opacity: .5; }
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.4fr .8fr .9fr 1.4fr; } }

/* floating controls */
.to-top { position: fixed; right: 20px; bottom: 24px; z-index: 90; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--grad-btn); color: #fff; box-shadow: var(--shadow); font-size: 1.2rem; animation: fade .3s ease; transition: transform .25s ease; }
.to-top:hover { transform: translateY(-3px); }
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: 76px; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 26px rgba(11, 94, 117, .16); backdrop-filter: blur(8px); }
  .mobile-bar .btn { min-height: 50px; padding-inline: 12px; }
  .to-top { bottom: 90px; right: 14px; width: 44px; height: 44px; }
}

/* ---------- 12b. Inner pages ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(44px, 7vw, 84px) 0 clamp(56px, 8vw, 96px);
  background: linear-gradient(135deg, #093F52 0%, #0B5E75 50%, #0E7F81 100%); background-size: 180% 180%;
  border-radius: 0 0 clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.8vw, 3.4rem); max-width: 22ch; }
.page-hero .lead { color: rgba(255, 255, 255, .86); max-width: 640px; margin-top: 16px; }
.page-hero__c1 { width: 460px; height: 460px; right: -140px; top: -190px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0)); }
.page-hero__c2 { width: 280px; height: 280px; left: -100px; bottom: -150px; background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 20px; font-size: .86rem; font-weight: 600; color: rgba(255, 255, 255, .72); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

.section-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 5vw, 52px); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(32px, 5vw, 52px); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--blue); box-shadow: var(--shadow-sm); transition: background .25s ease, color .25s ease, transform .25s ease, border-color .25s ease; }
.chip .ico { width: 1.1em; height: 1.1em; }
.chip:hover { background: var(--grad-btn); color: #fff; border-color: transparent; transform: translateY(-2px); }
@media (max-width: 719.98px) {   /* one swipeable row instead of a tall stack */
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
}

.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.cta-band { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 96px); }
/* when the last section is white, drop its own bottom padding so the gap above the band isn't doubled */
body[data-cta] main > .section:last-child:not(.section--tint):not(.section--green) { padding-bottom: 0; }
.cta-band__card { position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 52px); border-radius: var(--r-lg); color: #fff; background: linear-gradient(135deg, #0A5268, #0B5E75 50%, #0E7F81); box-shadow: var(--shadow-lg); }
.cta-band__text, .cta-band .btn-row { position: relative; z-index: 1; }
.cta-band__text h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-band__text p { color: rgba(255, 255, 255, .86); max-width: 52ch; }
.cta-band__c { width: 340px; height: 340px; right: -90px; top: -130px; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0)); }
@media (min-width: 960px) { .cta-band__card { grid-template-columns: 1.3fr auto; } }
@media (max-width: 519.98px) { .cta-band .btn { width: 100%; } }

/* services page */
.svc-list { display: grid; gap: 28px; }
.svc { display: grid; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, transform .3s ease; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--blue), var(--teal)); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__media--icon { display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.svc__media--icon::before, .svc__media--icon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.svc__media--icon::before { width: 260px; height: 260px; right: -70px; top: -90px; }
.svc__media--icon::after { width: 160px; height: 160px; left: -40px; bottom: -60px; }
.svc__media--icon .ico { position: relative; z-index: 1; width: 88px; height: 88px; stroke-width: 1.3; }
.svc__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(22px, 3.5vw, 38px); }
.svc__body h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.svc__body > p { color: var(--muted); }
.svc__sub { margin-top: 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.svc__docs { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--bg-blue); font-size: .92rem; line-height: 1.5; }
.svc__docs .ico { margin-top: 3px; flex: none; color: var(--teal-strong); }
.svc__docs--muted { color: var(--muted); }
.svc__body .btn-row { margin-top: 8px; }
.checklist--tight { margin: 4px 0 0; gap: 10px; }
@media (min-width: 900px) {
  .svc { grid-template-columns: .85fr 1.15fr; }
  .svc:nth-child(even) { grid-template-columns: 1.15fr .85fr; }
  .svc:nth-child(even) .svc__media { order: 2; }
  .svc__media { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 519.98px) { .svc__body .btn-row, .svc__body .btn { width: 100%; } }

/* facilities page */
.feature-list { display: grid; gap: clamp(48px, 7vw, 96px); }
.feature { display: grid; gap: clamp(22px, 4vw, 56px); align-items: center; scroll-margin-top: 96px; }
.feature__media { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; background: var(--bg-blue); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.feature:hover .feature__media img { transform: scale(1.05); }
.feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.feature__num { font-size: .85rem; font-weight: 800; letter-spacing: .16em; color: var(--green-strong); }
.feature__body h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.feature__body > p { color: var(--muted); font-size: 1.05rem; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } .feature:nth-child(even) .feature__media { order: 2; } }

/* doctors page */
.table-wrap { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.timing-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.timing-table th, .timing-table td { padding: 16px 22px; text-align: left; vertical-align: top; line-height: 1.5; }
.timing-table thead th { background: var(--bg-blue); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.timing-table tbody tr + tr { border-top: 1px solid var(--line); }
.timing-table tbody th { font-weight: 700; color: var(--text); }
.timing-table tbody tr { transition: background-color .25s ease; }
.timing-table tbody tr:hover { background: var(--bg-blue); }
.timing-table a { color: var(--teal-strong); font-weight: 600; }
.timing-table a:hover { text-decoration: underline; }
.table-note { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: center; }
@media (max-width: 719.98px) {
  .timing-table thead { position: absolute; left: -9999px; }
  .timing-table tbody tr { display: block; padding: 14px 18px; }
  .timing-table th, .timing-table td { display: block; padding: 4px 0; }
  .timing-table th::before, .timing-table td::before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
}

/* patient care + about: info cards and FAQ */
.info-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .info-grid { grid-template-columns: repeat(4, 1fr); } }
.info-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.info-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.info-card .service-card__link { margin-top: 4px; }
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: box-shadow .3s ease, border-color .3s ease; }
.faq[open] { border-color: rgba(15, 139, 141, .4); box-shadow: var(--shadow); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--bg-blue); color: var(--blue); transition: transform .35s ease, background .3s ease, color .3s ease; }
.faq[open] .faq__icon { transform: rotate(45deg); background: var(--grad-btn); color: #fff; }
.faq__a { padding: 0 24px 22px; color: var(--muted); animation: faqIn .4s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* appointment page (the form section doubles as the page banner) */
.appointment--page { padding-top: clamp(36px, 5vw, 64px); }
.appointment h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 14px; }
.how { display: grid; gap: 14px; margin-bottom: 28px; }
.how li { display: flex; gap: 14px; align-items: flex-start; color: rgba(255, 255, 255, .9); font-size: .95rem; }
.how__n { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-weight: 800; font-size: .85rem; }
.how strong { color: #fff; }

/* ---------- 13. Motion ----------
   Everything below is progressive enhancement: with animations off (or prefers-reduced-motion) the page is fully usable.
   Keyframes use `backwards` fill wherever the end state equals the normal state, so no transform lingers afterwards. */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); --ease-spring: cubic-bezier(.2, 1.35, .4, 1); }

/* scroll progress bar */
.scroll-progress { position: fixed; left: 0; top: 0; z-index: 150; width: 100%; height: 3px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--teal), var(--green)); }

/* parallax hook: JS sets --py; uses the individual `translate` property so it never fights transform animations */
[data-parallax] { translate: 0 var(--py, 0px); }

/* header + hero entrance */
.page-hero { animation: gradientShift 22s ease-in-out infinite alternate; }
.page-hero .container > * { animation: riseIn .85s var(--ease-out) backwards; }
.page-hero .container > :nth-child(1) { animation-delay: .1s; }
.page-hero .container > :nth-child(2) { animation-delay: .22s; }
.page-hero .container > :nth-child(3) { animation-delay: .36s; }
.site-header { animation: headerIn .8s var(--ease-out) backwards; }
/* clip-path + opacity (not transform): a transform would make the header the containing block of the fixed mobile menu panel */
@keyframes headerIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 -40px 0); } }
.hero__copy > * { animation: riseIn .9s var(--ease-out) backwards; }
.hero__copy > :nth-child(1) { animation-delay: .15s; }
.hero__copy > :nth-child(2) { animation-delay: .28s; }
.hero__copy > :nth-child(3) { animation-delay: .44s; }
.hero__copy > :nth-child(4) { animation-delay: .58s; }
.hero__copy > :nth-child(5) { animation-delay: .72s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(30px); } }
.hero__frame { animation: frameIn 1.2s var(--ease-out) .2s backwards; }
@keyframes frameIn { from { opacity: 0; transform: translateY(44px) scale(.94); } }
.hero__frame img { animation: imgSettle 1.8s var(--ease-out) .2s backwards, kenburns 24s ease-in-out 2s infinite alternate; }
@keyframes imgSettle { from { transform: scale(1.2); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.float-card--loc { animation: popIn .8s var(--ease-spring) 1.2s backwards, float 6.5s ease-in-out 2s infinite; }
.float-card--care { animation: popIn .8s var(--ease-spring) 1.45s backwards, float 6.5s ease-in-out 2.25s infinite; }
@keyframes popIn { from { opacity: 0; transform: translateY(22px) scale(.8); } }
.deco--dots { animation: fade 1.6s .8s backwards; }

/* drifting background shapes */
.deco--circle { animation: drift 18s ease-in-out infinite alternate; }
.hero__c2, .appt__c1 { animation-duration: 23s; animation-delay: -6s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(34px, 22px) scale(1.07); } }

/* ECG heartbeat line behind the hero */
.ecg { position: absolute; left: 0; right: 0; bottom: 50px; z-index: 0; width: 100%; height: 96px; pointer-events: none; }
.ecg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ecg__base { stroke: rgba(15, 139, 141, .15); stroke-width: 2; }
.ecg__pulse { stroke: var(--teal); stroke-width: 2.6; stroke-dasharray: .16 1.2; stroke-dashoffset: .16; animation: ecgRun 6.5s linear 1.4s infinite; filter: drop-shadow(0 0 6px rgba(15, 139, 141, .55)); }
@keyframes ecgRun { to { stroke-dashoffset: -1.2; } }

/* shimmering gradient headline words */
.text-grad { background-image: linear-gradient(90deg, var(--blue), var(--teal), var(--blue)); background-size: 200% auto; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }

/* directional reveal variants (JS adds .is-visible) */
.js .reveal--left { transform: translateX(-44px); }
.js .reveal--right { transform: translateX(44px); }
.js .reveal--zoom { transform: scale(.94) translateY(16px); }
@media (max-width: 719.98px) { .js .reveal--left { transform: translateX(-22px); } .js .reveal--right { transform: translateX(22px); } }

/* staggered children (JS sets --i on each child) */
.js .stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * .09s + .05s); }
.js .stagger.is-visible > * { opacity: 1; transform: none; }

/* section headings: growing eyebrow rules and an accent bar */
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); transition: width .9s .2s var(--ease-out); }
.section-head .eyebrow::before { transform: scaleX(-1); }
.js .section-head .eyebrow::before, .js .section-head .eyebrow::after { width: 0; }
.js .section-head.is-visible .eyebrow::before, .js .section-head.is-visible .eyebrow::after { width: 26px; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; margin: 18px auto 0; border-radius: 4px; background: var(--grad); transition: transform .9s .35s var(--ease-out); transform-origin: center; }
.js .section-head h2::after { transform: scaleX(0); }
.js .section-head.is-visible h2::after { transform: scaleX(1); }

/* button shine + attention pulse */
.btn--primary, .btn--green, .btn--white { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::before, .btn--green::before, .btn--white::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%); transition: transform .8s var(--ease-out);
}
.btn--white::before { background: linear-gradient(110deg, transparent 32%, rgba(15, 139, 141, .16) 50%, transparent 68%); }
.btn--primary:hover::before, .btn--green:hover::before, .btn--white:hover::before { transform: translateX(130%); }
.header__cta, .hero__actions .btn--primary, .mobile-bar .btn--primary { animation: pulseRing 3.8s ease-out 2.4s infinite; }
@keyframes pulseRing {
  0% { box-shadow: 0 8px 22px rgba(11, 94, 117, .28), 0 0 0 0 rgba(15, 139, 141, .5); }
  60%, 100% { box-shadow: 0 8px 22px rgba(11, 94, 117, .28), 0 0 0 16px rgba(15, 139, 141, 0); }
}
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* cursor spotlight on cards (JS sets --mx / --my) */
.trust-card, .why-item { position: relative; }
.service-card::after, .why-item::after, .trust-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(15, 139, 141, .13), transparent 70%);
}
.service-card:hover::after, .why-item:hover::after, .trust-card:hover::after { opacity: 1; }

/* icon life */
.service-card:hover .icon-badge .ico { animation: wiggle .7s ease; }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.12); } 50% { transform: rotate(9deg) scale(1.12); } 75% { transform: rotate(-5deg); } }
.trust-card:hover .icon-badge { animation: bob .6s ease; }
@keyframes bob { 40% { transform: translateY(-6px); } }
.why-icon { animation: bobSlow 4.5s ease-in-out infinite; }
.why-item:nth-child(2) .why-icon { animation-delay: -1.1s; } .why-item:nth-child(3) .why-icon { animation-delay: -2.2s; } .why-item:nth-child(4) .why-icon { animation-delay: -3.3s; }
@keyframes bobSlow { 50% { transform: translateY(-6px); } }

/* facilities + gallery: photos settle in, text rises */
.js .facility img, .js .gallery__item img { transform: scale(1.22); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.js .facility.is-visible img, .js .gallery__item.is-visible img { transform: scale(1); }
.js .facility.is-visible:hover img, .js .gallery__item.is-visible:hover img, .js .gallery__item.is-visible:focus-visible img { transform: scale(1.07); }
.js .facility__text { opacity: 0; transform: translateY(18px); transition: opacity .7s .4s ease, transform .8s .4s var(--ease-out); }
.js .facility.is-visible .facility__text { opacity: 1; transform: none; }

/* care approach: icons pop in, numbers slide */
.js .step__icon { opacity: 0; transform: scale(.55); transition: transform .7s var(--ease-spring) calc(var(--d, 0s) + .2s), opacity .5s ease calc(var(--d, 0s) + .2s), background .35s ease, color .35s ease; }
.js .step.is-visible .step__icon { opacity: 1; transform: none; }
.step.is-visible .step__icon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(15, 139, 141, .4); animation: ring 2.6s ease-out calc(var(--d, 0s) + .9s) 2; opacity: 0; }
.step__icon { position: relative; }
.js .step__num { opacity: 0; transform: translateY(8px); transition: opacity .5s ease calc(var(--d, 0s) + .1s), transform .5s ease calc(var(--d, 0s) + .1s); }
.js .step.is-visible .step__num { opacity: 1; transform: none; }

/* doctors: rotating ring around each avatar */
.doctor-card__top::before {
  content: ""; position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: calc(var(--av) + 20px); height: calc(var(--av) + 20px); border-radius: 50%;
  background: conic-gradient(var(--teal), var(--green), rgba(15, 139, 141, 0) 55%, var(--teal));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spin 9s linear infinite; opacity: .85;
}

/* patient + appointment: living gradients, breathing frame */
.patient, .appointment { background-size: 180% 180%; animation: gradientShift 22s ease-in-out infinite alternate; }
@keyframes gradientShift { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
.patient__media::before { animation: frameShift 5.5s ease-in-out infinite alternate; }
@keyframes frameShift { to { transform: translate(-10px, -10px); } }

/* form feedback */
.field label { transition: color .2s ease; }
.field:focus-within label { color: var(--teal-strong); }
.field.has-error input, .field.has-error select { animation: shake .45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field-error { animation: errIn .3s ease; }
@keyframes errIn { from { opacity: 0; transform: translateY(-4px); } }
.form-status:not([hidden]) { animation: statusIn .55s var(--ease-out); }
@keyframes statusIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* lightbox */
.lightbox__figure { animation: zoomIn .45s var(--ease-out) backwards; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.92); } }
.lightbox__btn { animation: fade .5s .15s backwards; }

/* floating controls */
.to-top .ico { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
@media (max-width: 767.98px) { .mobile-bar { animation: barIn .7s var(--ease-out) 1.4s backwards; } }
@keyframes barIn { from { transform: translateY(100%); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .stagger > *, .js .facility__text, .js .step__icon, .js .step__num { opacity: 1; transform: none; }
  .js .facility img, .js .gallery__item img { transform: none; }
  .js .section-head .eyebrow::before, .js .section-head .eyebrow::after { width: 26px; }
  .js .section-head h2::after { transform: none; }
  .ico--draw * { stroke-dashoffset: 0; }
  .ecg, .scroll-progress, .doctor-card__top::before { display: none; }
  [data-parallax] { translate: none; }
}


/* ---------- Justified paragraphs (site-wide) ----------
   Paragraphs inside deliberately centred blocks stay centred, otherwise
   "justify" would push their single lines to the left. */
p { text-align: justify; }
.section-head p, .why-item p, .form-note, .table-note,
.footer__bottom p, .lightbox figcaption p { text-align: center; }
@media (min-width: 860px) { .step p { text-align: center; } }