/* ===========================================================================
   SMDJH Community Health Centre, Ghanerao — "Cinematic Civic"
   Dark, image-forward. Deep tinted green-black, logo teal-green accent.
   Spectral (display) · Hanken Grotesk (text) · Tiro Devanagari Hindi / Mukta (Hindi)
   =========================================================================== */

:root {
  /* Deep tinted neutrals (toward the brand teal-green) */
  --bg:         #0e1714;
  --bg-2:       #11201b;
  --surface:    #16241e;
  --surface-2:  #1c2e27;
  --ink:        #edf2ef;          /* primary text on dark */
  --ink-soft:   #b4beb8;          /* secondary */
  --ink-faint:  #8b958f;          /* meta / "adding soon" */
  --line:       rgba(237,242,239,0.12);
  --line-strong:rgba(237,242,239,0.22);

  /* Brand teal-green, tuned for dark surfaces */
  --accent:        #2fae8c;       /* CTAs, highlights, icons */
  --accent-2:      #6fd3b6;       /* small accent text / links on dark (AA) */
  --accent-deep:   #1d8e72;
  --accent-tint:   rgba(47,174,140,0.14);
  --accent-tint-2: rgba(47,174,140,0.22);
  --on-accent:     #04140f;       /* dark text on bright accent */

  /* Urgent — emergency only */
  --urgent:    #e8694f;
  --urgent-2:  #f3a08c;
  --on-urgent: #1a0905;

  /* Glass (used sparingly: hero card, nav) */
  --glass:        rgba(255,255,255,0.07);
  --glass-strong: rgba(255,255,255,0.11);
  --glass-line:   rgba(255,255,255,0.16);

  /* Type */
  --font-display: "Spectral", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-hi: "Tiro Devanagari Hindi", Georgia, serif;
  --font-hi-ui: "Mukta", var(--font-sans);

  --t-hero:  clamp(2.4rem, 1.3rem + 5.4vw, 5.4rem);
  --t-h2:    clamp(1.8rem, 1.2rem + 2.4vw, 2.9rem);
  --t-h3:    clamp(1.2rem, 1.04rem + 0.7vw, 1.5rem);
  --t-lead:  clamp(1.08rem, 1rem + 0.5vw, 1.32rem);
  --t-body:  1.0625rem;
  --t-sm:    0.9375rem;
  --t-xs:    0.8125rem;

  --s-1:.25rem; --s-2:.5rem; --s-3:.75rem; --s-4:1rem; --s-5:1.5rem; --s-6:2rem; --s-7:3rem; --s-8:4rem;
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --wrap: 1200px;

  --e-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --e-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --e-inout:cubic-bezier(0.77, 0, 0.175, 1);

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 2px 8px rgba(0,0,0,.3), 0 24px 60px -28px rgba(0,0,0,.7);

  --z-sticky: 100; --z-float: 300; --z-backdrop: 400; --z-modal: 500;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--accent-2); text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }

:lang(hi) { font-family: var(--font-hi); line-height: 1.78; }
.deva-ui, [lang="hi"].deva-ui { font-family: var(--font-hi-ui); line-height: 1.5; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; color: var(--ink); }
h2 { font-size: var(--t-h2); line-height: 1.08; }
h3 { font-size: var(--t-h3); }
p { text-wrap: pretty; }

/* Layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.15rem, 5vw, 3rem); }
.section { padding-block: var(--section); position: relative; }
.section--alt { background: var(--bg-2); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: var(--z-modal); background: var(--accent); color: var(--on-accent); padding: .7rem 1.1rem; border-radius: var(--radius-sm); transition: top .2s var(--e-out); font-weight: 600; }
.skip-link:focus { top: 1rem; }

.sec-head { max-width: 54ch; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head h2 .accent { color: var(--accent-2); font-style: italic; }
.sec-head p { color: var(--ink-soft); margin-top: var(--s-4); font-size: var(--t-lead); }

/* "Adding soon" marker */
.soon { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--t-sm); color: var(--ink-faint); font-style: italic; }
.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .65; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-weight: 600; font-size: var(--t-sm); line-height: 1; padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .16s var(--e-out), background-color .2s var(--e-out), box-shadow .2s var(--e-out), border-color .2s var(--e-out), color .2s var(--e-out); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 30px -10px rgba(47,174,140,.5); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-tint); }
.btn .ic { width: 1.05em; height: 1.05em; }

