/* ═══════════════════════════════════════════════════════════════
   Ocean City Islamic Outreach — Stylesheet
   Palette: deep emerald nights, warm gold, soft ivory sands
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0d1b1a;
  --deep: #08211f;
  --deep-2: #0d3833;
  --emerald: #14584f;
  --emerald-soft: #1d6e62;
  --gold: #c9a544;
  --gold-bright: #e3c065;
  --gold-pale: #f0d998;
  --cream: #f8f4ea;
  --sand: #efe7d5;
  --white: #fffdf7;
  --text: #22332f;
  --text-soft: #5c6f6a;

  --font-head: "Marcellus", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-arabic: "Amiri", "Traditional Arabic", serif;

  --shadow-lg: 0 24px 60px -18px rgba(8, 33, 31, 0.35);
  --shadow-md: 0 12px 32px -12px rgba(8, 33, 31, 0.25);
  --radius: 18px;

  /* 8-pointed star lattice, gold */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='none' stroke='%23c9a544' stroke-width='1'%3E%3Crect x='20' y='20' width='56' height='56'/%3E%3Crect x='20' y='20' width='56' height='56' transform='rotate(45 48 48)'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--emerald); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, #b08d2e);
  color: var(--deep);
  box-shadow: 0 10px 26px -8px rgba(201, 165, 68, 0.65);
}
.btn--gold:hover { box-shadow: 0 16px 34px -8px rgba(201, 165, 68, 0.8); }

.btn--ghost {
  background: transparent;
  color: var(--gold-pale);
  border: 1.5px solid rgba(240, 217, 152, 0.55);
}
.btn--ghost:hover { background: rgba(240, 217, 152, 0.1); border-color: var(--gold-pale); }

.btn--ghost-dark {
  background: transparent;
  color: var(--emerald);
  border: 1.5px solid var(--emerald);
}
.btn--ghost-dark:hover { background: var(--emerald); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--emerald);
  border: 1.5px solid rgba(20, 88, 79, 0.4);
}
.btn--outline:hover { background: var(--emerald); color: var(--white); border-color: var(--emerald); }

.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn--lg { padding: 0.95rem 2.2rem; font-size: 1rem; }
.btn--xl { padding: 1.15rem 2.6rem; font-size: 1.15rem; width: 100%; }

/* ───────────────────────── Navigation ───────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
.nav--solid {
  background: rgba(8, 33, 31, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  padding: 0.55rem 0;
}
.nav__inner {
  width: min(1240px, 94%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold-pale);
}
.nav__crescent { width: 34px; height: 34px; color: var(--gold); flex-shrink: 0; }
.nav__name { display: flex; flex-direction: column; line-height: 1.15; }
.nav__name strong { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: 0.03em; color: var(--white); font-weight: 400; }
.nav__name small { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-pale); opacity: 0.85; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav__links a:not(.btn) {
  color: rgba(255, 253, 247, 0.85);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 3px;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav__links a:not(.btn):hover { color: var(--gold-pale); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: var(--gold-pale);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav--open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ───────────────────────── Hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, #10453e 0%, #0a2e2b 45%, #071f1d 78%, #051614 100%);
  overflow: hidden;
  padding: 7rem 1rem 10rem;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  opacity: 0.05;
  pointer-events: none;
}

.hero__stars { position: absolute; inset: 0; pointer-events: none; }
.star {
  position: absolute;
  border-radius: 50%;
  background: #fdf6dd;
  animation: twinkle var(--tw, 3s) ease-in-out infinite alternate;
  opacity: 0.2;
}
@keyframes twinkle {
  from { opacity: 0.08; transform: scale(0.8); }
  to   { opacity: 0.9;  transform: scale(1.15); }
}

.hero__moon {
  position: absolute;
  top: 12%;
  right: 12%;
  width: clamp(56px, 7vw, 96px);
  filter: drop-shadow(0 0 28px rgba(227, 192, 101, 0.45));
  animation: moonFloat 9s ease-in-out infinite alternate;
}
@keyframes moonFloat {
  from { transform: translateY(0) rotate(-6deg); }
  to   { transform: translateY(-14px) rotate(3deg); }
}

.hero__content { position: relative; z-index: 2; max-width: 780px; }

.hero__bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold-pale);
  margin-bottom: 1.6rem;
  text-shadow: 0 0 30px rgba(227, 192, 101, 0.35);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-pale), var(--gold) 55%, #b08d2e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  color: rgba(248, 244, 234, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2.4rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__mosque {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: clamp(140px, 22vw, 300px);
  z-index: 1;
  pointer-events: none;
}

.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 2px solid rgba(240, 217, 152, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__scroll span {
  width: 4px; height: 9px;
  border-radius: 4px;
  background: var(--gold-pale);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ───────────────────────── Sections (shared) ───────────────────────── */
