/* ==========================================================================
   Masjid Bait Allah — Design System
   A single stylesheet for the whole site. Tokens first, then components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — a deep, calm green. Warm rather than clinical. */
  --brand-900: #072A20;
  --brand-800: #0B3B2E;
  --brand-700: #10513D;
  --brand-600: #14684E;
  --brand-500: #1A8263;
  --brand-400: #35A07E;
  --brand-300: #6FC0A4;
  --brand-200: #A9DCC9;
  --brand-100: #DCF1E8;
  --brand-50:  #EFF9F5;

  /* Accent — brass/gold, used sparingly for warmth and calls to action. */
  --gold-700: #8A6320;
  --gold-600: #A87B2C;
  --gold-500: #C79A43;
  --gold-400: #DFB767;
  --gold-200: #F2DFB4;
  --gold-100: #FBF2E1;
  /* Readable gold text on a gold-100 surface, per theme. */
  --gold-ink: #8A6320;

  /* Neutrals */
  --ink:      #0E1A15;
  --ink-soft: #2B3A34;
  --muted:    #5D706A;
  --muted-2:  #819590;
  --line:     #E3E9E6;
  --line-soft:#EFF3F1;
  --bg:       #F7F8F6;
  --bg-alt:   #FFFFFF;
  --card:     #FFFFFF;

  --danger:   #B4322B;

  /* Typography */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Traditional Arabic", serif;

  /* Spacing + shape */
  --container: 1160px;
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Elevation — soft, green-tinted shadows read warmer than grey ones. */
  --shadow-sm: 0 1px 2px rgba(7, 42, 32, .06), 0 1px 3px rgba(7, 42, 32, .04);
  --shadow:    0 4px 6px -1px rgba(7, 42, 32, .07), 0 10px 20px -8px rgba(7, 42, 32, .10);
  --shadow-lg: 0 12px 24px -8px rgba(7, 42, 32, .12), 0 32px 56px -24px rgba(7, 42, 32, .20);

  --ring: 0 0 0 3px rgba(26, 130, 99, .28);

  --header-h: 76px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:      #E7EFEB;
    --ink-soft: #C6D3CE;
    --muted:    #94A7A1;
    --muted-2:  #7A8D88;
    --line:     #223029;
    --line-soft:#1A2620;
    --bg:       #0A120F;
    --bg-alt:   #0E1915;
    --card:     #111E19;

    --brand-100: #122E25;
    --brand-50:  #0E241C;
    --gold-100:  #2A2113;
    --gold-200:  #3C2F1B;
    --gold-600:  #DFB767;
    --gold-ink:  #E6C88A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 4px 6px -1px rgba(0, 0, 0, .45), 0 10px 20px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, .5), 0 32px 56px -24px rgba(0, 0, 0, .6);
  }
}

:root[data-theme="dark"] {
  --ink:      #E7EFEB;
  --ink-soft: #C6D3CE;
  --muted:    #94A7A1;
  --muted-2:  #7A8D88;
  --line:     #223029;
  --line-soft:#1A2620;
  --bg:       #0A120F;
  --bg-alt:   #0E1915;
  --card:     #111E19;

  --brand-100: #122E25;
  --brand-50:  #0E241C;
  --gold-100:  #2A2113;
  --gold-200:  #3C2F1B;
  --gold-600:  #DFB767;
  --gold-ink:  #E6C88A;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 4px 6px -1px rgba(0, 0, 0, .45), 0 10px 20px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 12px 24px -8px rgba(0, 0, 0, .5), 0 32px 56px -24px rgba(0, 0, 0, .6);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-500); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand-200); color: var(--brand-900); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-700);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
.container-narrow { max-width: 780px; }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-sm { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-alt { background: var(--bg-alt); }
.section-brand {
  background: linear-gradient(160deg, var(--brand-800), var(--brand-700) 55%, var(--brand-600));
  color: #DCF1E8;
}
.section-brand h1, .section-brand h2, .section-brand h3 { color: #fff; }

.stack > * + * { margin-top: 1.1rem; }

.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Section headers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-brand .eyebrow { color: var(--gold-400); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-brand .section-head p { color: var(--brand-200); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease,
              border-color .18s ease, color .18s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--btn-fg);
}
.btn:active { transform: translateY(0); }

.btn-accent { --btn-bg: var(--gold-500); --btn-fg: #2A1F08; }
.btn-accent:hover { --btn-bg: var(--gold-400); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn-ghost:hover { border-color: var(--brand-400); --btn-fg: var(--brand-600); }

.btn-light { --btn-bg: #fff; --btn-fg: var(--brand-800); }
.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: none;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .1); }

.btn-sm { padding: .65rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .93rem;
  text-decoration: none;
  color: var(--brand-600);
}
.link-arrow::after {
  content: "→";
  transition: transform .18s ease;
}
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg-alt) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-text small {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  font-family: var(--font-display);
  font-size: .93rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: .55rem .8rem;
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }
.nav a[aria-current="page"] { color: var(--brand-600); background: var(--brand-50); }
.nav .btn { margin-left: .5rem; }
.nav .btn:hover { background: var(--gold-400); }

.header-actions { display: flex; align-items: center; gap: .5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.icon-btn:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-700); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* Mobile navigation */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: 1rem 20px 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 82% -8%, rgba(199, 154, 67, .20), transparent 62%),
    linear-gradient(155deg, var(--brand-900) 0%, var(--brand-800) 46%, var(--brand-700) 100%);
  color: var(--brand-100);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 460px;
  opacity: .085;
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 92%, transparent));
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero .hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--brand-200);
  max-width: 54ch;
  margin-bottom: 2rem;
}

