/* =========================================================================
   Arbaeen Radiant — bright, warm design system
   Ivory light, emerald green, desert gold. Cormorant Garamond + Inter + Amiri.
   ========================================================================= */

:root {
  --bg: #FDFBF6;
  --bg-sand: #F6EFE1;
  --bg-card: #FFFFFF;
  --ink: #26200F;
  --ink-soft: #5C523D;
  --green: #0E6B4A;
  --green-dark: #0A5238;
  --green-tint: #E4F1EA;
  --gold: #C08A2D;
  --gold-text: #8A6215;
  --gold-tint: #F8EED9;
  --border: #E9DFC9;
  --danger: #B3261E;
  --ring: #0E6B4A;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", serif;

  --radius: 16px;
  --radius-sm: 10px;
  /* Light gradient shadows: warm gold-tinted, layered soft light. */
  --shadow-sm: 0 1px 2px rgba(140, 98, 21, 0.05), 0 4px 14px rgba(140, 98, 21, 0.08);
  --shadow-md: 0 2px 6px rgba(140, 98, 21, 0.07), 0 18px 44px -10px rgba(140, 98, 21, 0.2);
  --shadow-glow-gold: 0 10px 34px -8px rgba(192, 138, 45, 0.45);
  --shadow-glow-green: 0 10px 34px -8px rgba(14, 107, 74, 0.4);
  --grad-green: linear-gradient(135deg, #12855C 0%, #0A5238 100%);
  --grad-gold: linear-gradient(135deg, #D9A441 0%, #B37E1F 100%);
  --grad-sunrise: linear-gradient(120deg, #F8EED9 0%, #FDFBF6 45%, #E4F1EA 100%);
  --container: 72rem;
  --container-text: 46rem;
}

/* ---- Reset & base ---------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(90rem 40rem at 110% -5%, rgba(192, 138, 45, 0.07), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1em; }

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--green);
  color: #fff;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-sm);
  transition: top 200ms ease-out;
}
.skip-link:focus { top: 1rem; color: #fff; }

.ar {
  font-family: var(--font-arabic);
  font-size: 1.15em;
  direction: rtl;
}

/* ---- Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.brand-logo { height: 44px; width: auto; }
@media (max-width: 480px) { .brand-logo { height: 36px; } }

.primary-nav { display: flex; align-items: center; gap: 1rem; }

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0; padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: background 180ms ease-out, color 180ms ease-out;
}
.nav-list a:hover { background: var(--green-tint); color: var(--green-dark); }
.nav-list a[aria-current="page"] { background: var(--green-tint); color: var(--green-dark); font-weight: 600; }

/* Dropdown submenus */
.nav-list li { position: relative; }
.nav-list .menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-left: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-list .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 13.5rem;
  margin: 0.25rem 0 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 180ms ease-out, transform 180ms ease-out, visibility 180ms;
  z-index: 120;
}
.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-list .sub-menu a {
  display: block;
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 1.15rem;
  background: var(--gold);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 180ms ease-out, transform 180ms ease-out;
}
.nav-cta:hover { background: #A9781F; color: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 44px; min-height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle-bars { display: block; width: 20px; }
.nav-toggle-bars span {
  display: block; height: 2px; margin: 4px 0;
  background: var(--ink); border-radius: 2px;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { width: 100%; border-radius: var(--radius-sm); }
  .nav-cta { justify-content: center; }
  /* Submenus render inline (indented) on mobile. */
  .nav-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 1rem;
    margin: 0;
  }
}

/* ---- Layout primitives ------------------------------------------------ */

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-text { max-width: var(--container-text); margin: 0 auto; padding: 0 1.25rem; }

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.sand {
  background:
    radial-gradient(70rem 30rem at 85% -10%, rgba(192, 138, 45, 0.14), transparent 60%),
    radial-gradient(50rem 26rem at 0% 110%, rgba(14, 107, 74, 0.1), transparent 60%),
    var(--bg-sand);
}
.section.green {
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(229, 200, 136, 0.16), transparent 55%),
    radial-gradient(46rem 26rem at 0% 100%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(160deg, #0D6144 0%, #0A5238 55%, #084430 100%);
  color: #F2EFE6;
}
.section.green h2, .section.green h3 { color: #fff; }
.section.green a { color: #BFE3D2; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  background: linear-gradient(120deg, var(--gold-tint), rgba(248, 238, 217, 0.35));
  border: 1px solid rgba(192, 138, 45, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 14px -4px rgba(192, 138, 45, 0.28);
}
.section.green .eyebrow {
  color: #F1D9A7;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 200, 136, 0.35);
  box-shadow: none;
}
.hero .eyebrow {
  color: #FFF3D8;
  background: rgba(20, 16, 5, 0.35);
  border-color: rgba(241, 217, 167, 0.4);
  backdrop-filter: blur(6px);
  box-shadow: none;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 42rem; }
.section.green .lede { color: #D8E6DE; }

/* ---- Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--grad-green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow-green); filter: brightness(1.08); }

.btn-gold { background: var(--grad-gold); color: #fff; box-shadow: var(--shadow-sm); }
.btn-gold:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-glow-gold); filter: brightness(1.08); }

.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green-tint); color: var(--green-dark); }

.section.green .btn-ghost { border-color: #BFE3D2; color: #EAF5EF; }
.section.green .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(88svh, 46rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media { position: absolute; inset: 0; z-index: -1; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  /* Darker wash so hero text stays legible over busy photography. */
  background:
    linear-gradient(180deg, rgba(15, 12, 4, 0.45) 0%, rgba(15, 12, 4, 0.3) 40%, rgba(15, 12, 4, 0.82) 100%);
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem clamp(2.5rem, 6vw, 4.5rem);
}
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45); }
.hero .lede { color: rgba(255, 255, 255, 0.95); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5); }
.hero .eyebrow { color: #F1D9A7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.5rem; }

/* Page hero (interior pages): bright sand banner with side image */
.page-hero {
  background:
    radial-gradient(56rem 24rem at 90% 0%, rgba(192, 138, 45, 0.16), transparent 60%),
    radial-gradient(40rem 20rem at 5% 100%, rgba(14, 107, 74, 0.1), transparent 60%),
    var(--grad-sunrise);
  border-bottom: 1px solid var(--border);
}
.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.page-hero .hero-media {
  position: relative;
  inset: auto;
  z-index: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.page-hero .hero-media::after { background: linear-gradient(180deg, rgba(20,16,5,0) 55%, rgba(20,16,5,0.25) 100%); }
.page-hero .hero-media img { position: absolute; inset: 0; }
@media (max-width: 800px) {
  .page-hero-inner { grid-template-columns: 1fr; }
}

/* ---- Cards & grids ------------------------------------------------------ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 0;
}

.card {
  position: relative;
  background: linear-gradient(170deg, #FFFFFF 0%, #FEFCF7 70%, #FBF6EA 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--green) 100%);
  opacity: 0;
  transition: opacity 220ms ease-out;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover, a.card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), var(--shadow-glow-gold);
  border-color: rgba(192, 138, 45, 0.4);
}
a.card:hover::before, a.card:focus-visible::before { opacity: 1; }
.card h3 { margin-top: 0.3rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .card-link { display: inline-block; margin-top: 0.9rem; font-weight: 600; color: var(--green); }

.card-icon {
  width: 46px; height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #EAF5EF 0%, #D7EBE0 100%);
  color: var(--green);
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -4px rgba(14, 107, 74, 0.25);
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.gold {
  background: linear-gradient(135deg, #F8EED9 0%, #F0DFB8 100%);
  color: var(--gold-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 12px -4px rgba(192, 138, 45, 0.3);
}

.num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

/* ---- Fact strip ---------------------------------------------------------- */

.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}
.fact-strip article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.fact-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  background: linear-gradient(120deg, var(--green) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.fact-strip span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---- Guide content -------------------------------------------------------- */

.guide-section { margin: 0 0 2.75rem; }
.guide-section:last-child { margin-bottom: 0; }
.guide-section h2 {
  position: relative;
  padding-bottom: 0.5rem;
}
.guide-section h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(192, 138, 45, 0.25) 35%, transparent 100%);
  border-radius: 2px;
}

.checklist { list-style: none; margin: 1rem 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0.35rem 0 0.35rem 2rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72rem;
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%230E6B4A'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-7 7a1 1 0 01-1.4 0l-3-3a1 1 0 111.4-1.4L9 11.6l6.3-6.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.checklist.avoid li::before {
  background: #F9E2E0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23B3261E'%3E%3Cpath d='M6.3 6.3a1 1 0 011.4 0L10 8.6l2.3-2.3a1 1 0 111.4 1.4L11.4 10l2.3 2.3a1 1 0 01-1.4 1.4L10 11.4l-2.3 2.3a1 1 0 01-1.4-1.4L8.6 10 6.3 7.7a1 1 0 010-1.4z'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}

.callout {
  background: var(--gold-tint);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0; color: #5F4A1B; }

.next-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(120deg, #EAF5EF 0%, #F1F7EC 55%, #F8EED9 100%);
  border: 1px solid #CBE2D6;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 600;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}
.next-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), var(--shadow-glow-green); }
.next-link p { margin: 0; }
.next-link span { display: block; font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); }

/* ---- Quote band ------------------------------------------------------------ */

.quote-band {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
  font-style: italic;
}
.quote-band blockquote::before { content: "\201C"; color: var(--gold); font-size: 1.4em; line-height: 0; vertical-align: -0.3em; margin-right: 0.1em; }
.quote-band cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.section.green .quote-band cite { color: #E5C888; }

/* ---- Countdown ------------------------------------------------------------- */

.countdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin: 1.5rem 0 0.75rem;
}
.countdown .unit {
  min-width: 5.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.9rem 0.6rem;
  text-align: center;
}
.countdown .value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(160deg, var(--green) 40%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.countdown .unit {
  background: linear-gradient(170deg, #FFFFFF 0%, #FBF6EA 100%);
}
.countdown .label { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.countdown-note { text-align: center; font-size: 0.85rem; color: var(--ink-soft); }

/* ---- FAQ --------------------------------------------------------------------- */

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 3rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 200ms ease-out;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > p, .faq details > div { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); margin: 0; }

/* ---- Forms --------------------------------------------------------------------- */

.wia-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 40rem;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
.form-row .req { color: var(--danger); }
.form-row .hint { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.2rem; }

.wia-form input[type="text"],
.wia-form input[type="email"],
.wia-form input[type="tel"],
.wia-form select,
.wia-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.wia-form textarea { min-height: 8rem; resize: vertical; }
.wia-form input:focus, .wia-form select:focus, .wia-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 107, 74, 0.18);
}

.hp-field { position: absolute !important; left: -9999px !important; }

.form-notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.form-notice.success { background: var(--green-tint); color: var(--green-dark); border: 1px solid #BCDCCB; }
.form-notice.error { background: #F9E2E0; color: var(--danger); border: 1px solid #EFC4C0; }

/* ---- Camp finder table ------------------------------------------------------------ */

.finder-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.finder-controls input[type="search"] {
  flex: 1 1 16rem;
  min-height: 48px;
  padding: 0.65rem 1rem;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
}
.finder-controls input[type="search"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(14, 107, 74, 0.18);
}
.finder-count { font-size: 0.85rem; color: var(--ink-soft); }

.finder-results { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.finder-results table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.finder-results th, .finder-results td { text-align: left; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); }
.finder-results th { background: var(--bg-sand); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.finder-results tr:last-child td { border-bottom: none; }
.finder-results td.pole { font-variant-numeric: tabular-nums; color: var(--gold-text); font-weight: 600; }
.finder-empty { padding: 1.5rem; text-align: center; color: var(--ink-soft); }

/* ---- The Mawakib Line ---------------------------------------------------------------
   A real vertical line, faded at top and bottom, with the names of the
   mawakib rising as you scroll. Positioned by real pole number.
------------------------------------------------------------------------------------- */

.mline-wrap { position: relative; }

.mline-track {
  position: relative;
  padding: 4rem 0;
  /* Fade the whole line experience in from the top and out at the bottom. */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9rem, #000 calc(100% - 9rem), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9rem, #000 calc(100% - 9rem), transparent 100%);
}

/* The line itself */
.mline-track::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold) 0%, var(--green) 50%, var(--gold) 100%);
  border-radius: 3px;
  opacity: 0.75;
  box-shadow: 0 0 18px rgba(192, 138, 45, 0.45);
}

.mline-item {
  position: relative;
  width: calc(50% - 2.6rem);
  margin: 0.45rem 0;
  padding: 0.55rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.mline-item.is-visible { opacity: 1; transform: translateY(0); }

.mline-item:nth-child(odd) { margin-left: auto; text-align: left; }
.mline-item:nth-child(even) { margin-right: auto; text-align: right; }

/* Dot connecting the card to the line */
.mline-item::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E8C170, var(--gold));
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px rgba(192, 138, 45, 0.6);
  transform: translateY(-50%);
}
.mline-item:nth-child(odd)::before { left: -2.6rem; margin-left: -5px; }
.mline-item:nth-child(even)::before { right: -2.6rem; margin-right: -5px; }

.mline-name { display: block; font-weight: 600; font-size: 0.95rem; }
.mline-name-ar { display: block; font-family: var(--font-arabic); font-size: 1.05rem; color: var(--ink-soft); }
.mline-pole {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-text);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-variant-numeric: tabular-nums;
}

