/* ================================================================
   Moskee Al-Hijra — Homepage
   Editorial rebrand. Scoped under body.page-home to avoid
   affecting other pages that depend on css/style.css.
   ================================================================ */

/* ---- Home tokens ------------------------------------------------ */
body.page-home {
  /* paper & ink */
  --h-paper:        #f5efe3;
  --h-paper-soft:   #efe7d6;
  --h-paper-deep:   #e7dcc4;
  --h-ink:          #0f1f19;
  --h-ink-soft:     #233a30;

  /* greens */
  --h-moss:         #1b4436;
  --h-moss-deep:    #0f2e23;
  --h-moss-light:   #2f6c55;
  --h-sage:         #93a89c;

  /* gold */
  --h-gold:         #a37a2c;
  --h-gold-soft:    #c9a55a;
  --h-gold-pale:    rgba(163, 122, 44, 0.14);

  /* text */
  --h-muted:        #5a6a62;
  --h-muted-strong: #40514a;
  --h-rule:         rgba(15, 31, 25, 0.14);
  --h-rule-soft:    rgba(15, 31, 25, 0.06);

  /* motion */
  --h-ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
  --h-ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);

  /* type */
  --h-serif:        'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --h-sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --h-ar:           'Amiri', 'Scheherazade New', serif;

  /* layout */
  --h-gutter:       clamp(20px, 4vw, 56px);
  --h-measure:      62ch;

  /* re-paint the page */
  background: var(--h-paper);
  color: var(--h-ink);
  font-family: var(--h-sans);
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}

/* Force light-theme aesthetic on home regardless of toggle state */
html[data-theme="dark"] body.page-home {
  background: var(--h-paper);
  color: var(--h-ink);
}

/* Base typography on home */
body.page-home h1,
body.page-home h2,
body.page-home h3,
body.page-home h4 {
  font-family: var(--h-serif);
  color: var(--h-ink);
  font-weight: 420;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

body.page-home p { color: var(--h-muted-strong); line-height: 1.65; }
body.page-home ::selection { background: var(--h-gold-soft); color: var(--h-ink); }

/* Hide theme-toggle on home — paper aesthetic is intentional */
body.page-home .theme-toggle { display: none; }

/* Hide legacy social-float on home — we integrate socials natively */
body.page-home .social-float { display: none; }

/* ---- Nav override on home -------------------------------------- */
body.page-home .nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
body.page-home .nav.nav--scrolled {
  background: rgba(245, 239, 227, 0.88);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--h-rule);
  box-shadow: 0 1px 0 rgba(15,31,25,0.03);
}
body.page-home .nav-inner { max-width: 1240px; padding: 0 var(--h-gutter); }

body.page-home .nav-logo__img {
  filter: none;
  mix-blend-mode: multiply;
}

body.page-home .nav-link {
  color: var(--h-ink);
  font-family: var(--h-sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0;
  opacity: 0.6;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent !important;
  text-transform: none;
  transition: opacity 0.2s var(--h-ease), color 0.2s var(--h-ease);
}
body.page-home .nav-link:hover {
  opacity: 0.92;
  color: var(--h-ink);
  background: transparent !important;
}
body.page-home .nav-link--active {
  opacity: 1;
  color: var(--h-ink);
  font-weight: 600;
  background: transparent !important;
}
body.page-home .nav-link--active::after {
  content: "";
  display: block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--h-gold);
  margin: 5px auto 0;
  animation: navDotIn 0.45s var(--h-ease) both;
}

@keyframes navDotIn {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

body.page-home .nav-link--cta {
  background: var(--h-moss) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 10px 20px !important;
  border-radius: 999px;
  opacity: 1;
  transition: background 0.2s var(--h-ease), transform 0.2s var(--h-ease);
}
body.page-home .nav-link--cta::after { display: none; }
body.page-home .nav-link--cta:hover {
  background: var(--h-moss-deep) !important;
  transform: translateY(-1px);
}

body.page-home .hamburger span { background: var(--h-ink); }
body.page-home .hamburger:hover { background: rgba(15,31,25,0.05); }

/* Mobile menu override on home */
body.page-home .mobile-menu {
  background: var(--h-paper);
}
body.page-home .mobile-link {
  font-family: var(--h-serif);
  font-weight: 420;
  color: var(--h-ink);
  opacity: 0.65;
  font-size: 2rem;
  letter-spacing: -0.02em;
}
body.page-home .mobile-link:hover,
body.page-home .mobile-link--cta {
  opacity: 1;
  color: var(--h-ink);
  border-left-color: var(--h-gold);
}
body.page-home .mobile-close {
  background: transparent;
  color: var(--h-ink);
  border: 1px solid var(--h-rule);
}

/* ---- Reveal ---------------------------------------------------- */
body.page-home [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--h-ease), transform 0.9s var(--h-ease);
}
body.page-home [data-reveal].revealed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  body.page-home [data-reveal] { transition: none; transform: none; opacity: 1; }
}

