@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════
   PREMIER HEALTHS — Brand Colour System
   Blue #1B52A8 | Green #3D9B45 | Cream #FDF9F3
   ══════════════════════════════════════════ */
:root {
  /* Brand */
  --blue:         #1B52A8;
  --blue-dark:    #144188;
  --blue-mid:     #2563B8;
  --blue-light:   #EEF3FC;
  --green:        #3D9B45;
  --green-dark:   #2E7A35;
  --green-light:  #EEF7EE;
  --green-pale:   #F3FAF3;

  /* Backgrounds — light grey theme */
  --cream:        #F5F6F8;
  --cream-warm:   #F7F8FA;
  --beige:        #ECEEF2;
  --beige-dark:   #E4E7ED;
  --white:        #FFFFFF;

  /* Text */
  --text-dark:    #1A2E4A;
  --brown-text:   #2D3748;
  --grey-text:    #607080;

  /* Utility */
  --border:       #D8DCE6;
  --shadow:       0 4px 24px rgba(27,82,168,0.08);
  --shadow-hover: 0 10px 40px rgba(27,82,168,0.15);
  --radius:       16px;
  --radius-sm:    8px;
  --transition:   all 0.35s cubic-bezier(0.4,0,0.2,1);

  /* Legacy aliases used inline */
  --teal:         var(--blue);
  --teal-light:   var(--blue-mid);
  --teal-pale:    var(--blue-light);
  --gold:         var(--green);
  --gold-light:   #5AB562;
  --gold-pale:    var(--green-pale);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--brown-text);
  line-height: 1.7;
  /* clip, not hidden: `overflow-x: hidden` turns body into a scroll container,
     which silently breaks `position: sticky` on descendants (the packages
     add-on strip). `clip` guards the same overflow without that side effect. */
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex; align-items: center; gap: 40px;
  height: 90px;
  overflow: hidden;
  transition: var(--transition);
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(27,82,168,0.12); }

.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
/* Transparent, pre-trimmed wordmark — no white card to clash with the bar. */
.nav-logo img { height: 46px; width: auto; object-fit: contain; display: block; }

/* Fallback text logo (shown if image fails) */
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-text .brand { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--blue); letter-spacing: 1px; }
.nav-logo-text .sub   { font-size: 0.7rem; color: var(--green); letter-spacing: 3px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; flex: 1; }

.nav-links a {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.5px; padding: 6px 0;
  position: relative; transition: color 0.25s;
}

.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 2px; background: var(--green);
  transition: right 0.3s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }

.nav-cta {
  background: var(--blue); color: var(--white) !important;
  padding: 10px 24px !important; border-radius: 50px;
  font-weight: 600 !important; transition: var(--transition) !important;
}
.nav-cta:hover { background: var(--green) !important; transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

/* ISO logo — far right of navbar */
.nav-iso {
  display: flex; align-items: center; flex-shrink: 0;
  margin-left: auto;
  gap: 12px;
}
/* Both marks are pre-trimmed to identical square canvases, so a square box
   renders the two badges at exactly the same diameter. */
/* The badge PNGs carry their own transparency now, so no blend mode is
   needed — multiply was unreliable inside the navbar's stacking context and
   left a visible white square around each mark. */
.nav-iso img {
  width: 54px; height: 54px; object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.25s;
  background: transparent;
}
.nav-iso img:hover { opacity: 1; }
/* The Premier Laboratory mark is landscape, so it matches the badges on
   height and keeps its own width. */
.nav-iso img.brandmark { width: auto; height: 54px; }

/* Same pair, in the hero stats row */
.hero-stats .accred-pair {
  flex-direction: row; align-items: center; gap: 14px;
  padding: 0; background: transparent; border: none; box-shadow: none;
}
.accred-pair img {
  width: 58px; height: 58px; object-fit: contain;
}
/* Landscape mark: match the badges on height, keep its own width. */
.accred-pair img.brandmark { width: auto; height: 58px; }


.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span { width: 26px; height: 2px; background: var(--blue); border-radius: 2px; transition: var(--transition); display: block; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 90px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--beige) 50%, #DDE5F3 100%);
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -40%; right: -10%; width: 65%; padding-bottom: 65%;
  background: radial-gradient(circle, rgba(61,155,69,0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 1300px; margin: 0 auto; padding: 60px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-pale); border: 1px solid rgba(61,155,69,0.3);
  color: var(--green); padding: 6px 16px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge span { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

.hero-title { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.hero-title em { color: var(--green); font-style: normal; }

.hero-subtitle { font-size: 1.05rem; color: var(--grey-text); margin-bottom: 32px; max-width: 480px; }

/* Stat block and the accreditation marks sit on one centred line, so the "7"
   lines up with the badges and "Locations" sits centred beneath it. */
.hero-stats { display: flex; align-items: center; gap: 36px; margin-bottom: 40px; }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-num  { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--blue); }
.stat-label{ font-size: 0.78rem; color: var(--grey-text); text-transform: uppercase; letter-spacing: 1px; }

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* "Call us at" — tap-to-call pill directly under the hero headline */
.hero-call {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 26px;
  padding: 8px 24px 8px 8px;
  background: var(--white);
  border: 2px solid var(--green); border-radius: 50px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.hero-call:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--blue); }
.hero-call-icon {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.hero-call:hover .hero-call-icon { background: var(--blue); }
.hero-call-icon svg { width: 20px; height: 20px; fill: currentColor; }
.hero-call-text { display: flex; flex-direction: column; line-height: 1.2; }
.hero-call-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--grey-text);
}
/* Sans-serif with lining figures: Playfair's old-style digits bob up and
   down, which makes a phone number harder to read at a glance. */
.hero-call-num {
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem; font-weight: 700; color: var(--blue);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.3px; white-space: nowrap;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--blue); color: var(--white);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid var(--blue);
  cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: var(--green); border-color: var(--green); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(61,155,69,0.3); }

