/* ==========================================================================
   MEERA HOSPITALS — Design System
   Brand: magenta + charcoal + warm cream + honey-gold (honeycomb motif)
   Type:  Fraunces (display serif) + Manrope (sans)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --magenta:        #C2185B;
  --magenta-deep:   #97134799;
  --magenta-bright: #E0398B;
  --magenta-soft:   #F6E2EC;
  --charcoal:       #1A1A1A;
  --charcoal-2:     #262626;
  --steel:          #5F6368;
  --gold:           #C9A227;
  --gold-soft:      #EBD9A3;
  --cream:          #F6F2EA;
  --cream-2:        #EFE9DD;
  --white:          #FFFFFF;
  --ink:            #232024;
  --muted:          #6B6660;
  --line:           #E4DCCD;

  /* Semantic */
  --bg:             var(--cream);
  --surface:        var(--white);
  --text:           var(--ink);
  --text-invert:    #F3EEE6;

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --container: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(26,26,26,.06);
  --shadow:    0 14px 40px -18px rgba(26,26,26,.28);
  --shadow-lg: 0 30px 70px -30px rgba(26,26,26,.42);
  --ease: cubic-bezier(.22,.61,.36,1);

  /* Honeycomb hex clip (pointy-flat top) */
  --hex: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.0rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--charcoal); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--ink); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.28rem); color: var(--muted); line-height: 1.7; }
em, .italic { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: min(100% - calc(var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container-wide { width: min(100% - calc(var(--gutter) * 2), 1480px); margin-inline: auto; }
section { padding-block: var(--section-y); position: relative; }
.bg-cream   { background: var(--cream); }
.bg-cream-2 { background: var(--cream-2); }
.bg-white   { background: var(--white); }
.bg-charcoal{ background: var(--charcoal); color: var(--text-invert); }
.bg-charcoal h1,.bg-charcoal h2,.bg-charcoal h3,.bg-charcoal h4 { color: #fff; }

/* Honeycomb texture overlay for sections */
.hex-texture { position: relative; }
.hex-texture::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0L56 16v33L28 65 0 49V16zM28 65l28 16v33L28 130 0 114V81z' fill='none' stroke='%23C9A227' stroke-opacity='0.10' stroke-width='1.4'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}
.hex-texture > * { position: relative; }
.bg-charcoal.hex-texture::before {
  background-image: url("data:image/svg+xml,%3Csvg width='56' height='100' viewBox='0 0 56 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28 0L56 16v33L28 65 0 49V16zM28 65l28 16v33L28 130 0 114V81z' fill='none' stroke='%23C9A227' stroke-opacity='0.14' stroke-width='1.4'/%3E%3C/svg%3E");
  opacity: .6;
}

/* ---------- Eyebrow / Section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--magenta);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 14px; height: 16px; flex: none;
  background: var(--gold); clip-path: var(--hex);
}
.bg-charcoal .eyebrow { color: var(--gold-soft); }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .92rem 1.6rem; border-radius: 100px;
  font-family: var(--font-sans); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { background: var(--magenta); color: #fff; box-shadow: 0 10px 26px -10px rgba(194,24,91,.6); }
.btn-primary:hover { background: var(--magenta-bright); transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(194,24,91,.7); }
.btn-gold { background: var(--gold); color: var(--charcoal); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(201,162,39,.7); }
.btn-ghost { background: transparent; color: var(--charcoal); border: 1.5px solid var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: #fff; transform: translateY(-2px); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--charcoal); border-color: #fff; transform: translateY(-2px); }
.btn-emergency { background: #fff; color: var(--magenta); border: 1.5px solid var(--magenta-soft); }
.btn-emergency:hover { background: var(--magenta); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .85rem; }

/* Pulsing dot for emergency */
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; position: relative; }
.pulse-dot::after { content:""; position:absolute; inset:0; border-radius:50%; background: currentColor; animation: pulse 1.8s infinite var(--ease); }
@keyframes pulse { 0% { transform: scale(1); opacity:.7 } 70%,100% { transform: scale(2.6); opacity: 0 } }

/* ==========================================================================
   HEADER
   ========================================================================== */
.utilitybar {
  background: var(--charcoal); color: var(--text-invert);
  font-size: .82rem; letter-spacing: .01em;
}
.utilitybar .container-wide { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; flex-wrap: wrap; }
.utilitybar .tagline { display: inline-flex; align-items: center; gap: .6rem; color: var(--gold-soft); font-style: italic; font-family: var(--font-display); }
.utilitybar .tagline::before { content:""; width: 12px; height: 14px; background: var(--gold); clip-path: var(--hex); }
.util-right { display: flex; align-items: center; gap: 1.4rem; }
.util-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-invert); transition: color .25s; }
.util-link:hover { color: var(--gold-soft); }
.util-link strong { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.96); }
.navbar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 102px; }
.brand-logo { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand-logo img { height: 74px; width: auto; }
.brand-logo .brand-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.brand-logo .brand-fallback .m { color: var(--magenta); }
.brand-logo .brand-fallback .h { color: var(--steel); }

.nav-menu { display: flex; align-items: center; gap: .35rem; }
.nav-menu > li > a, .nav-toggle-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 8px;
  font-weight: 600; font-size: .94rem; color: var(--charcoal);
  transition: color .25s, background .25s; position: relative;
}
.nav-menu > li > a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-menu > li > a:hover { color: var(--magenta); }
.nav-menu > li > a:hover::after, .nav-menu > li.current > a::after { transform: scaleX(1); }
.nav-menu > li.current > a { color: var(--magenta); }