.section { padding: 5.5rem 0; }

.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section__head h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--deep);
  margin-bottom: 0.4rem;
}
.section__head--light h2 { color: var(--white); }
.section__head .eyebrow { font-family: var(--font-arabic); font-size: 1.15rem; letter-spacing: 0.08em; text-transform: none; }
.section__lede { color: var(--text-soft); font-size: 1.05rem; margin-top: 1.1rem; }
.section__head--light .section__lede { color: rgba(248, 244, 234, 0.75); }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold);
  margin: 0.6rem 0;
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  width: 70px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament span { font-size: 0.9rem; }

/* ───────────────────────── Prayer Times ───────────────────────── */
.prayer {
  background:
    linear-gradient(rgba(248, 244, 234, 0.97), rgba(248, 244, 234, 0.97)),
    var(--pattern);
}

.prayer__meta { font-size: 1.05rem; color: var(--text); margin-top: 1rem; font-weight: 600; }
.prayer__hijri { font-family: var(--font-arabic); color: var(--emerald); font-size: 1.15rem; }
.prayer__loc { color: var(--text-soft); font-size: 0.92rem; margin-top: 0.2rem; font-variant-numeric: tabular-nums; }
.prayer__dot { margin: 0 0.55rem; color: var(--gold); }

.next-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  background: linear-gradient(135deg, var(--deep-2), var(--deep));
  border: 1px solid rgba(201, 165, 68, 0.35);
  border-radius: var(--radius);
  padding: 1.6rem 2.4rem;
  max-width: 560px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-lg);
}
.next-banner__ring { position: relative; width: 120px; height: 120px; flex-shrink: 0; }
.next-banner__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track, .ring-fill {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}
.ring-track { stroke: rgba(255, 255, 255, 0.12); }
.ring-fill {
  stroke: var(--gold);
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s linear;
}
.next-banner__count {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold-pale);
  font-weight: 700;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}
.next-banner__text { text-align: left; }
.next-banner__label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.next-banner__text h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2rem;
  color: var(--white);
  line-height: 1.2;
}
.next-banner__at { color: rgba(248, 244, 234, 0.75); font-size: 1rem; }

