/* ==========================================================================
   Madrasa Shakira Lil-Banat — site styles
   Mobile-first. Logical properties (margin-inline, padding-inline...) are
   used everywhere so the layout mirrors automatically in Urdu (dir="rtl").
   ========================================================================== */

/* ---------- Self-hosted micro fonts (subsets of Noto, SIL OFL 1.1) ------- */
/* Only the ﷺ glyph — so English pages render it without loading a full Arabic font */
@font-face {
  font-family: "Salawat";
  src: url("../fonts/salawat.woff2") format("woff2");
  font-display: swap;
}
/* Only the ₹ sign — avoids downloading a 59 KB extended-Latin font file for one character */
@font-face {
  font-family: "Rupee";
  src: url("../fonts/rupee.woff2") format("woff2");
  unicode-range: U+20B9;
  font-display: swap;
}
/* Only the word اردو — for the language button in English mode */
@font-face {
  font-family: "UrduLabel";
  src: url("../fonts/urdu-label.woff2") format("woff2");
  font-display: swap;
}

/* ---------- Design tokens ------------------------------------------------- */
:root {
  /* Primitive palette — taken from the logo and hero image */
  --green-900: #0b3d24;
  --green-800: #0c5730;
  --green-700: #0f6b3a;
  --green-100: #d7eadf;
  --green-50:  #eaf4ee;
  --gold-800:  #8a6420;
  --gold-600:  #b5832a;
  --gold-500:  #c9963b;
  --gold-100:  #f3e6cc;
  --gold-50:   #fbf5e9;
  --sky-50:    #eaf3fb;
  --ivory:     #faf8f3;
  --white:     #ffffff;
  --ink:       #1c2521;
  --slate:     #4a5751;
  --line:      #e4dfd4;
  --line-strong: #cfc8b9;

  /* Semantic tokens — use these in components */
  --c-bg: var(--ivory);
  --c-surface: var(--white);
  --c-surface-alt: var(--sky-50);
  --c-text: var(--ink);
  --c-heading: var(--green-900);
  --c-muted: var(--slate);
  --c-primary: var(--green-700);
  --c-primary-hover: var(--green-800);
  --c-accent: var(--gold-500);
  --c-accent-hover: #d6a44a;
  --c-on-accent: var(--ink);
  --c-border: var(--line);
  --c-border-strong: var(--line-strong);
  --c-focus: #1d5fd1;

  /* Type */
  --font-head: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Rupee", "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ur: "Noto Nastaliq Urdu", "Noto Naskh Arabic", serif;
  --font-ar: "Noto Naskh Arabic", "Amiri", serif;

  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.35rem + 1.8vw, 2.5rem);
  --fs-h1: clamp(2.125rem, 1.5rem + 3vw, 3.5rem);

  /* Space (8pt rhythm) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --section-y: clamp(56px, 8vw, 104px);
  --gutter: clamp(16px, 4vw, 32px);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(16 32 24 / 0.06), 0 1px 3px rgb(16 32 24 / 0.06);
  --shadow-md: 0 6px 24px -8px rgb(16 32 24 / 0.18);

  --header-h: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* The `hidden` attribute must always win over component display rules
   (used by the gallery filter). */
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-heading);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary); text-underline-offset: 0.18em; }
a:hover { color: var(--c-primary-hover); }

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold-100); }

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

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-900);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Language switching -------------------------------------------
   Every translatable piece exists twice: .en and .ur. Only one is shown.
   Hidden text is display:none, so the browser never downloads the Urdu
   fonts for English visitors (and vice versa). */
html:not([lang="ur"]) .ur,
html[lang="ur"] .en { display: none !important; }

/* ﷺ inside English text */
.saw { font-family: "Salawat", var(--font-ar); font-size: 1.15em; line-height: 1; }

/* Numbers / IDs stay left-to-right and in Latin digits in both languages */
.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}

/* ---------- Urdu typography --------------------------------------------- */
html[lang="ur"] body {
  font-family: var(--font-ur);
  font-size: 1.125rem;
  line-height: 2.1;
}
html[lang="ur"] :is(h1, h2, h3, h4) {
  font-family: var(--font-ur);
  font-weight: 700;
  line-height: 1.9;
  letter-spacing: 0;
}
html[lang="ur"] h1 { font-size: clamp(1.75rem, 1.25rem + 2.4vw, 2.75rem); }
html[lang="ur"] h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); }
html[lang="ur"] h3 { font-size: 1.1875rem; }
html[lang="ur"] :is(.eyebrow, .btn, .site-nav a, .chip, .copy-btn, .lang-toggle) {
  font-family: var(--font-ur);
  letter-spacing: 0;
  text-transform: none;
}
html[lang="ur"] .ltr { font-family: var(--font-body); line-height: 1.5; }
/* Inline phone numbers / IDs never split across lines */
:is(a, span).ltr { white-space: nowrap; }
/* Block-level numbers (amounts, account no.) still sit on the right in Urdu */
html[dir="rtl"] :is(div, p, dd, span.card-num).ltr { text-align: right; }
html[lang="ur"] .lang-toggle,
.lang-toggle .ur { font-family: var(--font-body); }
html[lang="ur"] .icon-flip { transform: scaleX(-1); }