.hero-bismillah {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--gold-400);
  margin-bottom: 1rem;
  direction: rtl;
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.25rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: .25rem;
}
.hero-meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 400px at 88% 0%, rgba(199, 154, 67, .18), transparent 60%),
    linear-gradient(150deg, var(--brand-900), var(--brand-700));
  color: var(--brand-100);
  padding-block: clamp(3rem, 7vw, 5rem);
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 400px;
  opacity: .08;
  z-index: -1;
}
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: var(--brand-200); max-width: 62ch; font-size: 1.08rem; }

.breadcrumb {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-size: .82rem;
  color: var(--brand-300);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--brand-200); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span[aria-hidden] { opacity: .5; }

/* --------------------------------------------------------------------------
   8. Prayer times
   -------------------------------------------------------------------------- */
.prayer-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink-soft);
}

.prayer-card-head {
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.prayer-card-head h2,
.prayer-card-head h3 { color: #fff; font-size: 1.15rem; margin: 0; }
.prayer-date { font-size: .82rem; color: rgba(255, 255, 255, .82); margin: .2rem 0 0; }

.prayer-next {
  text-align: right;
  background: rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .82rem;
  line-height: 1.35;
}
.prayer-next strong { display: block; font-family: var(--font-display); font-size: .95rem; }

.prayer-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prayer-table th,
.prayer-table td { padding: .8rem 1.5rem; text-align: right; }
.prayer-table th:first-child,
.prayer-table td:first-child { text-align: left; }
.prayer-table thead th {
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.prayer-table tbody tr + tr { border-top: 1px solid var(--line-soft); }
.prayer-table tbody td:first-child {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}
.prayer-table .prayer-arabic {
  font-family: var(--font-arabic);
  color: var(--muted);
  font-weight: 400;
  margin-left: .45rem;
  font-size: 1rem;
}
.prayer-table td.time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.prayer-table td.time-adhan { color: var(--muted); font-weight: 500; }
.prayer-table tbody tr.is-next {
  background: var(--brand-50);
}
.prayer-table tbody tr.is-next td:first-child { color: var(--brand-700); }
.prayer-table tbody tr.is-next td.time { color: var(--brand-700); }

.prayer-card-foot {
  padding: .9rem 1.5rem 1.2rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: .8rem;
  color: var(--muted);
}

.jumuah-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  padding: .9rem 1.5rem;
  background: var(--gold-100);
  border-top: 1px solid var(--gold-200);
  color: var(--gold-ink);
  font-size: .9rem;
}
.jumuah-banner strong {
  font-family: var(--font-display);
  color: var(--gold-ink);
}

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-200);
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .96rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1.1rem;
}
.card-icon svg { width: 25px; height: 25px; }
.card-icon.gold { background: var(--gold-100); color: var(--gold-600); }

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Feature panel — image/pattern on one side, text on the other */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split.reverse .split-media { order: 0; }
}

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  background:
    radial-gradient(520px 300px at 20% 10%, rgba(199, 154, 67, .28), transparent 60%),
    linear-gradient(145deg, var(--brand-700), var(--brand-500));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 300px;
  opacity: .14;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.split-media .media-note {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .75);
  font-size: .82rem;
  text-align: center;
  padding: 1.5rem;
  max-width: 28ch;
}

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: var(--card);
  padding: 1.6rem 1.5rem;
  text-align: center;
}
.stat dt {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .35rem;
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--brand-600);
  letter-spacing: -.03em;
}

/* --------------------------------------------------------------------------
   11. Announcements / events / timeline
   -------------------------------------------------------------------------- */
.event-list { display: grid; gap: 1rem; }

.event {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.event:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-2px); }

.event-date {
  display: grid;
  place-items: center;
  align-content: center;
  background: var(--brand-50);
  border-radius: 14px;
  padding: .6rem;
  text-align: center;
  line-height: 1.1;
}
.event-date .m {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.event-date .d {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-700);
}
.event-body h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.event-body p { font-size: .92rem; color: var(--muted); margin: 0; }
.event-when {
  font-size: .82rem;
  color: var(--brand-600);
  font-weight: 600;
  margin-top: .35rem;
}

@media (max-width: 560px) {
  .event { grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; padding: 1rem; }
  .event-date .d { font-size: 1.25rem; }
}

