/* =========================================================
   Edgbaston Arabic School — shared styles
   Playful, rounded, colourful. Built for primary-age children
   and their parents.
   ========================================================= */

:root {
  --cream: #FFF8EC;
  --cream-2: #FFF1D6;
  --paper: #FFFFFF;
  --ink: #1E2A4A;
  --ink-soft: #4F5B7D;
  --line: #EADFCB;

  --sun: #FFC83D;   --sun-d: #E3A500;
  --coral: #FF6B6B; --coral-d: #D94545;
  --mint: #22C3A6;  --mint-d: #12977F;
  --sky: #43B8F0;   --sky-d: #1C8FC7;
  --grape: #8B5CF6; --grape-d: #6A3BDB;
  --orange: #FF9F43; --orange-d: #E07A14;
  --navy: #22325F;

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 32px;
  --shadow: 0 10px 30px rgba(30, 42, 74, .10);
  --shadow-lg: 0 20px 50px rgba(30, 42, 74, .16);

  --f-head: "Baloo Bhaijaan 2", "Baloo 2", system-ui, sans-serif;
  --f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-arabic: "Amiri", "Baloo Bhaijaan 2", serif;

  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-d); }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -.5px; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); font-weight: 700; }
p { margin: 0 0 1em; }
.saw, .ar { font-family: var(--f-arabic); font-weight: 400; }
.ar { direction: rtl; }
h1 .saw, h2 .saw, h3 .saw { font-size: .72em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- Buttons (chunky, "press-able") ---------- */
.btn {
  --bg: var(--coral); --bd: var(--coral-d); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-head); font-weight: 700; font-size: 1.15rem;
  padding: .75em 1.5em .65em;
  border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg);
  box-shadow: 0 5px 0 var(--bd);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 7px 0 var(--bd); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--bd); }
