@font-face {
  font-family: "Amiri Quran";
  src: url("./fonts/amiri-quran-arabic-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #f6f2e8;
  --surface: #e7eee9;
  --surface-strong: #d7e3dc;
  --text: #172421;
  --muted: #4f625c;
  --teal: #123f3a;
  --gold: #b8893b;
  --gold-ink: #6b4e14;
  --gold-soft: #e7d6ae;
  --line: rgba(18, 63, 58, 0.18);
  --white: #fdfbf5;
  --danger: #8b2f2f;
  --max: 1200px;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(18, 63, 58, 0.11);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: 4px; }
a:hover { color: var(--gold-ink); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 7vw, 4.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul { margin-top: 0; }
.lead { max-width: 64ch; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.3rem); }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold-ink);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-head { max-width: 760px; margin-bottom: 2.25rem; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.align-center { align-items: center; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  transform: translateY(-180%);
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 232, 0.96);
  backdrop-filter: blur(10px);
}
.nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold-ink); color: var(--gold-ink); }
.menu-toggle {
  display: none;
  min-width: 48px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: transparent;
  color: var(--teal);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
}

.hero { padding-block: clamp(3.5rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; gap: 2.25rem; }
.hero-copy { grid-column: 1 / span 6; }
.hero-media { grid-column: 8 / -1; position: relative; }
.hero-media::before {
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 1px solid var(--gold);
  content: "";
}
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.tagline { margin-bottom: 1rem; color: var(--gold-ink); font-family: ui-sans-serif, system-ui, sans-serif; font-weight: 750; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button:hover { background: var(--gold-ink); color: var(--white); transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button.secondary { background: transparent; color: var(--teal); }
.button.secondary:hover { background: var(--teal); color: var(--white); }
.text-link { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.94rem; font-weight: 750; }

.story-panel { background: var(--surface); }
.verse { margin-block: 0; text-align: center; }
.verse-arabic { margin: 0; color: var(--teal); font-family: "Amiri Quran", serif; font-size: clamp(1.9rem, 5vw, 3.35rem); font-weight: 400; line-height: 1.8; }
.verse figcaption { max-width: 760px; margin: 1rem auto 0; color: var(--muted); font-family: var(--display); font-size: clamp(1.05rem, 2.5vw, 1.35rem); line-height: 1.6; }
.verse cite { display: block; margin-top: 0.5rem; color: var(--gold-ink); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.9rem; font-style: normal; font-weight: 750; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.course-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(18, 63, 58, 0.07);
}
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.4rem; }
.card-body p { color: var(--muted); }
.card-body .text-link, .card-body .button { margin-top: auto; }
.course-price { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.25rem; }
.course-price strong { color: var(--teal); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.15rem; }
.course-price span { font-size: 0.85rem; }
.price { color: var(--teal) !important; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1.15rem; font-weight: 800; }
.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature-band article { padding: clamp(1.5rem, 4vw, 2.4rem); }
.feature-band article + article { border-left: 1px solid var(--line); }
.feature-band p { margin-bottom: 0; color: var(--muted); }
.media-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.content-stack > * + h2 { margin-top: 2.2rem; }
.detail-list { padding-left: 1.2rem; }
.detail-list li + li { margin-top: 0.6rem; }
.process-list { margin: 0 0 1.5rem; padding-left: 1.4rem; }
.process-list li { padding-left: 0.35rem; }
.process-list li + li { margin-top: 0.8rem; }
.process-list li::marker { color: var(--gold-ink); font-weight: 800; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (hover: hover) {
  .card { transition: opacity 600ms ease, transform 600ms ease, border-color 180ms ease, box-shadow 180ms ease; }
  .card img { transition: transform 450ms ease; }
  .card:hover { border-color: rgba(18, 63, 58, 0.34); box-shadow: 0 18px 42px rgba(18, 63, 58, 0.13); }
  .card:hover img { transform: scale(1.025); }
  .brand img { transition: transform 220ms ease; }
  .brand:hover img { transform: rotate(-5deg) scale(1.06); }
}
.notice { padding: 1rem 1.1rem; border-left: 4px solid var(--gold-ink); background: var(--surface); color: var(--muted); }
.cta-panel {
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
}
.cta-panel h2 { color: var(--white); }
.cta-panel p { color: var(--gold-soft); }
.cta-panel .button { border-color: var(--gold-soft); background: var(--gold-soft); color: var(--text); }
.cta-panel .button:hover { background: var(--white); color: var(--text); }

.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.breadcrumbs { margin-bottom: 1.2rem; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.88rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li:not(:last-child)::after { margin-left: 0.45rem; color: var(--muted); content: "/"; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 2rem; }
.fact { padding: 1.2rem; border-top: 3px solid var(--gold); background: var(--surface); }
.fact strong { display: block; font-family: var(--display); font-size: 1.25rem; }

.form-shell { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-status { margin: 0; padding: 0.9rem 1rem; border-left: 4px solid var(--gold-ink); background: var(--surface); color: var(--muted); }
.form-status.is-success { border-left-color: var(--teal); color: var(--teal); }
.form-status:focus { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.form-response-frame[hidden] { display: none; }
.field { display: grid; gap: 0.45rem; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { color: var(--text); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.9rem; font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--teal);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
}
.field textarea { min-height: 150px; resize: vertical; }
.check-field { display: flex; align-items: flex-start; gap: 0.7rem; }
.check-field input { width: 20px; height: 20px; margin-top: 0.2rem; flex: 0 0 auto; }
.check-field label { font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.9rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
button:disabled { cursor: not-allowed; opacity: 0.55; transform: none; }

.legal-copy { max-width: 820px; }
.legal-copy h2 { margin-top: 2.5rem; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.legal-copy h3 { margin-top: 1.8rem; font-size: 1.3rem; }

.site-footer { margin-top: clamp(3rem, 7vw, 6rem); padding-block: 3.5rem 2rem; background: var(--teal); color: var(--white); }
.site-footer h2, .site-footer h3, .site-footer h4 { color: var(--white); }
.site-footer a { color: var(--gold-soft); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { max-width: 34ch; color: var(--gold-soft); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0.55rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(246, 242, 232, 0.25); color: var(--gold-soft); font-family: ui-sans-serif, system-ui, sans-serif; font-size: 0.82rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; }
  .js .nav { flex-wrap: nowrap; }
  .js .menu-toggle { display: inline-flex; }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 1rem;
  }
  .js .nav-links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 24px 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: var(--shadow);
  }
  .js .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
  .hero-copy, .hero-media, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: 1 / -1; }
  .hero-media { margin-top: 1rem; }
  .card-grid, .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 32px, var(--max)); }
  .grid, .hero-grid { gap: 1.5rem; }
  .card-grid, .facts, .form-grid, .feature-band { grid-template-columns: 1fr; }
  .feature-band article + article { border-top: 1px solid var(--line); border-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .actions .button { width: 100%; }
}

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