/* =======================================================================
   MyAlMasjid Portal — 2026 Design System  v2.0
   Brand: #1A6B47 (Green) | #C9A84C (Gold) | #F7F2E9 (Cream)
   Stack: Plus Jakarta Sans (Google CDN) · AOS scroll animations (CDN)
   Modern CSS: backdrop-filter · clamp() · custom properties · grid
======================================================================= */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
  /* Brand */
  --g:          #1A6B47;
  --g-dk:       #0e3f2a;
  --g-md:       #145538;
  --g-lt:       #e8f4ee;
  --g-xl:       #f2faf5;
  --gold:       #C9A84C;
  --gold-dk:    #a8893a;
  --gold-lt:    #fdf8ec;
  --cream:      #F7F2E9;
  --cream-dk:   #ece7da;

  /* Surfaces */
  --white:      #ffffff;
  --bd:         rgba(0,0,0,.07);
  --bd2:        #ddd5ca;

  /* Text */
  --tx:         #0d1f16;
  --tx2:        #2c4a38;
  --mu:         #627568;
  --mu2:        #8fa398;

  /* Shadows */
  --s1: 0 1px 4px rgba(0,0,0,.05);
  --s2: 0 4px 16px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.04);
  --s3: 0 12px 40px rgba(0,0,0,.10), 0 4px 10px rgba(0,0,0,.05);
  --s4: 0 24px 64px rgba(0,0,0,.12), 0 8px 20px rgba(0,0,0,.06);
  --sg: 0 8px 32px rgba(26,107,71,.25);
  --sgold: 0 4px 20px rgba(201,168,76,.3);

  /* Radius */
  --r0: 6px; --r1: 10px; --r2: 16px; --r3: 24px; --r4: 32px; --rf: 9999px;

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .22s cubic-bezier(.4,0,.2,1);
  --t-fast: .12s ease;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--tx);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--g); border-radius: 99px; }
::selection { background: var(--g); color: #fff; }

/* ─── TYPOGRAPHY UTILITIES ──────────────────────────────────── */
.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, #e8c46a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--rf);
  margin-bottom: 14px;
}
.eyebrow-gold {
  background: var(--gold-lt);
  color: #906f28;
  border: 1px solid rgba(201,168,76,.22);
}
.eyebrow-green {
  background: var(--g-lt);
  color: var(--g-md);
  border: 1px solid rgba(26,107,71,.18);
}
.eyebrow-glass {
  background: rgba(201,168,76,.16);
  border: 1px solid rgba(201,168,76,.3);
  color: #f5d87e;
}
.h-xl {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--tx);
}
.h-lg {
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: var(--tx);
}
.h-xl .accent, .h-lg .accent { color: var(--g); }
.lead {
  font-size: 1.05rem;
  color: var(--mu);
  line-height: 1.72;
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.wrap          { max-width: 1200px; margin: 0 auto; }
.section       { padding: 96px 28px; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream); }

/* ─── NAV ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247,242,233,.82);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(26,107,71,.08);
  transition: box-shadow var(--t);
}
.nav.is-scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.07); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 4px;
}
/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 8px;
}
.nav-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(26,107,71,.2));
}
.nav-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1;
}
.nav-name .my { color: var(--gold); }
.nav-name .al { color: var(--g); }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
}
.nav-links a {
  color: var(--tx2);
  text-decoration: none;
  font-size: .855rem;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: var(--r1);
  transition: background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover { background: var(--g-lt); color: var(--g); }
.nav-links a.active { background: var(--g-lt); color: var(--g); font-weight: 700; }
.nav-cta {
  background: var(--g) !important;
  color: #fff !important;
  border-radius: var(--rf) !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  font-size: .83rem !important;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(26,107,71,.25);
  transition: all var(--t) !important;
}
.nav-cta:hover {
  background: var(--g-md) !important;
  box-shadow: var(--sg) !important;
  transform: translateY(-1px) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--bd2);
  border-radius: var(--r1);
  padding: 7px 11px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--g);
  margin-left: auto;
  transition: background var(--t-fast);
}
.nav-toggle:hover { background: var(--g-lt); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--g-dk);
  color: #fff;
  padding: 100px 0 80px;
}

/* Multi-layer mesh gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 15%, rgba(26,107,71,.65) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 80%, rgba(14,63,42,.8)   0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% -5%, rgba(201,168,76,.12) 0%, transparent 50%),
    linear-gradient(155deg, #08200f 0%, #153d27 40%, #0a2317 100%);
}
/* Decorative rotating rings */
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg::before {
  width: 700px;
  height: 700px;
  border: 1px solid rgba(201,168,76,.1);
  top: -250px;
  right: -180px;
  animation: spin-cw 40s linear infinite;
}
.hero-bg::after {
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.05);
  bottom: -200px;
  left: -120px;
  animation: spin-ccw 52s linear infinite;
}
@keyframes spin-cw  { to { transform: rotate(360deg); } }
@keyframes spin-ccw { to { transform: rotate(-360deg); } }

