/* ---------- Self-hosted fonts (SIL Open Font License, see /fonts) ---------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/work-sans-latin-var.woff2") format("woff2");
}

/* RKA Specialist Hospital — shared stylesheet
 * Consolidated from every page's inline <style> block.
 * Includes: design tokens, layout, header/nav, hero, cards, accordions,
 * staff/department/service grids, gallery, regulatory badges, footer, responsive rules.
 */

:root {
    --ink:        #0A62C9;
    --brand:      #0A62C9;
    --brand-2:    #38A6FF;
    --sky:        #EAF4FF;
    --sky-deep:   #D2E9FF;
    --white:      #FFFFFF;
    --gold:       #9A6620;
    --gold-deep:  #7E5419;
    --red:        #B23A2E;
    --ink-soft:   #4A6478;
    --line:       #D8E4EC;
    --bg:         var(--white);
    --surface:    var(--white);
    --text:       var(--ink);
    --text-soft:  var(--ink-soft);
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

:root[data-theme="dark"] {
    --bg: #0A1E30;
    --surface: #0E2A40;
    --text: #EAF2F8;
    --text-soft: #A9C1D3;
    --line: #1C3A52;
    --sky: #10314A;
    --sky-deep: #123A57;
  }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0A1E30;
      --surface: #0E2A40;
      --text: #EAF2F8;
      --text-soft: #A9C1D3;
      --line: #1C3A52;
      --sky: #10314A;
      --sky-deep: #123A57;
    }
  }

html { scroll-padding-top: env(safe-area-inset-top, 0px); scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

img, svg { max-width: 100%; }
img { height: auto; } /* keeps photos in proportion now that they carry width/height */

a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--text); }

p { margin: 0; }

/* ---------- Utility bar ---------- */
  .utility {
    background: var(--ink);
    color: #CFE0EC;
    font-size: 13.5px;
  }