.link { color: var(--accent-2); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.link .ic { width: .9em; height: .9em; transition: transform .25s var(--e-out); }
.link:hover .ic { transform: translateX(3px); }

.ic { display: inline-block; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===========================================================================
   Header / Nav (logo left · centered links · button right)
   =========================================================================== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-sticky); transition: background-color .4s var(--e-out), box-shadow .4s var(--e-out), border-color .4s var(--e-out); border-bottom: 1px solid transparent; }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--s-5); height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; min-width: 0; justify-self: start; }
.brand__logo { width: 42px; height: 42px; border-radius: 50%; flex: none; background: rgba(255,255,255,.9); padding: 3px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); }
.brand__sub { font-size: .72rem; color: var(--ink-soft); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: clamp(.6rem, 1.4vw, 1.7rem); justify-self: center; }
.nav__link { color: var(--ink-soft); font-weight: 500; font-size: .95rem; padding: .4rem .15rem; position: relative; transition: color .2s var(--e-out); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--e-out); }
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }

.header-cta { justify-self: end; display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 11px; color: var(--ink); }
.nav-toggle .ic { width: 24px; height: 24px; }

/* over-hero (transparent) vs scrolled (solid glass) */
.site-header[data-scrolled="true"] { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px); border-bottom-color: var(--line); }

/* Mobile nav */
.mobile-nav { border: none; padding: 0; max-width: none; width: 100%; height: 100%; max-height: none; background: var(--bg); color: var(--ink); }
.mobile-nav::backdrop { background: rgba(5,10,8,.6); }
.mobile-nav__inner { display: flex; flex-direction: column; height: 100%; padding: clamp(1.15rem,5vw,2rem); }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-6); }
.mobile-nav__links { display: flex; flex-direction: column; gap: .1rem; }
.mobile-nav__links a { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); font-weight: 500; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.mobile-nav__foot { margin-top: auto; padding-top: var(--s-6); display: grid; gap: .75rem; }

/* ===========================================================================
   Hero
   =========================================================================== */
.hero { position: relative; min-height: 100svh; display: grid; isolation: isolate; overflow: hidden; color: #fff; }
.hero__bg { position: absolute; inset: 0; z-index: -3; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s var(--e-out); will-change: opacity, transform; transform: scale(1.04); }
.hero__slide.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13); } }
.hero__scrim { position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to bottom, rgba(8,14,12,.62) 0%, rgba(8,14,12,.30) 30%, rgba(8,14,12,.45) 62%, rgba(8,14,12,.82) 100%),
    radial-gradient(120% 90% at 50% 38%, transparent 36%, rgba(8,14,12,.55) 100%); }
