/* =========================================================
   Hubbu Rasool Conference — Stylesheet
   Plain CSS, mobile-first, no build tooling required.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Page transitions ---------- */
/* Native smooth cross-fade between page loads (Chrome/Edge/Opera 126+).
   Unsupported browsers simply ignore this at-rule — safe no-op. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: .32s;
  animation-timing-function: ease;
}

/* Fallback fade-in for browsers without native view transitions (Safari,
   Firefox) — pairs with the JS fade-out in main.js. Pure CSS, so it can
   never leave the page stuck invisible even if JS fails to run. Gated so
   it never runs alongside — and double-animates — the native transition. */
@supports not selector(::view-transition-old(root)) {
  body { animation: page-fade-in .3s ease both; }
}
@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
html.page-leaving body {
  animation: none;
  opacity: 0;
  transition: opacity .22s ease;
}

:root {
  --color-primary: #0b5e3c;
  --color-primary-dark: #063d27;
  --color-primary-light: #e8f3ee;
  --color-gold: #b8901f;
  --color-gold-light: #f6ecc9;
  --color-text: #1f2421;
  --color-text-light: #5b6b63;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5ef;
  --color-border: #e3e1d8;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --container-width: 1180px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(11, 94, 60, 0.10);
  --shadow-sm: 0 4px 14px rgba(11, 94, 60, 0.08);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.25; font-weight: 600; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--color-primary); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
main:focus { outline: none; }

/* ---------- Section rhythm ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-dark { background: var(--color-primary-dark); color: #fff; position: relative; overflow: hidden; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(246,236,201,.9) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 28% 68%, rgba(246,236,201,.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 45% 15%, rgba(246,236,201,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 55%, rgba(246,236,201,.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 75% 30%, rgba(246,236,201,.85) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 65%, rgba(246,236,201,.65) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 95% 10%, rgba(246,236,201,.75) 50%, transparent 51%),
    radial-gradient(2px 2px at 18% 85%, rgba(246,236,201,.6) 50%, transparent 51%);
  animation: twinkle 3.6s ease-in-out infinite alternate;
}
.section-dark > .container { position: relative; z-index: 1; }
@keyframes twinkle { from { opacity: .35; } to { opacity: 1; } }
.section-header { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; color: var(--color-gold); margin-bottom: 10px;
  user-select: none; cursor: default;
}
.section-header h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 14px; }
.section-header p { color: var(--color-text-light); font-size: 1.05rem; }
.section-dark .section-header p { color: rgba(255,255,255,.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-gold); color: #1f2421; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #a67f1b; }
.btn-outline { border: 2px solid rgba(255,255,255,.75); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-solid { background: var(--color-primary); color: #fff; }
.btn-solid:hover { background: var(--color-primary-dark); }
.btn-ghost { border: 2px solid var(--color-primary); color: var(--color-primary); }
.btn-ghost:hover { background: var(--color-primary-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden; /* hard clip — nothing inside can ever break out of the bar */
}
/* Blur lives on a pseudo-element, not .site-header itself, so backdrop-filter
   doesn't create a new containing block for the fixed-position mobile nav. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; }
.header-inner .logo { height: 100%; }
.logo-img {
  height: 56px; max-height: 56px; width: auto; max-width: 200px;
  object-fit: contain; display: block;
}

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  color: var(--color-text); transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.main-nav a.active { background: var(--color-primary); color: #fff; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-live {
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  background: var(--color-primary); color: #fff; display: inline-flex; align-items: center; gap: 8px;
}
.btn-live .dot { width: 8px; height: 8px; border-radius: 50%; background: #9ee8c4; }
.btn-live.is-live { background: #c22b2b; }
.btn-live.is-live .dot { background: #fff; animation: pulse-dot 1.4s infinite; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 10px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; margin: 0 auto; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: clamp(480px, 78svh, 720px); display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,61,39,.55) 0%, rgba(6,61,39,.55) 30%, rgba(4,30,19,.92) 100%);
}
/* Longhand top/bottom only — .hero-content also carries .container, and a
   full `padding` shorthand here would zero out its 20px horizontal gutter. */
.hero-content { padding-top: 48px; padding-bottom: 48px; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px;
  user-select: none; cursor: default;
}
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); margin-bottom: 10px; }
.hero-tagline { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 620px; margin-bottom: 26px; color: rgba(255,255,255,.92); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 34px; font-weight: 500; }
.hero-meta div { display: flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 18px; height: 18px; color: var(--color-gold-light); flex-shrink: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75);
}
.scroll-cue .chevron { width: 16px; height: 16px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); animation: bob 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(45deg); } 50% { transform: translateY(6px) rotate(45deg); } }

