:root {
  --font-heading: "Berkshire Swash", Georgia, "Times New Roman", serif;
  --font-body: "Signika", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --green: #6f7f62;
  --sage: #a7b8a0;
  --cream: #f7f0e3;
  --beige: #e8d8bf;
  --mauve: #9b6a7a;
  --gold: #c8923b;
  --brown: #725438;
  --text: #2f3a2f;
  --muted: #66705f;
  --white: #fffaf1;
  --line: rgba(111, 127, 98, 0.22);
  --shadow: 0 22px 55px rgba(47, 58, 47, 0.12);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(200, 146, 59, 0.12), transparent 28%),
    linear-gradient(180deg, #fbf6ec 0%, var(--cream) 48%, #fffaf1 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  background: rgba(247, 240, 227, 0.9);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 14px;
}

.brand strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 23px;
  line-height: 1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav .nav-cta {
  color: var(--text);
  background: rgba(255, 250, 241, 0.72);
}

.nav-toggle { display: none; }

section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 24px;
}

.section-band {
  max-width: calc(var(--max) - 16px);
  border-radius: 34px;
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(232, 216, 191, 0.8);
  box-shadow: 0 16px 60px rgba(114, 84, 56, 0.08);
}

.hero {
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 52px;
  padding-top: 74px;
  overflow: hidden;
}

.tagline {
  color: var(--mauve);
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
}

h1 {
  font-size: clamp(42px, 5vw, 60px);
  max-width: 760px;
}

h2 {
  font-size: clamp(34px, 4.1vw, 56px);
  max-width: 790px;
}

h3 {
  font-size: 22px;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 19px;
  color: var(--muted);
}

.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions { margin-top: 34px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fffaf1;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(111, 127, 98, 0.28);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button.secondary {
  color: var(--text);
  background: var(--beige);
}

.button.text {
  color: var(--green);
  background: transparent;
  padding-inline: 8px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  color: var(--brown);
  font-size: 14px;
}

.trust-row span,
.pill-list span,
.system-grid span {
  border: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.76);
  border-radius: 999px;
  padding: 9px 13px;
}

.trust-row span {
  display: grid;
  grid-template-columns: 28px 1fr;
  column-gap: 10px;
  align-items: center;
  min-width: 170px;
}

.trust-row span::before {
  content: "";
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(167, 184, 160, 0.32);
  box-shadow: inset 0 0 0 1px rgba(111, 127, 98, 0.18);
}

.trust-row b {
  line-height: 1.1;
  color: var(--text);
  font-size: 13px;
}

.trust-row small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.hero-visual {
  position: relative;
  min-height: 540px;
}

.arch-frame {
  position: absolute;
  inset: 10px 0 0 38px;
  overflow: hidden;
  border-radius: 220px 220px 32px 32px;
  border: 14px solid rgba(167, 184, 160, 0.24);
  box-shadow: var(--shadow);
  background: var(--beige);
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  max-width: 230px;
  padding: 15px 17px;
  border-radius: 18px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(232, 216, 191, 0.9);
  box-shadow: var(--shadow);
  color: var(--brown);
  font-weight: 800;
  font-size: 14px;
}

.note-one { left: 0; bottom: 86px; }
.note-two { right: 10px; top: 58px; color: var(--green); }

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 38px;
}

.section-heading span {
  color: var(--mauve);
  font-size: 14px;
  font-weight: 850;
}

.section-heading p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.compact { margin-bottom: 24px; }
.compact h2 { font-size: clamp(30px, 3vw, 44px); }

.about-grid,
.pricing-evaluation,
.audience-system {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 34px;
  align-items: start;
}

.about-copy {
  font-size: 19px;
  color: var(--muted);
}

.arabic-word {
  color: var(--green);
  font-family: "Times New Roman", serif;
  font-weight: 800;
  direction: rtl;
  unicode-bidi: isolate;
}

.about-copy p:first-child { margin-top: 0; }

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px;
  background: rgba(167, 184, 160, 0.18);
  border-radius: var(--radius);
}

.benefit-grid,
.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.benefit-grid article,
.program-card,
.system-card,
.evaluation,
.signup-form {
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid rgba(232, 216, 191, 0.88);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 16px 42px rgba(47, 58, 47, 0.06);
}

.benefit-grid p,
.program-card p,
.program-card li,
.system-card p,
.pricing-copy p,
.evaluation li,
.check-list li {
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: rgba(200, 146, 59, 0.14);
  color: var(--gold);
  font-weight: 900;
}