/* Centered hero layout */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}
.hero-content {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(3.2rem, 9vw, 6rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  margin-bottom: 24px;
}
.hero-title .my { color: var(--gold); }
.hero-title .al { color: #fff; }
.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  font-weight: 300;
  opacity: .85;
  margin-bottom: 12px;
}
.hero-desc {
  font-size: .95rem;
  opacity: .6;
  max-width: 440px;
  margin: 0 auto 48px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.btn-store {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--r2);
  backdrop-filter: blur(12px);
  min-width: 158px;
  transition: all var(--t);
}
.btn-store:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.btn-store-sub  { font-size: .63rem; opacity: .7; letter-spacing: .02em; }
.btn-store-name { font-size: .98rem; font-weight: 700; }
.hero-stats-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat {
  padding: 4px 28px;
  border-right: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num { display: block; font-size: 1.55rem; font-weight: 800; color: var(--gold); line-height: 1; }
.hero-stat-lbl { display: block; font-size: .72rem; opacity: .6; margin-top: 3px; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  opacity: .4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-cue span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
@keyframes bob {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

/* ─── SECTION HEADER ─────────────────────────────────────────── */
.sec-hdr { text-align: center; margin-bottom: 56px; }
.sec-hdr .eyebrow { margin-bottom: 16px; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
  padding: 13px 26px;
  border-radius: var(--rf);
}
.btn-primary {
  background: var(--g);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,107,71,.22);
}
.btn-primary:hover {
  background: var(--g-md);
  box-shadow: var(--sg);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--g);
  border: 1.5px solid var(--g);
}
.btn-outline:hover { background: var(--g); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: var(--g-lt);
  color: var(--g);
}
.btn-ghost:hover { background: var(--g); color: #fff; transform: translateY(-2px); }
.btn-arrow::after { content: ' →'; display: inline-block; transition: transform var(--t); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ─── FEATURE CARDS (GRID LAYOUT) ───────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r4);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,107,71,.025) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t);
}
.feature-card:hover {
  border-color: rgba(26,107,71,.18);
  box-shadow: 0 20px 56px rgba(26,107,71,.12), 0 4px 14px rgba(0,0,0,.06);
  transform: translateY(-5px);
}
.feature-card:hover::after { opacity: 1; }

/* Tag */
.ftag {
  display: inline-flex;
  align-items: center;
  background: var(--g-lt);
  color: var(--g);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--rf);
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--tx);
  margin-bottom: 9px;
}
.feature-card .feat-desc {
  color: var(--mu);
  font-size: .88rem;
  line-height: 1.65;
  flex: 1;
}
.feat-file {
  margin-top: 18px;
  align-self: stretch;
  font-family: 'Courier New', monospace;
  font-size: .68rem;
  color: var(--mu2);
  background: var(--cream);
  border: 1px solid var(--bd2);
  padding: 6px 10px;
  border-radius: var(--r0);
  text-align: left;
}