.prayer__error {
  text-align: center;
  background: #fdf1e3;
  border: 1px solid #ecd9b8;
  border-radius: var(--radius);
  padding: 1.6rem;
  max-width: 480px;
  margin: 0 auto 3rem;
}
.prayer__error p { margin-bottom: 1rem; color: #8a6d3b; }

.prayer__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.pcard {
  background: var(--white);
  border: 1px solid rgba(20, 88, 79, 0.12);
  border-radius: 120px 120px 16px 16px;   /* mihrab arch */
  text-align: center;
  padding: 2.2rem 0.6rem 1.4rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.pcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pcard__arabic { font-family: var(--font-arabic); font-size: 1.25rem; color: var(--emerald); line-height: 1; }
.pcard__name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--deep);
  margin-top: 0.35rem;
  letter-spacing: 0.04em;
}
.pcard__time {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.pcard__time small { font-size: 0.7em; font-weight: 700; color: var(--text-soft); margin-left: 2px; }

.pcard--next {
  background: linear-gradient(160deg, var(--deep-2), var(--deep));
  border: 1.5px solid var(--gold);
  box-shadow: 0 18px 44px -14px rgba(201, 165, 68, 0.55);
}
.pcard--next .pcard__arabic { color: var(--gold-pale); }
.pcard--next .pcard__name { color: var(--gold-bright); }
.pcard--next .pcard__time { color: var(--white); }
.pcard--next .pcard__time small { color: rgba(248, 244, 234, 0.7); }
.pcard__badge {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.pcard--skeleton {
  height: 200px;
  background: linear-gradient(100deg, #f2ecdd 40%, #faf6ec 50%, #f2ecdd 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border: none;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.prayer__extras {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.extra {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--white);
  border: 1px solid rgba(20, 88, 79, 0.12);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  box-shadow: var(--shadow-md);
}
.extra__icon { font-size: 1.4rem; }
.extra div { display: flex; flex-direction: column; line-height: 1.35; }
.extra strong { font-size: 0.85rem; color: var(--deep); }
.extra span:not(.extra__icon) { font-size: 0.85rem; color: var(--text-soft); }

.extra--jumuah {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 70%);
  border: 1px solid #b08d2e;
  box-shadow: 0 10px 28px -8px rgba(201, 165, 68, 0.75);
}
.extra--jumuah strong { color: var(--deep); font-size: 0.9rem; }
.extra--jumuah span:not(.extra__icon) { color: rgba(8, 33, 31, 0.85); font-weight: 700; }

/* ───────────────────────── Verse banner ───────────────────────── */
.verse {
  position: relative;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--deep-2) 60%, var(--deep) 100%);
  padding: 5rem 0;
  text-align: center;
  overflow: hidden;
}
.verse__pattern, .vision__pattern, .donate__pattern, .footer__pattern {
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  opacity: 0.06;
  pointer-events: none;
}
.verse__inner { position: relative; }
.verse__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  color: var(--gold-pale);
  line-height: 2;
  max-width: 900px;
  margin: 0 auto 1.6rem;
}
.verse__translation {
  color: rgba(248, 244, 234, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  font-style: italic;
  max-width: 720px;
  margin: 0 auto 1rem;
}
.verse__source { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }

/* ───────────────────────── About cards ───────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.card {
  background: var(--white);
  border: 1px solid rgba(20, 88, 79, 0.1);
  border-radius: var(--radius);
  padding: 2.4rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__arch {
  width: 74px; height: 88px;
  margin: 0 auto 1.3rem;
  background: linear-gradient(160deg, var(--emerald-soft), var(--emerald));
  border-radius: 60px 60px 10px 10px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  box-shadow: inset 0 0 0 3px rgba(240, 217, 152, 0.35);
}
.card h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.35rem; color: var(--deep); margin-bottom: 0.6rem; }
.card p { color: var(--text-soft); font-size: 0.95rem; }

/* ───────────────────────── Vision / campaign ───────────────────────── */
.vision {
  position: relative;
  background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%);
  overflow: hidden;
}
.vision .container { position: relative; }