/* dark-mode only */
:root[data-theme="dark"] .utility { background: #071624; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .utility { background: #071624; } }

.utility .wrap {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 8px; padding-bottom: 8px;
    gap: 16px; flex-wrap: wrap;
  }

.utility-left { display: flex; gap: 20px; flex-wrap: wrap; }

.utility a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: #fff; }

.utility a:hover { text-decoration: underline; }

.utility-emergency { color: #FFE0D8; font-weight: 600; }

.utility-social { display: flex; gap: 10px; }

.utility-social a { width: 26px; height: 26px; border-radius: 50%; background: #000; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }

.utility-social a:hover { background: var(--gold); }

.utility-social svg { width: 13px; height: 13px; color: #fff; }

/* ---------- Header ---------- */
  header.site {
    position: sticky; top: 0; z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }

.brand-mark {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }

.brand-text strong { font-family: var(--font-display); font-size: 19px; color: var(--text); font-weight: 600; }

.brand-text span { font-size: 11.5px; letter-spacing: .04em; color: var(--text-soft); }

nav.primary { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }

nav.primary a {
    text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text-soft);
    position: relative; padding: 4px 0; white-space: nowrap;
  }

nav.primary a:hover { color: var(--brand); }

nav.primary a.active { color: var(--brand); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 8px; font-size: 14.5px; font-weight: 600;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    font-family: var(--font-body); white-space: nowrap;
  }

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-gold { background: var(--gold); color: #fff; }

.btn-gold:hover { background: var(--gold-deep); }

.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }

.btn-outline:hover { background: var(--sky); }

.btn-ghost-red { background: transparent; color: var(--red); border-color: var(--red); }

.btn-ghost-red:hover { background: rgba(178,58,46,.08); }

.btn-white { background: var(--white); color: var(--ink); }

.btn-white:hover { background: var(--sky-deep); }

.btn-ink { background: var(--ink); color: #fff; }

.btn-ink:hover { background: #0961c7; }

.btn-block { width: 100%; justify-content: center; }

.burger { display: none; background: none; border: none; padding: 6px; cursor: pointer; }

.burger svg { width: 26px; height: 26px; color: var(--text); }

/* ---------- Desktop dropdown nav ---------- */
/* The panel touches the menu item's hover area (no dead gap), and fades out
   after a short delay so a slightly off-axis mouse move doesn't close it. */
.nav-item { position: relative; padding-bottom: 16px; margin-bottom: -16px; }
.nav-top-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.nav-top-link .chev { width: 13px; height: 13px; transition: transform .15s ease; }
.nav-item:hover .chev, .nav-item:focus-within .chev, .nav-item.open .chev { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute; top: 100%; left: 0;
  visibility: hidden; opacity: 0; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .25s;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgba(8,20,35,.35); padding: 10px; min-width: 240px; z-index: 60;
}
.nav-item:hover .dropdown-panel, .nav-item:focus-within .dropdown-panel, .nav-item.open .dropdown-panel {
  visibility: visible; opacity: 1; transform: none; transition-delay: 0s;
}
nav.primary .dropdown-panel a {
  display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
nav.primary .dropdown-panel a:hover { background: var(--sky); color: var(--brand); }
.dropdown-panel.dropdown-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 0 10px; min-width: 480px; }
.dropdown-col { display: flex; flex-direction: column; }
.dropdown-all-link { grid-column: 1 / -1; font-weight: 700 !important; border-bottom: 1px solid var(--line); margin-bottom: 4px; padding-bottom: 10px !important; }
.dropdown-label {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft); padding: 6px 12px 4px;
}

/* ---------- Mobile dropdown (accordion) nav ---------- */
.mobile-dropdown { border-bottom: 1px solid var(--line); }
.mobile-dropdown summary {
  list-style: none; cursor: pointer; padding: 14px 4px; font-size: 17px; font-weight: 500;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
}
.mobile-dropdown summary::-webkit-details-marker { display: none; }
.mobile-dropdown summary::after { content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; }
.mobile-dropdown[open] summary::after { content: "\2013"; }
.mobile-sublinks { display: flex; flex-direction: column; padding: 0 4px 14px 14px; }
.mobile-panel .mobile-sublinks a { padding: 9px 4px; border-bottom: none; font-size: 15px; font-weight: 400; color: var(--text-soft); text-decoration: none; }
.mobile-panel .mobile-sublinks a:hover { color: var(--brand); }

/* ---------- Hero ---------- */
  .hero {
    background: linear-gradient(180deg, var(--ink) 0%, var(--brand) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding-bottom: 96px;
  }

.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
    align-items: center; padding-top: 64px; padding-bottom: 48px;
  }

.hero-slogan {
    font-family: var(--font-display); font-style: italic; font-weight: 700;
    color: #FFD98A; font-size: 19px; letter-spacing: .02em;
    display: inline-flex; align-items: center; margin-bottom: 16px;
    padding: 7px 16px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,217,138,.4);
    text-shadow: 0 1px 4px rgba(0,0,0,.25);
  }

.eyebrow-plain { color: #B9D6EA; font-size: 15px; font-weight: 500; margin-bottom: 14px; display: block; }

.hero h1 {
    font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; color: #fff; letter-spacing: -.01em;
  }

.hero-sub {
    margin-top: 20px; font-size: 17.5px; color: #CFE0EC; max-width: 46ch; line-height: 1.65;
  }

.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero-trust { display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap; }

.hero-trust-item { display: flex; flex-direction: column; }

.hero-trust-item strong { font-family: var(--font-display); font-size: 27px; color: #fff; }

.hero-trust-item span { font-size: 13px; color: #A9C7DC; margin-top: 2px; }

.hero-art { position: relative; }

.hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- Quick access ribbon ---------- */
  .quick-access {
    max-width: 1180px; margin: -64px auto 0; padding: 0 24px; position: relative; z-index: 10;
  }

.quick-access-inner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px -20px rgba(11,47,78,.35);
    display: grid; grid-template-columns: repeat(6, 1fr);
  }

.qa-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: 10px; padding: 26px 12px; text-decoration: none; color: var(--text);
    border-right: 1px solid var(--line);
  }

.qa-item:last-child { border-right: none; }

.qa-item:hover { background: var(--sky); }

.qa-item.emergency:hover { background: rgba(178,58,46,.07); }

.qa-icon {
    width: 46px; height: 46px; border-radius: 12px; background: var(--sky);
    display: flex; align-items: center; justify-content: center;
  }

.qa-item.emergency .qa-icon { background: rgba(178,58,46,.1); }

.qa-icon svg { width: 22px; height: 22px; color: var(--brand); }

.qa-item.emergency .qa-icon svg { color: var(--red); }

.qa-item span.label { font-size: 13.5px; font-weight: 600; }

.qa-item.emergency span.label { color: var(--red); }

/* ---------- Section shell ---------- */
  section { padding: 96px 0; }

.section-tight { padding: 72px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }

.section-head .kicker { color: var(--brand); font-weight: 600; font-size: 14.5px; margin-bottom: 10px; display: block; }

.section-head h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }

.section-head p.lead { margin-top: 16px; font-size: 16.5px; color: var(--text-soft); line-height: 1.65; }

.section-alt { background: var(--sky); }

/* ---------- About snapshot ---------- */
  .about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }

.about-copy p { color: var(--text-soft); font-size: 16px; line-height: 1.75; }

.about-copy p + p { margin-top: 14px; }

.stat-row { display: flex; border-top: 1px solid var(--line); margin-top: 32px; }

.stat { flex: 1; padding: 20px 0; border-right: 1px solid var(--line); }

.stat:last-child { border-right: none; }

.stat strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--brand); }

