/*
Theme Name: Bujuuko Hospital
Theme URI: https://bujuukohospital.com/
Author: Bujuuko Hospital
Description: Responsive, customizable WordPress theme for Bujuuko Hospital with dynamic services, leadership, appointment requests, Customizer settings, and Elementor Theme Builder compatibility.
Version: 1.0.3
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: bujuuko-hospital
*/
:root {
  --green: #7fbd3d;
  --green-dark: #5d9428;
  --green-soft: #eef7e5;
  --navy: #1e2a3b;
  --navy-2: #2b3a50;
  --ink: #263244;
  --muted: #657184;
  --line: #dfe6ec;
  --paper: #ffffff;
  --surface: #f6f8f9;
  --surface-warm: #fbfcf8;
  --danger: #a33a38;
  --shadow-sm: 0 8px 24px rgba(30, 42, 59, .08);
  --shadow-md: 0 18px 50px rgba(30, 42, 59, .13);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1280px;
  --header-h: 82px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open,
body.modal-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(127, 189, 61, .25); }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.section { padding: 92px 0; }
.section--tight { padding: 64px 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--green-soft); }
.section--navy { background: var(--navy); color: white; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--green-dark);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.section--navy .eyebrow { color: #b9df8f; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2,
.page-intro h1 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--navy);
}
.section--navy .section-heading h2 { color: white; }
.section-heading p,
.page-intro p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.section--navy .section-heading p { color: rgba(255,255,255,.74); }

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
.nav-link:focus-visible,
.mobile-nav-toggle:focus-visible,
.icon-button:focus-visible,
.form-control:focus-visible {
  outline: 3px solid rgba(127,189,61,.35);
  outline-offset: 2px;
}
.btn--primary { background: var(--green); color: #142009; box-shadow: 0 10px 24px rgba(127,189,61,.24); }
.btn--primary:hover { background: #8ac74b; }
.btn--dark { background: var(--navy); color: white; }
.btn--dark:hover { background: var(--navy-2); }
.btn--light { background: white; border-color: rgba(255,255,255,.16); color: var(--navy); }
.btn--outline { border-color: var(--line); background: white; color: var(--navy); }
.btn--outline:hover { border-color: #c8d3dc; box-shadow: var(--shadow-sm); }
.btn--ghost { color: var(--navy); padding-inline: 5px; }
.btn--ghost:hover { color: var(--green-dark); }
.btn-arrow { font-size: 1.05em; transition: transform .18s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* Header */
.topbar { background: var(--navy); color: rgba(255,255,255,.83); font-size: .84rem; }
.topbar-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-group { display: flex; align-items: center; gap: 19px; }
.topbar a:hover { color: white; }
.topbar-label { color: #c7e5a8; font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223,230,236,.72);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(30,42,59,.08); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; gap: 26px; }
.site-logo { flex: 0 0 auto; display: inline-flex; align-items: center; }
.site-logo img { width: 156px; max-height: 58px; object-fit: contain; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.nav-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #3c4858;
  font-size: .88rem;
  font-weight: 650;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--navy); background: var(--green-soft); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.mobile-nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: white; border-radius: 14px; padding: 0; }
.mobile-nav-toggle span { display: block; width: 21px; height: 2px; margin: 4px auto; background: var(--navy); transition: .2s ease; }
.mobile-nav { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: white; min-height: min(760px, calc(100vh - 117px)); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; opacity: .66; transform: scale(1.01); }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(21,31,45,.96) 0%, rgba(21,31,45,.79) 44%, rgba(21,31,45,.30) 74%, rgba(21,31,45,.15) 100%);
}
.hero-inner { position: relative; z-index: 2; min-height: inherit; display: flex; align-items: center; padding: 72px 0 112px; }
.hero-copy { max-width: 720px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 17px; color: #d3ebb8; font-size: .86rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(2.7rem, 6.7vw, 5.7rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: #b9df8f; }
.hero-lede { max-width: 670px; margin: 24px 0 31px; font-size: clamp(1.05rem, 1.8vw, 1.24rem); color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip { padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(5px); color: rgba(255,255,255,.87); font-size: .86rem; font-weight: 650; }

.quick-access-wrap { position: relative; z-index: 3; margin-top: -56px; }
.quick-access { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius); overflow: hidden; background: white; box-shadow: var(--shadow-md); border: 1px solid rgba(223,230,236,.65); }
.quick-link { min-height: 116px; padding: 22px 24px; border-right: 1px solid var(--line); display: flex; align-items: flex-start; gap: 14px; transition: background .18s ease; }
.quick-link:last-child { border-right: 0; }
.quick-link[type="button"] { appearance: none; border-top: 0; border-left: 0; border-bottom: 0; width: 100%; color: inherit; font: inherit; }
.quick-link:hover { background: #fbfdf8; }
.quick-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--green-soft); display: grid; place-items: center; flex: 0 0 42px; color: var(--green-dark); font-weight: 900; }
.quick-link strong { display: block; color: var(--navy); margin-bottom: 3px; }
.quick-link small { display: block; color: var(--muted); line-height: 1.4; }

/* Cards / grids */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.stat { padding: 21px; background: var(--surface); border: 1px solid #edf0f2; border-radius: 16px; }
.stat strong { display: block; color: var(--navy); font-size: 1.7rem; line-height: 1.1; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .88rem; }

.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media { position: relative; }
.image-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.image-frame img { aspect-ratio: 4 / 3; object-fit: cover; }
.image-note { position: absolute; right: -20px; bottom: -22px; max-width: 240px; padding: 18px; background: white; border-radius: 17px; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.image-note strong { display: block; color: var(--navy); }
.image-note span { color: var(--muted); font-size: .88rem; }
.check-list { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px 18px; }
.check-list li { display: flex; align-items: center; gap: 10px; color: #3e4a5b; }
.check-list li::before { content: "✓"; width: 25px; height: 25px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; font-size: .78rem; font-weight: 900; flex: 0 0 25px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #cad9bd; box-shadow: var(--shadow-sm); }
.service-number { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--green-soft); color: var(--green-dark); font-size: .82rem; font-weight: 900; }
.service-card h3 { margin: 22px 0 13px; color: var(--navy); font-size: 1.3rem; }
.service-list { list-style: none; padding: 0; margin: 0; color: var(--muted); }
.service-list li { padding: 7px 0; border-bottom: 1px solid #edf1f3; }
.service-list li:last-child { border-bottom: 0; }

.facility-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 250px; gap: 16px; }
.facility-card { position: relative; overflow: hidden; border-radius: var(--radius); background: #dfe5e7; cursor: zoom-in; }
.facility-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.facility-card:nth-child(2) { grid-column: span 5; }
.facility-card:nth-child(3) { grid-column: span 5; }
.facility-card:nth-child(4),
.facility-card:nth-child(5),
.facility-card:nth-child(6) { grid-column: span 4; }
.facility-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.facility-card:hover img { transform: scale(1.045); }
.facility-overlay { position: absolute; inset: auto 0 0; padding: 44px 20px 18px; background: linear-gradient(transparent, rgba(15,23,34,.82)); color: white; }
.facility-overlay strong { display: block; }
.facility-overlay span { font-size: .8rem; color: rgba(255,255,255,.72); }

.purpose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.purpose-card { padding: 32px; border-radius: var(--radius); }
.purpose-card--mission { background: var(--green-soft); color: #2f4424; }
.purpose-card--vision { background: #eef2f6; color: #37475a; }
.purpose-card .label { color: var(--navy); font-weight: 850; margin-bottom: 10px; }
.purpose-card blockquote { margin: 0; font-size: 1.12rem; line-height: 1.68; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value-card { padding: 24px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.value-card h3 { margin: 9px 0 8px; color: var(--navy); font-size: 1.05rem; }
.value-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.value-dot { width: 11px; height: 11px; background: var(--green); border-radius: 50%; }

.leadership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.person-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.person-avatar { min-height: 190px; background: linear-gradient(135deg, var(--navy), #31435d); display: grid; place-items: center; color: rgba(255,255,255,.82); font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; }
.person-card:nth-child(even) .person-avatar { background: linear-gradient(135deg, #557c31, var(--green)); color: #17220f; }
.person-body { padding: 21px; }
.person-body strong { display: block; color: var(--navy); line-height: 1.3; }
.person-body span { display: block; margin-top: 6px; color: var(--muted); font-size: .88rem; }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; background: linear-gradient(120deg, var(--navy), #2c3d55); border-radius: var(--radius-lg); padding: 42px; color: white; }
.cta-band h2 { margin: 0 0 8px; color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.035em; line-height: 1.08; }
.prose .cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: rgba(255,255,255,.72); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Inner pages */
.page-hero { background: var(--navy); color: white; position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.02); }
.page-intro { position: relative; z-index: 2; padding: 84px 0 78px; max-width: 800px; }
.page-intro h1 { color: white; }
.page-intro p { color: rgba(255,255,255,.72); }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; color: rgba(255,255,255,.58); font-size: .84rem; }
.breadcrumb a:hover { color: white; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 54px; align-items: start; }
.prose h2 { margin: 0 0 16px; color: var(--navy); font-size: 2rem; letter-spacing: -.035em; }
.prose h3 { color: var(--navy); margin-top: 28px; }
.prose p { color: var(--muted); }
.prose ul { color: var(--muted); padding-left: 20px; }
.prose li + li { margin-top: 7px; }
.sidebar-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; background: white; box-shadow: var(--shadow-sm); }
.sidebar-card + .sidebar-card { margin-top: 16px; }
.sidebar-card h3 { margin: 0 0 13px; color: var(--navy); }
.sidebar-card p { color: var(--muted); font-size: .92rem; }
.sidebar-links { list-style: none; padding: 0; margin: 0; }
.sidebar-links li { border-top: 1px solid var(--line); }
.sidebar-links a { display: flex; justify-content: space-between; padding: 12px 0; font-weight: 650; color: #48566a; }
.sidebar-links a:hover { color: var(--green-dark); }

.service-directory { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.service-item { display: flex; align-items: center; min-height: 92px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; font-weight: 700; color: var(--navy); }
.service-item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-right: 12px; background: var(--green); flex: 0 0 9px; }

.goals-list { counter-reset: goals; list-style: none; padding: 0; display: grid; gap: 12px; }
.goals-list li { counter-increment: goals; display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--surface); border-radius: 14px; color: #536074; }
.goals-list li::before { content: counter(goals, decimal-leading-zero); display: grid; place-items: center; min-height: 40px; border-radius: 12px; background: var(--navy); color: white; font-size: .76rem; font-weight: 800; }

.stars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.star { padding: 13px 14px; border: 1px solid #dce9d1; background: #f7fbf2; border-radius: 12px; color: #485845; font-weight: 650; font-size: .92rem; }
.star::before { content: "★"; color: var(--green-dark); margin-right: 8px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-card { border-radius: 18px; overflow: hidden; background: white; border: 1px solid var(--line); cursor: zoom-in; }
.gallery-card img { aspect-ratio: 4/3; object-fit: cover; }
.gallery-card figcaption { padding: 14px 16px; color: #4d5a6d; font-weight: 650; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 38px; }
.contact-panel { background: var(--navy); color: white; border-radius: var(--radius); padding: 34px; }
.contact-panel h2 { margin-top: 0; color: white; }
.contact-panel p { color: rgba(255,255,255,.69); }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.contact-list small { display: block; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-weight: 700; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; background: white; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 750; color: #445166; }
.form-control { width: 100%; min-height: 50px; border: 1px solid #d7e0e6; border-radius: 12px; padding: 11px 13px; background: #fff; color: var(--ink); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 13px; }

/* Footer */
.site-footer { background: #17212f; color: rgba(255,255,255,.74); padding-top: 68px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { width: 180px; filter: brightness(0) invert(1); opacity: .92; }
.footer-about p { max-width: 380px; }
.footer-title { margin: 0 0 15px; color: white; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 9px; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; font-size: .8rem; }

.mobile-patient-bar { display: none; }

/* Modal / lightbox */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 22px; background: rgba(11,17,25,.74); backdrop-filter: blur(5px); }
.modal.is-open { display: flex; }
.modal-dialog { width: min(620px, 100%); max-height: calc(100vh - 44px); overflow: auto; background: white; border-radius: 22px; box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.modal-body { padding: 24px; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--navy); font-size: 1.3rem; }
.lightbox .modal-dialog { width: min(1080px, 100%); background: #0d1520; overflow: hidden; }
.lightbox .modal-head { background: #111c29; border-color: rgba(255,255,255,.1); }
.lightbox .modal-head h2 { color: white; }
.lightbox .icon-button { background: transparent; color: white; border-color: rgba(255,255,255,.2); }
.lightbox .modal-body { padding: 0; }
.lightbox img { max-height: calc(100vh - 120px); object-fit: contain; }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 110; max-width: 360px; padding: 15px 17px; background: var(--navy); color: white; border-radius: 14px; box-shadow: var(--shadow-md); display: none; }
.toast.is-visible { display: block; }

@media (max-width: 1240px) {
  .split { gap: 42px; }
  .leadership-grid { grid-template-columns: repeat(2,1fr); }
  .value-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --header-h: 72px; }
  .topbar { display: none; }
  .mobile-nav { inset: 73px 0 0; }
  .site-logo img { width: 140px; max-height: 50px; }
  .header-actions .btn { display: none; }
  .hero { min-height: 680px; }
  .hero-media::after { background: linear-gradient(90deg, rgba(21,31,45,.94), rgba(21,31,45,.74)); }
  .hero-inner { padding: 64px 0 92px; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 4.5rem); }
  .quick-access-wrap { margin-top: -35px; }
  .quick-access { grid-template-columns: repeat(2,1fr); }
  .quick-link { min-height: 105px; border-bottom: 1px solid var(--line); }
  .quick-link:nth-child(2) { border-right: 0; }
  .quick-link:nth-child(3), .quick-link:nth-child(4) { border-bottom: 0; }
  .section { padding: 72px 0; }
  .split, .contact-grid, .content-grid { grid-template-columns: 1fr; gap: 38px; }
  .split--reverse .split-media { order: 0; }
  .image-note { right: 14px; bottom: -17px; }
  .service-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: repeat(2,1fr); grid-auto-rows: 220px; }
  .facility-card:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .facility-card:nth-child(1) { grid-column: 1 / -1; }
  .purpose-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .service-directory { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid > :last-child { grid-column: auto; }
  .mobile-patient-bar { position: fixed; display: grid; grid-template-columns: repeat(3,1fr); left: 12px; right: 12px; bottom: 12px; z-index: 45; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; overflow: hidden; background: rgba(30,42,59,.96); box-shadow: 0 16px 45px rgba(9,14,21,.3); backdrop-filter: blur(10px); }
  .mobile-patient-bar a, .mobile-patient-bar button { min-height: 56px; display: grid; place-items: center; background: transparent; border: 0; border-right: 1px solid rgba(255,255,255,.12); color: white; font-weight: 750; font-size: .8rem; }
  .mobile-patient-bar > :last-child { border-right: 0; }
  .site-footer { padding-bottom: 82px; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 62px 0; }
  .hero { min-height: 650px; }
  .hero-inner { align-items: flex-end; padding-bottom: 84px; }
  .hero-kicker { font-size: .74rem; }
  .hero-lede { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 7px; }
  .hero-chip { font-size: .78rem; }
  .quick-access { grid-template-columns: 1fr; }
  .quick-link { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .quick-link:last-child { border-bottom: 0 !important; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .check-list { grid-template-columns: 1fr; }
  .image-note { position: static; margin: 12px 0 0; max-width: none; }
  .facility-grid { display: grid; grid-template-columns: 1fr; grid-auto-rows: 230px; }
  .facility-card:nth-child(n) { grid-column: 1; }
  .value-grid, .leadership-grid, .service-directory, .stars-grid, .gallery-grid, .footer-grid { grid-template-columns: 1fr; }
  .person-avatar { min-height: 150px; }
  .cta-band { padding: 30px 24px; }
  .cta-actions { display: grid; }
  .page-intro { padding: 67px 0 62px; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .form-card, .contact-panel { padding: 25px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}


/* Navigation refinement: concise desktop menu + accessible dropdowns */
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 17px; height: 17px; flex-basis: 17px; }
.btn .icon { pointer-events: none; }
.btn--compact { min-height: 44px; padding: 9px 14px; font-size: .86rem; white-space: nowrap; }
.header-inner { gap: 18px; }
.desktop-nav { gap: 2px; min-width: 0; }
.nav-link { white-space: nowrap; border: 0; background: transparent; font-family: inherit; cursor: pointer; gap: 5px; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.is-current > .nav-link { color: var(--navy); background: var(--green-soft); }
.nav-chevron { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.nav-item.is-open .nav-chevron,
.nav-item:focus-within .nav-chevron { transform: rotate(180deg); }
.nav-dropdown { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 80; min-width: 270px; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 22px 58px rgba(30,42,59,.16); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.nav-item.is-open > .nav-dropdown,
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.nav-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px; }
.nav-dropdown--compact > a { display: grid; gap: 2px; padding: 12px 13px; border-radius: 12px; }
.nav-dropdown--compact > a:hover,
.nav-dropdown--compact > a:focus-visible { background: var(--green-soft); outline: 0; }
.nav-dropdown--compact span { color: var(--navy); font-weight: 800; }
.nav-dropdown--compact small { color: var(--muted); font-size: .76rem; }
.mega-menu { width: min(890px, calc(100vw - 48px)); padding: 18px; }
.mega-menu-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 4px 5px 15px; border-bottom: 1px solid var(--line); }
.mega-menu-head > div { display: grid; }
.mega-menu-head strong { color: var(--navy); font-size: 1rem; }
.mega-menu-head span { color: var(--muted); font-size: .78rem; }
.mega-menu-head > a { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); font-size: .8rem; font-weight: 800; white-space: nowrap; }
.mega-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px 18px; padding: 16px 4px 13px; }
.mega-column { display: grid; align-content: start; gap: 1px; min-width: 0; }
.mega-heading { margin-bottom: 6px; color: var(--navy); font-size: .73rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.mega-column a { padding: 6px 7px; border-radius: 8px; color: #4b586a; font-size: .8rem; line-height: 1.25; }
.mega-column a:hover,
.mega-column a:focus-visible { background: var(--green-soft); color: var(--navy); outline: 0; }
.mega-feature { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px 13px; background: var(--green-soft); border-radius: 13px; color: var(--navy); }
.mega-feature > .icon:first-child { color: var(--green-dark); }
.mega-feature span { display: grid; }
.mega-feature strong { font-size: .87rem; }
.mega-feature small { color: var(--muted); font-size: .74rem; }

/* Ensure stat labels remain on one line */
.stat { min-width: 0; }
.stat span { display: block; white-space: nowrap; font-size: clamp(.73rem, .85vw, .88rem); }

/* Linked service cards */
.service-item--link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--navy); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.service-item--link:hover { transform: translateY(-2px); border-color: #cad9bd; background: #fbfdf8; box-shadow: var(--shadow-sm); }
.service-item--link > span { min-width: 0; }
.service-item--link small { display: block; margin-top: 2px; color: var(--muted); font-weight: 600; }
.service-item--link .icon { width: 17px; height: 17px; flex-basis: 17px; color: var(--green-dark); }
.service-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.service-fact { display: inline-flex; align-items: center; gap: 13px; margin-top: 24px; padding: 13px 16px; border: 1px solid #dce9d1; border-radius: 14px; background: var(--green-soft); }
.service-fact strong { color: var(--navy); font-size: 1.35rem; }
.service-fact span { max-width: 360px; color: #506047; font-size: .84rem; }

/* CTA resilience on medium widths */
.cta-actions { justify-content: flex-end; max-width: 100%; }
.cta-actions .btn { white-space: nowrap; }
.mobile-patient-bar .icon { width: 17px; height: 17px; }
.mobile-patient-bar a,
.mobile-patient-bar button { display: flex !important; align-items: center; justify-content: center; gap: 6px; }

/* Mobile nav accordions */
.mobile-menu-group { border-bottom: 1px solid var(--line); }
.mobile-menu-group summary { list-style: none; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; color: var(--navy); font-weight: 800; cursor: pointer; }
.mobile-menu-group summary::-webkit-details-marker { display: none; }
.mobile-summary-chevron { transition: transform .18s ease; }
.mobile-menu-group[open] .mobile-summary-chevron { transform: rotate(180deg); }
.mobile-menu-children { padding: 3px 0 12px 14px; }
.mobile-menu-children > a,
.mobile-subgroup a { min-height: 45px !important; font-size: .86rem; font-weight: 700 !important; }
.mobile-subgroup { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e7ecf0; }
.mobile-subgroup > span { display: block; padding: 4px 8px 3px; color: var(--muted); font-size: .69rem; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.mobile-view-all,
.mobile-feature-link { color: var(--green-dark) !important; }

@media (max-width: 1180px) and (min-width: 1081px) {
  .site-logo img { width: 144px; }
  .header-inner { gap: 12px; }
  .nav-link { padding-inline: 8px; font-size: .82rem; }
  .header-actions { gap: 6px; }
  .btn--compact { padding-inline: 11px; font-size: .8rem; }
}

/* Keep the concise desktop navigation until it genuinely no longer fits. */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .mobile-nav-toggle { display: block; margin-left: auto; }
  .mobile-nav { position: fixed; inset: 117px 0 0; z-index: 49; background: white; padding: 16px 20px 110px; overflow-y: auto; transform: translateX(100%); transition: transform .24s ease; display: block; }
  body.nav-open .mobile-nav { transform: translateX(0); }
  .mobile-nav-primary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 8px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 800; }
  .mobile-nav .mobile-nav-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 20px; }
  .mobile-nav .btn { justify-content: center; min-width: 0; padding-inline: 12px; }
  .header-actions .btn--call { display: none; }
}

@media (max-width: 920px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .mobile-nav { inset: 73px 0 0; }
  .header-actions .btn { display: none; }
  .mobile-nav .mobile-nav-actions { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stat span { font-size: .72rem; }
  .cta-actions .btn,
  .service-detail-actions .btn { width: 100%; }
  .service-detail-actions { display: grid; }
  .mobile-patient-bar a,
  .mobile-patient-bar button { flex-direction: column; gap: 2px; font-size: .72rem; }
}
.service-item--link { justify-content: flex-start; }
.service-item--link .icon { margin-left: auto; }
@media (max-width: 1080px) {
  .topbar { display: none; }
  .mobile-nav { inset: var(--header-h) 0 0; }
}

/* Orthopaedic service clinical photo */
.service-feature-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}
.service-feature-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}
.service-feature-figure figcaption {
  padding: 14px 17px 16px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
}

/* WordPress + page-builder integration */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 64px; width: auto; }
.entry-content:empty { display: none; }
.bujuuko-builder-content { min-height: 40vh; }
.bujuuko-notice { position: relative; z-index: 45; padding: 12px 20px; text-align: center; font-weight: 700; }
.bujuuko-notice--success { background: #eaf6df; color: #36591a; border-bottom: 1px solid #cfe6ba; }
.bujuuko-notice--error { background: #fff1f0; color: #842d2b; border-bottom: 1px solid #f0cbc8; }
.service-post-content { color: var(--muted); font-size: 1.04rem; }
.service-post-content > *:first-child { margin-top: 0; }
.service-post-content > *:last-child { margin-bottom: 0; }
.person-avatar img { width: 100%; height: 100%; object-fit: cover; }
.person-card .person-body p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.wp-block-image img { border-radius: var(--radius); }
.alignwide { width: min(calc(100% - 40px), 1440px); max-width: 1440px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }
.elementor-page .bujuuko-builder-content { min-height: 0; }


/* Authentic hospital photography */
.team-feature-photo { object-position: center 35%; }
.gallery-photo--reception { object-position: center 48%; }
.gallery-photo--corridor { object-position: center 55%; }

.contact-panel--photo {
  padding: 0;
  overflow: hidden;
}
.contact-panel-media {
  position: relative;
  overflow: hidden;
  background: #111c29;
}
.contact-panel-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(30,42,59,.48), transparent);
  pointer-events: none;
}
.contact-panel-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 46%;
}
.contact-panel-content { padding: 34px; }

@media (max-width: 560px) {
  .contact-panel--photo { padding: 0; }
  .contact-panel-content { padding: 25px; }
  .contact-panel-media img { aspect-ratio: 4 / 3; }
}


/* Our Team profile photography */
.person-avatar {
  min-height: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.person-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
@media (max-width: 560px) {
  .person-avatar { min-height: 0; }
}