.hadith {
  font-family: var(--font-ar);
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  line-height: 2;
  text-align: center;
  color: var(--green-900);
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4);
  margin: var(--sp-2) 0 var(--sp-4);
}

/* ---------- Layout helpers ---------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--c-surface-alt); }
.section--white { background: var(--c-surface); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }

.section-head {
  max-width: 700px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--c-muted); font-size: var(--fs-lg); }
html[lang="ur"] .section-head p { font-size: 1.125rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-3);
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  color: var(--c-muted);
}

.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.split {
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
}

/* ---------- Icons --------------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--sm { width: 18px; height: 18px; }

.icon-badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--green-50);
  color: var(--green-700);
  margin-bottom: var(--sp-4);
}
.icon-badge--gold { background: var(--gold-50); color: var(--gold-800); }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.7em 1.35em;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
html[lang="ur"] .btn { line-height: 1.7; padding-block: 0.35em 0.55em; font-weight: 700; }

.btn-accent { background: var(--c-accent); color: var(--c-on-accent); }
.btn-accent:hover { background: var(--c-accent-hover); color: var(--c-on-accent); }

.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-hover); color: #fff; }

.btn-outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn-outline:hover { background: var(--green-50); color: var(--c-primary-hover); }

.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--gold-50); color: var(--green-900); }

.btn-sm { min-height: 40px; padding: 0.45em 1em; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-end: auto;
  color: var(--c-heading);
  text-decoration: none;
  min-width: 0;
}
.brand img { width: 44px; height: 44px; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--c-muted);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
html[lang="ur"] .brand-text { font-family: var(--font-ur); font-weight: 700; font-size: 1.0625rem; line-height: 1.7; }
html[lang="ur"] .brand-text small { font-family: var(--font-ur); font-size: 0.75rem; line-height: 1.6; margin-top: -4px; }
.brand:hover { color: var(--c-heading); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.9688rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav a:hover { background: var(--green-50); color: var(--c-primary); }
.site-nav a[aria-current="page"] {
  color: var(--c-primary);
  box-shadow: inset 0 -2px 0 var(--c-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
html[lang="ur"] .site-nav a { padding-block: 4px 8px; font-size: 1rem; }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-heading);
  font: inherit;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.lang-toggle:hover { border-color: var(--c-primary); background: var(--green-50); }
.lang-toggle .en { font-family: "UrduLabel", system-ui, sans-serif; font-size: 1.125rem; line-height: 1; padding-bottom: 4px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--c-heading);
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle:hover { background: var(--green-50); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    padding: var(--sp-2) var(--gutter) var(--sp-4);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 14px 12px; font-size: 1.0625rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; border-radius: var(--radius-sm); background: var(--green-50); }
}
@media (max-width: 639px) {
  :root { --header-h: 64px; }
  .header-donate { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand-text { font-size: 1.0625rem; }
}
@media (max-width: 360px) {
  .brand-text small { display: none; }
}

/* ---------- Mobile donate bar --------------------------------------------- */
.donate-bar { display: none; }
@media (max-width: 639px) {
  .donate-bar {
    display: flex;
    gap: var(--sp-2);
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -6px 20px -10px rgb(16 32 24 / 0.25);
  }
  .donate-bar .btn { flex: 1; }
  body.has-donate-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ---------- Hero ---------------------------------------------------------- */
.hero { padding-block: clamp(20px, 4vw, 64px) clamp(24px, 3vw, 40px); }
.hero-grid {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-media { order: -1; }
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1.12fr; }
  .hero-media { order: 0; }
}
.hero .lead { max-width: 54ch; }
.hero .btn-row { margin-top: var(--sp-5); }

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: var(--sp-5);
  padding: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--c-muted);
}
.trust-line li { display: inline-flex; align-items: center; gap: 6px; }
.trust-line .icon { color: var(--c-primary); }
.trust-line strong { color: var(--c-text); font-weight: 600; }

