:root {
  --ink: #102033;
  --ink-soft: #1b3148;
  --sea: #0e5e5a;
  --sea-deep: #0a4542;
  --sea-mist: #e5f2f1;
  --sand: #f3eee6;
  --paper: #fbfaf7;
  --card: #ffffff;
  --line: rgba(16, 32, 51, 0.12);
  --text: #1a2836;
  --muted: #526272;
  --gold: #a8742e;
  --gold-soft: #e7d3ae;
  --coral: #9d342c;
  --coral-soft: #f8ebe8;
  --shadow: 0 18px 40px rgba(16, 32, 51, 0.08);
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1140px;
  --header: 108px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(14, 94, 90, 0.08), transparent 55%),
    radial-gradient(700px 380px at -10% 20%, rgba(168, 116, 46, 0.07), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, .logo-word {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled { border-bottom-color: var(--line); }

.utility {
  background: var(--ink);
  color: #efe7da;
  font-size: 0.84rem;
}

.utility-inner,
.nav-inner,
.footer-grid,
.split,
.hero,
.stat-row,
.card-grid,
.path-grid,
.centre-grid,
.doctor-grid,
.bed-grid,
.contact-grid,
.two,
.visit-grid {
  display: grid;
  gap: 24px;
}

.utility-inner {
  grid-template-columns: 1fr auto auto;
  align-items: center;
  min-height: 38px;
}

.utility a { color: #fff; text-decoration: none; font-weight: 560; }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef6d62;
  box-shadow: 0 0 0 0 rgba(239, 109, 98, 0.7);
  display: inline-block;
  margin-right: 8px;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(239, 109, 98, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 109, 98, 0); }
}

.nav-inner {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 70px;
}

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

.mark {
  width: 42px;
  height: 42px;
  flex: none;
}

.logo-word {
  font-size: 1.45rem;
  color: var(--ink);
}

.logo small {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  border-radius: 999px;
}

.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--sea-deep);
  background: var(--sea-mist);
}

.site-nav a:hover { color: var(--sea); }

.menu-btn {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
}

