/* =========================================================
   Ihsan Charitable Trust — main stylesheet
   Brand colours taken from the trust's letterhead:
   red wordmark, green "Charitable Trust", lime border, indigo accents
   ========================================================= */

:root {
  --red: #c8333a;
  --red-dark: #a3262c;
  --green: #3e8e5e;
  --green-dark: #2e6e48;
  --lime: #8cc63f;
  --indigo: #4a4fa3;
  --indigo-dark: #363a80;
  --pink: #c2477a;

  --ink: #1f2430;
  --text: #4a5160;
  --muted: #7a8190;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-soft: #f6f8f3;
  --bg-cream: #fdf8f2;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(31, 36, 48, .08);
  --shadow-lg: 0 20px 50px rgba(31, 36, 48, .14);

  --font-head: "Marcellus", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 100px 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 999;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(200, 51, 58, .3); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--outline { border-color: currentColor; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--lime); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--lime);
}
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after {
  content: ""; width: 28px; height: 2px; background: var(--lime);
}
.section-head p { font-size: 1.05rem; }
.accent-red { color: var(--red); }
.accent-green { color: var(--green); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  font-size: .86rem;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap;
}
.topbar__info { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__info a,
.topbar__info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar__info svg { width: 15px; height: 15px; color: var(--lime); }
.topbar__info a:hover { color: #fff; }
.topbar__reg { color: var(--lime); font-weight: 700; letter-spacing: .03em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.is-scrolled { box-shadow: var(--shadow); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; white-space: nowrap; }
.brand img { width: 52px; height: 52px; object-fit: contain; }
.brand__text { line-height: 1.05; }
.brand__name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  letter-spacing: .12em;
  color: var(--red);
}
.brand__sub {
  display: block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--green);
  text-transform: uppercase;
}

.nav ul { display: flex; gap: 6px; }
.nav ul a {
  display: block;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--ink);
  border-radius: 8px;
  position: relative;
}
.nav ul a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav ul a:hover::after,
.nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav ul a[aria-current="page"] { color: var(--red); }

/* Drawer-only parts, shown below 960px */
.nav__head, .nav__foot, .nav__arrow, .nav-backdrop { display: none; }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink);
  position: relative; transition: .25s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 20%, rgba(140,198,63,.18), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(74,79,163,.12), transparent 40%),
    var(--bg-cream);
  padding: 90px 0 110px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
.hero__title span { color: var(--red); }
.hero__lead { font-size: 1.15rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__badges {
  display: flex; gap: 28px; margin-top: 44px; flex-wrap: wrap;
}
.hero__badge { display: flex; align-items: center; gap: 12px; }
.hero__badge strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--ink); line-height: 1; }
.hero__badge small { font-size: .82rem; color: var(--muted); }
.hero__badge-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow); color: var(--green);
}
.hero__badge-icon svg { width: 22px; height: 22px; }

.hero__visual { position: relative; }
.hero__art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero__card {
  position: absolute;
  left: -30px; bottom: 40px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  max-width: 280px;
}
.hero__card-icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
}
.hero__card-icon svg { width: 24px; height: 24px; }
.hero__card strong { display: block; color: var(--ink); font-size: 1rem; }
.hero__card small { color: var(--muted); font-size: .84rem; line-height: 1.4; display: block; }
.hero__ring {
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  border: 18px solid var(--lime); opacity: .35;
}

/* ---------- Photo placeholders ----------
   Swap each .photo for an <img> once real photos are available.
   Colour-block + icon keeps the layout looking intentional meanwhile. */