/* ---- Page frame ------------------------------------------------ */
.h-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--h-gutter);
}

.h-rule {
  height: 1px;
  background: var(--h-rule);
  border: 0;
  margin: 0;
}

/* Tiny label used across sections */
.h-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--h-moss);
}
.h-kicker::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Primary buttons on home */
.h-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--h-sans);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.25s var(--h-ease), color 0.25s var(--h-ease),
              transform 0.2s var(--h-ease), box-shadow 0.25s var(--h-ease);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0;
}
.h-btn__arrow {
  display: inline-block;
  transition: transform 0.25s var(--h-ease);
}
.h-btn:hover .h-btn__arrow { transform: translateX(3px); }

.h-btn--moss {
  background: var(--h-moss);
  color: #fff;
}
.h-btn--moss:hover {
  background: var(--h-moss-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -12px rgba(15, 46, 35, 0.5);
}

.h-btn--ghost {
  background: transparent;
  color: var(--h-ink);
  border-color: var(--h-rule);
}
.h-btn--ghost:hover {
  border-color: var(--h-ink);
  transform: translateY(-1px);
}

.h-btn--gold {
  background: transparent;
  color: var(--h-gold);
  border-color: var(--h-gold);
}
.h-btn--gold:hover {
  background: var(--h-gold);
  color: #fff;
  transform: translateY(-1px);
}

.h-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h-sans);
  font-size: 0.9rem;
  color: var(--h-ink);
  font-weight: 500;
  border-bottom: 1px solid var(--h-rule);
  padding: 2px 0;
  transition: color 0.2s, border-color 0.2s, gap 0.2s;
}
.h-link:hover {
  color: var(--h-moss);
  border-bottom-color: var(--h-moss);
  gap: 12px;
}
.h-link svg { flex-shrink: 0; }

/* =============================================================
   HERO — editorial arrival
   ============================================================= */

.hero-arrival {
  position: relative;
  padding: calc(var(--nav-height) + 72px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.hero-arrival::before {
  /* subtle geometric tessellation overlay, top-right */
  content: "";
  position: absolute;
  top: -8%; right: -10%;
  width: 720px; height: 720px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><pattern id='p' width='40' height='40' patternUnits='userSpaceOnUse' patternTransform='rotate(15)'><path d='M20 0 L24 16 L40 20 L24 24 L20 40 L16 24 L0 20 L16 16 Z' fill='none' stroke='%231b4436' stroke-width='0.6' opacity='0.45'/><circle cx='20' cy='20' r='1' fill='%23a37a2c' opacity='0.5'/></pattern></defs><rect width='200' height='200' fill='url(%23p)'/></svg>");
  background-size: 520px 520px;
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(circle at 80% 20%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 80% 20%, black, transparent 72%);
}

.hero-arrival::after {
  /* soft warm wash */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(255,255,255,0.55), transparent 55%),
    radial-gradient(ellipse at 92% 92%, rgba(163,122,44,0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-arrival__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}

.hero-arrival__greet {
  font-family: var(--h-ar);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: var(--h-moss);
  line-height: 1;
  margin-bottom: 28px;
  direction: rtl;
  letter-spacing: 0;
}

.hero-arrival__headline {
  font-family: var(--h-serif);
  font-weight: 380;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--h-ink);
  max-width: 16ch;
  font-variation-settings: 'opsz' 120, 'SOFT' 30;
}

.hero-arrival__headline em {
  font-style: italic;
  color: var(--h-moss);
  font-weight: 360;
}

.hero-arrival__headline .amp {
  font-family: var(--h-serif);
  font-style: italic;
  color: var(--h-gold);
  font-weight: 320;
}

.hero-arrival__lede {
  margin-top: 28px;
  font-family: var(--h-sans);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--h-muted-strong);
  max-width: 42ch;
}

.hero-arrival__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  align-items: center;
}

