/* Quran Little Learners – styles. Mobile-first, no build step. */

:root {
  --blue: #2E3EA8;
  --green: #1D7A62;
  --saffron: #D99A2B;
  --bg: #fbf8f1;
  --surface: #ffffff;
  --alt: #f2eee3;
  --text: #1d2233;
  --muted: #4b5166;
  --heading: #2E3EA8;
  --kicker: #1D7A62;
  --line: #e4ddcc;
  --focus: #2E3EA8;
  --pattern: #2E3EA8;
  --req: #b3261e;
  --shadow: 0 1px 2px rgba(29, 34, 51, .06), 0 6px 18px rgba(29, 34, 51, .06);
  --radius: 18px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Amiri", "Geeza Pro", "Noto Naskh Arabic", "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1120;
    --surface: #171b30;
    --alt: #12162a;
    --text: #eceef8;
    --muted: #b6bbd1;
    --heading: #aeb8ff;
    --kicker: #5fd3ae;
    --line: #2a3052;
    --focus: #ffd27a;
    --pattern: #aeb8ff;
    --req: #ff8f86;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  padding-bottom: 84px; /* room for the sticky enquiry button on phones */
}

img, svg { max-width: 100%; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.arabic { font-family: var(--font-ar); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2 { line-height: 1.2; margin: 0 0 .6em; color: var(--heading); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--heading);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--heading); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.brand__logo { flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  border-radius: 999px; padding: 12px 22px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(29, 122, 98, .35); }
.btn--primary:hover { background: #17664f; }
.btn--small { padding: 8px 16px; font-size: .95rem; box-shadow: none; }
.btn--large { padding: 15px 28px; font-size: 1.1rem; }
.icon { flex: none; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Hero */
.hero { padding: 36px 0 44px; }
.hero__inner { display: grid; gap: 32px; }
.eyebrow { margin: 0 0 8px; color: var(--kicker); font-size: 1.7rem; line-height: 1.2; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero__cta { margin: 1.4em 0 1.2em; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  border-radius: 999px; padding: 6px 14px; font-size: .95rem; font-weight: 600;
}

.hero__art {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(145deg, #2E3EA8 0%, #26358f 100%);
  border-radius: 28px; min-height: 230px; color: #fff;
  display: grid; place-items: center; text-align: center; padding: 32px 20px;
  box-shadow: var(--shadow);
}
.hero__art::after { /* saffron edge accent */
  content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--saffron);
}
.hero__name { position: relative; z-index: 1; }
.hero__arabic { font-family: var(--font-ar); font-size: clamp(3rem, 14vw, 4.75rem); line-height: 1.25; margin: 0; font-weight: 700; }
.hero__latin { font-size: 1.35rem; font-weight: 700; margin: 4px 0 0; }
.hero__role { margin: 0; color: #e3e6ff; font-size: 1rem; }

.zellige { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.zellige--panel { color: #fff; opacity: .16; }
.zellige--contact { color: #fff; opacity: .09; }

/* Sections */
.section { padding: 56px 0; }
.section--alt { background: var(--alt); }
.kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--kicker); }
.kicker::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--saffron); border-radius: 2px; vertical-align: middle; margin-right: 10px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.grid { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }

/* About */
.about { display: grid; gap: 28px; }
.greeting { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-weight: 600; color: var(--kicker); }
.greeting .arabic { font-size: 1.6rem; line-height: 1.3; }
.facts { margin: 0; display: grid; gap: 14px; align-content: start; }
.facts__item { background: var(--surface); border: 1px solid var(--line); border-inline-start: 5px solid var(--saffron); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.facts dt { font-weight: 700; color: var(--heading); margin-bottom: 4px; }
.facts dd { margin: 0; color: var(--muted); }

/* Subjects */
.tiles li {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; font-weight: 600; box-shadow: var(--shadow);
}
.tile__star { flex: none; color: var(--saffron); overflow: visible; }
.tile__star use { stroke-width: 1.6; }

/* Ages */
.age { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; }
.age__big { font-size: 2.6rem; font-weight: 700; line-height: 1.1; color: var(--heading); }
.age__big--word { font-size: 2.2rem; line-height: 1.25; }
.age__label { color: var(--muted); font-weight: 600; }
.note { margin: 20px 0 0; color: var(--muted); }

/* Steps */
.steps { margin-bottom: 0; }
.step { padding: 20px 22px; }
.step dt { font-weight: 700; color: var(--heading); font-size: 1.1rem; margin-bottom: 4px; }
.step dd { margin: 0; color: var(--muted); }

/* Fees */
.fee { padding: 28px 24px; text-align: center; margin-top: 24px; max-width: 560px; border-top: 6px solid var(--saffron); }
.fee__price { margin: 0 0 8px; }
.fee__amount { font-size: 3.2rem; font-weight: 700; color: var(--heading); line-height: 1; }
.fee__unit { font-size: 1.2rem; font-weight: 600; color: var(--muted); }
.fee__note { margin: 0; color: var(--muted); }

/* Trust */
.trust li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; font-weight: 600; }
.trust__tick { flex: none; padding: 5px; border-radius: 50%; background: var(--green); color: #fff; box-sizing: content-box; width: 16px; height: 16px; }

/* Enquiry form */
:target { scroll-margin-top: 16px; }
.enquiry { position: relative; isolation: isolate; overflow: hidden; background: var(--blue); color: #fff; padding: 56px 0 64px; scroll-margin-top: 0; }
.enquiry h2 { color: #fff; }
.enquiry__inner { position: relative; z-index: 1; max-width: 760px; }
.enquiry__intro { text-align: center; }
.enquiry__lead { font-size: 1.15rem; color: #e8ebff; max-width: 40ch; margin: 0 auto 28px; }
.enquiry :focus-visible { outline-color: var(--focus); }
.enquiry__alt { text-align: center; margin: 28px 0 0; color: #e8ebff; }
.enquiry__alt a { color: #fff; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.form-card { padding: 24px 20px; color: var(--text); }
.form-grid { display: grid; gap: 18px; }
.field { margin: 0 0 18px; min-width: 0; padding: 0; border: 0; }
.form-grid .field { margin: 0; }
.form-card label, .form-card legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.req { color: var(--req); }
.opt { font-weight: 400; color: var(--muted); }

.form-card input[type="text"],
.form-card input[type="email"],
.form-card select,
.form-card textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--muted); border-radius: 12px;
  padding: 12px 14px; min-height: 48px;
}
.form-card textarea { resize: vertical; min-height: 120px; }
.form-card input:focus-visible, .form-card select:focus-visible, .form-card textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus);
}
.form-grid { margin-bottom: 18px; }

.choices { margin-bottom: 18px; }
.choices__row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-card label.choice {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600;
  background: var(--bg); border: 1.5px solid var(--muted); border-radius: 999px;
  padding: 10px 16px; min-height: 48px; cursor: pointer;
}
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); flex: none; }
.choice:has(input:checked) { border-color: var(--green); background: rgba(29, 122, 98, .12); box-shadow: inset 0 0 0 1px var(--green); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.form-submit { width: 100%; }
.form-note { margin: 14px 0 0; font-size: .92rem; color: var(--muted); text-align: center; }
.form-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(179, 38, 30, .1); border: 1.5px solid #b3261e; color: var(--text); font-weight: 600; }
.form-submit[disabled] { opacity: .7; cursor: wait; }

/* Honeypot: kept off-screen rather than display:none so simple bots still fill it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; padding: 12px 8px; }
.thanks:focus { outline: none; }
.thanks__arabic { font-size: 2.4rem; line-height: 1.4; margin: 0; color: var(--kicker); }
.thanks__title { font-size: 1.7rem; line-height: 1.2; margin: 0 0 10px; color: var(--heading); }
.thanks p:last-child { margin-bottom: 0; color: var(--muted); }

/* Thank-you page */
.thanks-page { min-height: 60vh; display: grid; place-items: center; padding: 56px 0; }
.thanks-page .card { padding: 36px 24px; max-width: 560px; margin: 0 auto; }
.thanks-page .btn { margin-top: 8px; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .95rem; text-align: center; }
.site-footer p { margin: 0; }

/* Sticky enquiry button (phones) */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 50;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: opacity .2s ease, transform .2s ease;
}
.sticky-cta.is-hidden { opacity: 0; transform: translateY(24px); pointer-events: none; visibility: hidden; }

/* Larger screens */
@media (min-width: 760px) {
  body { padding-bottom: 0; font-size: 1.125rem; }
  .sticky-cta { display: none; }
  .hero { padding: 64px 0 72px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .hero__art { min-height: 360px; }
  .section { padding: 80px 0; }
  .about { grid-template-columns: 1.3fr .7fr; gap: 48px; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .enquiry { padding: 88px 0; }
  .form-card { padding: 36px 36px 32px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field:last-child { grid-column: 1 / -1; }
  .form-submit { width: auto; min-width: 240px; }
  .form-card form > .form-submit { display: flex; margin-inline: auto; }
}

@media (max-width: 519px) {
  .header-cta { display: none; }
}

.fee__cta { margin: 18px 0 0; }