/* ---------- Meaning of Hubbu Rasool ---------- */
.meaning-section { padding: 80px 0; background: var(--color-primary-dark); color: #fff; position: relative; overflow: hidden; }
.meaning-section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23b8901f' stroke-width='1' stroke-opacity='0.16'%3E%3Crect x='22' y='22' width='40' height='40'/%3E%3Crect x='22' y='22' width='40' height='40' transform='rotate(45 42 42)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  animation: islamic-pattern-drift 70s linear infinite;
}
.meaning-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.meaning-mark {
  width: 54px; height: 54px; margin: 0 auto 20px; color: var(--color-gold);
  animation: meaning-glow 3.2s ease-in-out infinite;
}
.meaning-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 8px; }
.meaning-title span { display: block; font-size: 1rem; font-weight: 500; color: var(--color-gold-light); margin-top: 6px; }
.meaning-text { font-size: 1.08rem; color: rgba(255,255,255,.88); margin-top: 22px; }
.meaning-text + .meaning-text { margin-top: 16px; }

@keyframes islamic-pattern-drift {
  from { background-position: 0 0; }
  to { background-position: 168px 168px; }
}
@keyframes meaning-glow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(184,144,31,0)); transform: scale(1) rotate(0deg); }
  50% { filter: drop-shadow(0 0 12px rgba(184,144,31,.7)); transform: scale(1.08) rotate(-4deg); }
}

/* ---------- Welcome ---------- */
.welcome-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.welcome-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.welcome-text p { color: var(--color-text-light); margin-bottom: 16px; font-size: 1.03rem; }
.welcome-text p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--color-primary-light);
  color: var(--color-primary); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--color-text-light); font-size: .96rem; }

/* ---------- Stats / Legacy ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.stat .stat-num {
  font-family: var(--font-heading); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--color-gold); font-weight: 700;
  line-height: 1.15; min-height: 2.3em; display: flex; align-items: flex-end; justify-content: center;
}
.stat .stat-label { color: rgba(255,255,255,.85); font-weight: 500; margin-top: 6px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--color-border); }
.timeline-item { position: relative; padding: 0 0 44px 60px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: 11px; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--color-gold); border: 4px solid var(--color-bg-alt); box-shadow: 0 0 0 2px var(--color-gold);
}
.timeline-year { display: inline-block; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); font-size: 1.3rem; margin-bottom: 6px; }
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.timeline-item p { color: var(--color-text-light); }
.timeline-item p + p { margin-top: 10px; }

/* ---------- Legacy Builders ---------- */
.builders-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.builder-card { text-align: center; }
.builder-photo {
  width: 100%; aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; margin: 0 auto 14px;
  border: 3px solid var(--color-gold-light); box-shadow: var(--shadow-sm);
}
.builder-card h4 { font-size: 1rem; margin-bottom: 2px; }
.builder-card span { color: var(--color-text-light); font-size: .85rem; }

/* ---------- Speakers ---------- */
.speaker-card {
  display: grid; grid-template-columns: 1fr; gap: 24px; background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 30px;
}
.speaker-photo { aspect-ratio: 4/3; overflow: hidden; }
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; }
.speaker-body { padding: 28px 28px 30px; }
.speaker-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.speaker-title { color: var(--color-gold); font-weight: 600; font-size: .92rem; margin-bottom: 16px; display: block; }
.speaker-bio { color: var(--color-text-light); margin-bottom: 18px; }
.speaker-lectures { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary-dark); font-size: .82rem; font-weight: 500; }