/* ─── PHONE MOCKUP (2026 Titanium-frame style) ───────────────── */
.phone {
  width: 210px;
  height: 440px;
  background: linear-gradient(160deg, #2c2c2e 0%, #0a0a0a 60%, #1a1a1c 100%);
  border-radius: 52px;
  padding: 7px;
  position: relative;
  flex-shrink: 0;
  margin: 0 auto 28px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.13),
    0 0 0 1.5px rgba(0,0,0,.9),
    0 40px 80px rgba(0,0,0,.45),
    0 10px 24px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.1);
  transition: transform .3s ease, box-shadow .3s ease;
}
/* Brushed titanium edge highlight */
.phone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 52px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,.06) 25%,
    rgba(255,255,255,0)   50%,
    rgba(255,255,255,.03) 75%,
    rgba(255,255,255,.12) 100%
  );
  pointer-events: none;
  z-index: 10;
}
/* Hover lift */
.feature-card:hover .phone {
  transform: translateY(-6px) scale(1.015);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.16),
    0 0 0 1.5px rgba(0,0,0,.9),
    0 60px 100px rgba(0,0,0,.5),
    0 16px 32px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.12);
}
/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 27px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: var(--g-lt);
  position: relative;
}
/* Screen glare overlay */
.phone-screen::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 55%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.09) 0%,
    rgba(255,255,255,0)   100%
  );
  pointer-events: none;
  z-index: 4;
  border-radius: 46px 46px 0 0;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
/* Placeholder — hidden by default, JS shows it on img error */
.phone-ph {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(150deg, var(--g-xl) 0%, var(--gold-lt) 100%);
  padding: 24px;
  text-align: center;
  z-index: 2;
}
.phone-ph-icon  { font-size: 2.6rem; }
.phone-ph-label { font-size: .65rem; font-weight: 700; color: var(--g-md); letter-spacing: .04em; }
.phone-ph-fname { display: none; }

/* ─── GENERIC CARDS ──────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 30px;
  transition: all var(--t);
}
.card:hover {
  box-shadow: var(--s3);
  transform: translateY(-3px);
  border-color: rgba(26,107,71,.13);
}
.card-icon {
  width: 52px;
  height: 52px;
  background: var(--g-lt);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
  transition: background var(--t), transform var(--t);
}
.card:hover .card-icon {
  background: var(--g);
  transform: scale(1.06);
  filter: brightness(10) saturate(0) invert(1);
  /* JS toggles emoji filter per card on hover */
}
/* Emoji icon fix on hover */
.card:hover .card-icon { filter: none; background: var(--g); }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--tx); margin-bottom: 8px; }
.card p  { color: var(--mu); font-size: .9rem; line-height: 1.65; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }

/* ─── BENTO GRID ─────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-cell {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 32px;
  transition: all var(--t);
  overflow: hidden;
}
.bento-cell:hover {
  box-shadow: var(--s3);
  transform: translateY(-3px);
  border-color: rgba(26,107,71,.14);
}
.bento-span-2 { grid-column: span 2; }
.bento-tall   { grid-row: span 2; }
.bento-dark {
  background: linear-gradient(145deg, var(--g) 0%, var(--g-dk) 100%);
  border-color: transparent;
  color: #fff;
}
.bento-dark h3, .bento-dark h2 { color: #fff; }
.bento-dark p { color: rgba(255,255,255,.75); }
.bento-gold {
  background: linear-gradient(145deg, var(--gold-lt) 0%, #fef5da 100%);
  border-color: rgba(201,168,76,.2);
}
.bento-num {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--g);
  margin-bottom: 6px;
}
.bento-dark .bento-num { color: var(--gold); }
.bento-lbl {
  font-size: .8rem;
  font-weight: 500;
  color: var(--mu);
  letter-spacing: .04em;
}
.bento-dark .bento-lbl { color: rgba(255,255,255,.6); }
.bento-icon-lg { font-size: 2.8rem; margin-bottom: 14px; }

/* ─── GUIDE BOX ──────────────────────────────────────────────── */
.guide-box {
  background: linear-gradient(135deg, var(--gold-lt) 0%, #fef9f2 100%);
  border: 1px solid rgba(201,168,76,.25);
  border-left: 4px solid var(--gold);
  border-radius: var(--r3);
  padding: 26px 30px;
  margin-bottom: 44px;
}
.guide-box h4 { color: #7a6020; font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.guide-box p  { color: #7a6020; font-size: .875rem; margin-bottom: 6px; }
.guide-box code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(201,168,76,.2);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .8rem;
  color: var(--g-dk);
}
.guide-files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.guide-files code { display: block; padding: 6px 10px; }

/* ─── ABOUT SPECIFICS ────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.visual-panel {
  background: linear-gradient(150deg, var(--g) 0%, var(--g-dk) 100%);
  border-radius: var(--r4);
  padding: 52px 36px;
  text-align: center;
  color: #fff;
  box-shadow: var(--sg);
  position: relative;
  overflow: hidden;
}
.visual-panel::before {
  content: '🕌';
  position: absolute;
  font-size: 11rem;
  opacity: .05;
  bottom: -24px;
  right: -24px;
  line-height: 1;
  pointer-events: none;
}
.visual-panel .wordmark { font-size: 2rem; font-weight: 900; margin: 16px 0 10px; }
.visual-panel .wordmark .my { color: var(--gold); }
.visual-panel p { opacity: .8; font-size: .92rem; }
.stat-pills { display: flex; flex-direction: column; gap: 11px; margin-top: 28px; }
.stat-pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r2);
  padding: 13px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(8px);
}
.stat-pill-val { font-size: 1.15rem; font-weight: 800; color: var(--gold); }
.stat-pill-lbl { font-size: .77rem; opacity: .7; }

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 32px;
}
.val-item {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r3);
  padding: 22px 20px;
  transition: all var(--t);
}
.val-item:hover {
  border-color: rgba(26,107,71,.18);
  box-shadow: var(--s2);
  transform: translateY(-2px);
}
.val-emoji { font-size: 1.7rem; margin-bottom: 10px; }
.val-item h4 { font-size: .9rem; font-weight: 700; color: var(--g); margin-bottom: 4px; }
.val-item p  { font-size: .83rem; color: var(--mu); line-height: 1.55; }

/* ─── LEGAL DOCUMENT PAGES ───────────────────────────────────── */
.doc-hdr {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #08200f 0%, #153d27 55%, #0a2317 100%);
  color: #fff;
  padding: 88px 28px 68px;
  text-align: center;
}
.doc-hdr::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 110%, rgba(201,168,76,.07) 0%, transparent 55%);
}
.doc-hdr h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  position: relative;
}
.doc-hdr p  { opacity: .8; font-size: .95rem; position: relative; }
.doc-badge  {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.35);
  color: #f5d87e;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--rf);
  margin-top: 16px;
  position: relative;
}

.doc-body {
  max-width: 840px;
  margin: 0 auto;
  padding: 64px 28px 100px;
}
/* TOC */
.doc-toc {
  background: var(--cream);
  border: 1px solid var(--bd2);
  border-radius: var(--r3);
  padding: 26px 30px;
  margin-bottom: 48px;
}
.doc-toc h4 {
  font-size: .75rem;
  font-weight: 700;
  color: var(--mu);
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.doc-toc ol  { margin-left: 18px; }
.doc-toc li  { margin-bottom: 6px; }
.doc-toc a   { color: var(--g); font-size: .875rem; text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }

/* Section headings */
.doc-body h2 {
  color: var(--g);
  font-size: 1.12rem;
  font-weight: 700;
  margin: 44px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  scroll-margin-top: 90px;
}
.doc-body h3 { font-size: .98rem; font-weight: 700; color: var(--tx2); margin: 22px 0 7px; }
.doc-body p  { margin-bottom: 14px; color: var(--mu); line-height: 1.78; }
.doc-body ul,
.doc-body ol { margin: 8px 0 16px 22px; }
.doc-body li { margin-bottom: 8px; color: var(--mu); line-height: 1.68; }
.doc-body a  { color: var(--g); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Tables */
.doc-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 16px 0 28px;
  font-size: .875rem;
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--s1);
  border: 1px solid var(--bd2);
}
.doc-body th {
  background: var(--g);
  color: #fff;
  text-align: left;
  padding: 13px 16px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.doc-body td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--bd2);
  color: var(--mu);
  vertical-align: top;
}
.doc-body tr:last-child td { border-bottom: none; }
.doc-body tr:nth-child(even) td { background: var(--cream); }

/* Info card */
.doc-card {
  background: #fff;
  border: 1px solid rgba(26,107,71,.1);
  border-top: 3px solid var(--g);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
}
.doc-card strong { color: var(--g); }