.btn-outline {
  background: transparent; color: var(--blue);
  padding: 14px 32px; border-radius: 50px;
  font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  border: 2px solid var(--blue);
  cursor: pointer; display: inline-block;
}
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-3px); }

/* ─── HERO IMAGE SLIDER ─── */
.hero-visual { position: relative; }

/* 3:2 matches every slide file exactly (all are 1600x1067), so each one
   covers the frame edge to edge with no letterbox bars. */
.hero-slider {
  width: 100%; border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow-hover);
  aspect-ratio: 3/2; position: relative;
  background-color: #ffffff;
}

.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
/* Every landscape slide is pre-rendered at the slider's own 3:2, so cover
   fills the frame edge to edge with no letterboxing and no cropping. */
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* The square social poster cannot fill a 3:2 frame without losing its badges
   or its contact strip, so it is shown whole on a plain white ground. */
.slide--fit { background: #fff; }
.slide--fit img { object-fit: contain; }

.slider-dots span { border: 1px solid rgba(0,0,0,0.15); }

.slider-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.slider-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.slider-dots span.active { background: var(--white); transform: scale(1.3); }

.hero-front-office { margin-top: 16px; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/6; }
.hero-front-office img { width: 100%; height: 100%; object-fit: cover; }

/* ─── SECTION BASE ─── */
section { padding: 96px 0; }
.container { max-width: 1300px; margin: 0 auto; padding: 0 48px; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--green); font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 3px; margin-bottom: 14px;
}
.section-label::before, .section-label::after { content: ''; flex: 1; height: 1px; background: currentColor; min-width: 24px; }

.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.section-desc  { font-size: 1.05rem; color: var(--grey-text); max-width: 560px; margin-bottom: 52px; }

/* ─── SERVICES ─── */
.services-section { background: var(--white); }

/* 260px min lets the eight service cards sit 4-across on standard desktops,
   filling two rows exactly instead of stranding two cards on a third. */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }

.service-card {
  background: var(--cream); border-radius: var(--radius);
  padding: 36px 28px; border: 1px solid var(--border);
  transition: var(--transition); position: relative; overflow: hidden; cursor: pointer;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}

.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--blue-light); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 20px; transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--blue); }

/* Service card thumbnail — 3:2 matches the generated service images exactly,
   so nothing is cropped further at any column width. */