/* Dropdown */
.has-dropdown { position: relative; }
.caret { width: .6em; height: .6em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform .3s; }
.has-dropdown:hover .caret { transform: rotate(225deg); margin-top: 2px; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .5rem; min-width: 280px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
/* Invisible bridge: fills the gap so hover/cursor travel to the menu doesn't close it */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 18px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a { display: flex; gap: .8rem; align-items: flex-start; padding: .7rem .8rem; border-radius: 10px; transition: background .2s; }
.dropdown a:hover { background: var(--cream); }
.dropdown .d-hex { width: 30px; height: 34px; flex: none; clip-path: var(--hex); display: grid; place-items: center; color:#fff; font-weight: 800; font-size: .8rem; font-family: var(--font-sans); }
.dropdown .d-title { font-weight: 700; color: var(--charcoal); display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.dropdown .d-sub { font-size: .8rem; color: var(--muted); }
.tag-new { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--magenta); padding: .12rem .45rem; border-radius: 100px; }

.nav-actions { display: flex; align-items: center; gap: .7rem; flex: none; }
.nav-toggle { display: none; }
/* Book CTA inside mobile nav — hidden on desktop */
.nav-book { display: none; }

/* Mobile menu */
.hamburger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); position: relative; }
.hamburger span, .hamburger span::before, .hamburger span::after {
  content:""; position: absolute; left: 12px; width: 22px; height: 2px; background: var(--charcoal); transition: .3s var(--ease);
}
.hamburger span { top: 22px; }
.hamburger span::before { top: -7px; } .hamburger span::after { top: 7px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { background: var(--cream); overflow: hidden; padding-block: clamp(2.5rem,6vw,4.5rem) clamp(3rem,7vw,6rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { max-width: 600px; }
.hero h1 { margin: .4rem 0 1.2rem; }
.hero h1 .accent { color: var(--magenta); font-style: italic; }
.hero-brands { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0; }
.brand-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 100px; background: #fff; font-size: .82rem; font-weight: 600; }
.brand-chip .dot { width: 9px; height: 10px; clip-path: var(--hex); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* Hero hex collage */
.hero-visual { position: relative; }
.hexframe { clip-path: var(--hex); background: var(--charcoal); overflow: hidden; position: relative; }
.hexframe img { width: 100%; height: 100%; object-fit: cover; }
.hero-hex-main { width: 100%; aspect-ratio: 1/1.06; box-shadow: var(--shadow-lg); }
.hero-hex-2 { position: absolute; width: 34%; aspect-ratio: 1/1.06; right: -6%; top: 4%; box-shadow: var(--shadow); border: 5px solid var(--cream); }
.hero-hex-3 { position: absolute; width: 30%; aspect-ratio: 1/1.06; left: -7%; bottom: 6%; box-shadow: var(--shadow); border: 5px solid var(--cream); }
.hero-badge {
  position: absolute; right: -4%; bottom: 8%; background: #fff; border-radius: 16px; padding: .9rem 1.1rem;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: .7rem; z-index: 3;
}
.hero-badge .hb-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--magenta); line-height: 1; }
.hero-badge .hb-lbl { font-size: .74rem; color: var(--muted); font-weight: 600; line-height: 1.2; }

/* ==========================================================================
   STATS STRIP
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--white); padding: 1.8rem 1.4rem; text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--charcoal); line-height: 1; }
.stat .num .suf { color: var(--gold); }
.stat .lbl { margin-top: .5rem; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.trust-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin-top: 2.4rem; }
.trust-badge { display: inline-flex; align-items: center; gap: .65rem; color: var(--muted); font-weight: 600; font-size: .85rem; }
.trust-badge .tb-hex { width: 40px; height: 46px; clip-path: var(--hex); background: var(--magenta-soft); color: var(--magenta); display: grid; place-items: center; font-weight: 800; font-size: .68rem; text-align: center; line-height: 1; }

/* ==========================================================================
   HOSPITAL TRIO (hex cards)
   ========================================================================== */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: 3rem; }
.hcard {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  display: flex; flex-direction: column; position: relative;
}
.hcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.hcard.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.hcard-media { aspect-ratio: 16/11; overflow: hidden; position: relative; }
.hcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hcard:hover .hcard-media img { transform: scale(1.06); }
.hcard-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.hcard-body { padding: 1.5rem 1.6rem 1.7rem; flex: 1; display: flex; flex-direction: column; }
.hcard-loc { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: .4rem; }
.hcard h3 { margin: .5rem 0 .6rem; }
.hcard h3 .m { color: var(--magenta); }
.hcard p { color: var(--muted); font-size: .95rem; flex: 1; }
.hcard-meta { display: flex; gap: 1.2rem; margin: 1.1rem 0; padding-top: 1.1rem; border-top: 1px dashed var(--line); font-size: .82rem; }
.hcard-meta b { display:block; font-family: var(--font-display); font-size: 1.25rem; color: var(--charcoal); }
.hcard-link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--magenta); font-size: .92rem; transition: gap .25s; }
.hcard-link:hover { gap: .85rem; }
.featured-ribbon { position: absolute; top: 1rem; right: 1rem; background: var(--magenta); color:#fff; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 100px; z-index: 2; }

/* ==========================================================================
   MEERA ZEN FEATURE BAND
   ========================================================================== */
.zen-band { background: var(--charcoal); color: var(--text-invert); overflow: hidden; }
.zen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.zen-visual { position: relative; }
.zen-visual .hexframe { aspect-ratio: 1/1; width: 80%; margin-inline: auto; box-shadow: var(--shadow-lg); }
.zen-pulse { position: absolute; left: 4%; bottom: 6%; background: var(--magenta); color: #fff; border-radius: 14px; padding: .8rem 1.1rem; display: flex; align-items: center; gap: .6rem; font-weight: 700; box-shadow: var(--shadow); }
.zen-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin: 1.8rem 0; }
.zen-feature { display: flex; gap: .7rem; align-items: flex-start; }
.zen-feature .zf-hex { width: 34px; height: 38px; flex: none; clip-path: var(--hex); background: rgba(201,162,39,.18); color: var(--gold-soft); display: grid; place-items: center; }
.zen-feature .zf-hex svg { width: 18px; height: 18px; }
.zen-feature h4 { color: #fff; font-size: 1rem; }
.zen-feature p { font-size: .85rem; color: #B9B3AB; }

/* ==========================================================================
   HONEYCOMB SPECIALTY GRID
   ========================================================================== */
.hexgrid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 10px; margin-top: 3rem; }
.hexcell {
  width: 168px; aspect-ratio: 1/1.1; clip-path: var(--hex);
  background: var(--white); border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  text-align: center; padding: 1rem; transition: background .35s var(--ease), transform .35s var(--ease), color .35s;
  position: relative; box-shadow: 0 0 0 1px var(--line) inset;
}
.hexcell:hover { background: var(--magenta); color: #fff; transform: translateY(-4px); }
.hexcell .hc-ico { width: 38px; height: 38px; color: var(--magenta); transition: color .35s, transform .4s var(--ease); }
.hexcell:hover .hc-ico { color: #fff; transform: scale(1.1); }
.hexcell .hc-name { font-weight: 700; font-size: .92rem; color: var(--charcoal); transition: color .35s; }
.hexcell:hover .hc-name { color: #fff; }
.hexcell .hc-sub { font-size: .72rem; color: var(--muted); transition: color .35s; }
.hexcell:hover .hc-sub { color: rgba(255,255,255,.85); }
/* offset rows for true honeycomb tessellation on wide screens */
@media (min-width: 760px){
  .hexgrid.tessellate { gap: 6px; }
  .hexgrid.tessellate .hexcell { margin-bottom: -42px; }
}

/* ==========================================================================
   PHILOSOPHY (honeycomb story)
   ========================================================================== */
.philosophy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.bee-quote { font-family: var(--font-display); font-size: clamp(1.5rem,2.6vw,2.1rem); line-height: 1.32; color: var(--charcoal); font-weight: 500; }
.bee-quote .hl { color: var(--magenta); font-style: italic; }
.combo-visual { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.combo-visual .hexframe { aspect-ratio: 1/1.1; }
.combo-visual .hexframe:nth-child(2) { margin-top: 36px; }
.combo-visual .hexframe.solid { background: var(--gold); clip-path: var(--hex); display:grid; place-items:center; }
.combo-visual .hexframe.solid.mag { background: var(--magenta); }

/* ==========================================================================
   FACILITIES
   ========================================================================== */
.fac-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; margin-top: 2.6rem; }
.fac { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform .35s var(--ease), box-shadow .35s; }
.fac:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.fac .f-hex { width: 52px; height: 58px; clip-path: var(--hex); background: var(--magenta-soft); color: var(--magenta); display: grid; place-items: center; margin-bottom: 1rem; }
.fac .f-hex svg { width: 26px; height: 26px; }
.fac h4 { margin-bottom: .4rem; }
.fac p { font-size: .9rem; color: var(--muted); }

/* ==========================================================================
   CONSULTANTS
   ========================================================================== */
.doc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.4rem; margin-top: 2.6rem; }
.doc { text-align: center; }
.doc-photo { width: 150px; aspect-ratio: 1/1.1; clip-path: var(--hex); margin: 0 auto 1rem; background: linear-gradient(150deg, var(--magenta), var(--magenta-deep)); display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: var(--shadow-sm); }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; }
.doc-photo .initials { font-family: var(--font-display); font-size: 2.4rem; color: #fff; font-weight: 600; }
.doc h4 { font-size: 1.08rem; margin-bottom: .15rem; }
.doc .spec { color: var(--magenta); font-weight: 700; font-size: .85rem; }
.doc .qual { color: var(--muted); font-size: .8rem; }
figure.doc figcaption { font-size: .8rem; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band { background: linear-gradient(120deg, var(--magenta), var(--magenta-deep)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: rgba(255,255,255,.9); }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* Insurance */
.ins-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem 3rem; margin-top: 2.4rem; }
.ins-row img { height: 46px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.ins-row img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--charcoal); color: #C7C1B9; padding-top: clamp(3rem,6vw,5rem); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.4rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-fallback { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.footer-brand .brand-fallback .m { color: var(--magenta-bright); } .footer-brand .brand-fallback .h { color: #9a9a9a; }
.footer-brand p { font-size: .9rem; margin: .6rem 0; max-width: 32ch; }
.footer-managed { font-size: .78rem !important; color: var(--gold-soft) !important; letter-spacing: .04em; margin: .4rem 0 .2rem !important; font-weight: 600; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); }
.footer-col h5 { font-family: var(--font-sans); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; color: #fff; margin-bottom: 1.1rem; }
.footer-col a, .footer-col li { display: block; font-size: .9rem; padding: .28rem 0; color: #C7C1B9; transition: color .25s; }
.footer-col a:hover { color: var(--gold-soft); }
.foot-branch { margin-bottom: 1.2rem; }
.foot-branch b { color: #fff; display:block; font-family: var(--font-sans); }
.foot-branch span { font-size: .85rem; display:block; }
.foot-branch a { display:inline-flex; align-items:center; gap:.4rem; color: var(--gold-soft); }
.social-row { display: flex; gap: .6rem; margin-top: 1.2rem; }
.social-row a { width: 40px; height: 44px; clip-path: var(--hex); background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .3s; }
.social-row a:hover { background: var(--magenta); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; font-size: .82rem; }

/* ==========================================================================
   PAGE HERO (inner pages)
   ========================================================================== */
.page-hero { background: var(--charcoal); color: var(--text-invert); padding-block: clamp(3rem,6vw,5rem); position: relative; overflow: hidden; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: #9a948c; margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb .sep { opacity: .5; }
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero .lede { color: #C7C1B9; max-width: 60ch; margin-top: 1rem; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px){
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .doc-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 960px){
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin-inline: auto; order: -1; }
  .zen-grid, .philosophy-grid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .fac-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .navbar { min-height: 84px; }
  .brand-logo img { height: 56px; }
  .hamburger { display: block; }
  /* Hide the desktop "Book" button on mobile — menu has its own CTA */
  .nav-actions { display: none; }
  /* Slide-in panel — use explicit top/right/bottom/left (not inset shorthand) for max browser compat */
  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: auto;
    width: 88vw; max-width: 380px;
    height: 100vh; height: 100dvh;
    background: var(--white);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 5.8rem 1.6rem 3rem;
    /* Hidden by clipping from the right edge, NOT by translateX(100%): parking the panel
       outside the viewport added ~343px of stray horizontal scroll to every page, and the
       usual cure (overflow-x on html/body) silently breaks the sticky header. Clipping keeps
       the panel inside the viewport, so it contributes no overflow. clip-path also blocks
       pointer events while closed, so the hidden menu can't swallow taps. */
    clip-path: inset(0 0 0 100%);
    transition: clip-path .38s var(--ease);
    box-shadow: -4px 0 32px rgba(0,0,0,.18);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  body.menu-open .nav-menu { clip-path: inset(0); }
  /* Dimmed backdrop — also use explicit TRBL */
  body.menu-open::after {
    content: ""; position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,.5); z-index: 998;
  }
  /* Menu rows */
  .nav-menu > li { border-bottom: 1px solid var(--line); }
  .nav-menu > li > a {
    padding: 1.15rem .6rem; font-size: 1.12rem; font-weight: 600;
    display: flex; align-items: center; justify-content: space-between; width: 100%;
  }
  .nav-menu > li > a::after { display: none; }
  /* "Our Hospitals" caret rotates on open */
  .has-dropdown.open .caret { transform: rotate(225deg); margin-top: 2px; }
  /* Dropdown accordion inside mobile menu */
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-radius: 0; padding: .3rem 0 .9rem .4rem; min-width: 0;
    background: transparent; left: auto; top: auto;
  }
  /* Kill the desktop hover/focus transform — same specificity (0,3,0) so this later rule wins */
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    transform: none;
    position: static;
    opacity: 1;
    visibility: visible;
    top: auto;
    left: auto;
  }
  .has-dropdown:not(.open) .dropdown { display: none; }
  /* Disable the desktop hover bridge pseudo-element on mobile */
  .dropdown::before { display: none; }
  .dropdown a { padding: .85rem .8rem; border-radius: 10px; gap: .75rem; }
  .dropdown .d-hex { width: 34px; height: 38px; font-size: .85rem; }
  .dropdown .d-title { font-size: 1rem; }
  .dropdown .d-sub { font-size: .82rem; }
  /* Book CTA at bottom of mobile menu */
  .nav-book { display: block; border-bottom: 0; padding-top: 1.4rem; }
  .btn-block-mob {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%; padding: 1rem 1.2rem; font-size: 1.05rem; font-weight: 700;
    border-radius: 12px; text-align: center;
  }
}
@media (max-width: 620px){
  .fac-grid, .doc-grid, .zen-features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .navbar { min-height: 72px; }
  .brand-logo img { height: 46px; }
  .hexcell { width: 142px; }
  .util-right .util-hide-sm { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .combo-visual .hexframe:nth-child(2) { margin-top: 0; }
}

/* ==========================================================================
   INNER-PAGE COMPONENTS (Meera Zen, About, Departments, Gallery, Contact)
   ========================================================================== */

/* Generic two-column split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.split.media-right .split-media { order: 2; }

/* Zen page hero accents */
.zen-hero { background: radial-gradient(120% 120% at 80% 0%, #2a1320 0%, var(--charcoal) 55%); }
.zen-hero .badge-new { display:inline-flex; align-items:center; gap:.5rem; background: var(--magenta); color:#fff; font-weight:800; font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; padding:.4rem .8rem; border-radius:100px; }
.hero-actions { display:flex; flex-wrap:wrap; gap:.8rem; margin-top:1.8rem; }
.zen-hero-stats { display:flex; flex-wrap:wrap; gap:2.2rem; margin-top:2.2rem; }
.zen-hero-stats .num { font-family:var(--font-display); font-size:1.9rem; color:#fff; line-height:1; }
.zen-hero-stats .num .suf { color: var(--gold); }
.zen-hero-stats .lbl { font-size:.78rem; color:#9a948c; letter-spacing:.04em; text-transform:uppercase; margin-top:.3rem; }

/* Intro callout with vertical rule */
.lead-statement { border-left: 3px solid var(--gold); padding-left: 1.4rem; }

/* Excellence / procedure cards */
.ex-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; margin-top:2.6rem; }
.ex-card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:1.6rem; transition:transform .35s var(--ease),box-shadow .35s,border-color .35s; }
.ex-card:hover { transform:translateY(-5px); box-shadow:var(--shadow); border-color:var(--magenta-soft); }
.ex-card .ex-hex { width:50px; height:56px; clip-path:var(--hex); background:linear-gradient(150deg,var(--magenta),var(--magenta-deep)); color:#fff; display:grid; place-items:center; margin-bottom:1rem; }
.ex-card .ex-hex svg { width:24px; height:24px; }
.ex-card h4 { margin-bottom:.4rem; }
.ex-card p { font-size:.9rem; color:var(--muted); }

/* Labelled facility figures (image + caption stating what it is) */
.figgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; margin-top:2.6rem; }
.figcard { border-radius:var(--radius); overflow:hidden; background:var(--white); border:1px solid var(--line); box-shadow:var(--shadow-sm); transition:transform .35s var(--ease),box-shadow .35s; }
.figcard:hover { transform:translateY(-5px); box-shadow:var(--shadow); }
.figcard .fig-media { aspect-ratio:4/3; overflow:hidden; position:relative; }
.figcard .fig-media img { width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.figcard:hover .fig-media img { transform:scale(1.05); }
.figcard .fig-tag { position:absolute; top:.8rem; left:.8rem; background:rgba(26,26,26,.78); color:#fff; font-size:.7rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:.3rem .6rem; border-radius:6px; }
.figcard figcaption { padding:1rem 1.1rem 1.2rem; }
.figcard figcaption b { display:block; color:var(--charcoal); font-family:var(--font-display); font-size:1.05rem; }
.figcard figcaption span { font-size:.85rem; color:var(--muted); }

/* Why-us list (checked) */
.why-list { display:grid; gap:1rem; margin-top:1.6rem; }
.why-list li { display:flex; gap:.8rem; align-items:flex-start; }
.why-list .w-hex { width:30px; height:34px; flex:none; clip-path:var(--hex); background:var(--gold); color:var(--charcoal); display:grid; place-items:center; font-weight:800; }
.why-list b { color:var(--charcoal); } .why-list p { font-size:.9rem; color:var(--muted); }
.bg-charcoal .why-list b { color:#fff; } .bg-charcoal .why-list p { color:#B9B3AB; }

/* FAQ accordion */
.faq { max-width: 820px; margin: 2.6rem auto 0; }
.faq-item { border-bottom:1px solid var(--line); }
.faq-q { width:100%; display:flex; justify-content:space-between; align-items:center; gap:1rem; text-align:left; padding:1.3rem .2rem; font-family:var(--font-display); font-size:1.15rem; font-weight:600; color:var(--charcoal); }
.faq-q .fq-ico { width:26px; height:26px; flex:none; position:relative; }
.faq-q .fq-ico::before, .faq-q .fq-ico::after { content:""; position:absolute; background:var(--magenta); border-radius:2px; transition:transform .3s var(--ease); }
.faq-q .fq-ico::before { top:12px; left:4px; width:18px; height:2px; }
.faq-q .fq-ico::after { left:12px; top:4px; width:2px; height:18px; }
.faq-item.open .fq-ico::after { transform:rotate(90deg); opacity:0; }
.faq-a { max-height:0; overflow:hidden; transition:max-height .4s var(--ease); }
.faq-item.open .faq-a { max-height:340px; }
.faq-a p { padding:0 .2rem 1.3rem; color:var(--muted); }

/* Contact cards / map */
.contact-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; margin-top:2.6rem; }
.ccard { background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:1.6rem; }
.ccard .c-loc { font-size:.74rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); }
.ccard h4 { margin:.4rem 0 .8rem; } .ccard h4 .m { color:var(--magenta); }
.ccard p { font-size:.9rem; color:var(--muted); margin-bottom:.5rem; }
.ccard .c-line { display:flex; align-items:center; gap:.55rem; padding:.35rem 0; font-size:.92rem; font-weight:600; }
.ccard .c-line svg { width:16px; height:16px; color:var(--magenta); flex:none; }
.map-embed { margin-top:2.6rem; border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--line); box-shadow:var(--shadow-sm); }
.map-embed iframe { width:100%; height:420px; border:0; display:block; filter:grayscale(.15); }

/* Gallery masonry-ish */
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:2.6rem; }
.gitem { border-radius:var(--radius); overflow:hidden; position:relative; box-shadow:var(--shadow-sm); }
.gitem img { width:100%; height:100%; object-fit:cover; aspect-ratio:4/3; transition:transform .7s var(--ease); }
.gitem:hover img { transform:scale(1.06); }
.gitem figcaption { position:absolute; left:0; right:0; bottom:0; padding:1.6rem .9rem .8rem; color:#fff; font-size:.85rem; font-weight:600; background:linear-gradient(transparent,rgba(0,0,0,.7)); }
.gitem.tall img { aspect-ratio:3/4; }

/* About values */
.values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; margin-top:2.6rem; }
.value { text-align:center; padding:1.6rem; }
.value .v-hex { width:64px; height:72px; clip-path:var(--hex); background:var(--magenta-soft); color:var(--magenta); display:grid; place-items:center; margin:0 auto 1rem; }
.value .v-hex svg { width:30px; height:30px; }

@media (max-width: 960px){
  .split, .split.media-right .split-media { grid-template-columns:1fr; order:0; }
  .ex-grid, .figgrid, .contact-cards, .values-grid, .gallery-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 620px){
  .ex-grid, .figgrid, .contact-cards, .values-grid, .gallery-grid { grid-template-columns:1fr; }
  .zen-hero-stats { gap:1.4rem; }
}

/* ==========================================================================
   HONEYCOMB CLUSTER DECORATION (matches brand creatives — layered translucent hexes)
   ========================================================================== */
.hero, .page-hero, .zen-band, .cta-band { position: relative; }
.hero::after, .page-hero::after {
  content: ""; position: absolute; right: -2%; bottom: -4%; z-index: 0; pointer-events: none;
  width: clamp(200px, 26vw, 380px); aspect-ratio: 1/1; opacity: .9;
  background-repeat: no-repeat; background-size: contain; background-position: bottom right;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cpath d='M150 6 L212 42 L212 114 L150 150 L88 114 L88 42 Z' fill='%23C2185B' fill-opacity='0.10' stroke='%23C2185B' stroke-opacity='0.28' stroke-width='2'/%3E%3Cpath d='M222 78 L262 101 L262 147 L222 170 L182 147 L182 101 Z' fill='%23C9A227' fill-opacity='0.20' stroke='%23C9A227' stroke-opacity='0.35' stroke-width='2'/%3E%3Cpath d='M118 128 L172 159 L172 221 L118 252 L64 221 L64 159 Z' fill='none' stroke='%23C2185B' stroke-opacity='0.30' stroke-width='2'/%3E%3Cpath d='M206 158 L240 178 L240 218 L206 238 L172 218 L172 178 Z' fill='%23C2185B' fill-opacity='0.14'/%3E%3Cpath d='M150 150 L150 150' /%3E%3C/svg%3E");
}
/* Lighter cluster over the magenta CTA band */
.cta-band::after {
  content: ""; position: absolute; left: -2%; top: -6%; z-index: 0; pointer-events: none;
  width: clamp(180px, 22vw, 320px); aspect-ratio: 1/1; opacity: .8;
  background-repeat: no-repeat; background-size: contain; background-position: top left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cpath d='M150 6 L212 42 L212 114 L150 150 L88 114 L88 42 Z' fill='%23ffffff' fill-opacity='0.10' stroke='%23ffffff' stroke-opacity='0.30' stroke-width='2'/%3E%3Cpath d='M222 78 L262 101 L262 147 L222 170 L182 147 L182 101 Z' fill='%23EBD9A3' fill-opacity='0.25' stroke='none'/%3E%3Cpath d='M118 128 L172 159 L172 221 L118 252 L64 221 L64 159 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.32' stroke-width='2'/%3E%3C/svg%3E");
}
.cta-band .container { position: relative; z-index: 1; }

/* ==========================================================================
   CATH LAB / EQUIPMENT FEATURE BLOCK (Meera Zen)
   ========================================================================== */
.equip { background: var(--charcoal); color: var(--text-invert); overflow: hidden; }
.equip-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.equip-media { position: relative; }
.equip-media .hexframe { aspect-ratio: 4/3; box-shadow: var(--shadow-lg); }
.equip-tag { position: absolute; left: 5%; bottom: -14px; background: var(--gold); color: var(--charcoal); font-weight: 800; font-size: .76rem; letter-spacing: .04em; padding: .55rem 1rem; border-radius: 100px; box-shadow: var(--shadow); }
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1.6rem; margin: 1.6rem 0; }
.feat-line { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: #D8D3CB; }
.feat-line .fl-hex { width: 22px; height: 25px; flex: none; clip-path: var(--hex); background: rgba(201,162,39,.22); color: var(--gold-soft); display: grid; place-items: center; margin-top: 2px; }
.feat-line .fl-hex svg { width: 12px; height: 12px; }
.feat-line b { color: #fff; font-weight: 700; }
.brochure-note { font-size: .8rem; color: #9a948c; margin-top: 1rem; }

@media (max-width: 960px){
  .equip-grid { grid-template-columns: 1fr; }
  .feature-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px){
  .feature-cols { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   RESEARCH PAGE (research.html)
   Chart marks use --rz-mark / --rz-accent, validated for 3:1 contrast on the
   charcoal surface. Brand --magenta fails on charcoal (2.96:1) and --gold
   fails on cream (2.17:1), so neither is used as a data mark here.
   ========================================================================== */
:root {
  --rz-surface: var(--charcoal);
  --rz-mark: #E0398B;   /* completed / bar fill — 4.25:1 on charcoal */
  --rz-accent: #AD881D; /* ongoing — 5.23:1 on charcoal */
  --rz-hair: #3A3A3A;   /* recessive hairline */
  --rz-dim: #B9B3AB;
}

/* --- Two-track chooser --- */
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: 2.6rem; }
.path-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--magenta-soft); }
.path-card h3 { margin-bottom: .5rem; }
.path-card > p { color: var(--muted); font-size: .95rem; }
.path-card .why-list { margin-bottom: 1.8rem; }
.path-card .btn { align-self: flex-start; margin-top: auto; }

/* --- Dark data zone --- */
.rz { background: var(--rz-surface); color: var(--text-invert); }
.rz h2, .rz h3, .rz h4 { color: #fff; }
.rz .eyebrow { color: var(--gold-soft); }
.rz .lede, .rz p { color: var(--rz-dim); }
.rz .why-list b { color: #fff; }
.rz .why-list .w-hex { background: rgba(201,162,39,.22); color: var(--gold-soft); }
.rz .container { position: relative; z-index: 1; }

.chart-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.2rem, 2.5vw, 2rem); margin-top: 2.8rem; align-items: start; }
.chart-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--rz-hair);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.6vw, 2rem);
}
.chart-head h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.chart-head p { font-size: .84rem; color: #8F8A83; margin-bottom: 1.8rem; }
.chart-note { font-size: .78rem; color: #8F8A83; margin-top: 1.6rem; line-height: 1.6; }

/* Legend — present for the 2-class unit chart, absent for the 1-series bars */
.chart-legend { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-bottom: 1.8rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--rz-dim); }
.chart-legend i { width: 14px; height: 16px; flex: none; clip-path: var(--hex); background: var(--rz-mark); }
.chart-legend i.ongoing { background: var(--rz-accent); }

/* --- Chart A: hexagon unit chart (1 hex = 1 trial) --- */
.unit-rows { display: grid; gap: 1.5rem; }
.unit-row { display: grid; grid-template-columns: 1fr; gap: .6rem; }
.unit-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: .84rem; }
.unit-label b { color: #fff; font-weight: 700; font-family: var(--font-sans); }
.unit-label span { color: #8F8A83; font-variant-numeric: tabular-nums; }
.unit-hexes { display: flex; flex-wrap: wrap; gap: 6px; }
.unit-hex {
  width: 26px; height: 30px; flex: none; position: relative;
  clip-path: var(--hex); background: var(--rz-mark);
  opacity: 0; transform: scale(.6); transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.unit-hex.ongoing { background: var(--rz-accent); }
.unit-row.in .unit-hex { opacity: 1; transform: none; }

/* --- Chart B: horizontal bars, one hue, 12 nominal categories --- */
.bar-rows { display: grid; gap: 2px; } /* 2px surface gap between adjacent bars */
.bar-row { display: grid; grid-template-columns: 8.5rem 1fr 3.2rem; align-items: center; gap: .9rem; padding: 3px 0; }
.bar-label { font-size: .82rem; color: var(--rz-dim); text-align: right; }
.bar-track { height: 14px; background: rgba(255,255,255,.05); border-radius: 2px; }
.bar-fill {
  height: 100%; width: var(--w); background: var(--rz-mark);
  border-radius: 0 4px 4px 0; /* 4px rounded data-end, square at the baseline */
  transition: width 1s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.bar-row:not(.in) .bar-fill { width: 0; }
.bar-val { font-size: .82rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

/* --- Table-view twin (native <details>, no JS) --- */
.chart-table { margin-top: 1.4rem; border-top: 1px solid var(--rz-hair); padding-top: 1rem; }
.chart-table summary { cursor: pointer; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.chart-table summary:hover { color: #fff; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: .82rem; }
.chart-table caption { text-align: left; color: #8F8A83; font-size: .78rem; padding-bottom: .6rem; }
.chart-table th, .chart-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--rz-hair); }
.chart-table th { color: #fff; font-weight: 700; }
.chart-table td { color: var(--rz-dim); }
.chart-table td.n { text-align: right; font-variant-numeric: tabular-nums; }

/* --- Facility chips --- */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.8rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--rz-hair); border-radius: 100px; font-size: .84rem; color: var(--rz-dim); }
.chip::before { content: ""; width: 8px; height: 9px; flex: none; clip-path: var(--hex); background: var(--gold-soft); }
.chip.feature { border-color: rgba(201,162,39,.45); color: var(--gold-soft); }

/* --- Investigator roster --- */
.doc .pi-badge { display: inline-block; margin-top: .35rem; padding: .18rem .55rem; border-radius: 100px; background: var(--magenta-soft); color: var(--magenta); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.roster-note { text-align: center; font-size: .78rem; color: var(--muted); margin-top: 1.8rem; }

/* --- Institutional Ethics Committee page (iec.html) --- */
/* Hero composition diagram. Hand-authored inline SVG — no library, no raster
   image; the hexagon matches the brand --hex geometry. Sits on the charcoal
   .page-hero, so every colour here is checked against that dark surface. */
.iec-chart { display: block; }
.iec-chart svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font-sans); }
.iec-chart figcaption { margin-top: 1rem; font-size: .76rem; color: #9a948c; text-align: center; }
.iec-chart .c-gold  { fill: var(--gold); }
.iec-chart .c-mag   { fill: var(--magenta-bright); }
.iec-chart .c-node  { fill: rgba(224,57,139,.20); stroke: var(--magenta-bright); stroke-width: 1.5; }
.iec-chart .c-line  { stroke: rgba(255,255,255,.26); stroke-width: 1.5; fill: none; }
.iec-chart .c-rule  { stroke: rgba(255,255,255,.14); stroke-width: 1; fill: none; }
.iec-chart .c-eyebrow { fill: var(--gold-soft); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.iec-chart .c-num   { fill: #fff; font-size: 30px; font-weight: 700; font-family: var(--font-display); }
.iec-chart .c-onGold{ fill: var(--charcoal); }
.iec-chart .c-num-s { fill: #fff; font-size: 22px; font-weight: 700; font-family: var(--font-display); }
.iec-chart .c-lbl   { fill: #fff; font-size: 14px; font-weight: 700; }
.iec-chart .c-lbl-s { fill: #C7C1B9; font-size: 11.5px; font-weight: 600; }
.iec-chart .c-sub   { fill: #9a948c; font-size: 11.5px; font-weight: 500; }
.iec-chart .c-foot  { fill: #C7C1B9; font-size: 12.5px; font-weight: 600; }
.iec-chart .c-foot-dim { fill: #8F8A83; font-weight: 500; }

.iec-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2.6rem; }
.iec-fact { background: var(--white); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.iec-fact .k { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.iec-fact .v { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--charcoal); line-height: 1.35; }

/* Composition table — sits inside the dark .rz band, so it inherits those tokens */
.iec-table-wrap { overflow-x: auto; }
.iec-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.iec-table caption { text-align: left; color: #8F8A83; font-size: .78rem; padding-bottom: .8rem; }
.iec-table th, .iec-table td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--rz-hair); }
.iec-table thead th { color: var(--gold-soft); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.iec-table tbody th { color: #fff; font-weight: 700; font-family: var(--font-sans); }
.iec-table td { color: var(--rz-dim); }

/* Certificate preview + download */
.doc-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2.6rem; align-items: start; }
/* A flat image of page 1, NOT an embedded PDF viewer: iOS Safari and most
   Android browsers refuse to render a PDF inside an iframe, so the preview
   was blank on phones. The image links through to the full document. */
.pdf-frame { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); box-shadow: var(--shadow-sm); }
.pdf-frame a { display: block; }
.pdf-frame img { width: 100%; height: auto; display: block; background: #fff; transition: transform .5s var(--ease); }
.pdf-frame a:hover img { transform: scale(1.02); }
.pdf-frame figcaption { padding: .9rem 1.1rem; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--white); line-height: 1.6; }
.pdf-frame figcaption a { color: var(--magenta); font-weight: 700; }
.pdf-frame figcaption a:hover { text-decoration: underline; }
.dl-list { display: grid; gap: 1rem; }
.dl-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.dl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--magenta-soft); }
.dl-card .dl-ico { width: 44px; height: 50px; flex: none; clip-path: var(--hex); background: var(--magenta-soft); color: var(--magenta); display: grid; place-items: center; transition: background .3s, color .3s; }
.dl-card .dl-ico svg { width: 20px; height: 20px; }
.dl-card:hover .dl-ico { background: var(--magenta); color: #fff; }
.dl-card .dl-body { display: flex; flex-direction: column; gap: .25rem; }
.dl-card .dl-body b { color: var(--charcoal); font-size: .98rem; }
.dl-card .dl-body span { font-size: .8rem; color: var(--muted); }

@media (max-width: 960px){
  .path-cards { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
  .iec-meta { grid-template-columns: 1fr 1fr; }
  .doc-split { grid-template-columns: 1fr; }
  .pdf-frame iframe { height: 460px; }
}
@media (max-width: 620px){
  .bar-row { grid-template-columns: 6.6rem 1fr 2.8rem; gap: .6rem; }
  .bar-label { font-size: .76rem; }
  .unit-hex { width: 22px; height: 25px; }
  .iec-meta { grid-template-columns: 1fr; }
}