.hero__particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.hero__inner { align-self: center; text-align: center; padding-block: clamp(7rem, 16vh, 10rem) clamp(6rem, 12vh, 9rem); max-width: 60rem; margin-inline: auto; }
.hero__badge { display: inline-flex; align-items: center; gap: .55rem; font-size: var(--t-sm); font-weight: 500; color: #fff; background: var(--glass); border: 1px solid var(--glass-line); padding: .5rem 1rem .5rem .85rem; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(47,174,140,.6); animation: pulse 2.6s var(--e-out) infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,174,140,.55); } 70% { box-shadow: 0 0 0 9px rgba(47,174,140,0); } 100% { box-shadow: 0 0 0 0 rgba(47,174,140,0); } }
.hero__logo { width: clamp(150px, 18vw, 240px); height: auto; margin: 0 auto clamp(1.1rem,2.6vw,1.7rem); display: block; filter: drop-shadow(0 8px 28px rgba(0,0,0,.5)); }
.hero__name { font-family: var(--font-display); font-weight: 500; color: #fff; font-size: var(--t-hero); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.hero__sub { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(1.15rem, .95rem + 1vw, 1.7rem); color: rgba(255,255,255,.92); margin-top: var(--s-4); }
.hero__motto { margin-top: var(--s-3); font-size: 1.2rem; color: rgba(255,255,255,.9); }
.hero__tagline { margin-top: var(--s-4); font-size: var(--t-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero__actions { margin-top: clamp(1.8rem, 4vw, 2.6rem); display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* Glass stats card — bottom-left */
.hero__card { position: absolute; left: clamp(1rem, 4vw, 3rem); bottom: clamp(1.4rem, 5vh, 3rem); z-index: 2; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.2rem; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow); max-width: min(90vw, 340px); }
.hero__card .stars { display: flex; gap: 1px; color: #ffc861; }
.hero__card .stars .ic { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.hero__card .value { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: #fff; line-height: 1; }
.hero__card .stat-text { min-width: 0; }
.hero__card .label { font-size: var(--t-xs); color: rgba(255,255,255,.78); margin-top: 3px; }

/* Slideshow controls — bottom-right */
.hero__controls { position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: clamp(1.4rem, 5vh, 3rem); z-index: 2; display: flex; align-items: center; gap: .65rem; }
.hero__dots { display: flex; gap: .5rem; }
.hero__dot { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.35); transition: background-color .3s var(--e-out); padding: 0; }
.hero__dot.is-active { background: #fff; width: 22px; border-radius: 999px; }
.hero__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s var(--e-out), transform .16s var(--e-out); }
.hero__arrow:hover { background: var(--glass-strong); }
.hero__arrow:active { transform: scale(0.94); }
.hero__arrow .ic { width: 20px; height: 20px; }

/* Hero staggered entrance */
.hero [data-enter] { opacity: 0; transform: translateY(18px); }
.is-ready .hero [data-enter] { animation: heroIn .85s var(--e-expo) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--e-expo), transform .7s var(--e-expo); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-stagger] > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--e-expo), transform .6s var(--e-expo); }
.js .reveal[data-stagger].is-in > * { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 65ms); }

/* ===========================================================================
   About
   =========================================================================== */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }
.about__intro p { color: var(--ink-soft); font-size: var(--t-lead); }
.about__intro p + p { margin-top: var(--s-4); }
.about__lead-first { color: var(--ink) !important; font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.4; }
.about__figure { position: relative; margin: 0; }
.about__figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.about__figure figcaption { margin-top: var(--s-3); font-size: var(--t-xs); color: var(--ink-faint); }

/* History band */
.story { margin-top: clamp(3rem,6vw,5rem); padding-top: clamp(2.4rem,4vw,3.2rem); border-top: 1px solid var(--line); display: grid; gap: clamp(2rem,4vw,3.5rem); grid-template-columns: 1fr; }
.story__body h3 { font-size: var(--t-h3); margin-bottom: var(--s-4); }
.story__body p { color: var(--ink-soft); }
.story__body p + p { margin-top: var(--s-4); }

/* Founders */
.founders { display: grid; gap: clamp(1.2rem,2.5vw,1.8rem); grid-template-columns: 1fr 1fr; }
.founder { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.founder img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); }
.founder__body { padding: 1rem 1.1rem 1.2rem; }
.founder__name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.founder__role { color: var(--accent-2); font-size: var(--t-sm); font-weight: 600; margin-top: 2px; }
.founder__note { color: var(--ink-soft); font-size: var(--t-sm); margin-top: var(--s-2); }

/* Mission / Vision */
.creed { display: grid; gap: clamp(1.5rem,3vw,2.5rem); grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); margin-top: clamp(3rem,5vw,4rem); }
.creed__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem,3vw,2rem); }
.creed__item h3 { font-size: 1.2rem; margin-bottom: var(--s-3); display: flex; align-items: center; gap: .55rem; }
.creed__item h3 .ic { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.creed__item p { color: var(--ink-soft); font-size: var(--t-sm); }

/* Hindi heritage letter */
.heritage { margin-top: clamp(3rem,5vw,4rem); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3.2rem); position: relative; overflow: hidden; }
.heritage::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--accent), transparent); opacity: .0; }
.heritage__label { font-family: var(--font-hi-ui); font-size: var(--t-sm); letter-spacing: .04em; color: var(--accent-2); margin-bottom: var(--s-4); }
.heritage__body { max-width: 66ch; }
.heritage__body p { color: var(--ink); font-size: 1.14rem; }
.heritage__body p + p { margin-top: var(--s-4); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(3rem,5vw,4rem); }
.stat { background: var(--bg); padding: clamp(1.4rem,3vw,2rem); }
.stat__value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem,1.3rem+2vw,2.9rem); color: var(--accent-2); line-height: 1; letter-spacing: -0.02em; }
.stat__label { margin-top: var(--s-3); font-size: var(--t-sm); color: var(--ink-soft); }

