:root {
  --navy: #0b2545;
  --navy-deep: #07182d;
  --teal: #0f766e;
  --teal-bright: #14b8a6;
  --white: #ffffff;
  --off-white: #f4f7fb;
  --text: #1c2a38;
  --muted: #4b5b6b;
  --line: #d7e0ea;
  --placeholder: #9a3412;
  --focus: #0f766e;
  --shadow: 0 12px 30px rgba(11, 37, 69, 0.08);
  --radius: 16px;
  --container: 1120px;
  --header-height: 96px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--teal);
}

a:hover {
  color: var(--navy);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow-light {
  color: var(--teal-bright);
}

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

.placeholder-value {
  color: var(--placeholder);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.btn-primary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand-logo {
  display: block;
  width: auto;
  height: 80px;
  max-width: min(280px, 70vw);
  object-fit: contain;
  object-position: left center;
  background: var(--white);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before {
  top: -6px;
}

.nav-toggle-bar::after {
  top: 6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--teal);
}

.nav-cta {
  color: var(--white) !important;
}

.nav-social {
  color: var(--teal) !important;
}

.hero {
  padding: 4rem 0 4.5rem;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fbfc 0%, var(--white) 100%);
}

.hero-grid,
.cta-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--teal);
  font-weight: 700;
}

.hero-slogan {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.hero-slogan-bn {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-media {
  margin: 0;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.hero-panel,
.card,
.info-card,
.enquiry-form,
.map-placeholder {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel,
.info-card,
.card,
.enquiry-form,
.map-placeholder {
  padding: 1.4rem;
}

.panel-label {
  margin: 0 0 1rem;
  font-weight: 800;
  color: var(--navy);
}

.snapshot-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.snapshot-list li {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.snapshot-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.snapshot-list span {
  color: var(--muted);
  font-size: 0.85rem;
}

.emergency {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 0;
}

.emergency h2,
.emergency h3 {
  color: var(--white);
}

.emergency p {
  color: #d7e6f5;
  max-width: 40rem;
}

.emergency-inner,
.card-grid,
.branch-grid,
.doctors-grid {
  display: grid;
  gap: 1.2rem;
}

.emergency-inner {
  grid-template-columns: 1fr 2fr;
  align-items: start;
}

.emergency-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-card {
  background: var(--navy-deep);
  border-color: transparent;
  box-shadow: none;
}

.info-card .hint,
.info-card .placeholder-value {
  color: #f4d7b5;
}

.call-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn-call {
  background: var(--teal-bright);
  color: var(--navy-deep);
  width: 100%;
  white-space: nowrap;
}

.btn-call:hover {
  background: var(--white);
  color: var(--navy);
}

.section {
  padding: 4.5rem 0;
}

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

.section-header {
  max-width: 44rem;
  margin-bottom: 2rem;
}

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

.doctors-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
}

.branch-grid {
  grid-template-columns: repeat(2, 1fr);
}

.doctor-photo {
  height: 160px;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.12), rgba(11, 37, 69, 0.08));
  color: var(--muted);
  font-weight: 700;
  border: 1px dashed var(--line);
}

.detail-list {
  margin: 0 0 1.25rem;
}

.detail-list div {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-list dd {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.section-cta {
  background:
    linear-gradient(180deg, rgba(11, 37, 69, 0.03), rgba(20, 184, 166, 0.08));
}

.cta-grid,
.contact-grid,
.footer-grid {
  grid-template-columns: 1fr 1fr;
}

.plain-list {
  padding-left: 1.2rem;
  color: var(--muted);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 700;
  color: var(--navy);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #b42318;
}

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.5rem;
  margin: 0.8rem 0 0;
  font-weight: 600;
}

.form-status.is-error {
  color: #b42318;
}

.form-status.is-info {
  color: var(--navy);
}

.map-placeholder {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(
      45deg,
      #eef4f7,
      #eef4f7 12px,
      #f8fbfc 12px,
      #f8fbfc 24px
    );
}

.contact-details {
  font-style: normal;
}

.site-footer {
  background: var(--navy-deep);
  color: #c9d7e6;
  padding: 3rem 0;
}

.footer-name,
.site-footer a {
  color: var(--white);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 960px) {
  .hero-grid,
  .emergency-inner,
  .card-grid,
  .doctors-grid,
  .cta-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .emergency-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    width: 100%;
  }

  .hero,
  .section {
    padding: 3rem 0;
  }

  .hero-grid,
  .emergency-inner,
  .card-grid,
  .doctors-grid,
  .branch-grid,
  .cta-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    height: 58px;
    max-width: min(200px, 64vw);
  }

  .hero-banner {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}


/* ---------- Doctors ---------- */
.doctor-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.filter-btn:hover {
  background: var(--off-white);
}

.filter-btn.is-active {
  background: var(--navy);
  color: var(--white);
}

.filter-count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 0.4em;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.15);
  font-size: 0.85em;
  text-align: center;
}