/* Kilometre milestone chip that sits on the line */
.mline-km {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 2.2rem auto;
  padding: 0.35rem 1.1rem;
  background: var(--grad-green);
  box-shadow: var(--shadow-glow-green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-variant-numeric: tabular-nums;
}

/* Sticky progress readout */
.mline-progress {
  position: sticky;
  top: 4.5rem;
  z-index: 50;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.45rem 1.2rem;
  background: linear-gradient(120deg, rgba(253, 251, 246, 0.96), rgba(248, 238, 217, 0.92));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(192, 138, 45, 0.35);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
  box-shadow: var(--shadow-sm), 0 6px 20px -6px rgba(192, 138, 45, 0.35);
  font-variant-numeric: tabular-nums;
}

.mline-loadmore { display: block; margin: 2rem auto 0; }

@media (max-width: 700px) {
  .mline-track::before { left: 1.1rem; }
  .mline-track {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6rem, #000 calc(100% - 6rem), transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 6rem, #000 calc(100% - 6rem), transparent 100%);
  }
  .mline-item,
  .mline-item:nth-child(odd),
  .mline-item:nth-child(even) {
    width: calc(100% - 3.2rem);
    margin-left: 3.2rem;
    margin-right: 0;
    text-align: left;
  }
  .mline-item:nth-child(odd)::before,
  .mline-item:nth-child(even)::before {
    left: -2.1rem; right: auto; margin: 0;
  }
  .mline-km { margin-left: 3.2rem; }
}

/* ---- Split feature (image + text) ---------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.split .hero-media {
  position: relative;
  inset: auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  margin: 0;
}
.split .hero-media img { position: absolute; inset: 0; }
.split .hero-media::after { background: linear-gradient(180deg, rgba(20,16,5,0) 60%, rgba(20,16,5,0.22) 100%); }

/* ---- Donate tiers ---------------------------------------------------------------------- */

.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tier.featured { border: 2px solid var(--gold); box-shadow: var(--shadow-md), var(--shadow-glow-gold); background: linear-gradient(170deg, #FFFFFF 0%, #FDF7EA 100%); }
.tier .amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--green) 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tier p { color: var(--ink-soft); flex: 1; }

/* ---- Reveal-on-scroll (generic) ---------------------------------------------------------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease-out, transform 600ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---- Footer -------------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  background: #17140C;
  color: #CFC8B8;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(15rem, 1.2fr) 2fr;
  gap: clamp(1.5rem, 5vw, 4rem);
}
.footer-title { font-family: var(--font-display); font-size: 1.5rem; color: #fff; margin-bottom: 0.5rem; }
.footer-logo { width: 72px; height: 72px; margin-bottom: 0.75rem; filter: invert(0.85) brightness(1.4); }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1.5rem; }
.footer-heading { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #E5C888; margin-bottom: 0.6rem; }
.footer-col a { display: block; color: #CFC8B8; text-decoration: none; padding: 0.28rem 0; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.83rem;
}
.footer-base p { margin: 0; }
.footer-base a { color: #E5C888; }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---- Article / blog fallback -------------------------------------------------------------- */

.article-body { max-width: var(--container-text); margin: 0 auto; padding: 2rem 1.25rem; }
.article-body img { border-radius: var(--radius); }

/* ---- Social icons ------------------------------------------------------------------------------ */

.nav-social { display: inline-flex; align-items: center; gap: 0.15rem; }
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; min-height: 44px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 180ms ease-out, color 180ms ease-out;
}
.nav-social a:hover { background: var(--green-tint); color: var(--green-dark); }

.footer-social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #CFC8B8;
  transition: background 180ms ease-out, color 180ms ease-out;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Instagram feed grid (Smash Balloon) — keep it on-theme. */
.ig-feed { text-align: left; }
.ig-feed #sb_instagram { padding-bottom: 0 !important; }
.ig-feed #sb_instagram .sbi_photo img { border-radius: 10px; }

@media (max-width: 900px) {
  .nav-social { justify-content: center; }
}

/* ---- Live from Karbala ------------------------------------------------------------------------ */

.live-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #E03131;
  margin-right: 0.45em;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(224, 49, 49, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0); }
}