.urgency {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  max-width: 880px;
  margin: 0 auto 2.6rem;
  background: rgba(224, 122, 61, 0.13);
  border: 1.5px solid rgba(235, 150, 85, 0.55);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  text-align: left;
}
.urgency__icon {
  font-size: 2rem;
  line-height: 1;
  animation: hourglass 2.8s ease-in-out infinite;
}
@keyframes hourglass {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(14deg); }
}
.urgency__text { display: flex; flex-direction: column; gap: 0.25rem; }
.urgency__text strong {
  color: #f4b06a;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.urgency__text span { color: rgba(248, 244, 234, 0.9); font-size: 0.96rem; line-height: 1.65; }
.urgency__text b { color: #f4b06a; }
html[dir="rtl"] .urgency { text-align: right; }
html[lang="ar"] .urgency__text strong { letter-spacing: 0; }
@media (max-width: 560px) {
  .urgency { padding: 1rem 1.1rem; gap: 0.85rem; }
  .urgency__icon { font-size: 1.6rem; }
}

.gallery { max-width: 880px; margin: 0 auto 3.2rem; }
.vision__render {
  margin: 0 0 0.9rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 165, 68, 0.5);
  box-shadow: var(--shadow-lg), 0 0 60px -20px rgba(201, 165, 68, 0.25);
}
.vision__render img { width: 100%; transition: opacity 0.25s ease; }

.gallery__thumbs {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.gallery__thumb {
  width: 132px;
  height: 78px;
  padding: 0;
  border: 2px solid rgba(201, 165, 68, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: none;
  opacity: 0.7;
  transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; transform: translateY(-3px); }
.gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 10px 22px -10px rgba(201, 165, 68, 0.55);
}

@media (max-width: 560px) {
  .gallery__thumb { width: 74px; height: 48px; border-radius: 7px; }
}
.vision__render figcaption {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(248, 244, 234, 0.65);
  background: rgba(255, 253, 247, 0.05);
  border-top: 1px solid rgba(201, 165, 68, 0.3);
  padding: 0.75rem 1rem;
}

.vision__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.vision__features { list-style: none; display: flex; flex-direction: column; gap: 1.1rem; }
.vision__features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(255, 253, 247, 0.05);
  border: 1px solid rgba(201, 165, 68, 0.22);
  border-radius: 14px;
  padding: 1rem 1.3rem;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.vision__features li:hover {
  background: rgba(255, 253, 247, 0.09);
  border-color: rgba(201, 165, 68, 0.5);
  transform: translateX(6px);
}
.vision__features li > span { font-size: 1.5rem; line-height: 1.3; }
.vision__features li div { display: flex; flex-direction: column; color: rgba(248, 244, 234, 0.72); font-size: 0.9rem; }
.vision__features strong { color: var(--white); font-size: 1rem; margin-bottom: 0.1rem; }

.progress {
  background: rgba(255, 253, 247, 0.06);
  border: 1px solid rgba(201, 165, 68, 0.35);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
  text-align: center;
  backdrop-filter: blur(6px);
}
.progress__label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.progress__raised {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--white);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.progress__goal { color: rgba(248, 244, 234, 0.7); margin-bottom: 1.6rem; }
.progress__goal strong { color: var(--gold-bright); }

.progress__bar {
  height: 16px;
  background: rgba(255, 253, 247, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b08d2e, var(--gold) 45%, var(--gold-pale));
  border-radius: 999px;
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.progress__fill i {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  animation: shine 2.6s infinite;
}
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.progress__stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.8rem;
}
.progress__stats div { display: flex; flex-direction: column; }
.progress__stats strong { font-size: 1.5rem; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.progress__stats span { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(248, 244, 234, 0.6); }

.hadith {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 0;
  border-top: 1px solid rgba(201, 165, 68, 0.3);
}
.hadith__arabic { font-family: var(--font-arabic); font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--gold-pale); line-height: 1.9; margin-bottom: 1rem; }
.hadith__en { color: rgba(248, 244, 234, 0.9); font-style: italic; font-size: 1.1rem; font-weight: 300; margin-bottom: 0.7rem; }
.hadith cite { color: var(--gold); font-size: 0.85rem; font-style: normal; letter-spacing: 0.12em; }

/* ───────────────────────── Tiers ───────────────────────── */
.tiers { background: var(--cream); }
.tiers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(198px, 1fr));
  gap: 1.3rem;
  align-items: stretch;
}
.tier {
  background: var(--white);
  border: 1px solid rgba(20, 88, 79, 0.12);
  border-radius: var(--radius);
  padding: 0 1.3rem 1.7rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tier:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.tier__band {
  height: 10px;
  margin: 0 -1.3rem 1.7rem;
  background:
    linear-gradient(rgba(20,88,79,0.85), rgba(20,88,79,0.85)),
    var(--pattern);
  background-size: auto, 48px;
}
.tier--featured { border: 2px solid var(--gold); transform: scale(1.03); }
.tier--featured:hover { transform: scale(1.03) translateY(-8px); }
.tier--featured .tier__band { background: linear-gradient(rgba(176,141,46,0.9), rgba(201,165,68,0.9)), var(--pattern); background-size: auto, 48px; }
.tier__flag {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.tier h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.25rem; color: var(--deep); }
.tier__price {
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--emerald);
  margin: 0.4rem 0 0.7rem;
}
.tier--featured .tier__price { color: var(--gold); }
.tier p:not(.tier__price):not(.tier__flag) { color: var(--text-soft); font-size: 0.88rem; flex: 1; margin-bottom: 1.4rem; }
.tier__btn { width: 100%; padding: 0.7rem 1rem; font-size: 0.9rem; }

/* ───────────────────────── Donate widget ───────────────────────── */
.donate {
  position: relative;
  background:
    radial-gradient(ellipse 130% 100% at 50% 0%, #10453e 0%, var(--deep-2) 50%, var(--deep) 100%);
  overflow: hidden;
}
.donate__inner { position: relative; }

.donate__card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 24px;
  padding: 2.6rem 2.4rem;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.55);
  border-top: 6px solid var(--gold);
}