.photo {
  position: relative;
  width: 100%; height: 100%;
  min-height: 220px;
  display: grid; place-items: center;
  color: rgba(255,255,255,.9);
  overflow: hidden;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo svg { width: 34%; max-width: 130px; height: auto; opacity: .9; position: relative; }
.photo::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}
.photo--red    { background: linear-gradient(135deg, #d8474d, #9d2229); }
.photo--green  { background: linear-gradient(135deg, #4da16e, #2a6443); }
.photo--indigo { background: linear-gradient(135deg, #5d62b8, #31357a); }
.photo--lime   { background: linear-gradient(135deg, #9fd35a, #5e9a24); }
.photo--pink   { background: linear-gradient(135deg, #d15c8b, #93305a); }
.photo--warm   { background: linear-gradient(135deg, #e89b4c, #b85c24); }

/* ---------- Feature strip ---------- */
.features {
  margin-top: -60px; position: relative; z-index: 2;
}
.features__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.feature {
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  transition: background .25s;
  text-align: center;
}
.feature:last-child { border-right: 0; }
.feature:hover { background: var(--bg-soft); }
.feature__icon {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; margin: 0 auto 18px;
  color: #fff;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4em; }
.feature p { font-size: .93rem; margin: 0; }

.bg-red { background: var(--red); }
.bg-green { background: var(--green); }
.bg-indigo { background: var(--indigo); }
.bg-lime { background: var(--lime); }
.bg-pink { background: var(--pink); }
.bg-warm { background: #d9792f; }

/* ---------- About ---------- */
.about .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center;
}
.about__media {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 18px; height: 520px; position: relative;
}
.about__media > div { border-radius: var(--radius-lg); overflow: hidden; }
.about__media > div:first-child { grid-row: span 2; }
.about__stamp {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 150px; height: 150px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; text-align: center;
  border: 6px solid var(--bg-cream);
  z-index: 2;
}
.about__stamp strong { display: block; font-family: var(--font-head); font-size: 2.3rem; color: var(--red); line-height: 1; }
.about__stamp small { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }

.checklist { display: grid; gap: 12px; margin: 26px 0 34px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.checklist--cols { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; margin: 14px 0 24px; }
.checklist--cols li { font-weight: 400; }

.quote-box {
  border-left: 4px solid var(--lime);
  background: var(--bg-soft);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
  margin: 24px 0;
}
.quote-box cite { display: block; font-style: normal; font-size: .85rem; color: var(--muted); margin-top: 6px; }

/* ---------- Programs / causes ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { height: 230px; position: relative; }
.card__tag {
  position: absolute; left: 20px; top: 20px; z-index: 2;
  background: #fff; color: var(--ink);
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 50px;
}
.card__body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card__body p { font-size: .96rem; }
.card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; color: var(--red);
}
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card__link:hover svg { transform: translateX(4px); }

/* ---------- Ways to help ---------- */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; }
.help {
  padding: 48px 40px; color: #fff; position: relative; overflow: hidden;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.help::before {
  content: ""; position: absolute; right: -50px; bottom: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 24px solid rgba(255,255,255,.1);
}
.help h3 { color: #fff; font-size: 1.6rem; }
.help p { color: rgba(255,255,255,.85); }
.help__icon { width: 60px; height: 60px; margin: 0 auto 20px; }
.help__icon svg { width: 100%; height: 100%; }
.help .btn { margin-top: auto; }
.help p { margin-bottom: 26px; }

/* ---------- Values / numbers band ---------- */
.band {
  background:
    radial-gradient(circle at 0% 0%, rgba(140,198,63,.25), transparent 40%),
    linear-gradient(135deg, var(--indigo-dark), var(--indigo));
  color: #fff;
  padding: 80px 0;
}
.band__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.band__item strong {
  display: block; font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem); color: #fff; line-height: 1.1;
}
.band__item span { color: rgba(255,255,255,.8); font-weight: 600; }
.band__item + .band__item { border-left: 1px solid rgba(255,255,255,.15); }

/* ---------- Steps (how we work) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 10px; text-align: center; }
.step__num {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.5rem;
  background: #fff; color: var(--red);
  border: 2px dashed var(--red);
  margin: 0 auto 20px;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 42px; left: calc(50% + 42px); right: calc(-50% + 12px);
  border-top: 2px dashed var(--line);
}

/* ---------- CTA banner ---------- */
.cta {
  background:
    linear-gradient(90deg, rgba(163,38,44,.96), rgba(200,51,58,.88)),
    var(--red);
  border-radius: var(--radius-lg);
  padding: 60px;
  color: #fff;
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: 180px; top: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 30px solid rgba(255,255,255,.08);
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { color: rgba(255,255,255,.9); margin: 0; max-width: 620px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery > * { border-radius: var(--radius); overflow: hidden; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background:
    radial-gradient(circle at 90% 10%, rgba(140,198,63,.28), transparent 40%),
    linear-gradient(135deg, #2b2f47, var(--indigo-dark));
  color: #fff;
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto; }
.breadcrumb {
  display: inline-flex; gap: 10px; margin-top: 18px;
  font-size: .9rem; font-weight: 700; color: rgba(255,255,255,.7);
}
.breadcrumb a { color: var(--lime); }

/* ---------- Donate page ---------- */
.donate-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: start; }
.panel {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 40px;
  border-top: 5px solid var(--lime);
}
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.amount {
  padding: 16px 10px; border-radius: 12px; border: 2px solid var(--line);
  background: #fff; font-weight: 800; font-size: 1.05rem; color: var(--ink);
  cursor: pointer; font-family: inherit; transition: .2s;
}
.amount:hover { border-color: var(--green); }
.amount.is-active { border-color: var(--red); background: #fff4f4; color: var(--red); }

.purpose { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 24px; }
.field .purpose label {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  cursor: pointer; font-weight: 600; font-size: .94rem; color: var(--ink);
}
.purpose label input { accent-color: var(--red); width: auto; flex: none; margin: 0; }

.bank-list { display: grid; gap: 0; margin: 10px 0 0; }
.bank-list div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.bank-list dt { color: var(--muted); font-weight: 600; margin: 0; }
.bank-list dd { color: var(--ink); font-weight: 800; margin: 0; text-align: right; overflow-wrap: anywhere; }
.note {
  background: #fff8e6; border: 1px solid #f3dd9c; color: #7a5a00;
  border-radius: 10px; padding: 12px 16px; font-size: .9rem; margin-top: 18px;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; color: var(--ink); font-size: .9rem; margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(62,142,94,.12);
}
.form__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form__status {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: 10px; padding: 12px 16px; font-size: .92rem; font-weight: 600;
}
.form__status[hidden] { display: none; }
.form__status svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.form__status--ok { background: #eef7f1; border: 1px solid #bfe0cb; color: var(--green-dark); }
.form__status--error { display: block; background: #fff4f4; border: 1px solid #f1c4c6; color: var(--red-dark); }
.form__status--error ul { margin: 6px 0 0 18px; list-style: disc; font-weight: 400; }
/* Spam trap: hidden from people, filled in by bots. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.contact-card__icon {
  flex: none; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
}
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: .2em; }
.contact-card p, .contact-card a { margin: 0; font-size: .96rem; }
.contact-card a:hover { color: var(--red); }
.map {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  height: 420px; margin-top: 60px;
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Team / trustees ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.person { text-align: center; }
.person__photo {
  aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px; max-width: 190px;
  border: 6px solid #fff; box-shadow: var(--shadow);
}
.person__photo .photo { min-height: 0; }
.person__photo img { object-position: 50% 25%; }
.person h3 { font-size: 1.15rem; margin-bottom: .1em; }
.person span { color: var(--green); font-weight: 700; font-size: .9rem; }

/* ---------- Program detail rows ---------- */
.program-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 50px 0;
}
.program-row + .program-row { border-top: 1px solid var(--line); }
.program-row:nth-child(even) .program-row__media { order: 2; }
.program-row__media { height: 360px; border-radius: var(--radius-lg); overflow: hidden; }
.program-row__num {
  font-family: var(--font-head); font-size: 3.2rem; color: var(--lime); line-height: 1;
  display: block; margin-bottom: 10px;
}

/* ---------- Equipment categories (Programs) + Equipment page ---------- */
.equip-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 22px; }
.equip-cats a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 50px;
  background: #fff; font-size: .92rem; transition: border-color .2s, box-shadow .2s;
}
.equip-cats a:hover { border-color: var(--green); box-shadow: var(--shadow); }
.equip-cats strong { color: var(--ink); font-weight: 700; }
.equip-cats__icon {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
}
.equip-cats__icon svg { width: 16px; height: 16px; }

.equip-group { padding: 10px 0 50px; scroll-margin-top: 110px; }
.equip-group + .equip-group { border-top: 1px solid var(--line); padding-top: 50px; }
.equip-group__head { display: flex; gap: 18px; align-items: center; margin-bottom: 28px; }
.equip-group__head .equip-cats__icon { width: 56px; height: 56px; border-radius: 16px; }
.equip-group__head .equip-cats__icon svg { width: 28px; height: 28px; }
.equip-group__head h2 { margin-bottom: .1em; }
.equip-group__head p { margin: 0; }
.equip-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.equip-item { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.equip-item h3 { display: flex; gap: 10px; align-items: flex-start; font-size: 1.1rem; }
.equip-item h3 svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
.equip-item p { margin: 0; font-size: .95rem; }
.equip-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq details {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 0 24px;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 20px 30px 20px 0; position: relative;
  font-weight: 800; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--red); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 20px; margin: 0; }

/* ---------- Footer ---------- */
.footer {
  background: #161a26;
  color: rgba(255,255,255,.7);
  padding-top: 80px;
  position: relative;
}
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(90deg, var(--red), var(--pink), var(--indigo), var(--green), var(--lime));
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px;
  padding-bottom: 60px;
}
.footer h4 { color: #fff; font-size: 1.2rem; margin-bottom: 22px; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: var(--lime); }
.footer .brand { margin-bottom: 20px; }
.footer .brand img { background: #fff; border-radius: 50%; padding: 4px; }
.footer__links li + li { margin-top: 10px; }
.footer__links a:hover { color: var(--lime); }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact li + li { margin-top: 14px; }
.footer__contact svg { flex: none; width: 18px; height: 18px; color: var(--lime); margin-top: 4px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0;
  font-size: .88rem;
}
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: .2s;
}
.social a:hover { background: var(--red); }
.social svg { width: 18px; height: 18px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(2) { border-right: 0; }
  .feature:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  /* backdrop-filter makes the header the containing block for the fixed .nav,
     squashing the drawer into the header's height */
  .header { backdrop-filter: none; background: #fff; }
  .header__actions .btn { display: none; }

  /* ----- Off-canvas drawer ----- */
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 98;
    background: rgba(31, 36, 48, .45); backdrop-filter: blur(3px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
  }
  .nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .3s ease; }

  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 99;
    width: min(340px, 86vw);
    display: flex; flex-direction: column;
    background: #fff;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    box-shadow: -20px 0 50px rgba(31, 36, 48, .18);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .35s;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }

  .nav__head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 18px 18px 18px 22px;
    border-bottom: 1px solid var(--line);
  }
  .nav__head .brand img { width: 40px; height: 40px; }
  .nav__head .brand__name { font-size: 1.35rem; }
  .nav__head .brand__sub { font-size: .62rem; }
  .nav__close {
    position: relative; flex-shrink: 0;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: var(--bg-soft); cursor: pointer; transition: background .2s, transform .2s;
  }
  .nav__close::before,
  .nav__close::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 16px; height: 2px; margin: -1px 0 0 -8px;
    background: var(--ink); border-radius: 2px;
  }
  .nav__close::before { transform: rotate(45deg); }
  .nav__close::after { transform: rotate(-45deg); }
  .nav__close:hover { background: var(--line); transform: rotate(90deg); }

  .nav ul { flex-direction: column; gap: 2px; padding: 14px 14px 10px; }
  .nav ul a,
  html[lang="ml"] .nav ul a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 14px; border-radius: 12px;
    font-size: 1.05rem; color: var(--ink);
    transition: background .2s, color .2s;
  }
  .nav ul a::after { display: none; }
  .nav__arrow {
    display: block; width: 18px; height: 18px; color: var(--muted);
    transition: transform .2s, color .2s;
  }
  .nav ul a:hover { background: var(--bg-soft); }
  .nav ul a:hover .nav__arrow { transform: translateX(3px); color: var(--ink); }
  .nav ul a[aria-current="page"] { background: rgba(200, 51, 58, .08); color: var(--red); }
  .nav ul a[aria-current="page"] .nav__arrow { color: var(--red); }

  /* Links slide in one after another */
  .nav li { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .3s; }
  .nav-open .nav li { opacity: 1; transform: none; }
  .nav-open .nav li:nth-child(1) { transition-delay: .08s; }
  .nav-open .nav li:nth-child(2) { transition-delay: .12s; }
  .nav-open .nav li:nth-child(3) { transition-delay: .16s; }
  .nav-open .nav li:nth-child(4) { transition-delay: .20s; }
  .nav-open .nav li:nth-child(5) { transition-delay: .24s; }
  .nav-open .nav li:nth-child(6) { transition-delay: .28s; }

  .nav__foot {
    display: grid; gap: 12px; margin-top: auto;
    padding: 18px 22px 24px;
    border-top: 1px solid var(--line); background: var(--bg-cream);
  }
  .nav__call {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 12px 14px; border-radius: 14px;
    background: #fff; border: 1px solid var(--line);
    font-weight: 800; color: var(--ink);
  }
  .nav__call small { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); line-height: 1.3; }
  .nav__call-icon {
    display: grid; place-items: center; flex-shrink: 0;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(200, 51, 58, .1); color: var(--red);
  }
  .nav__call-icon svg { width: 20px; height: 20px; }
  .nav__foot .btn { justify-content: center; width: 100%; }
  .nav__reg { margin: 0; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); }

  body.nav-open { overflow: hidden; }

  .hero .container,
  .about .container,
  .donate-layout,
  .contact-layout,
  .program-row { grid-template-columns: 1fr; }
  .program-row:nth-child(even) .program-row__media { order: 0; }
  .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero__card { left: 10px; }
  .grid-3, .help-grid { grid-template-columns: 1fr 1fr; }
  .help:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .band__item:nth-child(3) { border-left: 0; }
  .cta { grid-template-columns: 1fr; padding: 44px 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .container { padding-left: 16px; padding-right: 16px; }
  .topbar { font-size: .8rem; }
  .topbar .container { justify-content: center; padding-top: 7px; padding-bottom: 7px; }
  .topbar__info { justify-content: center; gap: 4px 18px; }
  .topbar__info svg { width: 13px; height: 13px; }
  .topbar__info span.hide-sm { display: none; }
  .topbar__reg { display: none; }
  .header .container { min-height: 68px; }
  .hero { padding: 36px 0 56px; }
  .hero .container { gap: 40px; }
  .hero .container > .reveal:first-child { text-align: center; }
  .hero .eyebrow { font-size: .72rem; letter-spacing: .14em; margin-bottom: 10px; }
  .hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--lime); }
  .hero__title { margin-bottom: .4em; }
  .hero__lead { font-size: 1rem; line-height: 1.6; margin: 0 auto 24px; }
  .hero__actions { gap: 10px; justify-content: center; }
  .hero__actions .btn { padding: 10px 18px; font-size: .88rem; }
  .hero__actions .btn svg { width: 16px; height: 16px; }
  .hero__badges { gap: 14px 20px; margin-top: 24px; justify-content: center; }
  .hero__badge { gap: 10px; text-align: left; }
  .hero__badge strong { font-size: 1.15rem; }
  .hero__badge small { font-size: .75rem; }
  .hero__badge-icon { width: 36px; height: 36px; }
  .hero__badge-icon svg { width: 18px; height: 18px; }
  .brand__name { font-size: 1.4rem; }
  .brand img { width: 44px; height: 44px; }
  .grid-3, .grid-2, .help-grid { grid-template-columns: 1fr; }
  .feature { padding: 22px 16px; }
  .feature__icon { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 12px; }
  .feature__icon svg { width: 22px; height: 22px; }
  .feature h3 { font-size: 1rem; }
  .feature p { font-size: .82rem; line-height: 1.5; }
  #vision .card__body { text-align: center; }
  .about__media { height: 380px; }
  .about .container > .reveal:last-child { text-align: center; }
  .about .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--lime); }
  .about .checklist { gap: 10px; }
  .about .checklist li { display: block; font-size: .95rem; line-height: 1.5; }
  .about .checklist svg { display: inline-block; width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; }
  .about__stamp { width: 120px; height: 120px; }
  .about__stamp strong { font-size: 1.8rem; }
  .form__row, .purpose { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 28px 22px; }
  .footer { padding-top: 48px; font-size: calc(.9rem + 2px); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 36px; }
  .footer__grid > :first-child,
  .footer__grid > :last-child { grid-column: 1 / -1; }
  .footer__grid > :first-child { padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer__grid > :last-child { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); }
  .footer .brand { margin-bottom: 14px; }
  .footer .brand img { width: 44px; height: 44px; }
  .footer p { line-height: 1.65; margin-bottom: 0; }
  .social { margin-top: 16px; }
  .footer h4 { font-size: calc(1.05rem + 2px); margin-bottom: 14px; }
  .footer__links li + li { margin-top: 8px; }
  .footer__contact li + li { margin-top: 12px; }
  .footer__contact svg { width: 16px; height: 16px; margin-top: 3px; }
  .footer__bottom { padding: 18px 0 84px; font-size: calc(.8rem + 2px); text-align: center; }
  .footer__bottom .container { flex-direction: column; align-items: center; gap: 4px; }
  .steps { gap: 22px 16px; }
  .step { padding-top: 0; }
  .step__num { width: 40px; height: 40px; font-size: 1.05rem; margin-bottom: 10px; }
  .step h3 { font-size: 1rem; margin-bottom: .3em; }
  .step p { font-size: .8rem; line-height: 1.45; margin: 0; }
  .gallery { grid-auto-rows: 160px; }
  .band__item + .band__item { border-left: 0; }
  .help { padding: 26px 22px; }
  .help::before { width: 120px; height: 120px; border-width: 16px; right: -36px; bottom: -36px; }
  .help__icon { width: 36px; height: 36px; margin: 0 auto 12px; }
  .help h3 { font-size: 1.3rem; margin-bottom: .35em; }
  .help p { font-size: .9rem; line-height: 1.55; margin-bottom: .8em; }
  .help .btn { margin-top: 4px; padding: 10px 22px; font-size: .88rem; }
  .band { padding: 44px 0; }
  .band__grid { gap: 24px 12px; }
  .band__item strong { font-size: 1.8rem; font-variant-numeric: tabular-nums; }
  .band__item span { font-size: .78rem; }
  .hero__card {
    position: relative; left: auto; bottom: auto;
    margin: -28px auto 0; width: calc(100% - 48px); max-width: 280px;
    padding: 10px 14px; gap: 10px; border-radius: 12px;
  }
  .hero__card-icon { width: 34px; height: 34px; border-radius: 9px; }
  .hero__card-icon svg { width: 18px; height: 18px; }
  .hero__card strong { font-size: .85rem; line-height: 1.3; }
  .hero__card small { font-size: .72rem; line-height: 1.35; }
  /* The card sits below the photo here, so keep the feature strip clear of it. */
  .features { margin-top: -28px; }
}

/* ---------- Real photos ---------- */
.photo:has(img)::after { display: none; }
.photo img { transition: transform .6s ease; }
.card:hover .photo img,
.program-row__media:hover .photo img { transform: scale(1.06); }

/* Inner-page banner with a photo behind a dark brand tint */
.page-banner[style*="--bg"] {
  background:
    linear-gradient(135deg, rgba(31,34,58,.82), rgba(54,58,128,.55)),
    var(--bg) center / cover no-repeat;
}

/* CTA with a photo behind the red tint */
.cta--photo {
  background:
    linear-gradient(90deg, rgba(163,38,44,.95) 0%, rgba(200,51,58,.85) 55%, rgba(200,51,58,.55) 100%),
    var(--bg) center / cover no-repeat;
}

/* Hero photo keeps faces in frame */
.hero__art .photo img { object-position: 55% 20%; }

/* ---------- Photo credits ---------- */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.credit { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.credit img { width: 100%; height: 160px; object-fit: cover; }
.credit figcaption { padding: 14px 16px; font-size: .88rem; display: grid; gap: 2px; }
.credit strong { color: var(--ink); overflow-wrap: anywhere; }
.credit a { color: var(--red); font-weight: 700; }
.footer__bottom a:hover { color: var(--lime); }

/* ---------- Board of trustees (centred when fewer than 4) ---------- */
.people--center { display: flex; flex-wrap: wrap; justify-content: center; }
.people--center .person { flex: 0 1 220px; }

/* Quote inside the red CTA */
.cta--quote h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.35; }

/* ---------- Gallery page ---------- */
.gallery--page { grid-auto-flow: dense; }
.gallery--page a { display: block; position: relative; }
.gallery--page img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery--page a:hover img { transform: scale(1.05); }
.gallery--page a[hidden] { display: none; }
.gallery--page a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,36,48,.45), transparent 50%);
  opacity: 0; transition: opacity .3s;
}
.gallery--page a:hover::after, .gallery--page a:focus-visible::after { opacity: 1; }
@media (max-width: 640px) { .gallery--page { grid-template-columns: repeat(2, 1fr); } }

.gallery-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.gallery-filter button {
  font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
  padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: .2s;
}
.gallery-filter button span { color: var(--muted); font-weight: 600; margin-left: 2px; }
.gallery-filter button:hover { border-color: var(--red); color: var(--red); }
.gallery-filter button.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.gallery-filter button.is-active span { color: rgba(255,255,255,.8); }

.gallery-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.gallery-empty svg { width: 56px; height: 56px; color: var(--line); margin: 0 auto 12px; }

/* Photo viewer */
body.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15, 18, 25, .94); padding: 60px 70px;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 8px; }
.lightbox__figure figcaption { color: rgba(255,255,255,.85); margin-top: 14px; font-size: .95rem; text-align: center; }
.lightbox__count { color: rgba(255,255,255,.55); margin-left: 6px; }
.lightbox button {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.1); border-radius: 50%;
  width: 48px; height: 48px; font-size: 2rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s;
}
.lightbox button:hover, .lightbox button:focus-visible { background: var(--red); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox { padding: 70px 12px; }
  .lightbox__nav { top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 60px); }
  .lightbox__nav--next { right: calc(50% - 60px); }
}