/* ---------- Facts strip --------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0;
}
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: var(--c-surface); padding: clamp(16px, 2.5vw, 24px); }
.fact dt {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.625rem);
  font-weight: 600;
  color: var(--green-700);
  line-height: 1.2;
  margin-bottom: 4px;
}
.fact dd { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.45; }
html[lang="ur"] .fact dt { font-family: var(--font-ur); font-weight: 700; line-height: 1.8; font-size: 1.25rem; }
html[lang="ur"] .fact dd { line-height: 1.9; font-size: 0.9375rem; }

/* ---------- Cards --------------------------------------------------------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--c-muted); }
.card--plain { background: transparent; border: 0; padding: 0; }
.card--tint { background: var(--green-50); border-color: var(--green-100); }

.card-num {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--gold-800);
  margin-bottom: var(--sp-2);
}

/* ---------- Gift cards ---------------------------------------------------- */
.gift { display: flex; flex-direction: column; }
.gift-amount {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2rem);
  color: var(--green-900);
  line-height: 1.1;
  margin-bottom: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.gift p { margin: 0; }
.note {
  font-size: var(--fs-sm);
  color: var(--c-muted);
  margin-top: var(--sp-5);
}
.callout {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  margin-top: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--gold-50);
  border: 1px solid var(--gold-100);
  border-radius: var(--radius);
  color: var(--c-text);
}
.callout .icon { color: var(--gold-800); margin-top: 3px; }
html[lang="ur"] .callout .icon { margin-top: 10px; }

/* ---------- Media (photos) ------------------------------------------------ */
.photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e9e5db;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--wide img { aspect-ratio: 16 / 10; }
.photo--square img { aspect-ratio: 4 / 3; }

.photo-strip {
  display: grid;
  gap: clamp(10px, 1.6vw, 16px);
  grid-template-columns: 1fr 1fr;
}
.photo-strip a:first-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .photo-strip { grid-template-columns: 1.4fr 1fr 1fr; }
  .photo-strip a:first-child { grid-column: auto; }
}
.photo-strip a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9e5db;
}
.photo-strip img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.photo-strip a:hover img { transform: scale(1.03); }

.check-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-3); }
.check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.check-list .icon { color: var(--c-primary); margin-top: 2px; }
html[lang="ur"] .check-list .icon { margin-top: 9px; }

/* ---------- CTA band ------------------------------------------------------ */
.cta-band {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  background: var(--green-900);
  color: #dbe7e0;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
}
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { color: #dbe7e0; max-width: 60ch; }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1fr auto; }
}

/* ---------- Page header (inner pages) ------------------------------------ */
.page-header {
  background: var(--c-surface-alt);
  padding-block: clamp(36px, 6vw, 72px) clamp(28px, 4vw, 48px);
  border-bottom: 1px solid #dbe7f3;
}
.page-header h1 { margin-bottom: 0.3em; }
.page-header .lead { max-width: 62ch; }

.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 16px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
html[lang="ur"] .chip { padding-block: 2px 6px; }

/* ---------- About page ---------------------------------------------------- */
.tagline {
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 1.1rem + 1.3vw, 2rem);
  font-weight: 500;
  font-style: italic;
  color: var(--green-900);
  line-height: 1.35;
  margin-bottom: var(--sp-5);
}
html[lang="ur"] .tagline { font-family: var(--font-ur); font-style: normal; font-weight: 700; line-height: 2; }

.prose { max-width: 70ch; }
.prose p { color: var(--c-text); }

.statement {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--green-900);
  border-inline-start: 4px solid var(--c-accent);
  padding-inline-start: clamp(16px, 3vw, 28px);
  margin: 0 0 var(--sp-6);
  max-width: 62ch;
}
p.statement:last-child { margin-bottom: var(--sp-6); }
html[lang="ur"] .statement { font-family: var(--font-ur); font-weight: 400; line-height: 2.2; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem); }

.meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: var(--sp-4) 0 0;
  font-size: var(--fs-sm);
}
.meta-list dt { color: var(--c-muted); }
.meta-list dd { margin: 0; font-weight: 700; color: var(--c-text); }

.subsection + .subsection { margin-top: clamp(40px, 6vw, 72px); }
.subsection > h2 { margin-bottom: var(--sp-5); }