.stat span { font-size: 13px; color: var(--text-soft); }

.about-art { border-radius: 18px; overflow: hidden; }

.about-art svg { display: block; width: 100%; height: auto; }

/* ---------- Services grid ---------- */
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }

.service-card { background: var(--surface); padding: 32px 26px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--text); }

.service-card:hover { background: var(--sky); }

.service-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--sky); display: flex; align-items: center; justify-content: center; }

:root[data-theme="dark"] .service-icon { background: var(--sky-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .service-icon { background: var(--sky-deep); } }

.service-icon svg { width: 22px; height: 22px; color: var(--brand); }

.service-card h3 { font-size: 17px; font-weight: 600; font-family: var(--font-body); }

.service-card p { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

.service-link { margin-top: auto; font-size: 13.5px; font-weight: 600; color: var(--brand); }

/* ---------- Departments strip ---------- */
  .dept-strip { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }

.dept-chip {
    flex: 0 0 auto; width: 300px; display: flex; flex-direction: column;
    border-radius: 18px; border: 1px solid var(--line); overflow: hidden;
    text-decoration: none; color: var(--text); background: var(--surface);
    box-shadow: 0 10px 24px -16px rgba(8,20,35,.25);
    transition: transform .15s ease, box-shadow .15s ease;
  }

.dept-chip-img { display: block; width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.dept-chip-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dept-chip-label { display: block; padding: 16px 18px; font-size: 16px; font-weight: 600; text-align: center; }

  @media (max-width: 640px) { .dept-chip { width: 240px; } }

.dept-chip:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(8,20,35,.35); }
.dept-chip:hover .dept-chip-label { color: var(--brand); }

/* ---------- Doctors ---------- */
  .doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.doctor-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }

.doctor-photo {
    aspect-ratio: 4/4.3; background: var(--sky); display: flex; align-items: center; justify-content: center;
  }

.doctor-photo svg { width: 56%; height: 56%; color: var(--brand-2); opacity: .55; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }

.doctor-body { padding: 20px; }

.doctor-body h3 { font-size: 16.5px; font-family: var(--font-body); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.doctor-body .spec { color: var(--brand); font-size: 13.5px; font-weight: 600; margin-top: 3px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.doctor-body .qual { color: var(--text-soft); font-size: 13px; margin-top: 8px; display: block; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.doctor-body .btn { margin-top: 16px; width: 100%; justify-content: center; font-size: 13.5px; padding: 10px 14px; }

/* ---------- Why us / facilities ---------- */
  .why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.why-item { display: flex; gap: 16px; }

.why-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--sky); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.why-icon svg { width: 20px; height: 20px; color: var(--brand); }

.why-item h3, .why-item h4 { font-size: 15.5px; font-family: var(--font-body); font-weight: 600; }

.why-item p { font-size: 14px; color: var(--text-soft); margin-top: 6px; line-height: 1.6; }

/* ---------- Insurance / partners ---------- */
  .insurance-band { background: var(--ink); color: #fff; }

.insurance-band .section-head h2 { color: #fff; }

.insurance-band .section-head p.lead { color: #EAF3FC; }

.partner-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }

.partner-chip {
    padding: 10px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: 13.5px; color: #fff;
  }

/* ---------- Health articles ---------- */
  .articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.article-card { text-decoration: none; color: var(--text); display: block; }

.article-thumb { aspect-ratio: 16/10; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

.article-thumb svg { width: 36%; color: var(--brand-2); opacity: .5; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.article-cat { color: #94621F; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

.article-card h3 { font-size: 17px; font-family: var(--font-body); font-weight: 600; margin-top: 8px; line-height: 1.4; }

.article-card p.excerpt { font-size: 14px; color: var(--text-soft); margin-top: 8px; line-height: 1.55; }

.article-date { font-size: 12.5px; color: var(--text-soft); margin-top: 12px; display: block; }

/* ---------- CTA band ---------- */
  .cta-band { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-deep) 100%); color: #fff; text-align: left; }

.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }

.cta-band h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); max-width: 520px; }

.cta-band p { color: #CFE0EC; margin-top: 10px; font-size: 15.5px; }

.cta-band-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
  footer.site { background: var(--ink); color: #F1F7FF; padding-top: 72px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }

.footer-brand .brand-text strong { color: #fff; }

.footer-brand .brand-mark { background: #fff; padding: 5px; }

.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.7; color: #E3EEFA; max-width: 34ch; }

.footer-social { display: flex; gap: 12px; margin-top: 20px; }

.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: #000; display: flex; align-items: center; justify-content: center; transition: background .15s ease; }

.footer-social a:hover { background: var(--gold); }

.footer-social svg { width: 17px; height: 17px; color: #fff; }

.footer-col h3, .footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; margin-bottom: 18px; }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }

.footer-col a { text-decoration: none; font-size: 14px; color: #EAF3FC; }

.footer-col a:hover { color: #FFD58A; }

.footer-contact li { display: flex; gap: 10px; font-size: 14px; color: #EAF3FC; align-items: flex-start; }

.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #BFE0FF; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 13px; color: #D6E7F9; flex-wrap: wrap; gap: 10px; }

.footer-bottom a { color: #EAF3FC; text-decoration: none; margin-left: 18px; }

.footer-bottom .credit-link { margin-left: 4px; text-decoration: underline; text-underline-offset: 2px; }

.footer-bottom a:hover { color: #FFD58A; }

/* ---------- Floating WhatsApp ---------- */
  .wa-float {
    position: fixed; bottom: 24px; right: 24px; z-index: 60;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 24px -6px rgba(0,0,0,.4); text-decoration: none;
  }

.wa-float svg { width: 28px; height: 28px; color: #fff; }

.wa-float:hover { background: #1DA851; }

/* ---------- Mobile nav ---------- */
  .mobile-panel {
    display: none; position: fixed; inset: 0; z-index: 100; background: var(--bg);
    padding: 20px 24px; overflow-y: auto;
  }

.mobile-panel.open { display: block; }

.mobile-panel-head { display: flex; justify-content: space-between; align-items: center; }

.mobile-panel nav { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }

.mobile-panel nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: 17px; font-weight: 500; }

.mobile-panel .btn { margin-top: 20px; }

.close-x svg { width: 24px; height: 24px; color: var(--text); }

/* ---------- Responsive ---------- */
  @media (max-width: 1240px) {
    nav.primary { display: none; }
    .burger { display: block; }
  }

  @media (max-width: 1020px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
    .quick-access-inner { grid-template-columns: repeat(3, 1fr); }
    .qa-item:nth-child(3) { border-right: none; }
    .qa-item:nth-child(n+4) { border-top: 1px solid var(--line); }
    .about-grid { grid-template-columns: 1fr; }
    .about-art { order: -1; max-width: 420px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .doctors-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .articles-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  }

@media (max-width: 640px) {
    .utility-left { gap: 14px; }
    .utility .wrap { flex-direction: row; }
    section { padding: 64px 0; }
    .quick-access-inner { grid-template-columns: repeat(2, 1fr); }
    .qa-item:nth-child(2n) { border-right: none; }
    .qa-item:nth-child(n+3) { border-top: 1px solid var(--line); }
    .stat-row { flex-wrap: wrap; }
    .stat { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--line); }
    .services-grid { grid-template-columns: 1fr; }
    .doctors-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .why-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
    .hero-trust { gap: 20px; }
  }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Inner page banner ---------- */
  .page-banner {
    background: linear-gradient(180deg, var(--ink) 0%, var(--brand) 100%);
    color: #fff; padding: 56px 0 64px;
  }

.breadcrumb { font-size: 13.5px; color: #A9C7DC; margin-bottom: 14px; }

.breadcrumb a { color: #CFE0EC; text-decoration: none; }

.breadcrumb a:hover { text-decoration: underline; }

.page-banner h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }

.page-banner p.lead { color: #CFE0EC; margin-top: 14px; font-size: 16.5px; max-width: 58ch; }

/* ---------- Value cards (Vision / Mission / Values) ---------- */
  .value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; }

.value-card .value-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

.value-card .value-icon svg { width: 22px; height: 22px; color: var(--brand); }

.value-card h3 { font-size: 18px; font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; }

.value-card p { font-size: 14.5px; color: var(--text-soft); line-height: 1.65; }

.values-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }

.value-pill { padding: 10px 18px; border-radius: 999px; background: var(--sky); color: var(--brand); font-weight: 600; font-size: 14px; }

/* ---------- Staff directory ---------- */
  .staff-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }

.staff-card { display: grid; grid-template-columns: 300px 1fr; gap: 32px; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--surface); }

.staff-photo { width: 100%; aspect-ratio: 1/1.05; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; }

.staff-photo svg { width: 58%; height: 58%; color: var(--brand-2); opacity: .55; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }

.staff-body h3 { font-size: 18px; font-family: var(--font-body); font-weight: 600; }

.staff-body .role { color: var(--brand); font-size: 13.5px; font-weight: 600; display: block; margin-top: 2px; }

.staff-body .qual { font-size: 13px; color: var(--text-soft); display: block; margin-top: 6px; }

.staff-body .bio { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; margin-top: 12px; }

.staff-body .spec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.spec-tag { font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--sky); color: var(--brand); font-weight: 600; }

.staff-body .btn { margin-top: 16px; font-size: 13.5px; padding: 10px 16px; }

/* ---------- Department cards ---------- */
  .dept-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.dept-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; background: var(--surface); }

.dept-card .dept-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--sky); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }

.dept-card .dept-icon svg { width: 22px; height: 22px; color: var(--brand); }

.dept-card h3 { font-size: 16.5px; font-family: var(--font-body); font-weight: 600; }

.dept-card p { font-size: 14px; color: var(--text-soft); margin-top: 8px; line-height: 1.6; }

.dept-card .hours { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--gold-deep); background: rgba(201,138,50,.1); padding: 5px 10px; border-radius: 6px; }

/* ---------- Accordion (services detail) ---------- */
  details.acc { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; background: var(--surface); }

details.acc > summary {
    list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-body);
    font-weight: 600; font-size: 16px; display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
  }

details.acc > summary::-webkit-details-marker { display: none; }

details.acc > summary::after {
    content: "+"; font-size: 22px; color: var(--brand); font-weight: 400; flex-shrink: 0; line-height: 1;
  }

details.acc[open] > summary::after { content: "–"; }

details.acc > summary:hover { background: var(--sky); }

.acc-body { padding: 0 24px 24px; color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }

.acc-body h4 { font-family: var(--font-body); color: var(--text); font-size: 14.5px; font-weight: 700; margin: 16px 0 8px; }

.acc-body h4:first-child { margin-top: 0; }

.acc-body ul { margin: 0; padding-left: 18px; }

.acc-body li { margin-bottom: 6px; }

.acc-body table { width: 100%; border-collapse: collapse; margin-top: 8px; }

.acc-body table th, .acc-body table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: top; }

.acc-body table th { color: var(--text); font-weight: 700; }

.service-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin: 24px 0 40px; }

.service-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); }

.service-meta svg { width: 18px; height: 18px; color: var(--brand); }

@media (max-width: 1020px) {
    .value-grid { grid-template-columns: 1fr; }
    .staff-grid { grid-template-columns: 1fr; }
    .dept-card-grid { grid-template-columns: 1fr 1fr; }
  }

@media (max-width: 640px) {
    .staff-card { grid-template-columns: 1fr; }
    .staff-photo { max-width: 260px; margin: 0 auto; }
    .dept-card-grid { grid-template-columns: 1fr; }
  }

/* ---------- Regulatory compliance badges ---------- */
  .reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.reg-card {
    border: 1px solid var(--line); border-radius: 14px; padding: 24px 18px;
    background: var(--surface); text-align: center; display: flex; flex-direction: column; align-items: center;
  }

.reg-badge {
    width: 68px; height: 68px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .02em;
    margin-bottom: 14px; flex-shrink: 0; overflow: hidden; padding: 6px;
  }

.reg-badge img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.reg-card h3 { font-size: 13.5px; font-family: var(--font-body); font-weight: 600; line-height: 1.4; margin-bottom: 10px; min-height: 36px; }

.reg-status {
    font-size: 12px; font-weight: 700; color: var(--gold-deep); background: rgba(201,138,50,.1);
    padding: 5px 10px; border-radius: 999px;
  }

@media (max-width: 1020px) { .reg-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 640px) { .reg-grid { grid-template-columns: 1fr 1fr; } }

.dept-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; background: var(--surface); display: block; text-decoration: none; color: var(--text); }