.hero-arrival__scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--h-muted);
  font-size: 0.85rem;
  margin-left: 8px;
}
.hero-arrival__scroll-hint .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--h-gold);
  box-shadow: 0 0 0 4px rgba(163,122,44,0.18);
  animation: heroPulse 2.4s var(--h-ease) infinite;
}
@keyframes heroPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

/* Ritual card — the asymmetric right-column piece */
.ritual-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--h-rule);
  border-radius: 4px;
  padding: 32px 32px 28px;
  box-shadow:
    0 1px 0 rgba(15,31,25,0.04),
    0 40px 80px -40px rgba(15,31,25,0.25);
  transform: rotate(-0.4deg);
  overflow: hidden;
}
.ritual-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--h-moss), var(--h-gold) 60%, transparent);
}
.ritual-card::after {
  content: "";
  position: absolute;
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%231b4436' stroke-width='0.5' opacity='0.7'><circle cx='50' cy='50' r='40'/><circle cx='50' cy='50' r='30'/><path d='M50 10 L58 50 L90 50 L58 50 L50 90 L42 50 L10 50 L42 50 Z'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.ritual-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--h-rule-soft);
  margin-bottom: 22px;
}

.ritual-card__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--h-muted);
  font-weight: 500;
}

.ritual-card__time {
  font-family: var(--h-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--h-ink);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}

.ritual-card__date-g {
  font-family: var(--h-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--h-ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ritual-card__date-h {
  font-family: var(--h-ar);
  font-size: 1.15rem;
  color: var(--h-moss);
  margin-top: 4px;
  direction: rtl;
}

.ritual-card__prayers {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  border-top: 1px dashed var(--h-rule);
  padding-top: 18px;
  position: relative;
}
.ritual-card__prayer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  border-radius: 4px;
  transition: background 0.25s var(--h-ease);
}
.ritual-card__prayer-name {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--h-muted);
  transition: color 0.25s var(--h-ease);
}
.ritual-card__prayer-time {
  font-family: var(--h-serif);
  font-size: 1rem;
  font-weight: 420;
  color: var(--h-ink);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: color 0.25s var(--h-ease);
}

/* Highlight next prayer */
.ritual-card__prayer[data-next="true"] {
  background: var(--h-gold-pale);
  position: relative;
}
.ritual-card__prayer[data-next="true"]::before {
  content: "";
  position: absolute;
  top: -2px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: var(--h-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(163,122,44,0.22);
}
.ritual-card__prayer[data-next="true"] .ritual-card__prayer-name {
  color: var(--h-gold);
}
.ritual-card__prayer[data-next="true"] .ritual-card__prayer-time {
  color: var(--h-moss);
  font-weight: 500;
}

.ritual-card__cta {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--h-sans);
  font-size: 0.88rem;
  color: var(--h-ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.ritual-card__cta:hover { color: var(--h-moss); }
.ritual-card__cta svg { transition: transform 0.2s var(--h-ease); }
.ritual-card__cta:hover svg { transform: translateX(4px); }

/* Ornamental divider between sections */
.h-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 48px 0;
  color: var(--h-gold);
}
.h-ornament::before, .h-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 280px;
  background: linear-gradient(90deg, transparent, var(--h-rule), transparent);
}
.h-ornament svg { opacity: 0.85; }

/* =============================================================
   PRAYER — full-width strip + widget
   ============================================================= */

.prayer {
  padding: 88px 0 96px;
  background: var(--h-paper-soft);
  position: relative;
}

.prayer__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 40px;
}

.prayer__title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.prayer__title em {
  color: var(--h-moss);
  font-style: italic;
}
.prayer__meta {
  font-family: var(--h-sans);
  color: var(--h-muted-strong);
  font-size: 1rem;
  max-width: 42ch;
}

.prayer__widget {
  background: #fff;
  border: 1px solid var(--h-rule);
  border-radius: 6px;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(15,31,25,0.3);
  position: relative;
}
.prayer__widget .prayer-widget-wrap { overflow: hidden; border-radius: 4px; }
.prayer__widget iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
  background: #fff;
}

