/* ============================================
   NIDAN IMAGING & DIAGNOSTIC CENTRE
   Main Stylesheet
   ============================================ */

:root {
  --navy: #0d3b66;
  --navy-dark: #082645;
  --navy-light: #14508c;
  --red: #e63946;
  --red-dark: #c62836;
  --sky: #eef6fc;
  --sky-mid: #dcecf7;
  --ink: #1b2430;
  --ink-soft: #55606e;
  --white: #ffffff;
  --green: #2a9d68;
  --border: #dfe7ef;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(13, 59, 102, 0.08);
  --shadow-sm: 0 4px 14px rgba(13, 59, 102, 0.06);
  --ff-head: "Poppins", sans-serif;
  --ff-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

img, svg { max-width: 100%; display: block; }
.ph-img img,
.doc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph-img svg { max-width: none; }
* { min-width: 0; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--navy); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }
.section-head.left { margin: 0 0 36px; text-align: left; }

section { padding: 84px 0; }

/* Content top spacing after slim page hero banner */
.page-hero + section,
.page-hero ~ section:first-of-type {
  padding-top: 36px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(230,57,70,0.3); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-dark);
  color: #cfe0f0;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.topbar span { display: inline-flex; align-items: flex-start; gap: 6px; }
.topbar svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.topbar .tb-right { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }

/* ---------- Navbar ---------- */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand .logo-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  box-shadow: 0 2px 8px rgba(13,59,102,0.12);
}
.brand .logo-mark svg { width: 34px; height: 34px; color: var(--navy); }
.brand .logo-mark img { width: 100%; height: 100%; object-fit: contain; padding: 1px; border-radius: 50%; }
.brand-text .name { font-family: var(--ff-head); font-weight: 700; font-size: 22px; color: var(--red); letter-spacing: 0.5px; line-height: 1.1; }
.brand-text .sub { font-size: 11px; color: var(--navy); font-weight: 600; letter-spacing: 0.3px; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink);
  position: relative; padding: 6px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a svg { display: none; }
.nav-links a::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--red); transition: width 0.25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--red); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.call-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white);
  padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: 15px;
}
.call-pill svg { width: 18px; height: 18px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: var(--sky);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  gap: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 1001;
}
.menu-toggle:hover {
  background: var(--sky-mid);
  border-color: var(--navy-light);
}
.menu-toggle .bar {
  width: 22px;
  height: 2.2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.menu-toggle.active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Mobile Drawer Overlay Backdrop */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 45, 0.55);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer-header {
  display: none;
  width: 100%;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
  justify-content: space-between;
  align-items: center;
}
.nav-drawer-close {
  background: var(--sky);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}
.nav-drawer-footer {
  display: none;
  width: 100%;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, #071c33 0%, #0d3b66 60%, #0f4c81 100%);
  color: var(--white);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
}

.page-hero-grid {
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-hero-img-box {
  flex: 0 0 170px;
  max-width: 170px;
  background: #ffffff;
  border-radius: 5px;
  padding: 4px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-hero-img-box img {
  width: 100%;
  height: auto;
  max-height: 85px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.page-hero-text {
  flex: 1;
  text-align: center;
  padding-right: 170px;
}

.page-hero-text h1 {
  color: var(--white);
  font-size: clamp(26px, 3.8vw, 36px);
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 3px 0;
  }
  .page-hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .page-hero-img-box {
    flex: 0 0 130px;
    max-width: 130px;
    padding: 3px;
    border-radius: 4px;
    margin: 0;
  }
  .page-hero-img-box img {
    max-height: 65px;
  }
  .page-hero-text {
    flex: 1;
    text-align: center;
    padding-right: 130px;
  }
  .page-hero-text h1 {
    font-size: clamp(19px, 5vw, 25px);
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 2px 0;
  }
  .page-hero-grid {
    gap: 8px;
  }
  .page-hero-img-box {
    flex: 0 0 110px;
    max-width: 110px;
    padding: 2px;
  }
  .page-hero-img-box img {
    max-height: 55px;
  }
  .page-hero-text {
    padding-right: 110px;
  }
  .page-hero-text h1 {
    font-size: 19px;
  }
}

.page-hero .crumb a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.page-hero .crumb a:hover {
  opacity: 0.8;
}

.page-hero .crumb span {
  margin: 0 4px;
  opacity: 0.5;
}

.contact-page .page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light) 60%, var(--navy-dark));
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-20px, 25px) scale(1.08); }
}