.dept-card:hover { border-color: var(--brand); background: var(--sky); }

.dept-learn { display: block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--brand); }

.hero-art { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1400/808; box-shadow: 0 24px 48px -20px rgba(0,0,0,.4); }

.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Facility gallery ---------- */
  .gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.gallery-item { margin: 0; border-radius: 14px; overflow: hidden; position: relative; background: var(--sky); }

.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

.gallery-item figcaption {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px;
    background: linear-gradient(0deg, rgba(8,20,35,.75) 0%, rgba(8,20,35,0) 100%);
    color: #fff; font-size: 13px; font-weight: 600;
  }

@media (max-width: 1020px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .gallery-item figcaption { font-size: 11.5px; padding: 8px 10px; } }

/* ---------- CTA band ---------- */
  .cta-band-photo {
    /* Fallback for browsers without image-set() support */
    background:
      linear-gradient(120deg, rgba(201,138,50,.82) 0%, rgba(8,20,35,.92) 100%),
      url('/images/home-cta-exterior.jpg?v=wm1') center / cover no-repeat;
    /* WebP for browsers that support image-set() — silently ignored otherwise */
    background:
      linear-gradient(120deg, rgba(201,138,50,.82) 0%, rgba(8,20,35,.92) 100%),
      image-set(
        url('/images/home-cta-exterior.webp?v=wm1') type('image/webp'),
        url('/images/home-cta-exterior.jpg?v=wm1') type('image/jpeg')
      ) center / cover no-repeat;
  }