.svc-thumb { aspect-ratio: 3/2; overflow: hidden; background: #fff; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service-card h3 { font-size: 1.15rem; color: var(--blue); margin-bottom: 10px; }
.service-card p  { font-size: 0.9rem; color: var(--grey-text); line-height: 1.7; }

/* ─── FLOOR GUIDE ─── */
.floor-section { background: var(--beige); }

.floor-tabs { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }

.floor-tab {
  padding: 10px 28px; border-radius: 50px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; border: 2px solid var(--blue);
  background: transparent; color: var(--blue); transition: var(--transition);
}
.floor-tab.active, .floor-tab:hover { background: var(--blue); color: var(--white); }

.floor-panels { position: relative; }
.floor-panel { display: none; animation: fadeIn 0.4s ease; }
.floor-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
/* Fixed ratio keeps all three floor images the same size, so switching tabs
   no longer makes the section jump. */
.floor-panel img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow); }

.floor-items { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.floor-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); padding: 14px 20px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: var(--transition);
}
.floor-item:hover { border-color: var(--blue); transform: translateX(6px); }
.floor-item .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--green); }

/* ─── GALLERY ─── */
.gallery-section { background: var(--cream); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  /* Rows may grow past 240px so the poster tile can take its own shape. */
  grid-auto-rows: minmax(240px, auto); gap: 16px;
}

.gallery-item { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); position: relative; cursor: pointer; }
/* Two 2x2 features on the top row, four single tiles beneath — six items
   tile the four columns exactly with no ragged trailing row. */
.gallery-item:nth-child(1),
.gallery-item--poster { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
/* A poster has no spare margin to zoom into — keep it still on hover. */
.gallery-item--poster:hover img { transform: none; }
/* The tile takes the poster's own proportions, so the picture fills it edge to
   edge: nothing cropped, and no filler strips down the sides. */
.gallery-item--poster { aspect-ratio: 1000 / 1068; }

/* ─── UNCROPPED POSTER FIT ───
   Marketing posters are designed layouts: the 43-years badge sits in the
   top-left corner, the ISO/NABH marks top-right, and the logo, address and
   phone number run along the bottom edge. object-fit:cover would slice those
   off, so the poster is contained instead and the leftover space is filled
   with a blurred, dimmed copy of the poster rather than a bare letterbox.
   Declared after .slide img and .gallery-item img so it wins on source order.
   No `position` here: .slide and .gallery-item already establish one, and
   overriding it would break the slider. */
.poster-fit { background-size: cover; background-position: center; }
.poster-fit::before {
  content: ''; position: absolute; inset: 0;
  -webkit-backdrop-filter: blur(30px) saturate(1.15) brightness(0.92);
  backdrop-filter: blur(30px) saturate(1.15) brightness(0.92);
}
.poster-fit img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
}

.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(27,82,168,0.6) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  display: flex; align-items: flex-end; padding: 20px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 0.9rem; font-weight: 500; }

/* ─── ABOUT STRIP ─── */
.about-strip {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  padding: 80px 0;
}

.about-strip-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.about-strip h2 { color: var(--white); font-size: 2.4rem; margin-bottom: 20px; }
.about-strip p  { color: rgba(255,255,255,0.85); line-height: 1.9; margin-bottom: 16px; }
.about-strip .btn-outline { color: var(--white); border-color: var(--white); }
.about-strip .btn-outline:hover { background: var(--white); color: var(--blue); }

.about-strip-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.3); aspect-ratio: 3/2; }
.about-strip-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── BRANCH COLLAGE ─── */
.branch-section { background: var(--white); }

/* Six equal cells: five branch photos + one closing card, so the grid always
   ends flush instead of leaving orphans on the last row. */
/* Seven branches divide into no tidy grid, so the row centres its remainder:
   four across, then three centred beneath — the same arrangement as the
   locations grid, rather than leaving one tile stranded on the left. */
.branch-collage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.branch-tile { flex: 0 1 calc(25% - 15px); }

/* The ratio lives on the tile, not the image: the img carries width/height
   attributes, and those presentational hints would otherwise beat a CSS
   aspect-ratio and force the element to its full 1200px intrinsic height. */
.branch-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--cream);
  transition: var(--transition);
}
.branch-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

/* All branch images are pre-rendered at 1600×1200, so every tile is identical. */
.branch-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.branch-tile:hover img { transform: scale(1.06); }