.nav-list a.nav-live,
.nav-list li.nav-live > a { color: #B3261E; font-weight: 700; }
.nav-list a.nav-live:hover,
.nav-list li.nav-live > a:hover { background: #F9E2E0; color: #8E1E17; }
/* WP menus place the class on the <li>; draw the dot via ::before. */
.nav-list li.nav-live > a::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #E03131;
  margin-right: 0.45em;
  box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.55);
  animation: live-pulse 1.8s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .nav-list li.nav-live > a::before { animation: none; }
}

/* Dark cinema stage wrapping the player at the very top of the page. */
.live-stage {
  background: linear-gradient(180deg, #14110A 0%, #1C180E 100%);
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 1.25rem;
}

.live-frame {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 60px -12px rgba(0, 0, 0, 0.65);
  aspect-ratio: 16 / 9;
  max-width: 68rem;
  margin: 0 auto;
}
.live-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.live-error {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #EFE9DA;
  background: linear-gradient(180deg, #17140C, #211C10);
}
/* The overlay must stay gone while the stream plays: make [hidden] win. */
.live-error[hidden] { display: none !important; }

.live-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  max-width: 68rem;
  margin: 0.9rem auto 0;
  color: #CFC8B8;
  font-size: 0.9rem;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(224, 49, 49, 0.15);
  border: 1px solid rgba(224, 49, 49, 0.5);
  color: #FF8A80;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
}
.live-title { color: #F2EFE6; font-weight: 600; }
.live-source { margin-left: auto; font-size: 0.8rem; }
@media (max-width: 600px) { .live-source { margin-left: 0; } }
.live-error code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  word-break: break-all;
}

@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}

/* ---- Reduced motion -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mline-item, .reveal { opacity: 1; transform: none; }
}