/* ---------- Regulatory badge strip ---------- */
  .reg-strip-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; }

.reg-strip-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }

.reg-strip-head h2 { font-size: 20px; }

.reg-strip-head .kicker { color: var(--brand); font-weight: 600; font-size: 13.5px; display: block; margin-bottom: 6px; }

.reg-strip-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 4px; }

.reg-strip-item { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 110px; text-align: center; }

.reg-strip-badge {
    width: 64px; height: 64px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 5px;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-body); font-weight: 700; font-size: 12px; line-height: 1.1; text-align: center;
  }

.reg-strip-badge img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }

.reg-strip-item span.name { font-size: 12px; font-weight: 600; color: var(--text-soft); }

@media (max-width: 640px) { .reg-strip-section { padding: 40px 0; } }
/* ---------- Header action buttons (Emergency + Book Appointment) ---------- */
@media (max-width: 1020px) { .nav-actions .btn { padding: 9px 14px; font-size: 13.5px; } }
@media (max-width: 640px) { .nav-actions { display: none; } }
.mobile-sublabel {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft); padding: 12px 4px 2px;
}

/* ---------- Utility bar: icon size + no wrapping ---------- */
.utility a { white-space: nowrap; }
.utility a svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 640px) { .utility a.hide-sm { display: none; } }