.branch-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 20px 16px;
  background: linear-gradient(to top, rgba(10,30,60,0.88) 0%, rgba(10,30,60,0.55) 45%, transparent 100%);
  pointer-events: none;
}
.branch-cap strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 600; color: var(--white);
  line-height: 1.3;
}
.branch-cap span {
  display: block; margin-top: 3px;
  font-size: 0.76rem; letter-spacing: 1.6px; text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.branch-more { text-align: center; margin-top: 40px; }
.branch-more .note {
  color: var(--grey-text); font-size: 0.9rem; margin-bottom: 18px;
}
.branch-more .note strong { color: var(--blue); font-weight: 600; }

/* ─── LOCATION GRID ─── */
/* Explicit 4 columns so the seven branch cards + closing card fill two full
   rows; auto-fit left a ragged final row at common desktop widths. */
/* Flex rather than grid: with seven branches an odd last row is unavoidable,
   and flex lets that row centre itself instead of hanging to the left. */
.location-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.location-grid .service-card {
  display: flex; flex-direction: column;
  flex: 0 1 calc(25% - 18px);
}
.location-grid .service-card p { flex: 1; }

/* ─── MISSION VISION ─── */
.mv-section { background: var(--beige-dark); padding: 96px 0; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mv-card { background: var(--white); border-radius: var(--radius); padding: 48px 40px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.mv-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; }
.mv-card.mission::after { background: var(--blue); }
.mv-card.vision::after  { background: var(--green); }
.mv-icon { font-size: 3rem; margin-bottom: 24px; }
.mv-card h3 { font-size: 1.6rem; color: var(--blue); margin-bottom: 16px; }
.mv-card p  { color: var(--grey-text); line-height: 1.9; font-size: 0.98rem; }

/* ─── CONTACT ─── */
.contact-section { background: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; }
.contact-info h3 { font-size: 1.5rem; color: var(--blue); margin-bottom: 28px; }

.contact-item { display: flex; gap: 18px; margin-bottom: 28px; }
.contact-item-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.contact-item-text strong { display: block; color: var(--blue); font-weight: 600; margin-bottom: 4px; }
.contact-item-text span   { color: var(--grey-text); font-size: 0.92rem; }

.contact-form { background: var(--white); border-radius: var(--radius); padding: 48px 40px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }

.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--blue); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--cream);
  font-family: 'Inter', sans-serif; font-size: 0.93rem; color: var(--brown-text);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 3px rgba(27,82,168,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── FOOTER ─── */
footer {
  background: linear-gradient(135deg, var(--blue) 0%, #1441A0 100%);
  color: rgba(255,255,255,0.85); padding: 64px 0 0;
}

.footer-inner {
  max-width: 1300px; margin: 0 auto; padding: 0 48px 48px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}

/* Reversed (white) wordmark, background knocked out — sits directly on the
   footer's blue gradient with no card behind it. */
.footer-logo {
  height: 64px; width: auto; display: block;
  margin-bottom: 18px;
}
.footer-brand .brand { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--white); font-weight: 700; }
.footer-brand .sub   { color: #8BC98F; font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.footer-brand p      { font-size: 0.88rem; line-height: 1.8; color: rgba(255,255,255,0.75); margin-bottom: 24px; }
.footer-email a      { color: #8BC98F; font-size: 0.9rem; font-weight: 600; transition: color 0.25s; }
.footer-email a:hover { color: var(--white); }

.footer-col h4 { color: #8BC98F; font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.75); font-size: 0.88rem; transition: color 0.25s; }
.footer-col ul li a:hover { color: #8BC98F; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 48px; max-width: 1300px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ─── INNER PAGE HERO ─── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1441A0 100%);
  padding: 140px 48px 80px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--white); margin-bottom: 14px; }
.page-hero p  { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 20px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.breadcrumb a    { color: #8BC98F; }
.breadcrumb span { color: rgba(255,255,255,0.4); }

/* ─── ANIMATIONS ─── */
@keyframes fadeIn  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item:nth-child(1),
  .gallery-item--poster { grid-column: span 2; grid-row: span 2; }
  .branch-tile { flex: 0 1 calc(33.333% - 14px); }
  .location-grid .service-card { flex: 0 1 calc(33.333% - 16px); }
  /* Stacked rows always lead with the heading, whichever side the image sits
     on at desktop width. */
  .split-row { grid-template-columns: 1fr !important; gap: 32px !important; }
  .split-row .split-text  { order: 1; }
  .split-row .split-media { order: 2; }
  .values-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .lab-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ─── NAVBAR BREAKPOINTS ───
   The bar holds a logo, six links and two accreditation marks — roughly
   1020px of content. Tighten it first, then drop the marks, then switch to
   the hamburger, so nothing gets clipped by the bar's overflow:hidden. */
@media (max-width: 1150px) {
  .navbar { padding: 0 24px; gap: 24px; }
  .nav-links { gap: 18px; }
  .nav-iso { gap: 8px; }
  .nav-iso img { width: 44px; height: 44px; }
  .nav-iso img.brandmark { width: auto; height: 44px; }
  .nav-logo img { height: 40px; }
}

/* Three marks instead of two need roughly 90px more bar, so they step aside
   earlier than before rather than crowding the links. */
@media (max-width: 1200px) {
  .nav-iso { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 90px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start; padding: 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .navbar { overflow: visible; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero-content { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; padding: 0 24px 40px; }
  .form-row { grid-template-columns: 1fr; }
  .floor-panel.active { grid-template-columns: 1fr; }
  .location-grid .service-card { flex: 0 1 calc(50% - 12px); }
  .branch-tile { flex: 0 1 calc(50% - 10px); }
  .lab-grid { grid-template-columns: 1fr !important; }
  .feature-split { grid-template-columns: 1fr !important; }
  section { padding: 64px 0; }
  /* The stats row plus the two accreditation marks are wider than a phone;
     without wrapping the NABH badge is clipped off the right edge. */
  .hero-stats { flex-wrap: wrap; gap: 20px 28px; }
  .accred-pair img { width: 48px; height: 48px; }
  .accred-pair img.brandmark { width: auto; height: 48px; }
  .hero-badge { letter-spacing: 1px; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(200px, auto); }
  .gallery-item:nth-child(1),
  .gallery-item--poster { grid-column: span 1; grid-row: span 2; }
  .branch-tile { flex: 0 1 100%; }
  .location-grid .service-card { flex: 0 1 100%; }
  .values-grid { grid-template-columns: 1fr !important; }
  .page-hero { padding: 120px 24px 56px; }
}

/* ─── FLOATING ELEMENTS ─── */
.floating-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  background-color: #25D366;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* Text pill stacked directly above the WhatsApp bubble. Clicking it opens a
   small panel — the call number on most pages, the add-on offer on Packages. */
.float-btn {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 10000;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: var(--blue); color: var(--white);
  border: none; border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.float-btn:hover { background: var(--green); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.22); }
.float-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.22);
  font-size: 0.7rem; font-weight: 700;
}

.float-pop {
  position: fixed;
  right: 20px;
  bottom: 148px;
  z-index: 10001;
  width: 268px; max-width: calc(100vw - 40px);
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.float-pop strong {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--blue); margin-bottom: 6px;
}
.float-pop p { font-size: 0.85rem; color: var(--grey-text); line-height: 1.6; margin-bottom: 14px; }
.float-pop-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.float-pop-list li {
  background: var(--blue-light); color: var(--blue);
  padding: 5px 14px; border-radius: 50px; font-size: 0.8rem; font-weight: 600;
}
.float-pop-price {
  font-family: 'Playfair Display', serif; font-size: 1.6rem;
  font-weight: 700; color: var(--green); margin-bottom: 14px;
}
.float-pop-btn {
  display: block; text-align: center;
  background: var(--green); color: var(--white);
  padding: 11px 18px; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem;
  transition: var(--transition);
}
.float-pop-btn:hover { background: var(--blue); }

@media (max-width: 480px) {
  .float-btn {
    right: 15px; bottom: 76px;
    padding: 10px 16px; font-size: 0.82rem;
  }
  .float-pop { right: 15px; bottom: 128px; }
  .floating-whatsapp {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }
}

.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 8px;
  list-style: none;
  padding: 10px 0;
  min-width: 200px;
  z-index: 1000;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { display: block; padding: 0; }
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s;
}
.dropdown-menu li a:hover {
  background: var(--teal);
  color: var(--white);
}
@media (max-width: 900px) {
  .dropdown-menu { position: static; box-shadow: none; padding-left: 20px; display: none; }
  .dropdown.active .dropdown-menu { display: block; }
}