.filter-btn.is-active .filter-count {
  background: rgba(255, 255, 255, 0.2);
}

.doctor-card .eyebrow {
  margin-bottom: 0.4rem;
}

.doctor-name {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.doctor-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.doctor-specialty {
  margin: 0 0 0.75rem;
  color: var(--teal);
  font-weight: 700;
}

.doctor-post,
.doctor-quals ul,
.doctor-schedule ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doctor-post {
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.doctor-quals {
  margin-bottom: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.doctor-quals ul {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.doctor-quals li + li {
  margin-top: 0.25rem;
}

.doctor-schedule {
  margin-bottom: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

.doctor-label {
  margin: 0 0 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.doctor-schedule li + li {
  margin-top: 0.5rem;
}

.doctor-reg {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.doctor-actions {
  margin-top: 0.5rem;
}

.poster-dialog {
  width: min(96vw, 1000px);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--navy-deep);
  overflow: auto;
}

.poster-dialog::backdrop {
  background: rgba(7, 24, 45, 0.8);
}

.poster-dialog img {
  display: block;
  width: 100%;
  height: auto;
}

.poster-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.map-box {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #eef4f7;
}

.map-caption {
  margin: 0;
  color: var(--muted);
}

.map-box .btn {
  justify-self: start;
}

/* ---------- Form states, honeypot, consent ---------- */
.form-status.is-success { color: #0b6b3a; }
.field-error { margin: 0.35rem 0 0; color: #b42318; font-size: 0.92rem; font-weight: 600; }
.enquiry-form [aria-invalid="true"] { border-color: #b42318; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
html { scroll-padding-top: calc(var(--header-height) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Book an appointment (WhatsApp) ---------- */
.booking-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.unit-choice legend { font-weight: 700; color: var(--navy); padding: 0; margin-bottom: 0.5rem; }
.unit-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.unit-choice legend { grid-column: 1 / -1; }
.unit-choice .field-error { grid-column: 1 / -1; }
.unit-option { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; font-weight: 400; }
.unit-option input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex-shrink: 0; accent-color: var(--teal); }
.unit-option-body { display: grid; gap: 0.15rem; font-size: 0.93rem; color: var(--muted); }
.unit-option-body strong { color: var(--navy); font-size: 1rem; }
.unit-wa { color: var(--teal); font-weight: 700; }
.unit-option:has(input:checked) { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal); }
.unit-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.doctor-info { margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }
.doctor-info:empty, .date-chips:empty { display: none; }
.doctor-info p { margin: 0 0 0.2rem; }
.date-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; font-size: 0.92rem; color: var(--muted); }
.date-chip { border: 1px solid var(--teal); background: var(--white); color: var(--teal); border-radius: 999px; padding: 0.3rem 0.8rem; font: inherit; font-weight: 700; cursor: pointer; }
.date-chip:hover { background: var(--teal); color: var(--white); }
.booking-form select:disabled, .booking-form input:disabled { background: var(--off-white); cursor: not-allowed; }
.booking-result { margin-top: 1rem; padding: 1rem; border: 2px solid var(--teal); border-radius: 12px; background: var(--white); }
.booking-result p { margin: 0 0 0.7rem; }
.booking-result .result-warning { font-weight: 800; color: var(--navy); }
.booking-result pre { white-space: pre-wrap; word-break: break-word; margin: 0 0 0.8rem; padding: 0.75rem; background: var(--off-white); border-radius: 8px; font: inherit; font-size: 0.92rem; }
.booking-result .call-stack { margin-top: 0.4rem; }
@media (max-width: 520px) { .unit-choice { grid-template-columns: 1fr; } }
.nowrap { white-space: nowrap; }
.unit-choice { margin-bottom: 0.4rem; }