.prayer__foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.prayer__foot-note {
  font-size: 0.9rem;
  color: var(--h-muted);
}

/* =============================================================
   ABOUT — editorial narrative
   ============================================================= */

.about {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.about__figure {
  position: relative;
  align-self: stretch;
  min-height: 520px;
}
.about__figure-bignum {
  position: absolute;
  top: -20px; left: -10px;
  font-family: var(--h-ar);
  font-size: clamp(14rem, 28vw, 26rem);
  color: var(--h-paper-deep);
  line-height: 0.8;
  font-weight: 400;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.about__figure-caption {
  position: relative;
  z-index: 1;
  margin-top: clamp(80px, 16vw, 180px);
  padding-left: 28px;
  border-left: 1px solid var(--h-rule);
  max-width: 28ch;
}
.about__figure-caption-num {
  font-family: var(--h-serif);
  font-size: 3rem;
  color: var(--h-ink);
  line-height: 1;
  font-weight: 400;
}
.about__figure-caption-text {
  font-size: 0.92rem;
  color: var(--h-muted-strong);
  margin-top: 10px;
  font-family: var(--h-sans);
}

.about__body {
  max-width: 56ch;
}

.about__eyebrow {
  margin-bottom: 24px;
}

.about__lead {
  font-family: var(--h-serif);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 380;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--h-ink);
  margin-bottom: 28px;
}
.about__lead em { color: var(--h-moss); font-style: italic; }

.about__paragraphs p {
  font-family: var(--h-sans);
  font-size: 1.02rem;
  color: var(--h-muted-strong);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__paragraphs p:last-of-type { margin-bottom: 28px; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 40px 0 28px;
  border-top: 1px solid var(--h-rule);
  border-bottom: 1px solid var(--h-rule);
  max-width: 440px;
}
.about__stat {
  padding: 22px 18px 22px 0;
  border-right: 1px solid var(--h-rule);
}
.about__stat:last-child { border-right: 0; padding-right: 0; }
.about__stat-num {
  display: block;
  font-family: var(--h-serif);
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  color: var(--h-ink);
  font-weight: 420;
  letter-spacing: -0.02em;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.about__stat-label {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--h-muted);
}

/* =============================================================
   SOCIAL — "het dagelijkse ritme"
   ============================================================= */

.social {
  background: var(--h-moss-deep);
  color: #efe5d0;
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
}

.social::before {
  /* Pattern lives only in top band, far from the cards.
     Prevents contrast loss on card text. */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 380px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><defs><pattern id='p' width='60' height='60' patternUnits='userSpaceOnUse'><path d='M30 0 L36 24 L60 30 L36 36 L30 60 L24 36 L0 30 L24 24 Z' fill='none' stroke='%23c9a55a' stroke-width='0.4' opacity='0.9'/></pattern></defs><rect width='200' height='200' fill='url(%23p)'/></svg>");
  background-size: 480px 480px;
  background-position: center top;
  opacity: 0.18;
  mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 100%);
  pointer-events: none;
}

.social__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}
.social__head .h-kicker { color: var(--h-gold-soft); }

.social__title {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  letter-spacing: -0.03em;
  color: #faf3e3;
  max-width: 16ch;
}
.social__title em {
  font-style: italic;
  color: var(--h-gold-soft);
}

.social__desc {
  font-family: var(--h-sans);
  color: #d9cdb2;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 42ch;
}

/* Global `body.page-home h2/h3/p` sets dark --h-ink and wins over single-class
   rules here; without these overrides handles/body read as green-on-green.
   Light neutrals improve luminance contrast for colour‑blind users too. */
body.page-home .social h2.social__title {
  color: #fffaf2;
}
body.page-home .social h2.social__title em {
  color: #f5d98c;
}
body.page-home .social p.social__desc {
  color: #e8e2d8;
  font-weight: 500;
}
body.page-home .social h3.s-card__handle {
  color: #ffffff;
  font-weight: 500;
}
body.page-home .social p.s-card__desc {
  color: #f4efe6;
  font-weight: 500;
}
body.page-home .social .s-card__foot .meta {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Asymmetric grid — stacked above the top-band pattern */
.social__mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

.s-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--h-ease), box-shadow 0.4s var(--h-ease), border-color 0.3s var(--h-ease);
  min-height: 360px;
  border: 1px solid rgba(201,165,90,0.18);
  background: #123929;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.55);
}
.s-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,165,90,0.35);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.7);
}