/* ---------- Schedule ---------- */
.schedule-block { margin-bottom: 44px; }
.schedule-block:last-child { margin-bottom: 0; }
.schedule-time {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700;
  font-size: 1.3rem; color: var(--color-primary); margin-bottom: 18px;
}
.schedule-time .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-gold); }
.schedule-list { border-left: 2px solid var(--color-border); margin-left: 4px; }
.schedule-list li {
  position: relative; padding: 14px 0 14px 26px; border-bottom: 1px dashed var(--color-border);
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-list li::before {
  content: ""; position: absolute; left: -7px; top: 22px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-primary);
}
.schedule-list .item-title { font-weight: 600; }
.schedule-list .item-note { color: var(--color-text-light); font-size: .92rem; margin-top: 2px; }
.schedule-list li.highlight .item-title { color: var(--color-gold); }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.filter-btn {
  padding: 10px 20px; border-radius: 999px; border: 2px solid var(--color-border); font-weight: 600; font-size: .9rem;
  color: var(--color-text-light); transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-btn.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .badge {
  position: absolute; top: 10px; left: 10px; background: rgba(6,61,39,.85); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.gallery-item .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.gallery-item .play svg { width: 46px; height: 46px; color: #fff; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.gallery-item[data-type="video"] img { filter: brightness(.7); }

.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(4,20,13,.92);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center;
}

/* ---------- News ---------- */
.news-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.news-card img { aspect-ratio: 16/9; object-fit: cover; }
.news-body { padding: 22px 24px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--color-text-light); margin-bottom: 10px; }
.news-cat { color: var(--color-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.news-body h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-body p { color: var(--color-text-light); font-size: .95rem; }
.news-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--color-primary); }

/* ---------- Live / Countdown ---------- */
.live-status-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 20px;
  border-radius: 999px; background: var(--color-primary-light); color: var(--color-primary-dark);
  font-weight: 600; max-width: 480px; margin: 0 auto 36px; text-align: center;
}
.live-status-banner.is-live { background: #fdeaea; color: #b02323; }
.live-status-banner .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-primary); flex-shrink: 0; }
.live-status-banner.is-live .dot { background: #c22b2b; animation: pulse-dot 1.4s infinite; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 480px; margin: 0 auto 40px; }
.countdown .unit { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 16px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.countdown .num { font-family: var(--font-heading); font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 700; color: var(--color-primary); }
.countdown .label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-light); margin-top: 4px; }

.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.video-embed.watch-youtube { display: block; }
.video-embed.watch-youtube img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.75); transition: filter .2s ease; }
.video-embed.watch-youtube:hover img { filter: brightness(.62); }
.video-embed.watch-youtube .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.video-embed.watch-youtube .play svg { width: 68px; height: 68px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.5)); }
.video-embed.watch-youtube:hover .play { transform: scale(1.08); }
.watch-youtube-label {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  background: rgba(0,0,0,.65); color: #fff; padding: 9px 20px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.watch-youtube-label svg { flex-shrink: 0; }

/* ---------- Venue ---------- */
.venue-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; border: 1px solid var(--color-border); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.info-list li:last-child { border-bottom: none; }
.info-list .icon { width: 40px; height: 40px; border-radius: 10px; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-list .icon svg { width: 20px; height: 20px; }
.info-list h4 { font-size: .98rem; margin-bottom: 3px; }
.info-list p { color: var(--color-text-light); font-size: .92rem; }
.emergency-box { background: #fdeaea; border: 1px solid #f3c9c9; border-radius: var(--radius); padding: 22px 24px; margin-top: 30px; }
.emergency-box h4 { color: #b02323; margin-bottom: 10px; }
.emergency-box p { font-size: .92rem; color: #7a2323; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px; text-align: left; font-weight: 600; font-size: 1.05rem; font-family: var(--font-heading);
}
.faq-question .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-question .plus::before, .faq-question .plus::after { content: ""; position: absolute; background: var(--color-primary); border-radius: 2px; transition: transform .2s ease; }
.faq-question .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-question .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 4px 22px; color: var(--color-text-light); }
.faq-item.open .faq-answer { max-height: 300px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 34px 28px; box-shadow: var(--shadow-sm); }
.contact-row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-primary-light); color: var(--color-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .icon svg { width: 22px; height: 22px; }
.contact-row h4 { font-size: .95rem; color: var(--color-text-light); margin-bottom: 3px; }
.contact-row p, .contact-row a { font-weight: 600; font-size: 1.02rem; }
.social-row { display: flex; gap: 12px; margin-top: 24px; }
.social-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary-dark);
  display: flex; align-items: center; justify-content: center; transition: all .15s ease;
}
.social-icon:hover { background: var(--color-primary); color: #fff; }
.social-icon svg { width: 20px; height: 20px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); color: #fff; border-radius: var(--radius-lg); padding: 50px 32px; text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 26px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* Video-backed CTA band variant — blurred ambient loop behind a brand-tint
   overlay, with a small sharp/uncropped copy shown in its true portrait
   aspect so the footage is never hard-cropped to fit a landscape strip. */
.cta-band-video { position: relative; overflow: hidden; background: var(--color-primary-dark); }
.cta-video-bg { position: absolute; inset: 0; z-index: 0; }
.cta-video-bg video {
  width: 100%; height: 100%; object-fit: cover;
  filter: blur(22px) brightness(.85) saturate(1.15); transform: scale(1.15);
}
.cta-band-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(11,94,60,.5) 0%, rgba(6,61,39,.62) 100%);
}
.cta-band-video-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.cta-band-text { text-align: center; }
.cta-video-fg-wrap {
  flex-shrink: 0; width: 180px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.45); border: 3px solid rgba(255,255,255,.25);
}
.cta-video-fg-wrap video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding: 56px 0 44px; text-align: center; background: var(--color-primary-light);
  border-bottom: 1px solid var(--color-border);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%230b5e3c' stroke-width='1' stroke-opacity='0.1'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Crect x='18' y='18' width='36' height='36' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  animation: islamic-pattern-drift 70s linear infinite;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--color-primary); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page-hero p { color: var(--color-text-light); margin-top: 12px; max-width: 620px; margin-left: auto; margin-right: auto; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: .85rem; color: var(--color-text-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--color-primary); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,.85); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 36px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); align-items: start; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: .92rem; color: rgba(255,255,255,.65); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: .92rem; color: rgba(255,255,255,.72); transition: color .15s ease; }