/* Mobile menu close button */
.close-x { background: none; border: none; padding: 6px; cursor: pointer; }

/* ---------- Coming soon service card ---------- */
.service-card-soon { position: relative; cursor: default; }
.coming-soon-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Department/service detail photo ---------- */
.dept-photo-wrap { border-radius: 16px; overflow: hidden; margin-bottom: 28px; box-shadow: 0 16px 32px -18px rgba(8,20,35,.3); }
.dept-photo-wrap img { width: 100%; max-height: 420px; object-fit: cover; display: block; }

/* ---------- License photo gallery (Accreditations page) ---------- */
.license-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.license-gallery img { width: 100%; max-height: 420px; object-fit: contain; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
@media (max-width: 640px) { .license-gallery { grid-template-columns: 1fr; } }

/* ---------- Lightbox (click-to-enlarge photos) ---------- */
.lightbox-img { cursor: zoom-in; }
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(8,20,35,.92); align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw; max-height: 85vh; width: auto; height: auto;
  object-fit: contain; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: rgba(255,255,255,.12);
  border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
@media (max-width: 640px) { .lightbox-overlay { padding: 20px; } }

/* ---------- Article / blog pages ---------- */
.article-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin: -48px 0 40px; box-shadow: 0 20px 40px -20px rgba(8,20,35,.3); position: relative; z-index: 5; }
.article-meta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-byline { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); }
.article-byline strong { color: var(--text); }
.article-date { font-size: 13.5px; color: var(--text-soft); }
.article-body { max-width: 720px; }
.article-body h2 { font-size: 24px; margin: 40px 0 16px; color: var(--text); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { font-size: 17px; line-height: 1.8; color: var(--text); margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { font-size: 16.5px; line-height: 1.75; color: var(--text); margin-bottom: 10px; }
.article-body strong { color: var(--ink); }
.article-tip-box {
  background: var(--sky); border-left: 4px solid var(--brand); border-radius: 10px;
  padding: 20px 24px; margin: 28px 0; font-size: 15.5px; color: var(--text); line-height: 1.7;
}
.article-tip-box strong { display: block; color: var(--brand); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.reviewer-card {
  display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 24px; margin-top: 48px;
}
.reviewer-card picture { display: block; flex-shrink: 0; width: 64px; height: 64px; }
.reviewer-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.reviewer-card .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); margin-bottom: 4px; }
.reviewer-card h3, .reviewer-card h4 { font-family: var(--font-body); font-size: 15.5px; font-weight: 600; margin-bottom: 2px; }
.reviewer-card p { font-size: 13.5px; color: var(--text-soft); margin: 0; }
@media (max-width: 640px) { .article-body h2 { font-size: 21px; } .article-body p, .article-body li { font-size: 16px; } }

/* ---------- Promotions page ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.promo-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 10px 24px -16px rgba(8,20,35,.25); display: flex; flex-direction: column; }
.promo-card-img { width: 100%; aspect-ratio: 3/4; background: #f4f8fc; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.promo-card-img img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.promo-card-label { padding: 14px 18px; font-size: 14.5px; font-weight: 600; text-align: center; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .promo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .promo-grid { grid-template-columns: 1fr; } }

/* Lightbox next / previous */
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 52px; height: 52px; border-radius: 50%; font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 14px; background: rgba(0,0,0,.4); padding: 5px 14px; border-radius: 999px;
}
@media (max-width: 640px) { .lightbox-nav { width: 42px; height: 42px; font-size: 18px; } .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } }

/* ---------- Decorative doodle pattern on page banners ---------- */
.page-banner { position: relative; overflow: hidden; }
.page-banner::before {
  content: ""; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 420px; pointer-events: none; opacity: .10;
  background: url('/images/banner-doodles.png') no-repeat right center / contain;
  background-image: image-set(url('/images/banner-doodles-v2.webp') type('image/webp'), url('/images/banner-doodles.png') type('image/png'));
}
.page-banner .wrap { position: relative; }
@media (max-width: 640px) { .page-banner::before { width: 260px; height: 240px; right: -70px; opacity: .07; } }

/* ---------- Careers: text + illustration ---------- */
.careers-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.careers-split picture img { width: 100%; height: auto; display: block; }
@media (max-width: 860px) { .careers-split { grid-template-columns: 1fr; } .careers-split picture { order: -1; max-width: 360px; margin: 0 auto; } }

/* ---------- Intro: text + illustration ---------- */
.intro-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.intro-split picture img { width: 100%; height: auto; display: block; }
.intro-split p { font-size: 17px; line-height: 1.75; color: var(--text-soft); margin-top: 12px; }
@media (max-width: 860px) { .intro-split { grid-template-columns: 1fr; } .intro-split picture { order: -1; max-width: 460px; margin: 0 auto; } }