.btn--sun { --bg: var(--sun); --bd: var(--sun-d); --fg: var(--ink); }
.btn--mint { --bg: var(--mint); --bd: var(--mint-d); }
.btn--sky { --bg: var(--sky); --bd: var(--sky-d); }
.btn--grape { --bg: var(--grape); --bd: var(--grape-d); }
.btn--white { --bg: #fff; --bd: #D8CFBE; --fg: var(--ink); }
.btn--lg { font-size: 1.3rem; padding: .85em 1.8em .75em; }
.btn--sm { font-size: 1rem; padding: .55em 1.1em .5em; box-shadow: 0 4px 0 var(--bd); }

/* ---------- Header / nav ---------- */
.topbar {
  background: var(--navy); color: #fff; font-size: .9rem; font-weight: 700;
  text-align: center; padding: .45rem 1rem;
}
.topbar a { color: var(--sun); }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 236, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo__mark { width: 50px; height: 50px; flex: none; }
.logo__text { font-family: var(--f-head); font-weight: 800; line-height: 1; font-size: 1.25rem; }
.logo__text small { display: block; font-weight: 600; font-size: .78rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: .2px; }
.menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a.menu__link, .menu button.menu__link {
  display: inline-flex; align-items: center; gap: .3rem;
  font: 700 1rem var(--f-head); color: var(--ink); text-decoration: none;
  padding: .55rem .8rem; border-radius: 999px; border: 0; background: none; cursor: pointer;
}
.menu a.menu__link:hover, .menu button.menu__link:hover, .menu .is-active > .menu__link { background: var(--cream-2); }
.menu .is-active > .menu__link { color: var(--coral-d); }
.menu__star { color: var(--sun-d); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px);
  min-width: 270px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: .6rem; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transition: .18s ease;
  border: 3px solid var(--line);
}
.menu li:hover > .dropdown, .menu li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; gap: .7rem; align-items: center; padding: .55rem .7rem; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 700; }
.dropdown a:hover { background: var(--cream); }
.dropdown .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; flex: none; }
.dropdown small { display: block; font-weight: 600; color: var(--ink-soft); font-size: .82rem; line-height: 1.3; }
.nav__cta { margin-left: .4rem; }
.burger { display: none; width: 50px; height: 50px; border-radius: 16px; border: 3px solid var(--line); background: #fff; cursor: pointer; font-size: 1.4rem; }

@media (max-width: 1080px) {
  .burger { display: grid; place-items: center; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw);
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 90px 18px 24px; gap: .2rem; overflow-y: auto;
    transform: translateX(105%); transition: transform .25s ease;
    box-shadow: var(--shadow-lg); z-index: 60;
  }
  body.menu-open .menu { transform: none; }
  body.menu-open::after { content: ""; position: fixed; inset: 0; background: rgba(30,42,74,.35); z-index: 45; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .menu a.menu__link, .menu button.menu__link { font-size: 1.15rem; width: 100%; padding: .7rem .9rem; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 0 .6rem; min-width: 0; }
  .menu li:hover > .dropdown { transform: none; }
  .nav__cta { display: none; }
  .menu .menu__cta { margin-top: .8rem; }
  .menu-close { position: absolute; top: 18px; right: 18px; }
}
@media (min-width: 1081px) { .menu .menu__cta, .menu-close { display: none; } }

/* ---------- Sections & decoration ---------- */
section { position: relative; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--white { background: #fff; }
.section--sun { background: #FFF3C9; }
.section--mint { background: #DDF7F1; }
.section--sky { background: #E0F3FD; }
.section--grape { background: #EEE7FF; }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font: 800 .95rem var(--f-head); text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--coral-d); background: #fff; padding: .35rem .9rem; border-radius: 999px;
  box-shadow: 0 3px 0 var(--line); margin-bottom: 1rem;
}
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section-head p { font-size: 1.15rem; color: var(--ink-soft); }
.wave { display: block; width: 100%; height: 60px; }
.stars-bg {
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,200,61,.45) 0 3px, transparent 4px),
    radial-gradient(circle at 78% 12%, rgba(67,184,240,.45) 0 3px, transparent 4px),
    radial-gradient(circle at 90% 70%, rgba(255,107,107,.40) 0 4px, transparent 5px),
    radial-gradient(circle at 30% 85%, rgba(139,92,246,.35) 0 3px, transparent 4px),
    radial-gradient(circle at 55% 40%, rgba(34,195,166,.35) 0 2px, transparent 3px);
}
.pattern-bg {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2'%3E%3Cpath d='M40 6l9 25 25 9-25 9-9 25-9-25-25-9 25-9z'/%3E%3Ccircle cx='40' cy='40' r='9'/%3E%3C/g%3E%3C/svg%3E");
}
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--rot, 0deg)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 6px 0 var(--line), var(--shadow); border: 3px solid var(--line);
}
.card--tilt-l { transform: rotate(-1deg); }
.card--tilt-r { transform: rotate(1deg); }
.icon-bubble {
  width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center;
  font-size: 2rem; margin-bottom: 1rem; box-shadow: inset 0 -5px 0 rgba(0,0,0,.08);
}
.bg-sun { background: var(--sun); } .bg-coral { background: var(--coral); color: #fff; }
.bg-mint { background: var(--mint); color: #fff; } .bg-sky { background: var(--sky); color: #fff; }
.bg-grape { background: var(--grape); color: #fff; } .bg-orange { background: var(--orange); color: #fff; }
.bg-soft-sun { background: #FFF3C9; } .bg-soft-coral { background: #FFE3E3; }
.bg-soft-mint { background: #DDF7F1; } .bg-soft-sky { background: #E0F3FD; }
.bg-soft-grape { background: #EEE7FF; } .bg-soft-orange { background: #FFE9D3; }

.pill { display: inline-block; font: 800 .85rem var(--f-head); padding: .25rem .75rem; border-radius: 999px; background: var(--cream-2); color: var(--ink); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { position: relative; padding-left: 2.1rem; margin-bottom: .6rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: .1rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--mint); color: #fff; font-weight: 900; font-size: .85rem; display: grid; place-items: center;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 .hl { color: var(--coral); position: relative; white-space: nowrap; }
.hero h1 { line-height: 1.22; }
.hero h1 .hl { text-decoration: underline wavy var(--mint); text-decoration-thickness: 4px; text-underline-offset: 7px; text-decoration-skip-ink: none; }
.hero__lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--ink-soft); max-width: 36ch; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.6rem 0 1.4rem; }
.trust { display: flex; gap: 1.2rem; flex-wrap: wrap; font-weight: 800; font-size: .95rem; color: var(--ink-soft); }
.trust span { display: inline-flex; gap: .4rem; align-items: center; }
.hero__art { position: relative; min-height: 600px; }
.polaroid {
  position: absolute; background: #fff; padding: 10px 10px 34px; border-radius: 18px;
  box-shadow: var(--shadow-lg); width: 46%;
}
.polaroid img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.polaroid figcaption { position: absolute; bottom: 7px; left: 0; right: 0; text-align: center; font: 700 .95rem var(--f-head); }
.hero__art .p1 { left: 0; top: 6%; --rot: -6deg; transform: rotate(-6deg); }
.hero__art .p2 { right: 0; top: 0; --rot: 5deg; transform: rotate(5deg); animation-delay: -1.5s; }
.hero__art .p3 { left: 35%; top: 56%; width: 38%; --rot: -2deg; transform: rotate(-2deg); animation-delay: -3s; z-index: 2; }
.sticker {
  position: absolute; z-index: 3; font: 800 1rem var(--f-head); background: var(--sun); color: var(--ink);
  padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 4px 0 var(--sun-d);
}
.hero__art .s1 { left: 0; bottom: 4%; --rot: -8deg; transform: rotate(-8deg); }
.hero__art .s2 { right: 0; bottom: 14%; background: var(--mint); color: #fff; box-shadow: 0 4px 0 var(--mint-d); --rot: 7deg; transform: rotate(7deg); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .polaroid { padding: 7px 7px 28px; }
  .polaroid figcaption { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; bottom: 5px; }
  .sticker { font-size: .85rem; }
  .hero__art { min-height: 0; aspect-ratio: 1 / 1.08; max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------- Three loves ---------- */
.loves { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 30px); }
.love {
  text-align: center; border-radius: var(--r-lg); padding: 34px 24px 30px; color: #fff; position: relative;
  box-shadow: 0 8px 0 rgba(0,0,0,.12);
}
.love h3 { color: #fff; font-size: 1.7rem; margin-bottom: .3rem; }
.love p { margin: 0; font-weight: 600; opacity: .95; }
.love .ar { font-size: 2.1rem; display: block; margin-bottom: .2rem; line-height: 1.4; }
.love__heart { font-size: 3rem; line-height: 1; margin-bottom: .6rem; display: block; }
.love--allah { background: linear-gradient(160deg, #3FC6F2, #1C8FC7); }
.love--prophet { background: linear-gradient(160deg, #2FD3B4, #12977F); }
.love--quran { background: linear-gradient(160deg, #A07BFF, #6A3BDB); }
@media (max-width: 800px) { .loves { grid-template-columns: 1fr; } }

/* ---------- Pain points ---------- */
.pain { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pain__item { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #fff; border: 3px solid var(--line); }
.pain__q { padding: 20px 24px; background: #FFE3E3; font-weight: 800; font-family: var(--f-head); font-size: 1.2rem; display: flex; gap: .7rem; align-items: flex-start; }
.pain__q::before { content: "😟"; font-size: 1.5rem; line-height: 1.2; }
.pain__a { padding: 18px 24px 22px; display: flex; gap: .7rem; align-items: flex-start; }
.pain__a::before { content: "🌟"; font-size: 1.5rem; line-height: 1.2; }
.pain__a p { margin: 0; }
@media (max-width: 760px) { .pain { grid-template-columns: 1fr; } }

/* ---------- Method / feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.smile { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 1.2rem 0; }
.smile div { text-align: center; border-radius: 18px; padding: 12px 6px; font-weight: 800; font-size: .82rem; line-height: 1.2; }
.smile b { display: block; font: 800 2rem var(--f-head); line-height: 1; margin-bottom: 4px; }
@media (max-width: 520px) { .smile { grid-template-columns: repeat(5, 1fr); gap: 6px; } .smile div { font-size: .68rem; padding: 10px 2px; } .smile b { font-size: 1.5rem; } }

/* ---------- Video ---------- */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9; border-radius: var(--r);
  overflow: hidden; background: var(--navy); border: 0; padding: 0; cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.video:hover img { transform: scale(1.04); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--coral); display: grid; place-items: center;
  box-shadow: 0 5px 0 var(--coral-d), 0 0 0 8px rgba(255,255,255,.35);
  transition: transform .15s;
}
.video__play::after { content: ""; border-left: 24px solid #fff; border-top: 15px solid transparent; border-bottom: 15px solid transparent; margin-left: 6px; }
.video:hover .video__play { transform: translate(-50%, -50%) scale(1.08); }
.video--locked .video__art {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff;
  padding: 12px;
}
.video__num { font: 800 3.2rem var(--f-head); line-height: 1; opacity: .95; }
.video--frame { box-shadow: 0 10px 0 rgba(0,0,0,.1), var(--shadow-lg); border: 6px solid #fff; border-radius: 28px; }

.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.lesson { background: #fff; border-radius: var(--r); padding: 10px 10px 14px; box-shadow: 0 5px 0 var(--line); border: 3px solid var(--line); }
.lesson h3 { font-size: 1.08rem; margin: .7rem .3rem .1rem; }
.lesson .meta { font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin: 0 .3rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.lock-note {
  display: flex; gap: .8rem; align-items: center; background: #FFF3C9; border: 3px dashed var(--sun-d);
  border-radius: var(--r); padding: 14px 18px; font-weight: 700; margin-bottom: 26px;
}
.lock-note span { font-size: 1.6rem; }

/* ---------- Badges ---------- */
.badge-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 6px 0 rgba(0,0,0,.10)); }
.badge-strip { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.badge-strip .b { width: 78px; transition: transform .2s; }
.badge-strip .b:hover { transform: translateY(-6px) rotate(-6deg); }

.worlds-nav { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.worlds-nav a { text-decoration: none; }

.world { padding: clamp(50px, 7vw, 90px) 0; position: relative; }
.world__head { display: flex; gap: 18px; align-items: center; justify-content: center; text-align: left; margin-bottom: 44px; flex-wrap: wrap; }
.world__icon { font-size: 3.2rem; width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.08); }
.world__head h2 { margin: 0; }
.world__head p { margin: 0; color: var(--ink-soft); font-weight: 700; }

.path { position: relative; max-width: 980px; margin: 0 auto; }
.path::before {
  content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 0;
  border-left: 8px dashed rgba(30,42,74,.18); transform: translateX(-50%);
}
.stop { position: relative; display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; gap: 26px; margin-bottom: 38px; }
.stop:last-child { margin-bottom: 0; }
.stop__badge { grid-column: 2; position: relative; z-index: 1; width: 150px; cursor: pointer; background: none; border: 0; padding: 0; }
.stop__badge:hover .badge-svg { transform: scale(1.06) rotate(-4deg); }
.stop__badge .badge-svg { transition: transform .2s; }
.stop__card { grid-column: 3; }
.stop:nth-child(even) .stop__card { grid-column: 1; grid-row: 1; text-align: right; }
.stop:nth-child(even) .stop__photos { justify-content: flex-end; }
.stop__card .level { font: 800 .85rem var(--f-head); text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.stop__card h3 { margin: .1rem 0 .3rem; font-size: 1.45rem; }
.stop__card p { margin: 0 0 .7rem; }
.stop__photos { display: flex; gap: 10px; flex-wrap: wrap; margin-top: .6rem; }
.stop__photos button { border: 0; background: none; cursor: zoom-in; font: inherit; }
.stop__photos button.mini-polaroid { background: #fff; padding: 6px 6px 24px; }
.mini-polaroid { background: #fff; padding: 6px 6px 22px; border-radius: 12px; box-shadow: var(--shadow); width: 104px; position: relative; transition: transform .2s; }
.mini-polaroid:nth-child(odd) { transform: rotate(-4deg); } .mini-polaroid:nth-child(even) { transform: rotate(3deg); }
.mini-polaroid:hover { transform: rotate(0) scale(1.06); z-index: 2; }
.mini-polaroid img { border-radius: 8px; aspect-ratio: 4/5; object-fit: cover; }
.mini-polaroid span { position: absolute; bottom: 3px; left: 0; right: 0; text-align: center; font: 700 .8rem var(--f-head); color: var(--ink); }
.your-photo { width: 104px; aspect-ratio: 4/5.7; border-radius: 12px; border: 3px dashed rgba(30,42,74,.25); display: grid; place-items: center; text-align: center; font: 700 .8rem/1.2 var(--f-head); color: var(--ink-soft); padding: 8px; background: rgba(255,255,255,.6); }
.collect {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: .4rem;
  font: 800 .95rem var(--f-head); border-radius: 999px; padding: .4rem .9rem; cursor: pointer;
  border: 3px solid var(--ink); background: #fff; color: var(--ink);
}
.collect[aria-pressed="true"] { background: var(--mint); border-color: var(--mint-d); color: #fff; }
.stop.is-collected .badge-svg { filter: drop-shadow(0 0 18px rgba(255,200,61,.9)) drop-shadow(0 6px 0 rgba(0,0,0,.10)); }
@media (max-width: 760px) {
  .path::before { left: 55px; }
  .stop, .stop:nth-child(even) { grid-template-columns: 110px 1fr; gap: 16px; }
  .stop__badge { grid-column: 1; width: 110px; }
  .stop__card, .stop:nth-child(even) .stop__card { grid-column: 2; grid-row: 1; text-align: left; }
  .stop:nth-child(even) .stop__photos { justify-content: flex-start; }
  .mini-polaroid, .your-photo { width: 88px; }
}

.tracker {
  position: sticky; bottom: 16px; z-index: 30; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px);
  background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 12px 10px 22px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-lg); font-weight: 800;
}
.tracker__bar { width: 160px; height: 14px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.tracker__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--coral)); border-radius: 999px; transition: width .4s; }
@media (max-width: 520px) { .tracker__bar { width: 80px; } .tracker { font-size: .9rem; } }

.medal-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.medal { text-align: center; }
.medal .badge-svg { max-width: 150px; margin: 0 auto; }
.medal h3 { margin-top: .6rem; }
@media (max-width: 700px) { .medal-row { grid-template-columns: repeat(2, 1fr); } }

/* Home badge teaser */
.trail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; align-items: end; position: relative; }
.trail::before { content: ""; position: absolute; left: 6%; right: 6%; top: 42px; border-top: 7px dashed rgba(30,42,74,.18); }
.trail__stop { text-align: center; position: relative; }
.trail__stop .b { width: 86px; margin: 0 auto 8px; }
.trail__stop b { display: block; font: 800 1rem var(--f-head); line-height: 1.15; }
.trail__stop span { font-size: .85rem; color: var(--ink-soft); font-weight: 700; }
@media (max-width: 820px) { .trail { grid-template-columns: repeat(3, 1fr); row-gap: 26px; } .trail::before { display: none; } }

/* ---------- Photo wall / proof ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: var(--r); padding: 22px 12px; text-align: center; box-shadow: 0 5px 0 var(--line); border: 3px solid var(--line); }
.stat b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem) var(--f-head); line-height: 1; margin-bottom: 6px; }
.stat span { font-weight: 700; color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.wall { columns: 4 220px; column-gap: 18px; }
.wall figure { break-inside: avoid; margin: 0 0 18px; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 5px 0 var(--line); border: 3px solid var(--line); }
.wall img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.wall figcaption { padding: 12px 14px 14px; font-size: .95rem; }
.wall figcaption b { font-family: var(--f-head); font-size: 1.1rem; display: flex; align-items: center; gap: .45rem; }
.wall .chip { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 2px solid rgba(0,0,0,.15); flex: none; }

.quote {
  background: #fff; border-radius: var(--r-lg); padding: 26px 26px 22px; position: relative; box-shadow: 0 6px 0 var(--line); border: 3px solid var(--line);
}
.quote::before { content: "“"; position: absolute; top: -18px; left: 18px; font: 800 5rem/1 var(--f-head); color: var(--sun); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border-radius: var(--r-lg); padding: 30px 24px 26px; text-align: center; position: relative; box-shadow: 0 6px 0 var(--line); border: 3px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: -58px auto 12px;
  font: 800 1.6rem var(--f-head); color: #fff; background: var(--coral); box-shadow: 0 5px 0 var(--coral-d);
}
.step:nth-child(2)::before { background: var(--sky); box-shadow: 0 5px 0 var(--sky-d); }
.step:nth-child(3)::before { background: var(--mint); box-shadow: 0 5px 0 var(--mint-d); }
.step .emoji { font-size: 2.6rem; display: block; margin-bottom: .4rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; row-gap: 50px; margin-top: 30px; } }

/* ---------- Programme cards ---------- */
.prog { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 6px 0 var(--line); border: 3px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .2s; }
.prog:hover { transform: translateY(-6px) rotate(-.5deg); }
.prog__top { padding: 26px 22px 18px; color: #fff; position: relative; }
.prog__top h3 { color: #fff; margin: .4rem 0 0; }
.prog__top .emoji { font-size: 2.6rem; }
.prog__body { padding: 18px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.prog__body p { flex: 1; }
.prog__go { font: 800 1rem var(--f-head); color: var(--coral-d); }

/* ---------- Classes / timetable ---------- */
.centre { border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 6px 0 var(--line); border: 3px solid var(--line); }
.centre__head { padding: 22px 26px; color: #fff; }
.centre__head h3 { color: #fff; margin: 0 0 .2rem; }
.centre__head p { margin: 0; opacity: .95; font-weight: 700; }
.centre__body { padding: 20px 26px 26px; }
.times { width: 100%; border-collapse: collapse; }
.times td { padding: .55rem 0; border-bottom: 2px dashed var(--line); font-weight: 700; }
.times td:last-child { text-align: right; color: var(--ink-soft); }
.times tr:last-child td { border-bottom: 0; }
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.date { background: #fff; border-radius: 16px; padding: 10px 14px; border: 3px solid var(--line); font-weight: 700; font-size: .95rem; }
.date b { display: block; font-family: var(--f-head); font-size: 1.05rem; }
.date--hol { border-color: #FFD3B0; background: #FFF4EA; }
.date--eid { border-color: #CDB9FF; background: #F4EFFF; }
.date--star { border-color: #A8E9DC; background: #EAFBF7; }
details.acc { background: #fff; border-radius: var(--r); border: 3px solid var(--line); margin-bottom: 12px; box-shadow: 0 4px 0 var(--line); }
details.acc summary { cursor: pointer; padding: 16px 20px; font: 800 1.15rem var(--f-head); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--coral); transition: transform .2s; }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc__body { padding: 0 20px 20px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(36px, 5vw, 60px); text-align: center; position: relative; overflow: hidden; }
.page-hero p { font-size: 1.2rem; color: var(--ink-soft); max-width: 680px; margin: 0 auto 1rem; }
.page-hero .emoji-big { font-size: 3.6rem; display: block; margin-bottom: .4rem; }
.crumbs { font-size: .9rem; font-weight: 700; margin-bottom: .8rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }

/* ---------- Downloads ---------- */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.dl { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); font-weight: 800; transition: transform .15s; }
.dl:hover { transform: translateY(-3px); }
.dl i { font-style: normal; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: .8rem; font-weight: 900; flex: none; }
.dl small { display: block; font-weight: 600; color: var(--ink-soft); }

/* ---------- Hub ---------- */
.hub-card { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--r-lg); padding: 18px; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line); transition: transform .15s; }
.hub-card:hover { transform: translateY(-4px); }
.hub-card .icon-bubble { margin: 0; flex: none; }
.hub-card h3 { margin: 0 0 .15rem; font-size: 1.2rem; }
.hub-card p { margin: 0; font-size: .95rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Form ---------- */
.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: 0 8px 0 var(--line), var(--shadow-lg); border: 3px solid var(--line); }
.form-step { border: 0; padding: 0; margin: 0 0 28px; }
.form-step legend { font: 800 1.35rem var(--f-head); display: flex; gap: .6rem; align-items: center; margin-bottom: 14px; padding: 0; }
.form-step legend .n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--coral); font-size: 1.1rem; flex: none; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
label.lbl { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 6px; }
label.lbl .req { color: var(--coral-d); }
.inp, select.inp, textarea.inp {
  width: 100%; font: 600 1.05rem var(--f-body); color: var(--ink);
  border: 3px solid var(--line); border-radius: 16px; padding: .75rem 1rem; background: var(--cream);
  transition: border-color .15s, background .15s;
}
.inp:focus { outline: none; border-color: var(--sky); background: #fff; }
.inp[aria-invalid="true"] { border-color: var(--coral); background: #FFF3F3; }
textarea.inp { min-height: 120px; resize: vertical; }
.hint { font-size: .85rem; color: var(--ink-soft); font-weight: 600; margin-top: 4px; }
.err { color: var(--coral-d); font-weight: 800; font-size: .9rem; margin-top: 4px; display: none; }
.has-err .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-flex; gap: .45rem; align-items: center; padding: .55rem 1rem; border-radius: 999px;
  border: 3px solid var(--line); background: var(--cream); font-weight: 800; transition: .15s; user-select: none;
}
.chips input:checked + span { background: var(--mint); border-color: var(--mint-d); color: #fff; }
.chips input:focus-visible + span { outline: 4px solid var(--sky); outline-offset: 2px; }
.child { border: 3px dashed var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; position: relative; background: #FFFCF6; }
.child__title { font: 800 1.1rem var(--f-head); margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.child__remove { border: 0; background: #FFE3E3; color: var(--coral-d); font-weight: 800; border-radius: 999px; padding: .25rem .8rem; cursor: pointer; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.consent input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--mint); flex: none; }
.form-status { display: none; margin-top: 16px; padding: 14px 18px; border-radius: 16px; font-weight: 800; }
.form-status.is-error { display: block; background: #FFE3E3; color: var(--coral-d); }
.success { display: none; text-align: center; padding: 20px 0; }
.success.is-on { display: block; }
.success .big { font-size: 4.5rem; display: block; }
.hp { position: absolute; left: -9999px; }

.contact-side .card + .card { margin-top: 18px; }
.contact-line { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; text-decoration: none; color: var(--ink); font-weight: 800; }
.contact-line .icon-bubble { width: 52px; height: 52px; font-size: 1.4rem; margin: 0; border-radius: 16px; flex: none; }
.contact-line small { display: block; font-weight: 600; color: var(--ink-soft); }

/* ---------- CTA band & footer ---------- */
.cta-band { border-radius: var(--r-lg); padding: clamp(32px, 5vw, 60px); text-align: center; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--coral), #FF8E53 55%, var(--sun)); box-shadow: 0 10px 0 rgba(0,0,0,.08); }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.2rem; font-weight: 700; max-width: 640px; margin: 0 auto 1.4rem; }
.cta-band .deco { position: absolute; font-size: 3rem; opacity: .9; }

.site-footer { color: #D8DEF0; padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h4 { color: var(--sun); font-size: 1.15rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; font-weight: 600; }
.footer-bottom { border-top: 2px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.footer-ayah { font-family: var(--f-arabic); font-size: 1.6rem; color: #fff; line-height: 1.6; margin: .6rem 0 .2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
}
.mobile-cta .btn { width: 100%; }
@media (max-width: 700px) { .mobile-cta { display: block; } body.has-mobile-cta { padding-bottom: 84px; } body.no-mobile-cta .mobile-cta { display: none; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 28, 52, .82); display: none; place-items: center; padding: 20px; }
.lightbox.is-on { display: grid; }
.lightbox__inner { background: #fff; border-radius: var(--r-lg); max-width: 520px; width: 100%; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); max-height: 92vh; display: flex; flex-direction: column; }
.lightbox__inner img { width: 100%; max-height: 64vh; object-fit: cover; }
.lightbox__cap { padding: 16px 20px 20px; overflow-y: auto; }
.lightbox__cap b { font-family: var(--f-head); font-size: 1.3rem; display: block; }
.lightbox__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 1.4rem; cursor: pointer; box-shadow: var(--shadow); }

/* confetti */
.confetti { position: fixed; top: -12px; width: 12px; height: 16px; z-index: 200; pointer-events: none; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* policy text */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