.footer-col a:hover { color: var(--color-gold-light); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social .social-icon { background: rgba(255,255,255,.1); color: #fff; width: 38px; height: 38px; }
.footer-social .social-icon:hover { background: var(--color-gold); color: var(--color-primary-dark); }
.footer-bottom { text-align: center; padding: 22px 0; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Breakpoints ---------- */
@media (min-width: 560px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .builders-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 720px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1.1fr .9fr; }
  .countdown { grid-template-columns: repeat(4, 1fr); }

  .cta-band-video-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .cta-band-text { text-align: left; }
  .cta-band-text .cta-actions { justify-content: flex-start; }
  .cta-band-text p { margin-left: 0; margin-right: 0; }
  .cta-video-fg-wrap { width: 200px; }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

@media (max-width: 859px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 20px;
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 14px 16px; font-size: 1.02rem; }
  .nav-toggle { display: flex; }
  .header-actions .btn-live span.btn-live-text { display: none; }
}

@media (min-width: 640px) {
  .header-actions .btn-live span.btn-live-text { display: inline; }
}

@media (min-width: 900px) {
  .welcome-grid { grid-template-columns: 1fr 1fr; }
  .grid-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cards.cols-5 { grid-template-columns: repeat(3, 1fr); }
  .speaker-card { grid-template-columns: 340px 1fr; }
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .venue-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1.3fr .8fr .8fr 1fr; }
}

@media (min-width: 1080px) {
  .grid-cards.cols-5 { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 640px) {
  /* Reserve room below the centered content so the scroll cue has
     clearance instead of overlapping it. This grows the section's
     height rather than hiding the cue. */
  .hero { padding-bottom: 64px; }

  /* Tighter type scale and rhythm — the desktop sizes/spacing read as
     oversized and loosely stacked on a phone-width column. */
  .hero-eyebrow { font-size: .7rem; padding: 6px 12px; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.15rem); margin-bottom: 8px; }
  .hero-tagline { font-size: 1rem; margin-bottom: 20px; }
  .hero-meta { gap: 8px 16px; margin-bottom: 24px; font-size: .92rem; }
  .hero-meta svg { width: 16px; height: 16px; }

  /* Three same-row buttons wrap 2-then-1 and look lopsided at this width —
     a full-width stack reads cleaner and is easier to tap. */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; padding: 13px 22px; font-size: .92rem; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero { min-height: clamp(440px, 70svh, 620px); }
  .hero-content { padding-top: 32px; padding-bottom: 32px; }
  .countdown { grid-template-columns: repeat(2, 1fr); max-width: 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Decorative animation guard ---------- */
/* Respect reduced-motion preference: the geometric-pattern drift, star
   twinkle, and crescent glow are purely decorative, never load-bearing. */
@media (prefers-reduced-motion: reduce) {
  .meaning-section::before, .page-hero::before, .section-dark::before, .meaning-mark {
    animation: none !important;
  }
}