.freq {
  display: flex;
  background: var(--sand);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 1.8rem;
}
.freq__btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.65rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-soft);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.freq__btn.is-active {
  background: var(--deep-2);
  color: var(--gold-pale);
  box-shadow: 0 6px 16px -6px rgba(8, 33, 31, 0.5);
}

.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}
.chip {
  border: 1.5px solid rgba(20, 88, 79, 0.25);
  background: var(--white);
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--emerald);
  transition: all 0.2s ease;
  font-variant-numeric: tabular-nums;
}
.chip:hover { border-color: var(--emerald); background: rgba(20, 88, 79, 0.05); }
.chip.is-active {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
  box-shadow: 0 8px 20px -8px rgba(20, 88, 79, 0.6);
}

.donate__custom {
  display: flex;
  align-items: center;
  border: 1.5px solid rgba(20, 88, 79, 0.25);
  border-radius: 12px;
  padding: 0 1rem;
  margin-bottom: 1.4rem;
  transition: border-color 0.2s ease;
}
.donate__custom:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 165, 68, 0.2); }
.donate__custom span { font-weight: 800; color: var(--text-soft); font-size: 1.1rem; }
.donate__custom input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.9rem 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  background: transparent;
}
.donate__custom input::-webkit-outer-spin-button,
.donate__custom input::-webkit-inner-spin-button { -webkit-appearance: none; }
.donate__custom input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.donate__impact {
  text-align: center;
  font-size: 0.95rem;
  color: var(--emerald);
  background: rgba(20, 88, 79, 0.07);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.6rem;
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donate__note { text-align: center; font-size: 0.8rem; color: var(--text-soft); margin-top: 1.1rem; }

/* ───────────────────────── Contact ───────────────────────── */
.contact { background: var(--cream); }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.contact__card {
  background: var(--white);
  border: 1px solid rgba(20, 88, 79, 0.1);
  border-radius: var(--radius);
  padding: 2.2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}
.contact__card:hover { transform: translateY(-5px); }
.contact__icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.contact__card h3 { font-family: var(--font-head); font-weight: 400; color: var(--deep); margin-bottom: 0.5rem; }
.contact__card p { color: var(--text-soft); font-size: 0.95rem; }
.contact__card a { font-weight: 700; overflow-wrap: anywhere; }
.contact__card a:hover { color: var(--gold); }

/* ───────────────────────── Footer ───────────────────────── */
.footer {
  position: relative;
  background: var(--deep);
  color: rgba(248, 244, 234, 0.75);
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
}
.footer__inner { position: relative; display: flex; flex-direction: column; gap: 2.2rem; align-items: center; }
.footer__bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--gold-pale);
  line-height: 1.9;
}
.footer__verse-en { font-size: 0.9rem; font-style: italic; opacity: 0.8; margin-top: 0.4rem; }

.footer__news { width: min(440px, 100%); }
.footer__news label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.footer__news-row { display: flex; gap: 0.6rem; }
.footer__news-row input {
  flex: 1;
  background: rgba(255, 253, 247, 0.08);
  border: 1px solid rgba(201, 165, 68, 0.3);
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.footer__news-row input::placeholder { color: rgba(248, 244, 234, 0.4); }
.footer__news-row input:focus { border-color: var(--gold); }
.footer__news-done { margin-top: 0.8rem; color: var(--gold-bright); font-size: 0.9rem; }

.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer__links a { color: rgba(248, 244, 234, 0.7); font-size: 0.88rem; font-weight: 600; }
.footer__links a:hover { color: var(--gold-pale); }

.footer__copy { font-size: 0.85rem; opacity: 0.7; line-height: 1.9; }
.footer__copy small { color: var(--gold-pale); letter-spacing: 0.06em; }

/* ───────────────────────── Modal ───────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 22, 20, 0.75);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.25s ease;
}
.modal__box {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  border-top: 6px solid var(--gold);
  max-width: 480px;
  width: 100%;
  padding: 2.4rem 2.2rem;
  text-align: center;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.6);
  animation: popIn 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-soft);
  transition: color 0.2s ease, transform 0.2s ease;
}
.modal__close:hover { color: var(--deep); transform: rotate(90deg); }
.modal__bismillah { font-family: var(--font-arabic); font-size: 2rem; color: var(--gold); margin-bottom: 0.4rem; }
.modal__box h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.6rem; color: var(--deep); margin-bottom: 0.4rem; }
.modal__amount { color: var(--text-soft); margin-bottom: 1.5rem; }
.modal__amount strong { color: var(--emerald); font-size: 1.15em; }
.modal__methods { display: flex; flex-direction: column; gap: 0.7rem; text-align: left; margin-bottom: 1.5rem; }
.modal__method {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1px solid rgba(20, 88, 79, 0.12);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
}
.modal__method strong { color: var(--deep); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.modal__method span { color: var(--text-soft); font-size: 0.9rem; }
.modal__dua { font-style: italic; color: var(--emerald); font-size: 0.92rem; }

/* ───────────────────────── Reveal animations ───────────────────────── */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1000px) {
  .prayer__grid { grid-template-columns: repeat(3, 1fr); }
  .tiers__grid { grid-template-columns: repeat(2, 1fr); }
  .tier--featured { transform: none; }
  .tier--featured:hover { transform: translateY(-8px); }
  .vision__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}