/* Warning / notice card */
.doc-warn {
  background: linear-gradient(135deg, #fffcf2, #fff8e0);
  border: 1px solid rgba(201,168,76,.22);
  border-top: 3px solid var(--gold);
  border-radius: 16px;
  padding: 20px 26px;
  margin: 20px 0;
  color: #6b5514;
  font-size: .9rem;
  box-shadow: 0 4px 16px rgba(201,168,76,.1);
}

/* ─── CONTACT PAGE ───────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}
.cinfo-panel {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r4);
  padding: 34px;
  box-shadow: var(--s1);
}
.cinfo-panel h3 { font-size: 1.1rem; font-weight: 700; color: var(--tx); margin-bottom: 6px; }
.cinfo-panel > p { color: var(--mu); font-size: .9rem; margin-bottom: 28px; }
.cinfo-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid var(--bd);
}
.cinfo-item:first-of-type { border-top: none; }
.cinfo-ico {
  width: 40px; height: 40px;
  background: var(--g-lt);
  border-radius: var(--r2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.cinfo-item h4 { font-size: .85rem; font-weight: 700; color: var(--tx); margin-bottom: 2px; }
.cinfo-item p  { font-size: .875rem; color: var(--mu); }
.cinfo-item a  { color: var(--g); font-weight: 600; font-size: .875rem; text-decoration: none; }
.cinfo-item a:hover { text-decoration: underline; }

.form-panel {
  background: var(--white);
  border: 1px solid var(--bd);
  border-radius: var(--r4);
  padding: 38px;
  box-shadow: var(--s1);
}
.form-panel h3 { font-size: 1.2rem; font-weight: 700; color: var(--tx); margin-bottom: 6px; }
.form-panel > p { color: var(--mu); font-size: .9rem; margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg { margin-bottom: 20px; }
.fg label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: var(--tx2);
  margin-bottom: 7px;
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--bd2);
  border-radius: var(--r2);
  font-size: .9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--tx);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--g);
  box-shadow: 0 0 0 3px rgba(26,107,71,.1);
}
.fg textarea { resize: vertical; min-height: 126px; line-height: 1.65; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #07180d 0%, #0d2d1d 50%, #091f12 100%);
  color: rgba(255,255,255,.62);
  padding: 80px 28px 0;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 45% 35% at 90% 15%, rgba(201,168,76,.055) 0%, transparent 55%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 52px;
  padding-bottom: 56px;
  position: relative;
}
.footer-wm {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -.025em;
  margin-bottom: 14px;
}
.footer-wm .my { color: var(--gold); }
.footer-wm .al { color: #fff; }
.footer-tag {
  font-size: .875rem;
  line-height: 1.65;
  max-width: 255px;
  margin-bottom: 22px;
}
.footer-email {
  font-size: .83rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer-email:hover { color: var(--gold); }
.footer-col h5 {
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}
.footer-bottom a { color: rgba(255,255,255,.38); text-decoration: none; transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--gold); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
@media (max-width: 1024px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }

@media (max-width: 900px) {
  .split           { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout  { grid-template-columns: 1fr; }
  .feature-grid    { grid-template-columns: 1fr 1fr; }
  .bento           { grid-template-columns: 1fr 1fr; }
  .bento-span-2    { grid-column: span 2; }
  .hero-inner      { padding: 0 28px; }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 69px;
    left: 0; right: 0;
    background: rgba(247,242,233,.97);
    backdrop-filter: blur(24px);
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--bd2);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    flex-direction: column;
    gap: 4px;
    z-index: 200;
  }
  .nav-links.open  { display: flex; }
  .nav             { position: relative; }
  .nav-toggle      { display: flex; align-items: center; justify-content: center; }
  .nav-cta         { display: none !important; }
  .section         { padding: 64px 20px; }
  .feature-grid    { grid-template-columns: 1fr; }
  .bento           { grid-template-columns: 1fr; }
  .bento-span-2    { grid-column: span 1; }
  .form-row        { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom   { flex-direction: column; text-align: center; }
  .values-grid     { grid-template-columns: 1fr; }
  .hero            { padding: 80px 0 72px; }
  .hero-inner      { padding: 0 20px; }
  .hero-stats-bar  { display: none; }
  .doc-body        { padding: 44px 20px 72px; }
}
@media (max-width: 480px) {
  .hero-actions    { flex-direction: column; align-items: center; }
  .btn-store       { width: 210px; justify-content: center; }
  .card-grid       { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO LOGO GLOW
═══════════════════════════════════════════════════════════════ */
.hero-logo-glow {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
}
.hero-logo-glow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 40px rgba(201,168,76,.5)) drop-shadow(0 0 18px rgba(26,107,71,.4));
  animation: floatLogo 4s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ═══════════════════════════════════════════════════════════════
   ROLE CARDS — Who Uses MyAlMasjid
