:root {
  --ink: #071018;
  --ink-2: #101d2b;
  --navy: #1a3348;
  --gold: #c9a24a;
  --gold-2: #e7c56c;
  --gold-dim: rgba(201, 162, 74, 0.14);
  --cream: #f3eee4;
  --paper: #fbf7f0;
  --sand: #e4d7c2;
  --line: rgba(243, 238, 228, 0.12);
  --muted: #6f675c;
  --text: #171410;
  --ok: #1d6a49;
  --danger: #b42318;
  --shadow: 0 30px 80px rgba(7, 16, 24, 0.18);
  --radius: 26px;
  --max: 1200px;
  --header: 86px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

.skip {
  position: absolute;
  right: 12px;
  top: -40px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  z-index: 80;
}
.skip:focus { top: 12px; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.84rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

h1, h2, .serif { font-family: "Amiri", serif; line-height: 1.28; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(201, 162, 74, .28);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-full { width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(7, 16, 24, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}
.brand svg { width: 44px; height: 44px; color: var(--gold); }
.brand-name {
  font-family: "Reem Kufi", sans-serif;
  font-size: 1.28rem;
  line-height: 1;
}
.brand small {
  display: block;
  margin-top: 5px;
  color: var(--gold-2);
  font-size: 0.72rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(243, 238, 228, .84);
}
.nav-links a:hover { color: var(--gold-2); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  border-radius: 12px;
  font-size: 1.2rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header));
  background:
    radial-gradient(circle at 85% 0%, rgba(201,162,74,.2), transparent 30%),
    radial-gradient(circle at 10% 80%, rgba(26,51,72,.7), transparent 28%),
    linear-gradient(165deg, #071018 0%, #122536 52%, #071018 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,250,243,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,250,243,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 72%);
  pointer-events: none;
}
.ornament {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(201,162,74,.22);
  border-radius: 40% 60% 55% 45%;
  pointer-events: none;
}
.ornament.one { top: 80px; left: -70px; transform: rotate(18deg); }
.ornament.two { bottom: 40px; right: -50px; transform: rotate(-12deg); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: 78px 0 70px;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.3rem);
  max-width: 11ch;
  margin: 16px 0 18px;
}
.gold { color: var(--gold-2); }
.lead {
  max-width: 38rem;
  font-size: 1.12rem;
  color: rgba(243,238,228,.78);
  margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta b {
  display: block;
  color: var(--gold-2);
  font-size: 1.5rem;
  font-family: "Amiri", serif;
}
.hero-meta span { color: rgba(243,238,228,.7); font-size: .92rem; }

.hero-card {
  background: rgba(255,250,243,.045);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 1.8rem; margin-bottom: 6px; }
.track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.track:last-child { border: 0; }
.badge {
  color: var(--gold);
  font-size: .8rem;
  background: var(--gold-dim);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.marquee-wrap {
  background: var(--gold);
  color: var(--ink);
  overflow: hidden;
  border-block: 1px solid rgba(7,16,24,.12);
}
.marquee {
  display: flex;
  gap: 42px;
  white-space: nowrap;
  animation: slide 28s linear infinite;
  padding: 14px 0;
  font-weight: 700;
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.section { padding: 96px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 42px;
}
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); max-width: 12ch; }
.muted { color: var(--muted); max-width: 36rem; }

.programs { background: var(--cream); }
.program-grid, .people-grid, .review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid rgba(22,48,71,.08);
  box-shadow: 0 12px 32px rgba(7,16,24,.04);
  transition: transform .22s ease;
}
.card:hover { transform: translateY(-4px); }
.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold);
  margin-bottom: 16px;
  font-family: "Amiri", serif;
  font-size: 1.25rem;
}
.card h3 { margin-bottom: 8px; font-size: 1.28rem; }

.why { background: var(--ink); color: var(--cream); }
.why-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 42px;
  align-items: center;
}
.why-visual {
  min-height: 440px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 28% 18%, rgba(201,162,74,.3), transparent 34%),
    linear-gradient(180deg, #173044, #071018);
  border: 1px solid var(--line);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote { font-size: 2.05rem; line-height: 1.55; }
.checks { display: grid; gap: 14px; }
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,250,243,.04);
  border: 1px solid var(--line);
}
.check span { color: var(--gold); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border-top: 3px solid var(--gold);
}
.step b {
  display: block;
  color: var(--gold);
  font-family: "Amiri", serif;
  font-size: 1.85rem;
  margin-bottom: 8px;
}

.person {
  text-align: right;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--gold-2);
  font-family: "Amiri", serif;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; }

.faq details {
  background: #fff;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(22,48,71,.08);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin-top: 10px; }

.cta {
  background: linear-gradient(160deg, #122536, #071018);
  color: var(--cream);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
form {
  display: grid;
  gap: 12px;
  background: rgba(255,250,243,.045);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
}
label { font-size: .9rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7,16,24,.38);
  color: var(--cream);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { min-height: 1.5em; color: var(--gold-2); }
.form-note.error { color: #ffb4a8; }

.site-footer {
  background: #05090e;
  color: rgba(243,238,228,.72);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.site-footer h3 {
  color: var(--cream);
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.site-footer a:hover { color: var(--gold-2); }
.copy {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: .88rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid,
  .program-grid,
  .people-grid,
  .review-grid,
  .why-grid,
  .steps-grid,
  .cta-grid,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    inset: var(--header) 16px auto;
    background: #101d2b;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .section-head { flex-direction: column; align-items: start; }
  .hero { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { animation: none; }
  * { transition: none !important; }
}