.s-card--broeders {
  grid-column: span 5;
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%, rgba(201,165,90,0.14), transparent 60%),
    linear-gradient(160deg, #1f5743 0%, #0e2e24 100%);
  min-height: 460px;
}

.s-card--zusters {
  grid-column: 6 / span 4;
  background:
    radial-gradient(ellipse 80% 50% at 85% 10%, rgba(201,165,90,0.20), transparent 60%),
    linear-gradient(205deg, #265e48 0%, #0f3228 100%);
  transform: translateY(32px);
  min-height: 400px;
}

.s-card--wa {
  grid-column: 10 / span 3;
  background:
    radial-gradient(ellipse 120% 50% at 50% 100%, rgba(37,211,102,0.16), transparent 60%),
    linear-gradient(175deg, #1f6447 0%, #0a3326 100%);
  min-height: 360px;
  transform: translateY(-10px);
}

.s-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #e6c878;
  font-weight: 600;
}
.s-card__top .s-pill {
  padding: 4px 10px;
  border: 1px solid rgba(230,200,120,0.5);
  border-radius: 999px;
  color: #f0d890;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  background: rgba(230,200,120,0.08);
}

.s-card__handle {
  font-family: var(--h-serif);
  font-weight: 420;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #fbf4e3;
  margin-top: 28px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.s-card__desc {
  margin-top: 14px;
  font-family: var(--h-sans);
  font-size: 0.95rem;
  color: #dfd2b5;
  line-height: 1.65;
  max-width: 34ch;
}

.s-card__preview {
  position: absolute;
  right: 24px; top: 28px;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.s-card__preview i {
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(245,239,227,0.35);
}
.s-card__preview i:nth-child(2) { background: var(--h-gold-soft); }

.s-card__foot {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid rgba(245,239,227,0.1);
}
.s-card__foot .meta {
  font-size: 0.8rem;
  color: rgba(245,239,227,0.72);
  letter-spacing: 0.02em;
  font-family: var(--h-sans);
}
.s-card__foot .arrow {
  width: 42px; height: 42px;
  border: 1px solid rgba(245,239,227,0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f5efe3;
  transition: background 0.25s var(--h-ease), border-color 0.25s var(--h-ease),
              transform 0.25s var(--h-ease), color 0.25s var(--h-ease);
  flex-shrink: 0;
}
.s-card:hover .s-card__foot .arrow {
  background: var(--h-gold);
  border-color: var(--h-gold);
  color: #0f2e23;
  transform: rotate(-45deg);
}

/* Near‑white labels on WA card — mint-on-green collapses for many colour‑blind viewers */
.s-card--wa .s-card__top { color: #f4fffa; }
.s-card--wa .s-pill {
  color: #f0fff7;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(0, 0, 0, 0.14);
}

.s-card__wa-icon {
  position: absolute;
  bottom: -20px; right: -20px;
  width: 150px; height: 150px;
  opacity: 0.07;
  color: #25d366;
}

/* Social footnote */
.social__foot {
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid rgba(245,239,227,0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(245,239,227,0.72);
  font-size: 0.92rem;
  position: relative;
  z-index: 2;
}
.social__foot-links {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  font-family: var(--h-sans);
}
.social__foot-links a {
  color: #f3ead5;
  text-decoration: none;
  border-bottom: 1px solid rgba(201,165,90,0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.social__foot-links a:hover { border-bottom-color: var(--h-gold-soft); color: #fff; }

/* =============================================================
   EDU — onderwijsaanbod
   ============================================================= */

.edu {
  padding: 120px 0;
  background: var(--h-paper);
}

.edu__head {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.edu__title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.03em;
  max-width: 14ch;
}
.edu__title em { color: var(--h-moss); font-style: italic; }
.edu__intro {
  font-family: var(--h-sans);
  font-size: 1.02rem;
  color: var(--h-muted-strong);
  line-height: 1.7;
  max-width: 44ch;
}

.edu__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--h-rule);
  border-bottom: 1px solid var(--h-rule);
}

.edu__day {
  padding: 36px 40px 36px 0;
  border-right: 1px solid var(--h-rule);
}
.edu__day:last-child {
  border-right: 0;
  padding-left: 40px;
  padding-right: 0;
}
.edu__day-name {
  font-family: var(--h-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 380;
  letter-spacing: -0.02em;
  color: var(--h-ink);
  margin-bottom: 28px;
}
.edu__day-name::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--h-gold);
  vertical-align: 0.35em;
  margin-right: 14px;
}

.edu__slots {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0; padding: 0;
  list-style: none;
}
.edu__slot {
  display: grid;
  grid-template-columns: minmax(140px, auto) 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px dashed var(--h-rule);
  align-items: baseline;
}
.edu__slot:first-child { border-top: 0; padding-top: 0; }

.edu__slot-time {
  font-family: var(--h-sans);
  font-size: 0.95rem;
  color: var(--h-moss);
  font-weight: 500;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.edu__slot-label {
  font-family: var(--h-serif);
  font-size: 1.15rem;
  font-weight: 420;
  color: var(--h-ink);
  letter-spacing: -0.015em;
  grid-column: 2;
  grid-row: 1;
}
.edu__slot-meta {
  font-family: var(--h-sans);
  font-size: 0.85rem;
  color: var(--h-muted);
  grid-column: 2;
  grid-row: 2;
  margin-top: -4px;
}

.edu__foot {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 24px;
}
.edu__note {
  font-family: var(--h-sans);
  font-size: 0.9rem;
  color: var(--h-muted);
  max-width: 48ch;
}
.edu__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* =============================================================
   QURAN — full bleed typographic pause
   ============================================================= */

.quran {
  padding: 140px 0;
  background: var(--h-paper-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quran::before, .quran::after {
  content: "";
  position: absolute;
  top: 50%;
  height: 1px;
  width: 22%;
  background: linear-gradient(90deg, transparent, var(--h-gold), transparent);
}
.quran::before { left: 0; }
.quran::after { right: 0; }

.quran__ar {
  font-family: var(--h-ar);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  color: var(--h-ink);
  line-height: 1.8;
  font-weight: 400;
  direction: rtl;
  max-width: 28ch;
  margin: 0 auto;
}
.quran__tr {
  margin-top: 32px;
  font-family: var(--h-serif);
  font-weight: 380;
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  color: var(--h-muted-strong);
  max-width: 52ch;
  margin-left: auto; margin-right: auto;
  line-height: 1.5;
}
.quran__src {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--h-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--h-gold);
  font-weight: 500;
}

/* =============================================================
   STEUN — CTA pair (lidmaatschap + doneren)
   ============================================================= */

.steun {
  padding: 130px 0 120px;
  background: var(--h-paper);
  position: relative;
}

.steun__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}
.steun__title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 18px;
}
.steun__title em { color: var(--h-moss); font-style: italic; }

.steun__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  position: relative;
}
.steun__divider {
  background: var(--h-rule);
  width: 1px;
}

.steun__col {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.steun__col-tag {
  font-family: var(--h-sans);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--h-gold);
  margin-bottom: 14px;
}
.steun__col-title {
  font-family: var(--h-serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--h-ink);
  margin-bottom: 16px;
  line-height: 1.08;
}
.steun__col-title em { color: var(--h-moss); font-style: italic; }
.steun__col-text {
  font-family: var(--h-sans);
  font-size: 1rem;
  color: var(--h-muted-strong);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 44ch;
}

.steun__col-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.steun__col-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-family: var(--h-sans);
  font-size: 0.95rem;
  color: var(--h-ink);
  border-bottom: 1px dashed var(--h-rule);
}
.steun__col-list li:last-child { border-bottom: 0; }
.steun__col-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 8px;
  background: var(--h-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Donation amounts — preserve JS hook on .donate-amount */
.steun__amounts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
body.page-home .donate-amount {
  padding: 12px 22px;
  font-family: var(--h-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--h-ink);
  background: transparent;
  border: 1px solid var(--h-rule);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--h-ease);
  letter-spacing: 0;
}
body.page-home .donate-amount:hover {
  border-color: var(--h-ink);
  transform: translateY(-1px);
}
body.page-home .donate-amount.donate-amount--selected,
body.page-home .donate-amount--selected {
  background: var(--h-moss);
  color: #fff;
  border-color: var(--h-moss);
}

.steun__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: auto;
}

/* =============================================================
   FOOTER — override
   ============================================================= */

body.page-home .footer {
  background: var(--h-ink);
  color: #bfb29a;
  padding: 96px 0 36px;
  border-top: 0;
  position: relative;
}

body.page-home .footer::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,165,90,0.4), transparent);
  margin-bottom: 72px;
}