.schedule {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .95rem;
}
.schedule th, .schedule td { padding: .95rem 1.25rem; text-align: left; vertical-align: top; }
.schedule thead th {
  font-family: var(--font-display);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--brand-50);
}
.schedule tbody tr + tr { border-top: 1px solid var(--line-soft); }
.schedule tbody td:first-child { font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.timeline { position: relative; padding-left: 2.25rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-400), var(--line));
  border-radius: 2px;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.25rem;
  top: .45rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--card);
  border: 3px solid var(--brand-400);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item.is-done::before { background: var(--brand-500); border-color: var(--brand-500); }
.timeline-item.is-future::before { border-color: var(--line); }
.timeline-item h3 { font-size: 1.12rem; margin-bottom: .3rem; }
.timeline-item .when {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: .3rem;
}
.timeline-item p { color: var(--muted); font-size: .96rem; }

/* --------------------------------------------------------------------------
   12. Progress bar
   -------------------------------------------------------------------------- */
.progress-wrap { margin-top: 1.5rem; }
.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .6rem;
  font-size: .9rem;
}
.progress-labels strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-500), var(--gold-500));
  width: 0;
  transition: width 1.2s cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   13. Donation options
   -------------------------------------------------------------------------- */
.give-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.give-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.give-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.give-card.is-featured {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 1px var(--gold-400), var(--shadow);
}
.give-card h3 { margin: 0; font-size: 1.15rem; }
.give-card p { margin: 0; color: var(--muted); font-size: .94rem; flex: 1; }
.give-card .btn { align-self: flex-start; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-display);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--brand-50);
  color: var(--brand-600);
}
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-soon { background: var(--line-soft); color: var(--muted); }

/* --------------------------------------------------------------------------
   14. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.accordion details + details { border-top: 1px solid var(--line-soft); }
.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background-color .18s ease;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { background: var(--brand-50); }
.accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-500);
  line-height: 1;
  transition: transform .2s ease;
  flex: none;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .accordion-body { padding: 0 1.4rem 1.35rem; color: var(--muted); font-size: .96rem; }

/* --------------------------------------------------------------------------
   15. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.field { display: grid; gap: .4rem; }
.field label {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink);
}
.field .hint { font-size: .8rem; color: var(--muted); }

.input, .textarea, .select {
  width: 100%;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: var(--ring);
}
.textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: .84rem; color: var(--muted); }

.form-status {
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  font-size: .92rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-200); }
.form-status.is-error { background: #FDECEA; color: var(--danger); border: 1px solid #F3C6C2; }

.subscribe {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.subscribe .input { flex: 1 1 220px; }

/* --------------------------------------------------------------------------
   16. Contact / info blocks
   -------------------------------------------------------------------------- */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .info-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
}
.info-list .info-icon svg { width: 20px; height: 20px; }
.info-list h4 { margin: 0 0 .15rem; font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-list a, .info-list p { margin: 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.info-list a:hover { color: var(--brand-600); text-decoration: underline; }

.map-frame {
  border: 0;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: block;
  filter: saturate(.9);
}

/* --------------------------------------------------------------------------
   17. Callout / quote
   -------------------------------------------------------------------------- */
.callout {
  border-left: 4px solid var(--gold-500);
  background: var(--gold-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.3rem 1.6rem;
  color: var(--ink-soft);
}
.callout p { font-size: .98rem; }

.quote {
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}
.quote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -.01em;
}
.section-brand .quote blockquote { color: #fff; }
.quote .arabic {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3vw, 2rem);
  direction: rtl;
  color: var(--gold-500);
  margin-bottom: 1rem;
  line-height: 1.9;
}
.section-brand .quote .arabic { color: var(--gold-400); }
.quote cite { font-style: normal; font-size: .88rem; color: var(--muted); letter-spacing: .06em; }
.section-brand .quote cite { color: var(--brand-200); }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  background:
    radial-gradient(600px 320px at 85% 10%, rgba(199, 154, 67, .25), transparent 60%),
    linear-gradient(140deg, var(--brand-800), var(--brand-600));
  color: var(--brand-100);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 320px;
  opacity: .1;
  z-index: -1;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: var(--brand-200); margin: 0; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 820px) {
  .cta-band { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--brand-900);
  color: var(--brand-200);
  padding-block: clamp(3rem, 6vw, 4.5rem) 0;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; } }

.footer-brand .brand { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-text small { color: var(--brand-300); }
.footer-brand p { font-size: .92rem; color: var(--brand-200); max-width: 38ch; }

.footer-col h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-col a {
  color: var(--brand-200);
  text-decoration: none;
  font-size: .93rem;
  transition: color .16s ease;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { font-size: .93rem; color: var(--brand-200); }

.social { display: flex; gap: .55rem; margin-top: 1.25rem; }
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--brand-200);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.social a:hover { background: var(--gold-500); color: #2A1F08; border-color: var(--gold-500); }
.social svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: .84rem;
  color: var(--brand-300);
}
.footer-bottom a { color: var(--brand-300); }

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.page { display: flex; flex-direction: column; min-height: 100vh; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