/* ---------- Three-column gallery (Contact page) ---------- */
.gallery-grid.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .gallery-grid.gallery-grid-3 { grid-template-columns: 1fr; } }

/* Logo badges are wrapped in <picture>; let it fill the round badge */
.reg-badge picture, .reg-strip-badge picture { display: block; width: 100%; height: 100%; }

/* ---------- Cookie consent banner (Oct 2026) ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  max-width: 420px; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 20px 18px;
  box-shadow: 0 24px 48px -16px rgba(8,20,35,.35);
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.55;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.cookie-banner p { margin: 0 0 14px; color: var(--text-soft); }
.cookie-banner p a { color: var(--brand); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { flex: 1; justify-content: center; }
.cookie-banner .btn-accept { background: var(--brand); color: #fff; }
.cookie-banner .btn-accept:hover { background: #0960C4; }
.cookie-banner .btn-decline { background: transparent; color: var(--brand); border-color: var(--brand); }
.cookie-banner .btn-decline:hover { background: var(--sky); }
.cookie-banner .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 640px) {
  .cookie-banner { left: 0; right: 0; bottom: 0; max-width: none; border-radius: 14px 14px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-width: 1px 0 0; }
  body.cookie-open .wa-float { bottom: calc(var(--cookie-h, 170px) + 14px); }
}
.footer-bottom .cookie-settings-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: inherit; }
.footer-bottom .cookie-settings-link:hover { text-decoration: underline; }

/* Map placeholder shown until the visitor allows Google Maps */
.map-consent { height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px; text-align: center; background: var(--sky); color: var(--text-soft); font-size: 14.5px; }
.map-consent strong { color: var(--text); font-size: 16px; }
.map-consent p { margin: 0; max-width: 340px; }

/* ---------- Photo protection: no drag-to-desktop, no iOS long-press save ---------- */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }

/* Contact page: details + map side by side on desktop, stacked on phones/tablets */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Language switch (English | Kiswahili) ---------- */
.utility .wrap > .lang-switch { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lang-switch span { opacity: .7; }
.lang-switch a { opacity: 1; }
.lang-switch a[aria-current="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Hidden headings that give screen readers the page outline */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