/* ===========================================================================
   Departments — editorial directory
   =========================================================================== */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 0 clamp(2rem,4vw,4rem); }
.dept { padding-block: clamp(1.4rem,3vw,1.9rem); border-top: 1px solid var(--line); display: grid; gap: var(--s-2); }
.dept__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.dept__name { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; }
.dept__time { flex: none; font-size: var(--t-xs); font-weight: 600; color: var(--accent-2); display: inline-flex; align-items: center; gap: .35rem; background: var(--accent-tint); padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; }
.dept__time.is-24 { color: var(--urgent-2); background: rgba(232,105,79,.14); }
.dept__time .ic { width: .85em; height: .85em; }
.dept__desc { color: var(--ink-soft); font-size: var(--t-sm); max-width: 46ch; }

/* ===========================================================================
   Services & Programs
   =========================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--bg); padding: clamp(1.4rem,2.5vw,1.8rem); display: grid; gap: var(--s-2); transition: background-color .25s var(--e-out); }
.svc:hover { background: var(--surface); }
.svc__name { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; display: flex; align-items: center; gap: .55rem; }
.svc__name .ic { width: 1.15rem; height: 1.15rem; color: var(--accent); flex: none; }
.svc__desc { color: var(--ink-soft); font-size: var(--t-sm); }

.prog-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: clamp(1.4rem,3vw,2.4rem); }
.prog { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: start; }
.prog__mark { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; flex: none; }
.prog__mark .ic { width: 1.2rem; height: 1.2rem; }
.prog h3 { font-size: 1.15rem; margin-bottom: var(--s-2); }
.prog p { color: var(--ink-soft); font-size: var(--t-sm); }

/* ===========================================================================
   Gallery
   =========================================================================== */
.gal-photos { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.6rem,1.4vw,1rem); }
.gal-photo { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; grid-column: span 6; cursor: zoom-in; background: var(--surface); border: 1px solid var(--line); }
.gal-photo:first-child { grid-column: span 8; }
.gal-photo:nth-child(2) { grid-column: span 4; }
.gal-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; transition: transform .6s var(--e-out); }
.gal-photo:first-child img { aspect-ratio: 16/11; }
.gal-photo:hover img { transform: scale(1.05); }
.gal-photo figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem 1.1rem .9rem; color: #fff; font-size: var(--t-sm); background: linear-gradient(to top, rgba(8,14,12,.85), transparent); opacity: 0; transform: translateY(8px); transition: opacity .3s var(--e-out), transform .3s var(--e-out); }
.gal-photo:hover figcaption, .gal-photo:focus-visible figcaption { opacity: 1; transform: none; }

.gal-feature { margin-top: clamp(1rem,2vw,1.4rem); position: relative; border-radius: var(--radius); overflow: hidden; background: #060b09; aspect-ratio: 16/9; cursor: pointer; border: 1px solid var(--line); }
.gal-feature video, .gal-feature img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-feature__play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; transition: opacity .25s var(--e-out); }
.gal-feature__play span { width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow); }
.gal-feature__play .ic { width: 26px; height: 26px; color: #0e1714; fill: #0e1714; stroke: none; margin-left: 4px; }
.gal-feature.is-playing .gal-feature__play { opacity: 0; pointer-events: none; }
.gal-feature__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.6rem 1.2rem 1rem; color: #fff; font-size: var(--t-sm); background: linear-gradient(to top, rgba(8,14,12,.85), transparent); }

/* Lightbox */
.lightbox { border: none; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(4,8,6,.94); }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; border-radius: var(--radius-sm); }
.lightbox figcaption { color: var(--ink); text-align: center; margin-top: var(--s-4); font-size: var(--t-sm); }
.lightbox__close { position: fixed; top: 1.1rem; right: 1.1rem; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255,255,255,.22); }