/* ---------- Gallery ------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.4vw, 14px);
}
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.g-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9e5db;
  aspect-ratio: 4 / 3;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}
.g-item[data-cat="news"] img { object-position: top; }
.g-item:hover img { transform: scale(1.04); }
.g-item .g-tag {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(11 61 36 / 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}
html[lang="ur"] .g-item .g-tag { font-size: 0.75rem; line-height: 1.9; }
.gallery-status { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); color: var(--c-muted); }

.news-grid { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(4, 1fr); } }
.news-card {
  display: block;
  text-decoration: none;
  color: var(--c-text);
}
.news-card .thumb {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: #fff;
}
.news-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.4s var(--ease-out); }
.news-card:hover img { transform: scale(1.03); }
.news-card span { display: block; margin-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
html[lang="ur"] .news-card span { line-height: 1.9; }

/* ---------- Lightbox ------------------------------------------------------ */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: 100vw;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #08120d;
  color: #fff;
}
.lightbox::backdrop { background: rgb(0 0 0 / 0.6); }
.lb-figure {
  margin: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 60px 12px 12px;
}
.lb-figure img {
  max-width: 100%;
  max-height: calc(100dvh - 150px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-caption {
  text-align: center;
  padding: 12px 56px calc(8px + env(safe-area-inset-bottom));
  font-size: 1rem;
  line-height: 1.5;
  color: #e8efeb;
  max-width: 70ch;
}
html[lang="ur"] .lb-caption { line-height: 2; }
.lb-counter {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: #c9d6cf;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.12);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease;
}
.lb-btn:hover { background: rgb(255 255 255 / 0.24); }
.lb-btn:focus-visible { outline-color: var(--c-accent); }
.lb-close { top: 8px; inset-inline-end: 8px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 8px; }
.lb-next { inset-inline-end: 8px; }
html[lang="ur"] :is(.lb-prev, .lb-next) .icon { transform: scaleX(-1); }
@media (max-width: 639px) {
  .lb-prev, .lb-next { top: auto; bottom: calc(12px + env(safe-area-inset-bottom)); transform: none; }
}

/* ---------- Donate & contact --------------------------------------------- */
.donate-grid { display: grid; gap: clamp(16px, 3vw, 28px); align-items: start; }
@media (min-width: 900px) { .donate-grid { grid-template-columns: 0.9fr 1.1fr; } }

.card-title {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.card-title .icon-badge { margin: 0; }
.card-title h2, .card-title h3 { margin: 0; font-size: 1.375rem; }
html[lang="ur"] .card-title :is(h2, h3) { font-size: 1.3125rem; }

.qr-card { text-align: center; }
.qr-card .card-title { justify-content: center; }
.qr-img {
  width: 100%;
  max-width: 280px;
  margin: var(--sp-2) auto var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.qr-card .btn-row { justify-content: center; }
.small { font-size: var(--fs-sm); color: var(--c-muted); }

.kv { margin: 0; }
.kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: 14px;
  border-bottom: 1px solid var(--c-border);
}
.kv-row:first-child { padding-top: 0; }
.kv-row:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-row > div { min-width: 0; }
.kv-label { font-size: 0.875rem; color: var(--c-muted); }
.kv-value {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-text);
  overflow-wrap: anywhere;
}
.kv-value.big { font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.375rem); letter-spacing: 0.02em; }

/* "Open UPI app" only makes sense on a phone (the upi:// link does nothing on a desktop) */
@media (hover: hover) and (pointer: fine) and (min-width: 768px) { .only-touch { display: none !important; } }
@media (pointer: coarse), (max-width: 767px) { .only-desktop { display: none !important; } }

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-primary);
  font: inherit;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover { border-color: var(--c-primary); background: var(--green-50); }
.copy-btn .when-idle { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn .when-copied { display: none; }
.copy-btn.is-copied { border-color: var(--c-primary); background: var(--green-50); }
.copy-btn.is-copied .when-idle { display: none; }
.copy-btn.is-copied .when-copied { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn .label { display: inline; }
@media (max-width: 400px) { .copy-btn .label { display: none; } }

.person { display: flex; flex-direction: column; }
.person .role { color: var(--c-muted); font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.person .phone {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: var(--sp-4);
}
.person .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  background: var(--green-900);
  color: #cfdcd4;
  padding-block: clamp(48px, 7vw, 72px) var(--sp-5);
  font-size: var(--fs-sm);
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; gap: var(--sp-3); align-items: center; margin-bottom: var(--sp-4); }
.footer-brand img { width: 52px; height: 52px; }
.footer-brand strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: #fff; font-weight: 600; line-height: 1.2; }
html[lang="ur"] .footer-brand strong { font-family: var(--font-ur); line-height: 1.8; }
.site-footer h2 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--sp-3);
}
html[lang="ur"] .site-footer h2 { font-family: var(--font-ur); font-size: 1rem; letter-spacing: 0; line-height: 1.8; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  color: #b4c7bc;
}

/* ---------- Scroll reveal (subtle, opt-out with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Print --------------------------------------------------------- */
@media print {
  .site-header, .donate-bar, .site-footer, .btn, .copy-btn { display: none !important; }
  body { background: #fff; }
}