.btn-primary { background: var(--sea); color: white; }
.btn-primary:hover { background: var(--sea-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-emergency { background: var(--coral); color: white; }
.btn-emergency:hover { background: #7e2922; }
.site-nav .btn { border-radius: 8px; margin-left: 8px; color: white; }
.site-nav .btn:hover { color: white; }

.hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  padding: 54px 0 28px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  margin: 14px 0 18px;
  color: var(--ink);
  max-width: min(17ch, 100%);
}

.hero .lede { font-size: 1.15rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-panel {
  background: var(--ink);
  color: #f6f1e7;
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel svg.campus { width: 100%; height: auto; }

.fact-list { display: grid; gap: 0; margin-top: 8px; }

.fact-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-top: 1px solid rgba(246, 241, 231, 0.14);
  font-size: 0.95rem;
}

.fact-list strong { font-weight: 560; color: white; }
.fact-list span { color: #d9cbb6; text-align: right; }

.shore {
  height: 46px;
  margin-bottom: 10px;
  background:
    radial-gradient(circle at 12px 22px, transparent 10px, var(--sand) 11px) left bottom / 24px 46px repeat-x,
    linear-gradient(var(--paper), var(--paper));
}

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

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); color: var(--ink); }

.section-head p { max-width: 42ch; }

.stat-row {
  grid-template-columns: repeat(4, 1fr);
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

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

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

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.stat span { color: var(--muted); font-size: 0.92rem; }

.split { grid-template-columns: 0.9fr 1.1fr; align-items: center; }
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }

.prose h2 { margin: 8px 0 12px; font-size: clamp(2rem, 4vw, 3rem); }
.prose p + p { margin-top: 12px; }
.prose .lede { margin-top: 8px; }

.note-card, .card, .doctor-card, .centre, .bed, .info-block, .form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.note-card { padding: 28px; background: var(--sand); }

.quote {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 16px;
}

.quote-by { color: var(--muted); font-size: 0.92rem; }

.card-grid, .centre-grid { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }

.card, .centre, .doctor-card, .bed, .info-block { padding: 22px; }

.card h3, .centre h3, .doctor-card h3, .bed h3, .info-block h3 {
  font-size: 1.28rem;
  margin: 8px 0;
  color: var(--ink);
}

.card p, .centre p, .bed p, .info-block p, .doctor-card p { color: var(--muted); }

.index {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.95rem;
}

.card a, .text-link {
  color: var(--sea-deep);
  font-weight: 560;
  text-decoration: none;
}

.card a:hover, .text-link:hover { text-decoration: underline; }

.path-grid { grid-template-columns: repeat(4, 1fr); }
.path-grid .prose { grid-column: 1 / -1; }

.path {
  padding: 22px;
  border-radius: 16px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.path.emergency { background: var(--coral); color: white; }
.path.opd { background: var(--sea); color: white; }
.path.admit { background: var(--ink); color: #f6f1e7; }
.path.diag { background: var(--sand); color: var(--ink); }

.path span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.path strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 560; line-height: 1.15; margin: 10px 0; }
.path a { color: inherit; }

.band {
  background: var(--ink);
  color: #f6f1e7;
  border-radius: 24px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: center;
}

.band h2 { font-size: clamp(2rem, 4vw, 3rem); }
.band p { color: #d9cbb6; margin-top: 10px; }
.band-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

.page-hero { padding: 46px 0 10px; }
.page-hero .lede { margin-top: 12px; }
.crumbs { color: var(--muted); font-size: 0.88rem; margin-bottom: 10px; }
.crumbs a { color: var(--sea-deep); text-decoration: none; }

.anchor-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.anchor-row a, .chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  text-decoration: none;
  font-size: 0.88rem;
  cursor: pointer;
}
.chip[aria-pressed="true"], .anchor-row a:hover, .chip:hover {
  background: var(--sea);
  color: white;
  border-color: var(--sea);
}

.search {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 16px;
}

.group { margin-top: 36px; }
.group h2 { font-size: 2rem; margin-bottom: 14px; }

.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.spec {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.spec h3 { font-size: 1.12rem; margin-bottom: 4px; }
.spec p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.spec.hide, .doctor-card.hide { display: none; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }

.doctor-grid { grid-template-columns: repeat(3, 1fr); }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sea-mist);
  color: var(--sea-deep);
  font-family: var(--serif);
  font-size: 1.2rem;
}
.doctor-card .role { color: var(--sea-deep); font-weight: 560; font-size: 0.92rem; }
.doctor-card .cred { margin-top: 8px; font-size: 0.92rem; }

.bed-grid { grid-template-columns: 0.8fr 1.2fr; align-items: stretch; }
.big-count {
  background: var(--sea);
  color: white;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
}
.big-count b {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 0.85;
  font-weight: 560;
  letter-spacing: -0.04em;
}
.beds { display: grid; gap: 10px; }
.bed-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label count"
    "meter meter";
  gap: 6px 12px;
  align-items: center;
}
.bed-row span { grid-area: label; }
.bed-row strong { grid-area: count; }
.meter { height: 8px; background: #e7e2d8; border-radius: 99px; grid-area: meter; }
.meter i { display: block; height: 100%; background: var(--sea); border-radius: inherit; }
.two { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 12px; }

.visit-grid { grid-template-columns: 1.1fr 0.9fr; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--sand); }

.contact-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
.form-card { padding: 22px; display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.92rem; font-weight: 560; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: var(--paper);
  width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note, .summary {
  background: var(--sea-mist);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--sea-deep);
  font-size: 0.95rem;
}
.map-frame {
  margin-top: 14px;
  border: 0;
  width: 100%;
  height: 240px;
  border-radius: 14px;
  background: var(--sand);
}
.hours { list-style: none; padding: 0; margin: 12px 0 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }

.site-footer {
  margin-top: 40px;
  background: var(--ink);
  color: #efe7da;
  padding: 48px 0 20px;
}
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
.site-footer a { color: #efe7da; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-size: 1.8rem; color: white; }
.site-footer h3 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legal {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(239, 231, 218, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #cbbfaa;
  font-size: 0.88rem;
}
.empty { color: var(--muted); padding: 12px 0; }

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

@media (max-width: 980px) {
  .hero, .split, .split.reverse, .path-grid, .band, .card-grid, .card-grid.four, .centre-grid,
  .stat-row, .spec-list, .doctor-grid, .bed-grid, .two, .visit-grid, .contact-grid, .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .path-grid, .stat-row, .footer-grid, .card-grid.four { grid-template-columns: 1fr 1fr; }
  .hero { align-items: start; }
  .band-actions { justify-content: flex-start; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  .wrap { width: min(var(--wrap), calc(100% - 28px)); }
  .utility-inner { grid-template-columns: 1fr; padding: 8px 0; gap: 2px; }
  .utility-inner span:nth-child(2) { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.open { display: flex; }
  .site-nav .btn { margin: 6px 0 0; }
  .nav-inner { position: relative; }
  .hero, .split, .split.reverse, .section-head, .path-grid, .band, .card-grid,
  .card-grid.four, .centre-grid, .stat-row, .spec-list, .doctor-grid, .bed-grid, .two,
  .visit-grid, .contact-grid, .footer-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero h1 { max-width: none; }
  .legal { flex-direction: column; }
  .section { padding: 52px 0; }
}

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