/* ===========================================================================
   News
   =========================================================================== */
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: minmax(120px,9rem) 1fr; gap: clamp(1rem,3vw,2.5rem); padding-block: clamp(1.5rem,3vw,2rem); border-top: 1px solid var(--line); align-items: start; }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-date time { display: block; font-weight: 600; color: var(--ink); }
.news-cat { display: inline-block; margin-top: var(--s-2); font-size: var(--t-xs); font-weight: 600; color: var(--accent-2); background: var(--accent-tint); padding: .25rem .6rem; border-radius: 999px; }
.news-body h3 { font-size: 1.3rem; margin-bottom: var(--s-2); }
.news-body p { color: var(--ink-soft); max-width: 64ch; }
.news-empty { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(1.6rem,4vw,2.4rem); color: var(--ink-soft); background: var(--surface); }

/* ===========================================================================
   Contact
   =========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,4vw,3.5rem); }
.contact-rows { display: grid; gap: var(--s-5); }
.crow { display: grid; grid-template-columns: 2.7rem 1fr; gap: var(--s-4); align-items: start; }
.crow__ic { width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--accent-tint); color: var(--accent-2); display: grid; place-items: center; flex: none; }
.crow__ic .ic { width: 1.2rem; height: 1.2rem; }
.crow__label { font-size: var(--t-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.crow__value { font-size: 1.08rem; color: var(--ink); margin-top: 2px; }
.crow__value a { color: var(--ink); }
.crow__value a:hover { color: var(--accent-2); }
.crow--urgent .crow__ic { background: rgba(232,105,79,.16); color: var(--urgent-2); }
.crow--urgent .crow__value a { color: var(--urgent-2); font-weight: 700; }
.hours { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-sm); padding-block: .4rem; border-bottom: 1px solid var(--line); }
.hours li span:first-child { color: var(--ink-soft); }
.hours li span:last-child { color: var(--ink); font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: var(--s-5); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); min-height: 340px; background: var(--surface); position: relative; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 340px; border: 0; filter: grayscale(.2) contrast(1.05); }

/* ===========================================================================
   Footer
   =========================================================================== */
.site-footer { background: #0a110e; color: var(--ink); padding-block: clamp(3.5rem,7vw,6rem) 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); }
.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; padding: 3px; flex: none; }
.footer-brand .name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.footer-motto { font-family: var(--font-hi); font-size: 1.2rem; color: var(--ink); margin-top: var(--s-4); }
.footer-motto small { display: block; font-family: var(--font-sans); font-size: var(--t-xs); color: var(--ink-faint); margin-top: 4px; }
.footer-col h3 { font-family: var(--font-sans); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: var(--s-4); font-weight: 600; }
.footer-col ul { display: grid; gap: var(--s-3); }
.footer-col a { color: var(--ink-soft); font-size: var(--t-sm); transition: color .2s var(--e-out); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); margin-top: clamp(2.5rem,5vw,4rem); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-faint); font-size: var(--t-xs); }
.footer-bottom a { color: var(--ink-faint); } .footer-bottom a:hover { color: var(--ink); }

/* ===========================================================================
   Floating actions
   =========================================================================== */
.floats { position: fixed; right: clamp(1rem, 3vw, 1.6rem); bottom: clamp(1rem, 3vw, 1.6rem); z-index: var(--z-float); display: grid; gap: .7rem; }
.float { display: inline-flex; align-items: center; gap: .55rem; height: 52px; padding: 0 .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); transition: transform .18s var(--e-out), background-color .2s var(--e-out); max-width: 52px; overflow: hidden; white-space: nowrap; }
.float .ic { width: 22px; height: 22px; flex: none; }
.float .float__label { opacity: 0; transition: opacity .2s var(--e-out); }
.float:active { transform: scale(0.96); }
.float--emergency { background: var(--urgent); color: var(--on-urgent); }
.float--emergency:hover { background: #f0795f; }
.float--wa { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.float--wa:hover { border-color: var(--accent); color: var(--accent-2); }
@media (hover: hover) and (pointer: fine) { .float:hover { max-width: 220px; } .float:hover .float__label { opacity: 1; } }

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (min-width: 820px) {
  .about__grid { grid-template-columns: 1.45fr 1fr; }
  .story { grid-template-columns: 1.1fr 1fr; align-items: start; }
}
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: stretch; } }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 880px) { .nav { display: none; } .site-header__inner { grid-template-columns: 1fr auto; } .header-cta .btn-primary { display: none; } .nav-toggle { display: flex; } }
@media (max-width: 620px) {
  html { scroll-padding-top: 72px; }
  .site-header__inner { height: 64px; }
  .brand__sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; gap: var(--s-3); }
  .founders { grid-template-columns: 1fr; }
  .gal-photo, .gal-photo:first-child, .gal-photo:nth-child(2) { grid-column: span 12; }
  .hero__card { display: none; }
  .hero__controls { left: 50%; right: auto; transform: translateX(-50%); bottom: 1.4rem; }
  .hero__arrow { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__slide { transition: opacity .4s linear; }
  .hero__slide.is-active { animation: none; transform: scale(1.04); }
  .hero [data-enter] { opacity: 1; transform: none; }
  .js .reveal, .js .reveal[data-stagger] > * { opacity: 1; transform: none; }
  .hero__badge .dot { animation: none; }
}