/* ---------- Malayalam ---------- */
html[lang="ml"] {
  --font-head: "Manjari", "Noto Sans Malayalam", Georgia, serif;
  --font-body: "Noto Sans Malayalam", "Nunito Sans", system-ui, sans-serif;
}
html[lang="ml"] body { line-height: 1.8; }
html[lang="ml"] h1, html[lang="ml"] h2, html[lang="ml"] h3, html[lang="ml"] h4 { font-weight: 700; line-height: 1.35; }
html[lang="ml"] .eyebrow { letter-spacing: 0; text-transform: none; }
@media (min-width: 961px) {
  html[lang="ml"] .nav ul a { font-size: .92rem; padding-left: 10px; padding-right: 10px; }
  html[lang="ml"] .nav ul a::after { left: 10px; right: 10px; }
  html[lang="ml"] .nav ul { gap: 2px; }
}
html[lang="ml"] .header .container { gap: 16px; }
/* Letter-spacing breaks Malayalam conjuncts apart */
html[lang="ml"] .brand__name { letter-spacing: 0; font-size: 1.5rem; }
html[lang="ml"] .brand__sub { letter-spacing: 0; font-size: .78rem; text-transform: none; }
@media (max-width: 640px) { html[lang="ml"] .brand__name { font-size: 1.3rem; } }

