/* Sadia Faith Foundation — Design System
   Palette drawn from the mosque construction imagery: warm brick, deep Islamic
   green, ivory cream, muted gold. Type: Cormorant for display, Inter for UI. */

:root {
  /* Colors */
  --c-green-900: #0f2a1d;
  --c-green-800: #15402b;
  --c-green-700: #1d5639;
  --c-green-600: #2a6b48;
  --c-green-500: #3f8560;
  --c-green-100: #e6efe9;

  --c-terracotta-900: #6b2e1a;
  --c-terracotta-700: #9a4a2b;
  --c-terracotta-500: #c46a3d;
  --c-terracotta-300: #e2a175;
  --c-terracotta-100: #f5e3d4;

  --c-gold: #b8893b;
  --c-gold-soft: #d9b26a;

  --c-cream: #faf6ef;
  --c-cream-2: #f3ecdf;
  --c-ink: #1a1a17;
  --c-ink-60: #4a4a45;
  --c-ink-40: #7a786f;
  --c-line: #e8e1d3;
  --c-white: #ffffff;

  /* Type */
  --f-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-arabic: "Amiri", "Scheherazade New", serif;

  /* Radius + shadow */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(20, 30, 20, 0.06), 0 2px 6px rgba(20, 30, 20, 0.04);
  --sh-md: 0 8px 24px rgba(20, 30, 20, 0.08);
  --sh-lg: 0 24px 60px rgba(20, 30, 20, 0.14);

  /* Spacing rhythm */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
}

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

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Type scale */
.display-xl { font-family: var(--f-display); font-weight: 500; font-size: clamp(56px, 8vw, 108px); line-height: 0.98; letter-spacing: -0.02em; }
.display-lg { font-family: var(--f-display); font-weight: 500; font-size: clamp(44px, 5.5vw, 80px); line-height: 1.02; letter-spacing: -0.015em; }
.display-md { font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -0.01em; }
.display-sm { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.005em; }

.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-terracotta-700);
}
.eyebrow.on-dark { color: var(--c-gold-soft); }

.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--c-ink-60);
  font-weight: 400;
}

em.arabic, .arabic {
  font-family: var(--f-arabic);
  font-style: normal;
  font-weight: 400;
}

/* Container */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: all .22s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--c-green-700); color: var(--c-cream); }
.btn-primary:hover { background: var(--c-green-800); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-accent { background: var(--c-terracotta-700); color: var(--c-cream); }
.btn-accent:hover { background: var(--c-terracotta-900); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-ink); color: var(--c-cream); }
.btn-ghost.on-dark { color: var(--c-cream); border-color: rgba(250, 246, 239, 0.4); }
.btn-ghost.on-dark:hover { background: var(--c-cream); color: var(--c-ink); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* Arrow icon helper */
.btn .arr { transition: transform .22s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* Link styles */
a { color: inherit; }
.link-underline { color: var(--c-green-700); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.link-underline:hover { color: var(--c-terracotta-700); }

/* Utility */
.muted { color: var(--c-ink-60); }
.center { text-align: center; }
.divider { height: 1px; background: var(--c-line); border: 0; margin: 0; }

/* Decorative gold rule (small ornamental divider) */
.rule-orn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--c-gold);
}
.rule-orn::before, .rule-orn::after {
  content: ""; height: 1px; width: 48px; background: currentColor; opacity: 0.5;
}
.rule-orn svg { width: 14px; height: 14px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.site-header.on-hero {
  background: rgba(15, 42, 29, 0.35);
  border-bottom-color: rgba(255,255,255,0.12);
  color: var(--c-cream);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%;
  overflow: hidden;
  background: var(--c-green-900);
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(217, 178, 106, 0.3), 0 2px 8px rgba(15, 42, 29, 0.15);
}
.brand-mark svg { width: 100%; height: 100%; display: block; padding: 6px; box-sizing: border-box; }
.brand-mark .brand-vid {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.on-hero .brand-mark { box-shadow: 0 0 0 1px rgba(250,246,239,0.25), 0 4px 12px rgba(0,0,0,0.25); }
.brand-mark.on-dark, .site-footer .brand-mark { background: var(--c-green-900); box-shadow: 0 0 0 1px rgba(217, 178, 106, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3); }
.brand-name { line-height: 1.1; }
.brand-name .top { font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: 0.01em; }
.brand-name .sub { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-ink-40); font-weight: 600; }
.on-hero .brand-name .sub { color: rgba(250,246,239,0.7); }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: inherit;
  padding: 10px 16px; border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: rgba(0,0,0,0.05); }
.on-hero .nav-links a:hover { background: rgba(255,255,255,0.1); }
.nav-links a.active { color: var(--c-terracotta-700); }
.on-hero .nav-links a.active { color: var(--c-gold-soft); }
.nav-cta { margin-left: 12px; }

@media (max-width: 880px) {
  .nav-links a:not(.nav-cta-wrap) { display: none; }
  .brand-name .sub { display: none; }
}

/* Sticky donate pill (fixed bottom-right, appears after scroll) */
.sticky-donate {
  position: fixed; bottom: 20px; right: 20px; z-index: 60;
  opacity: 0; transform: translateY(10px) scale(0.98); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.sticky-donate.visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

/* Footer */
.site-footer {
  background: var(--c-green-900); color: var(--c-cream);
  padding: 72px 0 36px; margin-top: 96px;
}
.site-footer .grid-4 {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px;
}
@media (max-width: 800px) { .site-footer .grid-4 { grid-template-columns: 1fr 1fr; gap: 40px; } }
.site-footer h5 { font-family: var(--f-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-gold-soft); margin: 0 0 16px; font-weight: 600; }
.site-footer a { color: rgba(250,246,239,0.8); text-decoration: none; display: block; padding: 6px 0; font-size: 14.5px; }
.site-footer a:hover { color: var(--c-gold-soft); }
.site-footer .fine {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(250,246,239,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: rgba(250,246,239,0.55);
}
.footer-brand-copy { font-size: 14.5px; line-height: 1.6; color: rgba(250,246,239,0.7); max-width: 34ch; }

/* Cards */
.card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--c-line);
  overflow: hidden;
}

/* Section padding */
.section { padding: 96px 0; }
.section-lg { padding: 128px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section-lg { padding: 80px 0; } }

/* Subtle reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Pattern — geometric Islamic-inspired, very subtle */
.pattern-bg {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 24px 24px;
}

/* Image treatment */
.img-warm { filter: saturate(1.05) contrast(1.02); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-60); }
.field input, .field textarea, .field select {
  font-family: var(--f-body); font-size: 15px; color: var(--c-ink);
  padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--c-line); background: var(--c-white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--c-green-700);
  box-shadow: 0 0 0 3px rgba(29, 86, 57, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }

/* Tag / badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: var(--c-terracotta-100); color: var(--c-terracotta-900);
}
.badge.verified { background: var(--c-green-100); color: var(--c-green-800); }

/* Progress bar */
.progress-track { height: 10px; background: var(--c-cream-2); border-radius: var(--r-pill); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--c-green-700), var(--c-green-500)); border-radius: var(--r-pill); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* Stat */
.stat-num { font-family: var(--f-display); font-size: clamp(48px, 6vw, 84px); line-height: 1; color: var(--c-green-800); font-weight: 500; letter-spacing: -0.01em; }
.stat-label { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-ink-60); font-weight: 600; margin-top: 8px; }

/* Marquee */
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* Quote */
.pull-quote {
  font-family: var(--f-display); font-weight: 400; font-style: italic;
  font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; color: var(--c-green-900);
}