/* News / gallery masonry walls (mixed-aspect press clippings + activity photos) */
.masonry { columns: 3 250px; column-gap: clamp(.6rem,1.4vw,1rem); margin-top: clamp(1.2rem,2.5vw,1.8rem); }
.news-intro { color: var(--ink-soft); font-size: var(--t-lead); max-width: 62ch; margin-bottom: clamp(1rem,2vw,1.6rem); }
.moment { break-inside: avoid; margin: 0 0 clamp(.6rem,1.4vw,1rem); display: block; width: 100%; position: relative; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); cursor: zoom-in; }
.moment img { width: 100%; height: auto; display: block; transition: transform .5s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .moment:hover img { transform: scale(1.03); } }
@media (max-width: 560px) { .masonry { columns: 2 150px; } }

/* About history (full width, founders moved to their own section) */
.about-history { margin-top: clamp(3rem,6vw,5rem); padding-top: clamp(2.4rem,4vw,3.2rem); border-top: 1px solid var(--line); }
.about-history h3 { font-size: var(--t-h3); margin-bottom: var(--s-4); }
.about-history p { color: var(--ink-soft); max-width: 72ch; }
.about-history p + p { margin-top: var(--s-4); }

/* In cherished memory — large, dedicated tribute section */
.memorial { text-align: center; background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.memorial__head { max-width: 60ch; margin: 0 auto clamp(2.5rem,5vw,4.5rem); }
.memorial__head h2 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.8rem); line-height: 1.05; }
.memorial__head p { color: var(--ink-soft); font-size: var(--t-lead); margin-top: var(--s-5); }
.memorial__people { display: flex; flex-wrap: wrap; gap: clamp(2rem,5vw,5rem); justify-content: center; align-items: flex-start; }
.memorial__person { width: clamp(260px, 36vw, 440px); }
.memorial__person img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line-strong); }
.memorial__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem); margin-top: clamp(1.1rem,2.4vw,1.8rem); color: var(--ink); letter-spacing: -0.01em; }
.memorial__role { color: var(--accent-2); font-size: var(--t-sm); margin-top: var(--s-2); }

/* Doctors */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px,1fr)); gap: clamp(1rem,2vw,1.6rem); }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s var(--e-out), box-shadow .25s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .doc:hover { transform: translateY(-3px); box-shadow: var(--shadow); } }
.doc__photo { aspect-ratio: 1/1; width: 100%; object-fit: cover; display: block; }
.doc__photo--ph { display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 30%, var(--surface-2), var(--bg)); }
.doc__photo--ph svg { width: 44%; height: 44%; color: var(--accent); opacity: .55; }
.doc__body { padding: 1.05rem 1.15rem 1.25rem; }
.doc__name { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; line-height: 1.2; }
.doc__spec { color: var(--accent-2); font-size: var(--t-sm); font-weight: 600; margin-top: 4px; }
.doc__phone { margin-top: var(--s-3); display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-size: var(--t-sm); font-weight: 600; }
.doc__phone .ic { width: 1.05em; height: 1.05em; color: var(--accent); }
.doc__phone:hover { color: var(--accent-2); }

@media print { .site-header, .floats, .hero__controls, .hero__card, .map-wrap, .nav-toggle { display: none; } .hero { min-height: auto; } body { background: #fff; color: #111; } }