@media (max-width: 760px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
    background: rgba(8, 33, 31, 0.97);
    backdrop-filter: blur(14px);
    padding: 1.8rem 0 2.2rem;
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.35);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav--open .nav__links { clip-path: inset(0 0 0 0); }
  .nav__burger { display: flex; }
  .nav { background: rgba(8, 33, 31, 0.92); backdrop-filter: blur(12px); }

  .cards, .contact__grid { grid-template-columns: 1fr; }
  .next-banner { flex-direction: column; gap: 1.2rem; text-align: center; padding: 1.8rem 1.4rem; }
  .next-banner__text { text-align: center; }
  .prayer__extras { flex-direction: column; align-items: center; gap: 0.9rem; }
  .section { padding: 4rem 0; }
  .donate__card { padding: 2rem 1.4rem; }
  .chips { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .footer__news-row { flex-direction: column; }
}

@media (max-width: 560px) {
  .prayer__grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .tiers__grid { grid-template-columns: 1fr; }
  .hero__moon { top: 9%; right: 8%; }
}

/* ───────────────────────── Iqamah lines on prayer cards ───────────────────────── */
.pcard__iqamah {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(20, 88, 79, 0.08);
  border-radius: 999px;
  padding: 3px 11px;
  margin-top: 0.55rem;
  font-variant-numeric: tabular-nums;
}
.pcard--next .pcard__iqamah {
  color: var(--gold-pale);
  background: rgba(255, 253, 247, 0.12);
}
.pcard__iqamah--dim { opacity: 0.55; font-style: italic; background: transparent; }

/* ───────────────────────── Core values chips ───────────────────────── */
.values {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin: -0.6rem auto 2.8rem;
  max-width: 860px;
}
.values li {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(201, 165, 68, 0.4);
  border-radius: 16px;
  padding: 0.7rem 1.4rem;
  min-width: 108px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.values li:hover { transform: translateY(-4px); border-color: var(--gold); }
.values li span {
  font-family: var(--font-arabic);
  font-size: 1.35rem;
  color: var(--emerald);
  line-height: 1.3;
}
.values li small {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ───────────────────────── Construction timeline ───────────────────────── */
.timeline { margin: 3.6rem 0 3.2rem; position: relative; }
.timeline__title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.2rem;
}
.timeline__list {
  list-style: none;
  display: flex;
  align-items: flex-start;
}
.timeline__list li {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 0 0.4rem;
}
.timeline__list li::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: rgba(201, 165, 68, 0.3);
}
.timeline__list li.is-done::before,
.timeline__list li.is-current::before { background: var(--gold); }
.timeline__list li:first-child::before { display: none; }
.timeline__list i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(201, 165, 68, 0.5);
  background: var(--deep-2);
  margin: 0 auto 0.9rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
.timeline__list li.is-done i {
  background: var(--gold);
  border-color: var(--gold);
}
.timeline__list li.is-done i::after {
  content: "✓";
  font-size: 10px;
  font-weight: 800;
  color: var(--deep);
  font-style: normal;
}
.timeline__list li.is-current i {
  border-color: var(--gold-bright);
  background: var(--deep-2);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(227, 192, 101, 0.55); }
  50%      { box-shadow: 0 0 0 9px rgba(227, 192, 101, 0); }
}
.timeline__list li div { display: flex; flex-direction: column; gap: 0.1rem; }
.timeline__list strong { color: var(--white); font-size: 0.86rem; line-height: 1.3; }
.timeline__list li span { color: rgba(248, 244, 234, 0.6); font-size: 0.76rem; }
.timeline__list li.is-current strong { color: var(--gold-bright); }