body.page-home .footer .container {
  max-width: 1240px;
  padding: 0 var(--h-gutter);
}

body.page-home .footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}

body.page-home .footer__col:first-child p {
  color: #97896f;
  font-family: var(--h-sans);
  font-size: 0.95rem;
  max-width: 36ch;
  margin-top: 18px;
  line-height: 1.7;
}

body.page-home .footer__logo-img {
  width: 130px;
  height: auto;
  background: transparent;
  border: 0;
  padding: 0;
  filter: invert(1) sepia(1) saturate(0.15) hue-rotate(5deg) brightness(1.1);
  opacity: 0.9;
  mix-blend-mode: normal;
}

body.page-home .footer__heading {
  font-family: var(--h-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--h-gold-soft);
  font-weight: 500;
  margin-bottom: 20px;
}

body.page-home .footer__links,
body.page-home .footer__address {
  font-family: var(--h-sans);
}
body.page-home .footer__links li { margin-bottom: 10px; }
body.page-home .footer__link {
  color: #bfb29a;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
body.page-home .footer__link:hover {
  color: #f5efe3;
  border-bottom-color: var(--h-gold-soft);
  padding-left: 0;
}
body.page-home .footer__address p {
  color: #97896f;
  font-size: 0.95rem;
  margin: 0 0 4px 0;
  max-width: none;
}

body.page-home .footer__social {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
body.page-home .footer__social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(191,178,154,0.25);
  color: #bfb29a;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
body.page-home .footer__social-link:hover {
  background: var(--h-gold-soft);
  color: var(--h-ink);
  border-color: var(--h-gold-soft);
}

body.page-home .footer__bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(191,178,154,0.12);
  color: #6b604d;
  font-size: 0.82rem;
  font-family: var(--h-sans);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
body.page-home .footer__bottom-ar {
  font-family: var(--h-ar);
  color: var(--h-gold-soft);
  direction: rtl;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1080px) {
  .hero-arrival__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .ritual-card {
    max-width: 480px;
    transform: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__figure { min-height: 0; }
  .about__figure-bignum {
    font-size: clamp(9rem, 40vw, 16rem);
    top: 0;
  }
  .about__figure-caption { margin-top: 80px; }

  .social__mosaic {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .s-card--broeders, .s-card--zusters, .s-card--wa {
    grid-column: 1 / -1;
    transform: none;
    min-height: 300px;
  }

  .prayer__head, .edu__head, .social__head {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  .edu__grid {
    grid-template-columns: 1fr;
  }
  .edu__day {
    border-right: 0;
    border-bottom: 1px solid var(--h-rule);
    padding: 32px 0;
  }
  .edu__day:last-child { padding-left: 0; border-bottom: 0; }

  body.page-home .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 720px) {
  .hero-arrival { padding: calc(var(--nav-height) + 40px) 0 72px; }
  .hero-arrival__headline { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .hero-arrival__lede { font-size: 1rem; }
  .hero-arrival__actions .hero-arrival__scroll-hint { display: none; }

  .ritual-card { padding: 24px 22px; }
  .ritual-card__date-g { font-size: 1.3rem; }

  .prayer, .edu, .steun, .social, .about { padding: 80px 0; }
  .quran { padding: 100px 0; }

  .edu__slot {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .edu__slot-label { grid-column: 1; grid-row: 1; }
  .edu__slot-time { grid-column: 1; grid-row: 2; }
  .edu__slot-meta { grid-column: 1; grid-row: 3; }

  .steun__grid {
    grid-template-columns: 1fr;
  }
  .steun__divider {
    width: 100%;
    height: 1px;
    margin: 16px 0;
  }

  body.page-home .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  body.page-home .footer { padding: 72px 0 28px; }

  .about__stats {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }
}

@media (max-width: 480px) {
  :root { --h-gutter: 20px; }
  .hero-arrival__actions { gap: 10px; }
  .h-btn { padding: 12px 20px; font-size: 0.9rem; }
  .ritual-card__prayers { gap: 2px; }
  .ritual-card__prayer-name { font-size: 0.6rem; letter-spacing: 0.12em; }
}