.program-grid {
  grid-template-columns: repeat(3, 1fr);
}

.program-card.featured {
  background: var(--green);
  color: #fffaf1;
}

.program-card.featured p,
.program-card.featured li {
  color: rgba(255, 250, 241, 0.82);
}

.program-card.wide {
  grid-column: span 2;
  background: rgba(155, 106, 122, 0.12);
}

.program-card ul,
.check-list {
  padding-left: 20px;
}

.program-card strong {
  display: block;
  margin-top: 18px;
  color: inherit;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

.timeline li {
  min-height: 138px;
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  padding: 22px 14px 18px;
  border-radius: 20px;
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  color: var(--brown);
  font-weight: 800;
  font-size: 15px;
}

.timeline svg {
  width: 46px;
  height: 46px;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage);
  color: var(--text);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline span {
  display: block;
  max-width: 130px;
  line-height: 1.2;
}

.audience-system {
  grid-template-columns: 1.02fr 0.98fr;
}

.concept-panels > div {
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(232, 216, 191, 0.88);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 16px 42px rgba(47, 58, 47, 0.06);
}

.learning-fit {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.85fr);
  gap: 20px;
  align-items: center;
}

.learning-fit .section-heading,
.learning-fit .check-list {
  grid-column: 1;
}

.teacher-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(167, 184, 160, 0.16);
}

.teacher-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.system-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}

.system-features article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
}

.system-features article > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(200, 146, 59, 0.14);
  color: var(--gold);
  font-weight: 900;
}

.system-features h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.system-features p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.pricing-evaluation {
  grid-template-columns: 1fr 1fr;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

details {
  background: rgba(255, 250, 241, 0.86);
  border: 1px solid rgba(232, 216, 191, 0.9);
  border-radius: 18px;
  padding: 2px 20px;
}

summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 850;
}

details p {
  margin: 0 0 18px;
  color: var(--muted);
}

.registration {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.register-copy {
  position: sticky;
  top: 118px;
}

.register-copy p {
  color: var(--muted);
  font-size: 18px;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf7;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(111, 127, 98, 0.14);
}

.full { grid-column: 1 / -1; }

.form-success {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  background: rgba(111, 127, 98, 0.14);
  color: var(--green);
  font-weight: 800;
}

.form-success.is-error {
  background: rgba(155, 106, 122, 0.14);
  color: var(--mauve);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  color: var(--muted);
}

.footer-brand { color: var(--text); }
.footer-links a { font-weight: 800; color: var(--green); }
.copyright { grid-column: 1 / -1; font-size: 14px; }

.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 19;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: white;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.wa-icon {
  width: 34px;
  height: 34px;
  display: block;
}

.floating-whatsapp.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header { padding-inline: 18px; }
  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 250, 241, 0.86);
  }
  .nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--text);
  }
  .site-nav {
    position: absolute;
    top: 76px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 250, 241, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: grid; }
  .hero,
  .about-grid,
  .audience-system,
  .pricing-evaluation,
  .registration {
    grid-template-columns: 1fr;
  }
  .hero { padding-top: 54px; }
  .hero-visual { min-height: 480px; order: -1; }
  .arch-frame { inset: 0 24px 0 24px; }
  .benefit-grid,
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .timeline {
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
  }
  .timeline li {
    scroll-snap-align: start;
  }
  .learning-fit {
    grid-template-columns: 1fr;
  }
  .learning-fit .section-heading,
  .learning-fit .check-list,
  .teacher-figure {
    grid-column: auto;
    grid-row: auto;
  }
  .register-copy { position: static; }
}

@media (max-width: 640px) {
  section,
  .site-footer {
    padding: 66px 18px;
  }
  .section-band {
    border-radius: 24px;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .brand small { display: none; }
  .hero {
    min-height: auto;
    gap: 28px;
  }
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .hero-lead,
  .about-copy,
  .register-copy p {
    font-size: 16px;
  }
  .hero-visual { min-height: 370px; }
  .arch-frame {
    border-width: 9px;
    inset-inline: 0;
  }
  .floating-note {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: inline-flex;
    margin-top: 10px;
  }
  .benefit-grid,
  .program-grid,
  .signup-form,
  .site-footer {
    grid-template-columns: 1fr;
  }
  .program-card.wide { grid-column: auto; }
  .timeline {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }
  .timeline li { min-height: 112px; }
  .system-features {
    grid-template-columns: 1fr;
  }
  .footer-links { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