═══════════════════════════════════════════════════════════════ */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.role-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(26,107,71,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  background: #fff;
  transition: transform .25s, box-shadow .25s;
}
.role-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,.1); }
.role-card-hdr {
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.role-hdr-green { background: linear-gradient(135deg, #1A6B47, #22865a); }
.role-hdr-gold  { background: linear-gradient(135deg, #8a6620, #C9A84C); }
.role-hdr-navy  { background: linear-gradient(135deg, #1b2d45, #2d4a6e); }
.role-icon-box {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}
.role-card-hdr h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin: 0; }
.role-badge-pill {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 5px;
}
.role-card-body { padding: 22px 24px 26px; }
.role-card-body p { font-size: .875rem; color: var(--mu); line-height: 1.65; margin: 0 0 16px; }
.role-feat { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.role-feat li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  color: var(--tx);
  font-weight: 500;
}
.role-feat li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--g);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .role-grid { grid-template-columns: 1fr; max-width: 480px; }
}

/* ═══════════════════════════════════════════════════════════════
   RIGHTS GRID — Your Rights section
═══════════════════════════════════════════════════════════════ */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.right-item {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(26,107,71,.09);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  transition: box-shadow .2s, transform .2s;
}
.right-item:hover { box-shadow: 0 6px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.right-item-ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.right-ico-green { background: var(--g-lt); }
.right-ico-gold  { background: var(--gold-lt); }
.right-item strong { display: block; font-size: .875rem; font-weight: 700; color: var(--tx); margin-bottom: 3px; }
.right-item span   { font-size: .8rem; color: var(--mu); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   MODERN CONTACT CARD
═══════════════════════════════════════════════════════════════ */
.contact-modern {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(26,107,71,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  background: #fff;
}
.contact-modern-hdr {
  background: linear-gradient(135deg, #1A6B47, #22865a);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.contact-modern-hdr img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255,255,255,.3));
}
.contact-modern-hdr-txt h4 { color: #fff; font-size: 1rem; font-weight: 800; margin: 0 0 2px; }
.contact-modern-hdr-txt p  { color: rgba(255,255,255,.75); font-size: .8rem; margin: 0; }
.contact-modern-body { padding: 22px 28px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row-ico { font-size: 1.1rem; }
.contact-row-lbl {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--mu2);
  margin-bottom: 1px;
}
.contact-row-val a { color: var(--g); font-weight: 600; font-size: .88rem; text-decoration: none; }
.contact-row-val a:hover { text-decoration: underline; }
.contact-sla {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--g-lt);
  color: var(--g);
  font-size: .73rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 99px;
  margin-top: 18px;
}
.contact-modern-links { margin-top: 16px; font-size: .83rem; color: var(--mu); }
.contact-modern-links a { color: var(--g); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   REGISTRATION CARD
═══════════════════════════════════════════════════════════════ */
.reg-card {
  border-radius: 20px;
  background: linear-gradient(135deg, #1A6B47 0%, #22865a 100%);
  padding: 28px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0;
}
.reg-card-ico {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.18);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reg-card-ico img { width: 30px; height: 30px; filter: brightness(0) invert(1); }
.reg-card-txt strong { display: block; color: #fff; font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.reg-card-txt p { color: rgba(255,255,255,.85); font-size: .875rem; line-height: 1.65; margin: 0; }
@media (max-width: 600px) { .reg-card { flex-direction: column; } }