@keyframes heroGridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 22px 22px; }
}

@media (max-width: 600px) {
  .page-hero { padding: 26px 16px 22px; }
  .page-hero::after { width: 240px; height: 240px; }
}

/* ---------- Home Hero ---------- */
.hero {
  background:
    linear-gradient(105deg, rgba(238, 246, 252, 0.88) 0%, rgba(238, 246, 252, 0.78) 45%, rgba(238, 246, 252, 0.42) 100%),
    url("../assets/Reception.webp") center/cover;
  position: relative;
  padding: 32px 0 54px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.72));
  z-index: -1;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.hero-copy {
  max-width: 560px;
}
.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 59, 102, 0.07);
  border: 1px solid rgba(13, 59, 102, 0.16);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.05);
}
.hero-copy .eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  display: inline-block;
}
.hero-copy h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin-bottom: 6px; }
.hero-copy h1 .accent { color: var(--red); }
.hero-copy .tagline { font-size: 15.5px; color: #334155; margin: 12px 0 18px; max-width: 520px; line-height: 1.55; }
.hero-copy .tagline b { color: var(--navy); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }

.hero-badges { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.hero-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.hero-badge .ic {
  width: 56px; height: 56px; border-radius: 50%;
  background: #0d3b66; color: var(--white);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(13, 59, 102, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-badge:hover .ic {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(13, 59, 102, 0.32);
}
.hero-badge .ic svg { width: 26px; height: 26px; }
.hero-badge .label { font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.25; }

.hero-visual {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(7, 28, 51, 0.16);
  position: relative;
  aspect-ratio: 4/2.8;
  max-height: 380px;
  border: 3px solid rgba(13, 59, 102, 0.12);
  background: #ffffff;
  padding: 10px;
}
.hero-visual .ph-img {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.hero-visual:hover img {
  transform: none;
}
.hero-visual-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(7, 28, 51, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.hvb-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hvb-icon svg { width: 16px; height: 16px; fill: currentColor; }
.hero-visual-badge b {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}
.hero-visual-badge span {
  display: block;
  font-size: 11px;
  color: #bcd4ea;
  font-weight: 500;
}
.ph-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  color: #cfe0f0; text-align: center; padding: 20px;
  overflow: hidden;
  position: relative;
}
.ph-img.has-photo { padding: 0; background: transparent; }
.ph-img.has-photo .ph-label,
.gallery-grid .ph-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: auto;
  max-width: none;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(8, 38, 69, 0.78);
  color: var(--white);
  backdrop-filter: blur(8px);
}
.ph-img svg { width: 46px; height: 46px; opacity: 0.85; }
.ph-img .ph-label { font-size: 13px; font-weight: 600; max-width: 220px; }
.ph-img.light { background: linear-gradient(135deg, var(--sky-mid), #c9e2f4); color: var(--navy); }
.ph-img.soft { background: linear-gradient(135deg, #f3f6fa, #e6edf5); color: var(--navy-light); }

.wave-divider { position: absolute; left: 0; right: 0; bottom: -2px; line-height: 0; }
.wave-divider svg { width: 100%; height: 70px; display: block; }

/* ---------- Doctor / About section typography & highlight ---------- */
.doc-card {
  display: grid; grid-template-columns: 380px 1fr; gap: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f9fd 60%, #eaf4fd 100%);
  border: 1px solid #d4e6f5;
  border-left: 6px solid var(--red);
  border-radius: 20px;
  padding: 38px; align-items: start;
  box-shadow: 0 16px 45px rgba(13, 59, 102, 0.08);
}

/* ---------- Index Page Unique Doctor Card ---------- */
.home-doctor-section { padding-top: 54px; }
.home-doctor-card-unique {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  background: linear-gradient(135deg, #f0f7fd 0%, #e2effa 60%, #d8e9f8 100%);
  color: var(--ink);
  border-radius: 22px;
  padding: 38px;
  align-items: center;
  box-shadow: 0 14px 40px rgba(13, 59, 102, 0.09);
  border: 1px solid #cce1f3;
  border-left: 6px solid var(--red);
  position: relative;
  overflow: hidden;
}
.home-doctor-card-unique::after {
  display: none;
}
.hdc-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hdc-photo-box {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(13, 59, 102, 0.12);
  border: 4px solid var(--white);
  background: var(--white);
  width: 100%;
}
.hdc-photo-box img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
}
.hdc-badge-under {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(13, 59, 102, 0.2);
  letter-spacing: 0.3px;
}
.hdc-tag {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.hdc-name {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.hdc-qual {
  color: var(--navy-light);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hdc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.hp-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid #cce0f2;
  color: var(--navy);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.04);
}
.hdc-desc {
  color: #334155;
  font-size: 15.5px;
  line-height: 1.68;
  margin-bottom: 24px;
  max-width: 680px;
  font-weight: 500;
}
.hdc-action {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.doc-photo {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(13, 59, 102, 0.12);
  border: 4px solid var(--white);
  height: auto;
  aspect-ratio: auto;
}
.doc-photo .ph-img {
  height: auto !important;
  aspect-ratio: auto !important;
  background: none;
  padding: 0;
}
.doc-img {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-img img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain !important;
  display: block;
  border-radius: 10px;
}
.doc-name {
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.6px;
  margin-bottom: 8px;
  line-height: 1.15;
}
.doc-cred {
  display: inline-block;
  background: #fde3e5;
  color: var(--red);
  font-weight: 700;
  font-size: 14.5px;
  padding: 5px 14px;
  border-radius: 8px;
  border: 1px solid #f9c2c6;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}
.doc-role {
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}
.doc-role::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 8px;
  vertical-align: 2px;
}
.doc-stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 22px;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid #cbe0f2;
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.04);
}
.stat-pill b {
  color: var(--red);
  font-weight: 800;
}
.doc-card p {
  color: #1e293b;
  margin-bottom: 14px;
  font-size: 15.5px;
  line-height: 1.7;
  font-weight: 500;
}
.doc-card p b {
  color: var(--navy);
  font-weight: 800;
}

.qual-box {
  background: linear-gradient(135deg, var(--navy), #082645);
  color: var(--white);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 12px 35px rgba(8, 38, 69, 0.14);
}
.qual-box h3 { color: var(--white); font-size: 20px; font-weight: 700; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.qual-item { display: flex; gap: 14px; margin-bottom: 20px; }
.qual-item:last-child { margin-bottom: 0; }
.qual-item .qi { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qual-item .qi svg { width: 20px; height: 20px; }
.qual-item h4 { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.qual-item p { color: #d0e2f5; font-size: 14px; margin: 0; font-weight: 500; }

.about-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-centre-photo img { object-position: center top; }

/* ---------- Services & Est. 2012 ---------- */
.est-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(13, 59, 102, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(13, 59, 102, 0.12); }

.svc-photo-wrap {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--sky-mid);
}
.svc-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.svc-card:hover .svc-photo-wrap img {
  transform: scale(1.05);
}
.svc-card-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.svc-card-tag.red { background: var(--red); color: var(--white); }
.svc-card-tag.purple { background: #7c3aed; color: var(--white); }
.svc-card-tag.blue { background: var(--navy); color: var(--white); }

.svc-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.svc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.svc-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h3 { font-size: 18px; margin-bottom: 2px; }
.svc-subtag { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 500; }
.svc-card.red .svc-icon { background: #fde3e5; color: var(--red); }
.svc-card.purple .svc-icon { background: #ece2fb; color: #7c3aed; }
.svc-card.blue .svc-icon { background: #dceafc; color: var(--navy); }
.svc-card.green .svc-icon { background: #dcf5e8; color: var(--green); }
.svc-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); padding: 6.5px 0; border-bottom: 1px dashed var(--border); }
.svc-list li:last-child { border-bottom: none; }
.svc-list svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

.why-us-box {
  background: #e6f6ee;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid #c3edd7;
}
.why-us-box h4 {
  color: var(--green);
  font-size: 13.5px;
  margin-bottom: 8px;
}
.report-photo-box {
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.report-photo-box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
}
.report-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(8, 38, 69, 0.88);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.svc-card-action {
  margin-top: auto;
  padding-top: 18px;
}

/* ---------- Single Row Centre Highlights Section ---------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
}
.hl-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(13, 59, 102, 0.08);
  background: var(--white);
  border: 1px solid #cbe0f2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}
.hl-item a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.hl-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(13, 59, 102, 0.16);
}
.hl-item .ph-img { aspect-ratio: 1/0.88; min-height: 165px; width: 100%; position: relative; overflow: hidden; }
.hl-item .ph-img.has-photo { padding: 0; }
.hl-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.hl-item:hover img { transform: scale(1.08); }
.hl-cap {
  background: var(--white);
  padding: 12px 6px;
  font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  border-top: 1px solid #e2effa;
}

/* ---------- Gallery Filters & Grid ---------- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}
.filter-btn {
  background: var(--sky);
  color: var(--navy);
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  content-visibility: auto;
  contain-intrinsic-size: 800px 600px;
}
.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}
.gallery-card .ph-img {
  aspect-ratio: 4/3;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f0f4f8;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, object-position 0.4s ease;
}
/* Individual custom per-photo focal point positioning */
.gal-img-1 { object-position: center 30%; } /* Reception Desk */
.gal-img-2 { object-position: center center; } /* Waiting Lounge */
.gal-img-3 { object-position: center 25%; } /* Ultrasound Room */
.gal-img-4 { object-position: center center; } /* Digital X-Ray */
.gal-img-5 { object-position: center 35%; } /* Pathology Lab */
.gal-img-6 { object-position: center top; } /* Main Centre Building Front & Signboard */
.gal-img-7 { object-position: center 15%; } /* Front Entrance & Signboard */
.gal-img-8 { object-position: center top; } /* Report Counter */
.gal-img-9 { object-position: center 25%; } /* Reports Area */

.gallery-card:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.08) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px 16px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}
.gallery-caption {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-expand-icon {
  display: none !important;
}

/* ---------- Lightbox Modal ---------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 26, 45, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}
.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-wrapper {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.lightbox-img-box {
  max-width: 100%;
  max-height: 76vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #000;
  position: relative;
}
.lightbox-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
}
.lightbox-img.zoomed {
  max-height: none;
  max-width: none;
  width: auto;
  cursor: grab;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 800px;
  color: var(--white);
  padding-top: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.lightbox-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lightbox-counter {
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.lightbox-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lightbox-btn {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
}
.lightbox-btn:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.06);
}
.lightbox-btn svg { width: 22px; height: 22px; }

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.lightbox-prev { left: -16px; }
.lightbox-next { right: -16px; }

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 100;
}

/* ---------- Info strip (home) ---------- */
.home-info-section {
  background: var(--sky);
  padding: 64px 0;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 24px;
}
.info-card-modern {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(13, 59, 102, 0.12);
}
.ic-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.ic-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ic-icon.red { background: #fde3e5; color: var(--red); }
.ic-icon.blue { background: #dceafc; color: var(--navy); }
.ic-icon svg { width: 24px; height: 24px; }
.ic-header h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--navy);
}
.ic-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--navy);
}
.ic-badge.green {
  background: #dcf5e8;
  color: var(--green);
}
.ic-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--sky);
  border-radius: 10px;
  font-size: 13.5px;
}
.time-row .t-day { font-weight: 600; color: var(--navy); }
.time-row .t-val { font-weight: 700; color: var(--red); }
.phone-call-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--sky);
  border-radius: 12px;
  text-align: center;
  align-items: center;
}
.phone-call-box .p-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13.5px;
}
.ic-address {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
  line-height: 1.4;
}
.mini-map-modern {
  border-radius: 12px;
  overflow: hidden;
  height: 190px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(13, 59, 102, 0.08);
  margin-top: 6px;
}
.mini-map-modern iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: var(--sky); border-radius: var(--radius); padding: 26px; }
.testi-card .stars { color: #f4a300; font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; font-style: italic; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.testi-who b { font-size: 14px; color: var(--navy); display: block; }
.testi-who span { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: var(--white); text-align: center; padding: 60px 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px, 4vw, 32px); margin-bottom: 10px; }
.cta-band p { color: #cfe0f0; margin-bottom: 28px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.15fr);
  align-items: start;
}
.form-card { background: var(--sky); border-radius: var(--radius); padding: 34px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-light); }

/* Soft placeholder styling to clearly distinguish empty inputs */
input::placeholder, select::placeholder, textarea::placeholder,
input::-webkit-input-placeholder, select::-webkit-input-placeholder, textarea::-webkit-input-placeholder,
input::-moz-placeholder, select::-moz-placeholder, textarea::-moz-placeholder {
  color: #94a3b8 !important;
  opacity: 0.55 !important;
  font-weight: 400 !important;
}

.phone-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.phone-input-group:focus-within {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(13, 59, 102, 0.1);
}
.phone-prefix {
  background: var(--sky-mid);
  color: var(--navy);
  font-weight: 700;
  font-size: 14.5px;
  padding: 0 12px;
  height: 44px;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--border);
  user-select: none;
  flex-shrink: 0;
}
.phone-input-group input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
  height: 44px;
  outline: none !important;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg { margin-top: 14px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); padding: 12px 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #dcf5e8; color: var(--green); }
.form-msg.err { background: #fde3e5; color: var(--red-dark); }

.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 22px; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-item .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-item .ic svg { width: 21px; height: 21px; }
.ci-item h4 { font-size: 15.5px; margin-bottom: 3px; }
.ci-item p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.map-box { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 26px; }
.map-box iframe { width: 100%; height: 320px; border: 0; display: block; }
.contact-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.contact-mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--white), var(--sky));
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.contact-mini-card b {
  display: block;
  color: var(--navy);
  font-family: var(--ff-head);
  font-size: 14px;
  margin-bottom: 4px;
}
.contact-mini-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.45;
}
.contact-map-box {
  margin-top: 28px;
  transform: translateX(14px);
  border: 8px solid var(--white);
  box-shadow: 0 22px 46px rgba(13, 59, 102, 0.14);
}
.contact-map-box iframe { height: 430px; }