@media (max-width: 760px) {
  .timeline__list { flex-direction: column; gap: 1.3rem; }
  .timeline__list li { display: flex; align-items: flex-start; gap: 1rem; text-align: left; padding: 0; }
  .timeline__list li::before {
    top: -1.3rem;
    left: 8px;
    right: auto;
    width: 2px;
    height: 1.3rem;
  }
  .timeline__list i { margin: 0; flex-shrink: 0; }
}

/* ───────────────────────── Donation categories & extras ───────────────────────── */
.donate__cat-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.55rem;
}
.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}
.cat {
  border: 1.5px solid rgba(20, 88, 79, 0.25);
  background: var(--white);
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--emerald);
  transition: all 0.2s ease;
}
.cat:hover { border-color: var(--gold); }
.cat.is-active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-color: var(--gold);
  color: var(--deep);
  box-shadow: 0 6px 16px -6px rgba(201, 165, 68, 0.6);
}

.donate__more {
  display: block;
  margin: 0.95rem auto 0;
  background: none;
  border: none;
  color: var(--emerald);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.donate__more:hover { color: var(--gold); }

.donate__note span { font-weight: 800; color: var(--emerald); }
.donate__alloc {
  text-align: center;
  font-size: 0.74rem;
  color: var(--text-soft);
  opacity: 0.9;
  margin-top: 0.7rem;
  line-height: 1.8;
}

.modal__method a { color: var(--emerald); font-weight: 700; }
.modal__method a:hover { color: var(--gold); }

/* ───────────────────────── Events ───────────────────────── */
.events {
  background:
    linear-gradient(rgba(248, 244, 234, 0.97), rgba(248, 244, 234, 0.97)),
    var(--pattern);
}
.events__wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.events__list { display: flex; flex-direction: column; gap: 1.1rem; }
.events__list:empty { display: none; }

.event {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  background: var(--white);
  border: 1px solid rgba(20, 88, 79, 0.12);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event--pinned { border: 1.5px solid rgba(201, 165, 68, 0.55); }

.event__date {
  flex-shrink: 0;
  width: 84px;
  background: linear-gradient(160deg, var(--emerald-soft), var(--emerald));
  border-radius: 42px 42px 12px 12px;   /* mini mihrab arch */
  color: var(--gold-pale);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.95rem 0 0.7rem;
  box-shadow: inset 0 0 0 2px rgba(240, 217, 152, 0.3);
}
.event__date span {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.event__date strong {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.15;
  color: var(--white);
}
.event__date small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.event__tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 165, 68, 0.14);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 0.25rem;
}
.event__body h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--deep);
  margin-bottom: 0.15rem;
}
.event__meta {
  font-size: 0.85rem;
  color: var(--emerald);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.event__body > p:last-child { color: var(--text-soft); font-size: 0.92rem; }

.events__empty {
  text-align: center;
  border: 1.5px dashed rgba(201, 165, 68, 0.6);
  border-radius: var(--radius);
  padding: 2.6rem 1.6rem;
  background: rgba(255, 253, 247, 0.6);
}
.events__empty span { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.events__empty h3 {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--deep);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}
.events__empty p { color: var(--text-soft); font-size: 0.95rem; max-width: 540px; margin: 0 auto; }
.events__empty a { font-weight: 700; }
.events__empty a:hover { color: var(--gold); }

@media (max-width: 560px) {
  .event { gap: 1rem; padding: 1.1rem 1rem; }
  .event__date { width: 68px; padding: 0.75rem 0 0.55rem; }
  .event__date strong { font-size: 1.55rem; }
  .event__body h3 { font-size: 1.15rem; }
}

/* ───────────────────────── Current-phase callout ───────────────────────── */
.phase {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  text-align: left;
  background: rgba(201, 165, 68, 0.12);
  border: 1px solid rgba(201, 165, 68, 0.45);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.7rem;
}
.phase__icon { font-size: 1.6rem; line-height: 1.2; }
.phase div { display: flex; flex-direction: column; gap: 0.15rem; }
.phase strong { color: var(--gold-bright); font-size: 0.95rem; }
.phase div > span { color: rgba(248, 244, 234, 0.8); font-size: 0.87rem; line-height: 1.55; }
.phase b { color: var(--gold-bright); font-size: 1.02em; }

/* ───────────────────────── Footer social ───────────────────────── */
.footer__social { display: flex; gap: 1rem; }
.footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 68, 0.45);
  display: grid;
  place-items: center;
  color: var(--gold-pale);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer__social a svg { width: 19px; height: 19px; }
