/* Brigadier Shafiq Ahmad Khan Niazi Hospital
   Design system from Section 3 of the build spec.
   Global tokens only, no hard coded colors in markup. */

:root {
  --red: #C1272D;
  --red-dark: #a11f24;
  --blue: #2172AE;
  --blue-dark: #1a5c8d;
  --navy: #16334A;
  --slate: #33424E;
  --mist: #F4F8FB;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-dark: #1da851;
  --border: #E3EBF2;

  --radius-btn: 8px;
  --radius-card: 12px;
  --shadow-sm: 0 1px 2px rgba(22,51,74,.06);
  --shadow-md: 0 8px 24px rgba(22,51,74,.10);
  --shadow-lg: 0 16px 40px rgba(22,51,74,.14);

  --wrap: 1200px;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: .72rem 1.25rem; border-radius: var(--radius-btn);
  border: 2px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-green { background: var(--wa); color: #08351b; }
.btn-green:hover { background: var(--wa-dark); color: #fff; }
.btn-sm { padding: .5rem .9rem; font-size: 14px; }

.i-phone, .i-wa { width: 16px; height: 16px; display: inline-block; background: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.i-phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.4c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.5 15.5 0 006.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 013 4c0-.6.4-1 1-1h3.4c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.4 0 .8-.2 1z'/%3E%3C/svg%3E"); }
.i-wa { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 00-8.5 15.3L2 22l4.8-1.5A10 10 0 1012 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2s-1.2.2-3.7-.9-3.9-3.7-4-3.9-.9-1.2-.9-2.3.6-1.6.8-1.8.4-.3.6-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6c-.2.2-.3.4-.1.7.5.8 1 1.4 1.8 1.9.6.4.8.4 1 .2l.6-.7c.2-.2.4-.2.6-.1l1.9 1c.2.1.4.2.4.3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 00-8.5 15.3L2 22l4.8-1.5A10 10 0 1012 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2s-1.2.2-3.7-.9-3.9-3.7-4-3.9-.9-1.2-.9-2.3.6-1.6.8-1.8.4-.3.6-.3h.5c.2 0 .4 0 .6.5l.8 2c.1.2.1.4 0 .5l-.4.6c-.2.2-.3.4-.1.7.5.8 1 1.4 1.8 1.9.6.4.8.4 1 .2l.6-.7c.2-.2.4-.2.6-.1l1.9 1c.2.1.4.2.4.3z'/%3E%3C/svg%3E"); }

/* ---------- Emergency strip ---------- */
.emergency-strip { background: var(--navy); color: #fff; font-size: 14px; font-weight: 500; }
.emergency-strip .wrap { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .45rem 1rem; text-align: center; white-space: nowrap; }
.emergency-strip a { white-space: nowrap; }
.emergency-strip a { color: #fff; font-weight: 700; }
.es-sep { opacity: .5; }
.es-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(193,39,45,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(193,39,45,0); } 100% { box-shadow: 0 0 0 0 rgba(193,39,45,0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 14px; color: var(--navy); font-weight: 800; letter-spacing: .2px; }
.brand-text em { font-style: normal; font-size: 12px; color: var(--blue); font-weight: 600; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { list-style: none; display: flex; align-items: center; gap: .18rem; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: .5rem .5rem; color: var(--navy); font-weight: 600; font-size: 14px; border-radius: 6px; }
.primary-nav a:hover, .primary-nav a.current { color: var(--blue); background: var(--mist); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown { list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0; min-width: 230px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease; z-index: 120; }
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { font-size: 14px; font-weight: 500; }
.primary-nav .nav-parent { font-family: var(--font-body); background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: .28rem; padding: .5rem .5rem; color: var(--navy); font-weight: 600; font-size: 14px; border-radius: 6px; white-space: nowrap; }
.primary-nav .nav-parent:hover, .primary-nav .nav-parent.current, .has-dropdown.open > .nav-parent { color: var(--blue); background: var(--mist); }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .75; transition: transform .18s ease; }
.has-dropdown.open > .nav-parent .caret { transform: rotate(180deg); }
.header-call { flex-shrink: 0; padding: .58rem .85rem; font-size: 14px; }
/* On desktop the header is capped at 1200px with room to spare, so keep nav
   labels on a single line (prevents "General Surgery" wrapping into a gap).
   Below 1200px labels may wrap gracefully; the mobile menu takes over <=860px. */
@media (min-width: 1200px) { .primary-nav a { white-space: nowrap; } }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.nav-toggle span { width: 26px; height: 3px; background: var(--navy); border-radius: 3px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Section heading + two tone rule ---------- */
.section-head { margin-bottom: 1.6rem; }
.section-head.center { text-align: center; }
.section-head h1, .section-head h2, .section-head h3 { margin-bottom: .5rem; }
.rule2 { display: block; width: 76px; height: 4px; border-radius: 3px;
  background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); }
.section-head.center .rule2 { margin-inline: auto; }

/* ---------- Sections and layout ---------- */
section { padding: clamp(2.4rem, 5vw, 4rem) 0; }
.section-mist { background: var(--mist); }
.lead { font-size: 18px; color: var(--slate); max-width: 65ch; }
.center { text-align: center; }
.grid { display: grid; gap: 1.25rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist), #fff); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: var(--navy); }
.hero .lead { margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-media { min-height: 340px; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.4rem; box-shadow: var(--shadow-sm); transition: .18s ease; height: 100%; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-card { display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center; }
.svc-card .svc-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(33,114,174,.09); display: grid; place-items: center; color: var(--blue); border: 1px solid var(--border); }
.svc-card .svc-icon svg { width: 28px; height: 28px; }
a.svc-card:hover .svc-icon { background: var(--blue); color: #fff; }
.svc-card h3 { margin: 0; }
.svc-card p { font-size: 14.5px; margin: 0; color: var(--slate); }
.svc-card .more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--red); }
a.svc-card:hover { text-decoration: none; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy); color: #fff; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.8rem 1rem; }
.ts { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 1.1rem .7rem; transition: .18s ease; }
.ts:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.ts-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--red), var(--blue)); margin-bottom: .25rem; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.ts-ic svg { width: 25px; height: 25px; }
.ts-num { font-family: var(--font-head); font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: #fff; line-height: 1; }
.ts-label { font-size: 13px; color: #cdd8e1; font-weight: 500; line-height: 1.3; }

/* ---------- Stat strips ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.stats-strip.five { grid-template-columns: repeat(5, 1fr); }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.1rem .8rem; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--red); line-height: 1; }
.stat span { font-size: 13.5px; color: var(--slate); }

/* ---------- Why choose / feature list ---------- */
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature .fx { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(33,114,174,.10); color: var(--blue); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }
.feature h3 { font-size: 17px; margin: 0 0 .2rem; }
.feature p { font-size: 14.5px; margin: 0; }

/* ---------- Tables (price + staff) ---------- */
.price-wrap { max-width: 880px; margin: 1.2rem auto 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
table.price-table, table.staff-table { width: 100%; border-collapse: collapse; font-size: 15px; }
table.price-table { min-width: 0; }
table.staff-table { min-width: 520px; }
.price-table thead th, .staff-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 700; text-align: left; padding: .75rem 1rem; position: sticky; top: 0; z-index: 2; }
.price-table th.num, .price-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; width: 100px; }
.price-table tbody td, .staff-table tbody td { padding: .6rem 1rem; border-top: 1px solid var(--border); }
.price-table td.name { color: var(--navy); }
.price-table tbody tr:nth-child(odd), .staff-table tbody tr:nth-child(odd) { background: var(--mist); }
.price-table tbody tr:hover, .staff-table tbody tr:hover { background: #eaf2f9; }
.price-table td.pkr { color: var(--slate); font-weight: 600; }
.price-table td.usd { color: var(--blue); font-weight: 700; }

/* Compact stacked price and lab tables on phones (no horizontal scroll). */
@media (max-width: 560px) {
  .price-wrap { max-width: 100%; }
  .price-table .table-scroll, .table-scroll:has(.price-table) { overflow: visible; }
  table.price-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
  table.price-table tbody tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 1rem; row-gap: .15rem; padding: .7rem .9rem; border-top: 1px solid var(--border); }
  table.price-table td { padding: 0 !important; border: 0 !important; width: auto !important; }
  table.price-table td.name { flex: 1 1 100%; font-weight: 600; }
  table.price-table td.num { font-size: 14px; }
  table.price-table td.num::before { content: attr(data-label) " "; font-weight: 600; color: #6a7b85; font-size: 11px; text-transform: uppercase; letter-spacing: .3px; }
}
.table-note { font-size: 13px; color: #64757f; margin: .6rem 0 0; }
.table-note.toconfirm { color: var(--red); font-weight: 600; }

.toconfirm-tag { display: inline-block; background: #fff3cd; color: #7a5b00; border: 1px dashed #d9a900; font-size: 12px; font-weight: 700; padding: .1rem .5rem; border-radius: 5px; }

/* ---------- Doctor cards ---------- */
.doctor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.doctor-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); transition: .18s ease; }
.doctor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.doc-body { padding: 1rem 1.1rem 1.2rem; }
.doc-body h3 { font-size: 17px; margin: 0 0 .15rem; }
.doc-role { font-size: 14px; color: var(--blue); font-weight: 600; margin: 0 0 .5rem; }
.doc-qual { font-size: 13.5px; margin: 0; }
.doc-pmdc { font-size: 12.5px; color: #64757f; margin: .1rem 0 .7rem; font-variant-numeric: tabular-nums; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: .2rem .6rem; border-radius: 20px; font-family: var(--font-head); }
.badge-fulltime { background: rgba(37,211,102,.14); color: #157a3c; }
.badge-dailyopd { background: rgba(33,114,174,.14); color: var(--blue-dark); }
.badge-parttime { background: rgba(193,39,45,.12); color: var(--red-dark); }
.badge-daily { background: rgba(33,114,174,.14); color: var(--blue-dark); }

/* ---------- Doctor filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-btn { font-family: var(--font-head); font-weight: 600; font-size: 14px; padding: .5rem 1rem; border-radius: 20px; border: 1px solid var(--border); background: #fff; color: var(--navy); cursor: pointer; transition: .15s; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Photo placeholders ---------- */
.photo-ph { background: repeating-linear-gradient(45deg, #e9eef3, #e9eef3 12px, #eef3f7 12px, #eef3f7 24px);
  border: 1px solid var(--border); border-radius: var(--radius-card); min-height: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem; color: #7c8b95; text-align: center; padding: 1rem; }
.photo-ph.square { aspect-ratio: 1 / 1; min-height: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--border); }
.photo-ph.wide { min-height: 340px; }
.ph-icon { width: 40px; height: 40px; border-radius: 8px; background: #cfd9e1;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3l-1.5 2H4a2 2 0 00-2 2v11a2 2 0 002 2h16a2 2 0 002-2V7a2 2 0 00-2-2h-3.5L15 3H9zm3 5a5 5 0 110 10 5 5 0 010-10z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3l-1.5 2H4a2 2 0 00-2 2v11a2 2 0 002 2h16a2 2 0 002-2V7a2 2 0 00-2-2h-3.5L15 3H9zm3 5a5 5 0 110 10 5 5 0 010-10z'/%3E%3C/svg%3E") center/contain no-repeat; }
.ph-label { font-size: 12.5px; font-weight: 600; max-width: 26ch; }

/* Real photos, once dropped in, mirror the placeholder shapes. */
.photo-img { width: 100%; display: block; object-fit: cover; border: 1px solid var(--border); border-radius: var(--radius-card); aspect-ratio: 4 / 3; }
.photo-img.wide { aspect-ratio: 16 / 10; min-height: 320px; }
.photo-img.square { aspect-ratio: 1 / 1; border: 0; border-radius: 0; border-bottom: 1px solid var(--border); }
.hod .photo-img { min-height: 300px; height: 100%; }

/* ---------- Head of department block ---------- */
.hod { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: start; background: var(--mist); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.6rem; }
.hod .photo-ph { min-height: 320px; }
.cred-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.cred { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: .35rem .7rem; font-size: 13px; font-weight: 600; color: var(--navy); }
.cred b { color: var(--red); }

/* ---------- Chips / condition lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--mist); border: 1px solid var(--border); border-radius: 20px; padding: .4rem .9rem; font-size: 14px; color: var(--navy); font-weight: 500; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--navy)); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band p { font-family: var(--font-head); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; margin: 0; color: #fff; }
.cta-buttons { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .8rem; align-items: flex-start; }
.info-list .il-ic { width: 38px; height: 38px; border-radius: 8px; background: var(--mist); color: var(--blue); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.wa-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: .3rem; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 8px; font-family: var(--font-body); font-size: 15px; color: var(--slate); background: #fff; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33,114,174,.15); }

/* ---------- Map ---------- */
.map-embed { background: var(--mist); border: 1px dashed var(--border); border-radius: 10px; min-height: 150px; display: grid; place-items: center; text-align: center; color: #7c8b95; }
.map-embed span { font-weight: 600; }
.map-embed small { color: var(--red); }
.map-big { min-height: 320px; }
.map-frame { width: 100%; border: 0; border-radius: var(--radius-card); display: block; min-height: 300px; box-shadow: var(--shadow-sm); }
.map-frame.map-big { min-height: 320px; }
.map-frame.map-foot { min-height: 150px; border-radius: 10px; margin-top: .2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdd8e1; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3rem 1rem 2rem; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: #cdd8e1; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.foot-name { font-family: var(--font-head); color: #fff; font-weight: 700; margin: .6rem 0 .3rem; font-size: 15px; }
.foot-addr { font-size: 14px; }
.site-footer .brand-logo { border-radius: 12px; }
.social-row { display: flex; gap: .5rem; margin-top: 1rem; }
.soc { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.09); display: grid; place-items: center; color: #fff; transition: .16s ease; }
.soc svg { width: 19px; height: 19px; display: block; }
.soc:hover { text-decoration: none; transform: translateY(-2px); }
.social-row a:nth-child(1):hover { background: #1877F2; }
.social-row a:nth-child(2):hover { background: #E1306C; }
.social-row a:nth-child(3):hover { background: #FF0000; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.foot-bottom .wrap { padding: 1rem; text-align: center; }
.foot-bottom p { margin: 0; font-size: 13px; }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); box-shadow: 0 -4px 16px rgba(22,51,74,.12); }
.mb-btn { display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.mb-btn:hover { text-decoration: none; }
.mb-call { background: var(--red); color: #fff; }
.mb-wa { background: var(--wa); color: #08351b; }

/* ---------- Utility ---------- */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.narrow { max-width: 820px; margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .g4, .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip.five { grid-template-columns: repeat(2, 1fr); }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .doctor-grid, .g3, .gallery { grid-template-columns: repeat(2, 1fr); }
  .hod { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-call { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); background: #fff; margin: 0;
    transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); padding: 5rem 1rem 2rem; overflow-y: auto; z-index: 150; }
  .primary-nav.open { transform: translateX(0); }
  .primary-nav > ul { flex-direction: column; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--border); }
  .primary-nav a { padding: .8rem .4rem; font-size: 16px; }
  .has-dropdown { display: block; }
  .primary-nav .nav-parent { width: 100%; justify-content: space-between; padding: .8rem .4rem; font-size: 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; min-width: 0; width: 100%; display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(22,51,74,.45); z-index: 90; opacity: 0; visibility: hidden; transition: .2s; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  .mobile-bar { display: grid; }
  body { padding-bottom: 56px; }
  .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .doctor-grid, .gallery, .stats-strip, .stats-strip.five, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); gap: .7rem; padding: 1.2rem .8rem; }
  .ts { padding: .9rem .5rem; }
  /* Buttons size to their own text plus padding, centered, not stretched full width. */
  .hero-cta, .cta-buttons { justify-content: center; }
  .hero-cta .btn, .cta-buttons .btn { flex: 0 0 auto; }
  /* Center card icons, headings and text on mobile for a cleaner read. */
  .svc-card { text-align: center; align-items: center; }
  .svc-card .more { align-self: center; }
  .feature { flex-direction: column; align-items: center; text-align: center; }
  /* Keep the emergency strip on a single line. */
  .emergency-strip { font-size: 12.5px; }
  .emergency-strip .wrap { gap: .35rem; padding: .4rem .5rem; }
}
@media (max-width: 360px) {
  .emergency-strip { font-size: 11.5px; }
}

/* ---------- Facilities gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.gallery-item { display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-sm); transition: .18s ease; cursor: pointer; font: inherit; text-align: left; position: relative; }
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-item:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.gallery-item .photo-img, .gallery-item .photo-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; margin: 0; display: block; }
.gallery-item .gallery-cap { display: block; padding: .75rem 1rem; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 15px; }
.gallery-item::after { content: ""; position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(22,51,74,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/16px no-repeat; opacity: 0; transition: .18s ease; }
.gallery-item:hover::after, .gallery-item:focus-visible::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(11,22,32,.92); padding: 1rem; }
.lightbox.open { display: flex; }
.lb-stage { margin: 0; max-width: min(1100px, 94vw); display: flex; flex-direction: column; align-items: center; }
.lb-img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.5); background: #fff; }
.lb-cap { color: #fff; font-family: var(--font-head); font-weight: 600; margin-top: .85rem; text-align: center; font-size: 16px; }
.lb-close { position: fixed; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 42px; line-height: 1; cursor: pointer; padding: 0 .3rem; }
.lb-nav { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 26px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lb-nav:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: fixed; top: 16px; left: 20px; color: rgba(255,255,255,.8); font-size: 14px; font-family: var(--font-head); }
@media (max-width: 560px) { .lb-nav { width: 44px; height: 44px; font-size: 22px; } .lb-close { font-size: 36px; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { border-bottom: 1px solid var(--border); background: var(--white); font-size: 13px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 0; padding: .55rem 0; }
.crumbs li { color: var(--slate); }
.crumbs li:not(:last-child)::after { content: "\203A"; margin-left: .4rem; color: #9aa8b4; }
.crumbs a { color: var(--blue); }
.crumbs li[aria-current="page"] { color: var(--navy); font-weight: 600; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--border); margin-top: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item > summary { cursor: pointer; list-style: none; padding: 1rem .25rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--blue); font-size: 24px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.faq-item[open] > summary::after { content: "\2013"; }
.faq-a { padding: 0 .25rem 1.1rem; }
.faq-a p { margin: 0; color: var(--slate); }

/* ---------- Related links list ---------- */
.link-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.link-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); color: var(--slate); }
.link-list a { font-weight: 600; }

/* ---------- Footer Facebook link ---------- */
.fb-link { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 600; margin-top: .25rem; }
.fb-link svg { width: 26px; height: 26px; }
.fb-link:hover { text-decoration: none; opacity: .85; }

/* ---------- Stat figures (About page surgical record) ---------- */
.stat-figure { font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 800; color: var(--blue); line-height: 1.05; margin: 0 0 .4rem; }
.stat-label { color: var(--slate); margin: 0; }

/* ---------- In-page anchor offset so jumps clear the sticky header ---------- */
html { scroll-padding-top: 90px; }

/* ---------- Price page "see full department" link ---------- */
.price-more { margin-top: 1.1rem; color: var(--slate); }
.price-more a { color: var(--blue); font-weight: 600; text-decoration: none; }
.price-more a:hover { text-decoration: underline; }
.price-more a::after { content: " \2192"; font-weight: 700; }

/* ---------- Enquiry form status message ---------- */
.form-msg { padding: .7rem .9rem; border-radius: 8px; font-size: 14px; margin: 0 0 1rem; }
.form-msg.ok { background: #e7f6ec; color: #1b6b39; border: 1px solid #b9e3c6; }
.form-msg.err { background: #fdecec; color: #a11f24; border: 1px solid #f3c2c2; }