/* Keep brand + language switch + menu button inside narrow phones */
@media (max-width: 640px) {
  .header .container, html[lang="ml"] .header .container { gap: 10px; }
  .brand { gap: 8px; min-width: 0; flex-shrink: 1; }
  .brand img { width: 42px; height: 42px; }
  .brand__text { min-width: 0; overflow: hidden; }
  .brand__sub { overflow: hidden; text-overflow: ellipsis; }
  .header__actions { gap: 8px; flex-shrink: 0; }
  .header__actions .lang-switch { padding: 6px 10px; font-size: .82rem; }
  .nav-toggle { width: 42px; height: 42px; }
}
/* Tighter still on small phones so "Charitable Trust" isn't cut off */
@media (max-width: 400px) {
  .header .container, html[lang="ml"] .header .container { gap: 8px; }
  .header__actions { gap: 6px; }
  .brand { gap: 6px; }
  .brand img { width: 38px; height: 38px; }
  .brand__name { font-size: 1.25rem; letter-spacing: .08em; }
  .brand__sub { font-size: .6rem; letter-spacing: .06em; }
  html[lang="ml"] .brand__name { font-size: 1.15rem; }
  html[lang="ml"] .brand__sub { font-size: .68rem; }
  .header__actions .lang-switch { padding: 5px 8px; font-size: .76rem; }
  .nav-toggle { width: 38px; height: 38px; }
}
.lang-switch[lang="ml"], .lang-modal [lang="ml"] { font-family: "Noto Sans Malayalam", var(--font-body); }

/* ---------- Language switch (header) ---------- */
.lang-switch {
  display: inline-flex; align-items: center; padding: 7px 14px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; transition: .2s;
}
.lang-switch:hover { border-color: var(--green); color: var(--green); }

/* ---------- Language popup (first visit) ---------- */
.lang-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 16px;
  background: rgba(31, 36, 48, .6); backdrop-filter: blur(4px);
}
body:has(.lang-modal) { overflow: hidden; }
.lang-modal__box {
  width: min(420px, 100%); background: #fff; border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center; box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--lime);
}
.lang-modal__box img { margin: 0 auto 14px; object-fit: contain; }
.lang-modal__box h2 { margin: 0 0 4px; font-size: 1.6rem; }
.lang-modal__box p { margin: 0 0 24px; color: var(--muted); }
.lang-modal__options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lang-modal__options .btn { justify-content: center; }
@media (max-width: 380px) { .lang-modal__options { grid-template-columns: 1fr; } }