.footer__social a:hover {
  background: var(--gold);
  color: var(--deep);
  transform: translateY(-3px);
}

/* ───────────────────────── Language toggle & RTL (Arabic) ───────────────────────── */
.lang-toggle {
  background: transparent;
  border: 1.5px solid rgba(240, 217, 152, 0.5);
  color: var(--gold-pale);
  border-radius: 999px;
  padding: 0.42rem 1.1rem;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: "Tajawal", var(--font-body);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lang-toggle:hover {
  background: rgba(240, 217, 152, 0.12);
  border-color: var(--gold-pale);
}

/* Arabic typography — joined script must never be letter-spaced */
html[lang="ar"] body { font-family: "Tajawal", "Amiri", system-ui, sans-serif; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .nav__name strong,
html[lang="ar"] .tier__price,
html[lang="ar"] .progress__raised,
html[lang="ar"] .event__date strong,
html[lang="ar"] .pcard__name {
  font-family: "Amiri", var(--font-head), serif;
}
html[lang="ar"] .eyebrow,
html[lang="ar"] .next-banner__label,
html[lang="ar"] .progress__label,
html[lang="ar"] .timeline__title,
html[lang="ar"] .tier__flag,
html[lang="ar"] .event__tag,
html[lang="ar"] .event__date span,
html[lang="ar"] .event__date small,
html[lang="ar"] .donate__cat-label,
html[lang="ar"] .footer__news label,
html[lang="ar"] .verse__source,
html[lang="ar"] .pcard__badge,
html[lang="ar"] .values li small,
html[lang="ar"] .progress__stats span,
html[lang="ar"] .modal__method strong {
  letter-spacing: 0;
}
html[lang="ar"] .hero h1 { line-height: 1.45; }

/* RTL layout adjustments */
html[dir="rtl"] .next-banner__text { text-align: right; }
html[dir="rtl"] .event,
html[dir="rtl"] .modal__methods,
html[dir="rtl"] .phase { text-align: right; }
html[dir="rtl"] .vision__features li:hover { transform: translateX(-6px); }

/* In Arabic mode, hide the English renderings of Arabic scripture */
html[lang="ar"] .verse__translation,
html[lang="ar"] .hadith__en,
html[lang="ar"] .footer__verse-en { display: none; }

@media (max-width: 760px) {
  html[dir="rtl"] .timeline__list li::before { left: auto; right: 8px; }
}

/* ───────────────────────── Small-phone polish ───────────────────────── */
@media (max-width: 560px) {
  .hero { padding: 6.5rem 1rem 9rem; }
  .hero__actions .btn--lg { padding: 0.85rem 1.6rem; font-size: 0.95rem; }
  .hero__bismillah { margin-bottom: 1.2rem; }

  .freq__btn { font-size: 0.76rem; padding: 0.6rem 0.25rem; }
  .cats { gap: 0.45rem; }
  .cat { padding: 0.42rem 0.85rem; font-size: 0.8rem; }
  .chip { font-size: 0.9rem; padding: 0.75rem 0.3rem; }
  .btn--xl { padding: 1.05rem 1.4rem; font-size: 1.05rem; }

  .values { gap: 0.6rem; }
  .values li { min-width: 94px; padding: 0.55rem 0.9rem; }
  .values li span { font-size: 1.15rem; }

  .next-banner__ring { width: 106px; height: 106px; }
  .next-banner__count { font-size: 0.92rem; }
  .pcard { padding: 1.9rem 0.4rem 1.2rem; }
  .pcard__time { font-size: 1.02rem; }
  .pcard__iqamah { font-size: 0.66rem; padding: 3px 8px; }

  .progress { padding: 1.9rem 1.3rem; }
  .phase { padding: 0.85rem 0.95rem; gap: 0.7rem; }
  .modal__box { padding: 1.9rem 1.3rem; }

  .section__head h2 { font-size: 1.85rem; }
  .footer__copy { font-size: 0.78rem; }
}
