/* Masjidul Hikma — Wisdom Islamic Organization, Ucharakkadavu Unit
   Palette taken from the printed brochure: night navy, Hikma green, lamplight gold. */
:root {
  --night: #0c2233;
  --night-2: #123049;
  --night-3: #061120;
  --sky-night: #0b1838;
  --dusk: #33406f;
  --green: #0b8a5f;
  --green-d: #076f4b;
  --gold: #e0b562;
  --gold-d: #b98b3a;
  --plaster: #f5f4f0;
  --white: #ffffff;
  --ink: #13202b;
  --muted: #566672;
  --line: #dde2de;
  --wa: #1fae5b;

  --font: "Anek Malayalam", "Noto Sans Malayalam", "Manjari", system-ui, sans-serif;
  --arabic: "Amiri", "Noto Naskh Arabic", serif;

  --wrap: 72rem;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
  --section: clamp(4rem, 11vw, 7.5rem);
  --dock-h: 4.25rem;
  --r-sm: 6px;
  --r-md: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--plaster);
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.3; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[lang="en"] { font-stretch: 100%; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gold); color: var(--night); padding: .5rem 1rem; border-radius: var(--r-sm);
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }

.h2 {
  font-size: clamp(1.7rem, 6.4vw, 2.75rem);
  font-stretch: 85%;
  line-height: 1.3;
  letter-spacing: -0.005em;
  max-width: 22ch;
}
.h3 { font-size: 1.3rem; line-height: 1.4; }
.en-note { color: var(--muted); font-size: .98rem; margin-top: .5rem; max-width: 52ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .55rem 1.25rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--sm { min-height: 2.5rem; padding: .35rem 1rem; font-size: .95rem; }
.btn--lg { min-height: 3.4rem; padding: .7rem 1.6rem; font-size: 1.08rem; }
.btn--gold { background: var(--gold); color: var(--night); }
.btn--gold:hover { background: #e6bf76; }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-d); }
.btn--wa { background: var(--wa); color: var(--white); }
.btn--wa:hover { background: #179a4f; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--line { border-color: currentColor; color: var(--night); background: transparent; }
.btn--line:hover { background: rgba(12,34,51,.06); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: max(.6rem, env(safe-area-inset-top)) var(--pad) .6rem;
  transition: background-color .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(8,25,42,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 1rem; }
.nav__brand { display: flex; flex-direction: column; text-decoration: none; color: var(--gold); }
.nav__brand img { width: 118px; height: auto; }
.nav__unit { font-size: .72rem; letter-spacing: .04em; margin-top: -2px; font-stretch: 85%; }
.nav__links { display: none; }
.nav__actions { display: flex; margin-left: auto; gap: .5rem; }
.nav__actions .btn--wa { display: none; }
.nav__actions .btn--gold { box-shadow: 0 4px 18px rgba(224,181,98,.35); }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 60; left: .75rem; right: .75rem;
  bottom: calc(.6rem + env(safe-area-inset-bottom));
  display: flex; gap: .5rem; padding: .4rem;
  background: rgba(8,25,42,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(217,174,95,.35);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(3,12,22,.35);
}
.dock a { display: flex; align-items: center; justify-content: center; text-decoration: none; border-radius: 999px; }
.dock__donate {
  flex: 1; flex-direction: column; min-height: 3.2rem;
  background: var(--gold); color: var(--night); line-height: 1.15;
}
.dock__ml { font-weight: 700; font-size: 1.05rem; }
.dock__en { font-size: .72rem; font-weight: 500; opacity: .8; }
.dock__wa, .dock__share { width: 3.2rem; height: 3.2rem; flex: none; color: var(--white); display: flex; align-items: center; justify-content: center; border-radius: 999px; }
.dock__wa { background: var(--wa); }
.dock__share { background: var(--night-2); border: 1px solid rgba(224,181,98,.5); color: var(--gold); cursor: pointer; padding: 0; }
.dock svg { width: 1.55rem; height: 1.55rem; }

/* ---------- Hero ---------- */
/* Full-screen opening. The render fades from dusk (Maghrib) to night (Isha);
   the sky colour behind it changes with it so the photo edge disappears. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white);
  background: var(--sky-night);
  padding: 0 var(--pad) calc(var(--dock-h) + 1.75rem + env(safe-area-inset-bottom));
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #46578b 0%, #5a6a9c 22%, #2a3561 60%, var(--night-3) 100%);
  transition: opacity 5s ease-in-out;
}
.hero.is-night::before { opacity: 0; }
/* Shade under the text */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(0deg, var(--night-3) 0%, rgba(6,17,32,.92) 26%, rgba(6,17,32,.35) 50%, transparent 64%);
}

.hero__media { position: absolute; z-index: -1; left: 0; right: 0; top: calc(3.5rem + env(safe-area-inset-top)); }
.hero__media picture { display: block; }
.hero__media picture + picture { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 96%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 62%, transparent 96%);
  transform: scale(1.08); transform-origin: 50% 65%;
  transition: transform 12s cubic-bezier(.2,.6,.2,1), opacity 5s ease-in-out;
}
.hero__night { opacity: 0; }
.hero.is-lit .hero__media img { transform: scale(1); }
.hero.is-night .hero__night { opacity: 1; }

.hero__content { position: relative; max-width: var(--wrap); width: 100%; margin-inline: auto; }
.hero__arabic {
  font-family: var(--arabic); font-size: clamp(1.5rem, 6.4vw, 2.6rem);
  color: var(--gold); margin: 0; line-height: 1.5; text-align: left;
  text-shadow: 0 0 28px rgba(224,181,98,.45);
}
.hero__title { display: flex; flex-direction: column; gap: .35rem; }
.hero__ml {
  font-size: clamp(2.35rem, 11.2vw, 6.75rem);
  font-weight: 800; font-stretch: 76%; white-space: nowrap;
  line-height: 1.06; letter-spacing: -0.012em;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero__en { font-size: clamp(1rem, 3.8vw, 1.3rem); font-weight: 500; color: rgba(255,255,255,.8); }
.hero__lede {
  font-size: clamp(1.2rem, 4.8vw, 1.65rem); font-weight: 600; font-stretch: 88%;
  margin: .6rem 0 1.1rem; color: var(--gold); max-width: 26ch; line-height: 1.45;
}
.hero__cta { display: none; gap: .75rem; }
.hero__cta .btn { padding-inline: 1.6rem; }
.hero .btn--ghost { background: rgba(6,17,32,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* One page-load reveal for the text, timed to land before night falls. */
@media (prefers-reduced-motion: no-preference) {
  .hero__content > * { opacity: 0; transform: translateY(14px); animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero__content > *:nth-child(1) { animation-delay: .2s; }
  .hero__content > *:nth-child(2) { animation-delay: .35s; }
  .hero__content > *:nth-child(3) { animation-delay: .5s; }
  .hero__content > *:nth-child(4) { animation-delay: .65s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Goal strip ---------- */
.goal { background: var(--night-3); color: var(--white); padding: 0 var(--pad) clamp(3rem, 8vw, 4.5rem); }
.goal__inner { max-width: var(--wrap); margin-inline: auto; border-top: 1px solid rgba(224,181,98,.3); padding-top: 1.75rem; }
.goal__facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 1.25rem; }
.goal__facts div { padding-inline: .9rem; border-left: 1px solid rgba(255,255,255,.12); }
.goal__facts div:first-child { padding-left: 0; border-left: 0; }
.goal__facts dt { font-size: .82rem; color: rgba(255,255,255,.62); line-height: 1.35; }
.goal__facts dd { margin: .2rem 0 0; font-size: clamp(1.35rem, 6vw, 2.4rem); font-weight: 700; font-stretch: 82%; color: var(--gold); line-height: 1.25; }
.goal__sub { color: rgba(255,255,255,.75); max-width: 58ch; margin: 0; font-size: .98rem; }

/* ---------- Appeal ---------- */
.appeal { padding-block: var(--section); background: var(--plaster); }
.appeal__grid { display: grid; gap: 2rem; }
.letter { max-width: 40rem; font-size: 1.08rem; line-height: 1.9; }
.letter__arabic { font-family: var(--arabic); font-size: 1.6rem; text-align: center; color: var(--green-d); margin-bottom: .5rem; line-height: 1.8; }
.letter__arabic--sm { font-size: 1.3rem; text-align: right; }
.letter__salute { font-weight: 700; font-size: 1.15rem; margin-bottom: .25rem; }
.letter strong { color: var(--green-d); }

.hadith {
  margin: 1rem 0 0; padding: 2rem 1.5rem 1.75rem;
  background: var(--night); color: var(--white);
  border-radius: var(--r-md);
  position: relative;
}
.hadith::before {
  content: "\201C"; position: absolute; top: -.35em; left: 1.25rem;
  font-family: var(--arabic); font-size: 5rem; color: var(--gold); line-height: 1;
}
.hadith p { font-size: clamp(1.3rem, 5vw, 1.75rem); font-weight: 600; line-height: 1.6; font-stretch: 90%; margin-bottom: .75rem; }
.hadith footer { color: var(--gold); font-weight: 600; }

/* ---------- Land ---------- */
.land { padding-block: var(--section); background: var(--white); }
.land__grid { display: grid; gap: 2rem; align-items: start; }
.land__img { margin: 0; }
.land__img img { border-radius: var(--r-md); width: 100%; }
.land__text .h2 { margin-bottom: 1.25rem; }
.land__text > p { max-width: 40rem; }

.timeline { list-style: none; margin: 2rem 0 0; padding: 0; counter-reset: none; }
.timeline li {
  position: relative; padding: 0 0 1.25rem 2.1rem; display: flex; flex-direction: column;
}
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .4rem; width: 1rem; height: 1rem; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white);
}
.timeline li::after {
  content: ""; position: absolute; left: calc(.5rem - 1px); top: 1.55rem; bottom: .1rem; width: 2px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--green); border-color: var(--green); }
.timeline li.is-done::after { background: var(--green); }
.timeline li.is-now::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,174,95,.25); }
.timeline span { font-weight: 600; }
.timeline small { color: var(--muted); font-size: .9rem; line-height: 1.4; }

/* ---------- Share scheme ---------- */
.share { padding-block: var(--section); background: var(--night); color: var(--white); }
.share__unit {
  display: inline-block; margin: 1.25rem 0 1rem; padding: .3rem 1rem;
  background: var(--green); border-radius: 999px; font-size: 1.15rem;
}
.share__intro { color: rgba(255,255,255,.82); max-width: 46ch; }
.tiers { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tier {
  display: flex; flex-direction: column; gap: .1rem; padding: 1.1rem 1.1rem 1rem;
  border: 1.5px solid rgba(255,255,255,.18); border-radius: var(--r-md);
  text-decoration: none; color: var(--white); background: var(--night-2);
  transition: border-color .2s, background-color .2s;
}
.tier:hover, .tier[aria-pressed="true"] { border-color: var(--gold); }
.tier__amt { font-size: clamp(1.45rem, 6vw, 2rem); font-weight: 700; font-stretch: 85%; line-height: 1.3; }
.tier__share { font-size: .9rem; color: rgba(255,255,255,.7); }
.tier--full { background: var(--gold); color: var(--night); border-color: var(--gold); }
.tier--full .tier__share { color: rgba(12,34,51,.75); }
.tier--full:hover { background: #e6bf76; }
.share__foot { color: rgba(255,255,255,.82); max-width: 52ch; }
.share__any { color: var(--gold); font-weight: 600; }

/* ---------- Donate ---------- */
.donate { padding-block: var(--section); background: var(--plaster); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0; display: grid; gap: .75rem; }
.steps li {
  counter-increment: step; position: relative;
  display: flex; flex-direction: column; padding: .2rem 0 .2rem 3.25rem; min-height: 2.6rem;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--night); color: var(--gold);
}
.steps b { font-size: 1.08rem; line-height: 1.4; }
.steps span { color: var(--muted); font-size: .95rem; line-height: 1.4; }

.amount-pill {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 1.25rem; padding: .6rem 1rem; border-radius: var(--r-sm);
  background: #fff6e3; border: 1px solid #ecd6a6;
}
.amount-pill[hidden] { display: none; }
.amount-pill strong { font-size: 1.2rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-d); text-decoration: underline; cursor: pointer; }

.methods { display: grid; gap: 1.25rem; }
.method {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.method .h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.tag { font-size: .8rem; font-weight: 500; color: var(--muted); }
.method__note { color: var(--muted); margin: .4rem 0 1.25rem; }
.qr { max-width: 17rem; margin: 0 auto 1.25rem; }
.qr img { border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line); }

.fields { margin: 0 0 1.25rem; }
.field { padding: .7rem 0; border-top: 1px solid var(--line); }
.field:last-child { border-bottom: 1px solid var(--line); }
.field dt { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.field dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; font-weight: 600; font-size: 1.05rem; line-height: 1.5; }
.field small { font-weight: 400; color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; font-size: 1.15rem; }
.copy {
  margin-left: auto; padding: .3rem .85rem; min-height: 2.25rem;
  border: 1px solid var(--green); color: var(--green-d); background: transparent; border-radius: 999px;
  font-size: .88rem; font-weight: 600; cursor: pointer;
}
.copy:hover { background: rgba(11,138,95,.08); }
.copy.is-copied { background: var(--green); color: var(--white); }
.method__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.method__actions .btn { flex: 1 1 12rem; }
.tip { margin: 1rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.upi-only[hidden] { display: none; }

.receipt {
  margin-top: 1.25rem; display: grid; gap: 1.5rem;
  background: var(--green); color: var(--white);
  border-radius: var(--r-md); padding: clamp(1.25rem, 4vw, 2rem);
}
.receipt .h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.receipt a { color: var(--white); }
.receipt__text p { margin: 0; color: rgba(255,255,255,.92); }
.receipt__form { display: grid; gap: .75rem; }
.receipt__form label { display: grid; gap: .25rem; font-size: .9rem; font-weight: 600; }
.receipt__form input {
  min-height: 3rem; padding: .5rem .9rem; border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.95); color: var(--ink); font-size: 1rem;
}
.receipt__form .btn--wa { background: var(--night); }
.receipt__form .btn--wa:hover { background: var(--night-3); }
.form-note { font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.5; }

/* ---------- Why ---------- */
.why { padding-block: var(--section); background: var(--white); }
.why__grid { display: grid; gap: 2rem; }
.why__quote {
  font-size: clamp(1.75rem, 7vw, 3rem); font-stretch: 82%; line-height: 1.35;
  color: var(--green-d); max-width: 20ch;
}
.why__body { max-width: 40rem; }

/* ---------- Projects ---------- */
.projects { padding-block: var(--section); background: var(--plaster); }
.proj-main { display: grid; gap: 1rem; margin-top: 2.25rem; }
.proj { background: var(--white); border-radius: var(--r-md); padding: 1.5rem; border-top: 4px solid var(--green); }
.proj__logo { height: 52px; width: auto; margin-bottom: .75rem; }
.proj__logo--wide { height: 44px; }
.proj__by { color: var(--muted); font-size: .9rem; margin: .1rem 0 .75rem; }
.proj p:last-child { margin: 0; }
.proj-small { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; }
.proj-small li { padding: 1rem 0; border-top: 1px solid var(--line); }
.proj-small h3 { font-size: 1.1rem; color: var(--green-d); }
.proj-small p { margin: .2rem 0 0; color: var(--muted); }
.partners { margin-top: 2.5rem; }
.partners__label { font-weight: 600; color: var(--muted); margin-bottom: .75rem; }
.partners ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.partners img { height: 48px; width: auto; }

/* ---------- Brochure & gallery ---------- */
.brochure { padding-block: var(--section); background: var(--night); color: var(--white); }
.brochure__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.brochure .btn--line { color: var(--white); }
.brochure .btn--line:hover { background: rgba(255,255,255,.08); }
.brochure .en-note { color: rgba(255,255,255,.7); }
.pages, .gallery {
  list-style: none; margin: 1.5rem 0 0; padding: 0 var(--pad) 1rem;
  display: grid; grid-auto-flow: column; gap: .85rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.pages { grid-auto-columns: 86%; }
.pages li, .gallery li { scroll-snap-align: start; }
.pages a, .gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; background: var(--night-2); }
.pages img { width: 100%; aspect-ratio: 738 / 558; object-fit: cover; }
.gallery__title { margin-top: 3rem; }
.gallery { grid-auto-columns: 82%; }
.gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s; }
.gallery a:hover img, .pages a:hover img { transform: scale(1.03); }
.pages img { transition: transform .5s; }

/* ---------- Contact ---------- */
.contact { padding-block: var(--section); background: var(--white); }
.contact__grid { display: grid; gap: 2rem; }
.contact__addr { font-style: normal; margin: 1rem 0 1.25rem; color: var(--muted); max-width: 36rem; }
.phones { list-style: none; padding: 0; margin: 0; }
.phones li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.phones li:last-child { border-bottom: 1px solid var(--line); }
.phones__num { font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.phones__who { order: 3; width: 100%; font-size: .9rem; color: var(--green-d); font-weight: 600; }
.phones__acts { margin-left: auto; display: flex; gap: .5rem; }
.phones__acts a {
  padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-size: .9rem; font-weight: 600; min-height: 2.25rem; display: inline-flex; align-items: center;
}
.phones__acts a:last-child { border-color: var(--wa); color: #12823f; }
.phones__main .phones__num { color: var(--night); font-size: 1.35rem; }

/* ---------- Footer ---------- */
.foot { background: var(--night-3); color: rgba(255,255,255,.78); padding-top: 3.5rem; }
.foot__grid { display: grid; gap: 2rem; align-items: end; }
.foot__org img { width: 160px; margin-bottom: 1rem; }
.foot__org p { max-width: 46ch; font-size: .95rem; }
.foot__org a { color: var(--gold); font-weight: 600; }
.foot__ar { font-family: var(--arabic); font-size: clamp(2.5rem, 10vw, 4.5rem); color: rgba(217,174,95,.35); margin: 0; line-height: 1.4; }
.foot__base { font-size: .85rem; padding-block: 1.5rem; margin: 2rem auto 0; border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- Lightbox & toast ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(3,12,22,.9); }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; border-radius: var(--r-sm); }
.lightbox__close {
  position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1rem;
  width: 3rem; height: 3rem; border-radius: 50%; border: 0;
  background: var(--white); color: var(--night); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 1.5rem + env(safe-area-inset-bottom)); z-index: 80;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: .6rem 1.1rem; border-radius: 999px; font-size: .95rem;
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .tiers { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .pages { grid-auto-columns: 60%; }
  .gallery { grid-auto-columns: 48%; }
  .receipt__form { grid-template-columns: 1fr 1fr; }
  .receipt__form .btn, .receipt__form .form-note, .receipt__form label:nth-child(3) { grid-column: 1 / -1; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .dock { display: none; }
  .toast { bottom: 2rem; }
  .nav { padding-top: 1rem; }
  .nav__inner {
    padding: .45rem .5rem .45rem 1.25rem; border-radius: 999px;
    transition: background-color .3s, box-shadow .3s;
  }
  .nav.is-solid { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .nav.is-solid .nav__inner { background: rgba(8,25,42,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 30px rgba(3,12,22,.3), inset 0 0 0 1px rgba(217,174,95,.25); }
  .nav__links { display: flex; gap: .25rem; margin-left: auto; }
  .nav__links a { color: rgba(255,255,255,.85); text-decoration: none; padding: .4rem .75rem; border-radius: 999px; font-size: .98rem; }
  .nav__links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
  .nav__actions { margin-left: .5rem; }
  .nav__actions .btn--wa { display: inline-flex; }

  .hero { padding-bottom: clamp(4rem, 9vh, 6.5rem); justify-content: center; padding-top: 7rem; }
  .hero__media { inset: 0; }
  .hero__media picture, .hero__media picture + picture { position: absolute; inset: 0; }
  .hero__media img { height: 100%; object-fit: cover; object-position: 64% 55%; -webkit-mask-image: none; mask-image: none; }
  .hero::after {
    background:
      linear-gradient(90deg, rgba(6,17,32,.88) 0%, rgba(6,17,32,.6) 30%, rgba(6,17,32,0) 58%),
      linear-gradient(0deg, var(--night-3) 0%, rgba(6,17,32,0) 28%);
  }
  .hero__content { padding-top: 18vh; }
  .hero__ml { font-size: clamp(4.5rem, 7.2vw, 7rem); }
  .hero__cta { display: flex; }
  .hero__media { top: 0; }
  .goal__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
  .goal__facts { margin: 0; }

  .appeal__grid { grid-template-columns: 1fr 1.35fr; column-gap: 4rem; }
  .appeal__head { position: sticky; top: 7rem; align-self: start; }
  .hadith { grid-column: 2; }

  .land__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .land__img { position: sticky; top: 7rem; }

  .methods { grid-template-columns: 1fr 1fr; align-items: start; }
  .receipt { grid-template-columns: 1fr 1.1fr; align-items: center; }

  .why__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

  .proj-main { grid-template-columns: repeat(3, 1fr); }
  .proj-small { grid-template-columns: repeat(3, 1fr); gap: 2rem; }

  .pages { grid-auto-columns: calc((min(100vw, var(--wrap)) - 2 * var(--pad)) / 2.15); padding-inline: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); }
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; max-width: var(--wrap); margin-inline: auto; }
  .gallery .g-wide { grid-column: span 2; grid-row: span 2; }
  .gallery .g-wide img { aspect-ratio: auto; height: 100%; }
  .gallery li:nth-child(5) { grid-column: span 2; }
  .gallery li:nth-child(5) img { aspect-ratio: 3 / 1; object-position: 50% 62%; }

  .contact__grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .foot__grid { grid-template-columns: 1fr auto; }
}

/* ---------- UPI pay sheet (phones) ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0;
  width: 100%; max-width: 32rem; max-height: 92svh;
  background: var(--white); color: var(--ink);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 40px rgba(3,12,22,.35);
}
.sheet::backdrop { background: rgba(3,12,22,.6); }
.sheet[open] { animation: sheet-up .32s cubic-bezier(.2,.8,.2,1); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.sheet__inner { padding: .6rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
.sheet__grip { width: 2.75rem; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto .75rem; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sheet__title { font-size: 1.3rem; font-stretch: 88%; }
.sheet__close { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--plaster); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.sheet__label { display: block; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 0 0 .4rem; }
.sheet__amount {
  display: flex; align-items: center; gap: .4rem; padding: 0 1rem;
  border: 1.5px solid var(--line); border-radius: 12px; min-height: 3.5rem;
}
.sheet__amount:focus-within { border-color: var(--green); }
.sheet__amount span { font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.sheet__amount input { flex: 1; border: 0; outline: 0; font-size: 1.6rem; font-weight: 700; min-width: 0; background: transparent; }
.sheet__chips { display: flex; gap: .5rem; overflow-x: auto; padding: .7rem 0 1.25rem; scrollbar-width: none; }
.sheet__chips button {
  flex: none; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 600; cursor: pointer;
}
.sheet__chips button[aria-pressed="true"] { background: var(--night); color: var(--gold); border-color: var(--night); }
.sheet__apps { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.app {
  display: flex; align-items: center; gap: .6rem; min-height: 3.4rem; padding: .5rem .9rem;
  border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--ink);
}
.app:active { background: var(--plaster); }
.app__dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--c); flex: none; }
.sheet__to { font-size: .88rem; color: var(--muted); margin: .9rem 0 1rem; }
.sheet__after { background: #eaf6f0; border-radius: 12px; padding: .9rem 1rem; }
.sheet__after p { margin: 0 0 .6rem; font-size: .95rem; line-height: 1.55; }
.sheet__after .btn { width: 100%; }
.sheet { overflow-y: auto; overscroll-behavior: contain; }
.sheet__head { position: sticky; top: -.6rem; z-index: 2; background: var(--white); padding-top: .6rem; margin-top: -.6rem; }
.sheet__head-acts { display: flex; gap: .4rem; }
.sheet__icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 0; background: var(--plaster); color: var(--night);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.sheet__icon svg { width: 1.2rem; height: 1.2rem; }
.mobile-only { display: none; }
.is-mobile .mobile-only { display: block; }
.sheet__pay { margin-bottom: 1.25rem; }
.sheet__block { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: 1.1rem; }
.sheet__pay + .sheet__block { margin-top: 0; }
.sheet__h { font-size: 1.1rem; margin-bottom: .75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.sheet__h small { font-size: .82rem; font-weight: 500; color: var(--muted); }
.sheet__qr { display: grid; justify-items: center; gap: .6rem; margin-bottom: .75rem; }
.sheet__qr img { width: min(100%, 15rem); border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.sheet .fields { margin-bottom: 0; }
.sheet .field dd { font-size: 1rem; }
.sheet__must {
  margin-top: 1.25rem; padding: 1rem; border-radius: 12px;
  background: #fff4e0; border: 1px solid #f0d29a;
}
.sheet__must .sheet__h { color: #8a5a00; margin-bottom: .4rem; }
.sheet__must p { font-size: .95rem; line-height: 1.6; margin-bottom: .6rem; }
.sheet__must .btn { width: 100%; margin-top: .2rem; }
.sheet__share { width: 100%; margin-top: 1rem; }
.sheet__share-note { font-size: .85rem; color: var(--muted); text-align: center; margin: .5rem 0 0; }
.share-btn { margin-top: 1rem; }
.btn svg { pointer-events: none; }
.receipt__anon { margin-top: .6rem !important; font-weight: 600; }
.receipt__form label small { font-weight: 400; opacity: .8; }

@media (min-width: 640px) {
  .sheet { margin: auto; border-radius: 22px; max-width: 34rem; max-height: 88vh; }
  .sheet[open] { animation: sheet-fade .22s ease-out; }
  .sheet__grip { display: none; }
}
@keyframes sheet-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