/* ---------- FAQ / accordion (used on appointment page) ---------- */
.accordion-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.accordion-q { width: 100%; text-align: left; background: var(--sky); padding: 16px 20px; font-weight: 600; color: var(--navy); border: none; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.accordion-q svg { width: 18px; height: 18px; transition: transform 0.25s ease; flex-shrink: 0; }
.accordion-item.open .accordion-q svg { transform: rotate(180deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background: var(--white); }
.accordion-a p { padding: 16px 20px; color: var(--ink-soft); font-size: 14.5px; }
.accordion-item.open .accordion-a { max-height: 200px; }

/* ---------- Why choose / steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card { text-align: center; padding: 10px; }
.step-num { width: 54px; height: 54px; border-radius: 50%; background: var(--sky); color: var(--navy); font-family: var(--ff-head); font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; border: 2px solid var(--navy); }
.step-card h4 { font-size: 15.5px; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer {
  background: linear-gradient(180deg, #071c33 0%, #041221 100%);
  color: #b9cee2;
  padding-top: 56px;
  position: relative;
  border-top: 3px solid #e63946;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 34px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.footer-brand .logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.footer-brand .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
  border-radius: 50%;
}
.footer-brand .name {
  font-family: var(--ff-head);
  font-weight: 700;
  color: var(--white);
  font-size: 17px;
  line-height: 1.2;
}
.footer-brand .sub {
  font-size: 11.5px;
  color: #8cb1d6;
  letter-spacing: 0.2px;
}
footer h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
}
footer h4::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  margin-top: 6px;
  border-radius: 2px;
}
footer ul li {
  margin-bottom: 10px;
  font-size: 14px;
}
footer ul li a {
  color: #b9cee2;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-block;
}
footer ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  align-items: flex-start;
  color: #b9cee2;
}
.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 13.5px;
  flex-wrap: wrap;
  gap: 12px;
  color: #94b1cf;
}
.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.dev-author {
  color: #e63946;
  font-weight: 700;
  text-decoration: none !important;
  position: relative;
  padding-bottom: 1px;
  transition: color 0.25s ease;
  cursor: pointer;
}
.dev-author::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e63946, #ff758c);
  transition: width 0.3s ease;
  border-radius: 2px;
}
.dev-author:hover {
  color: #ff4d5e;
}
.dev-author:hover::after {
  width: 100%;
}
.animated-heart {
  width: 13px;
  height: 13px;
  color: #ff1e30;
  fill: #ff1e30;
  display: inline-block;
  vertical-align: middle;
  margin: 0 3px;
  animation: heartBeat 1.4s ease-in-out infinite;
  filter: drop-shadow(0 1px 4px rgba(255, 30, 48, 0.6));
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
}

/* ---------- Utility ----------
   Content is visible by default (no JS dependency). JS only ADDS the
   ".pre" class to elements that are off-screen at load time, then swaps
   it for ".in" on scroll intersection. If JS fails or is slow, nothing
   ever gets stuck invisible. */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pre, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.back-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); border: none; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 90;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top svg { width: 20px; height: 20px; }

/* ============================================
   Responsive - mobile-first overrides
   Breakpoints: 1024 (tablet) / 760 (large phone) / 560 (phone) / 400 (small phone)
   ============================================ */

/* ---- Tablet / small laptop ---- */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .hero .container { grid-template-columns: 1fr; gap: 26px; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; width: 100%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .doc-card { grid-template-columns: 220px 1fr; gap: 28px; padding: 28px; }
  .about-doc-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .form-wrap { grid-template-columns: 1fr; gap: 30px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-map-box { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .highlight-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 68px 0; }
}

/* ---- Large phone / small tablet ---- */
@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 82%;
    max-width: 320px;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px 24px;
    gap: 8px;
    align-items: stretch;
    overflow-y: auto;
    box-shadow: -10px 0 35px rgba(8, 26, 45, 0.25);
    transition: right 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-drawer-header, .nav-drawer-footer {
    display: flex;
  }
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    transition: all 0.2s ease;
  }
  .nav-links a svg {
    display: inline-block;
    width: 19px;
    height: 19px;
    color: var(--navy-light);
    transition: color 0.2s ease;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active {
    background: var(--sky);
    color: var(--red);
  }
  .nav-links a:hover svg, .nav-links a.active svg {
    color: var(--red);
  }

  .call-pill span { display: none; }
  .call-pill { padding: 10px 14px; }
  .brand-text .name { font-size: 19px; }
  .brand-text .sub { font-size: 9.5px; }
  .brand .logo-mark { width: 48px; height: 48px; }

  .services-grid { grid-template-columns: 1fr; }
  .doc-card { grid-template-columns: 1fr; padding: 24px; gap: 22px; }
  .doc-photo { max-width: 220px; margin: 0 auto; }
  .doc-role-dir {
    display: block;
    margin-top: 4px;
    padding-left: 18px;
  }
  
  .home-doctor-card-unique {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px 20px;
    text-align: center;
  }
  .hdc-photo-box {
    max-width: 220px;
    margin: 0 auto;
  }
  .hdc-pills {
    justify-content: center;
  }
  .hdc-action {
    justify-content: center;
  }
  .home-doc-card {
    text-align: center;
    padding: 22px;
  }
  .home-doc-card::before {
    width: 100%;
    height: 6px;
    inset: 0 0 auto 0;
  }
  .home-doc-card .doc-photo { max-width: 190px; }
  .doc-highlights { justify-content: center; }
  
  /* Mobile Footer Typography Boost */
  footer { padding-top: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; padding-bottom: 22px; }
  .footer-brand { gap: 10px; margin-bottom: 12px; }
  .footer-brand .logo-mark { width: 44px; height: 44px; }
  .footer-brand .name { font-size: 16.5px; font-weight: 700; }
  .footer-brand .sub { font-size: 11px; }
  footer p { font-size: 13.5px; margin-top: 6px; line-height: 1.48; }
  footer h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 12px; }
  footer h4::after { margin-top: 4px; }
  footer ul li { margin-bottom: 7px; font-size: 14px; }
  .footer-contact-item { margin-bottom: 8px; font-size: 14px; gap: 8px; }
  .footer-contact-item svg { width: 15px; height: 15px; margin-top: 2px; }
  .footer-bottom { padding: 16px 0; font-size: 13px; gap: 8px; flex-direction: column; text-align: center; }
  .footer-credit { justify-content: center; }

  .info-grid { grid-template-columns: 1fr; gap: 18px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .highlight-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin-left: 0; margin-right: 0; }
  .hl-item .ph-img { aspect-ratio: 1/1; }
  .hl-overlay { padding: 8px 6px; }
  .hl-title { font-size: 11.5px; }
  .hl-tag { font-size: 8.5px; }
  .testi-grid { grid-template-columns: 1fr; }
  .topbar { padding: 8px 0; }
  .topbar .container { flex-direction: column; text-align: center; gap: 6px; justify-content: center; padding-top: 4px; padding-bottom: 4px; }
  .topbar span { font-size: 12px; line-height: 1.35; justify-content: center; text-align: center; }
  .topbar .tb-right { gap: 6px 14px; width: 100%; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }

  .hero { padding: 18px 0 36px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-actions { gap: 10px; margin-bottom: 14px; }
  .hero-badges { justify-content: center; gap: 14px; margin-top: 6px; }
  .hero-badge .label { font-size: 11.5px; }
  .hero-badge .ic { width: 42px; height: 42px; }
  .hero-badge .ic svg { width: 20px; height: 20px; }

  .page-hero + section,
  .page-hero ~ section:first-of-type {
    padding-top: 24px;
  }

  .qual-box, .about-doc-grid > .qual-box { padding: 24px; }
  .contact-info-list { gap: 16px; }
  .map-box iframe { height: 260px; }
  .contact-map-box iframe { height: 340px; }
}

/* ---- Phone ---- */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  h1 { font-size: 28px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .hero-actions .btn, .cta-band .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .cta-band .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .cta-band .hero-actions .btn { width: auto; }

  footer { padding-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; padding-bottom: 16px; }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
    margin-bottom: 2px;
  }
  .steps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .highlight-grid {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .highlight-grid .hl-item {
    flex: 0 0 140px;
    scroll-snap-align: start;
  }


  .doc-card { padding: 20px; }
  .home-doctor-section { padding-top: 46px; }
  .home-doc-card { padding: 18px; }
  .doc-name { font-size: 23px; }

  .info-card { padding: 20px; }
  .info-card .big-phone { font-size: 19px; }

  .form-card { padding: 24px 20px; }
  .contact-mini-grid { grid-template-columns: 1fr; }

  .back-top { width: 42px; height: 42px; bottom: 18px; right: 18px; }
  .back-top svg { width: 18px; height: 18px; }
}

/* ---- Small phone ---- */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .topbar { font-size: 12px; }
  .brand-text .sub { display: none; }
  .brand-text .name { font-size: 18px; }
  .nav-cta { gap: 8px; }
  .call-pill { padding: 9px 12px; }
  .call-pill svg { width: 16px; height: 16px; }

  .hero-copy h1 { font-size: 28px; }
  .hero-copy .tagline { font-size: 14.5px; }
  .hero-badges { gap: 14px; row-gap: 14px; }

  .svc-card { padding: 20px; }
  .step-num { width: 46px; height: 46px; font-size: 16px; }

  .qual-item { gap: 10px; }
  .qual-item .qi { width: 34px; height: 34px; }

  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
}

/* ---- Guard against any accidental horizontal overflow ---- */
.hero-copy, .hero-visual, .doc-card, .qual-box, .form-card, .svc-card, .info-card {
  max-width: 100%;
}
table { width: 100%; }


