/* ============ Design tokens ============ */
:root {
  --ink: #1c2f26;
  --ink-soft: #4d6357;
  --teal: #3e7d5c;
  --teal-dark: #2f6347;
  --teal-soft: #e4f2ea;
  --amber: #f2b660;
  --amber-soft: #fbf3e4;
  --amber-ink: #8a5a14;
  --wa-green: #25d366;
  --bg: #f7faf8;
  --surface: #ffffff;
  --line: #dfe8e2;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(28, 47, 38, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 47, 38, 0.14);
  --font-latin: 'Poppins', system-ui, sans-serif;
  --font-arabic: 'Cairo', system-ui, sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-arabic);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { font-family: var(--font-latin); line-height: 1.65; }

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }

p { margin: 0 0 1em; max-width: 65ch; }

a { color: var(--teal); text-decoration: none; }

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

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

.skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 100;
  background: var(--teal);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: clamp(56px, 8vw, 96px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-kicker {
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
html[lang="ar"] .section-kicker { letter-spacing: 0; }

.section-sub { color: var(--ink-soft); max-width: 560px; margin-bottom: 36px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(62, 125, 92, 0.35); }
.btn-primary:hover { background: var(--teal-dark); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-soft); }

.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(28, 47, 38, 0.09); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.site-nav a:hover { color: var(--teal); }

.nav-cta {
  background: var(--teal);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal-dark); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  font-family: var(--font-latin);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
html[lang="en"] .lang-toggle { font-family: var(--font-arabic); }
.lang-toggle:hover { border-color: var(--teal); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(160deg, var(--teal-soft) 0%, var(--bg) 55%, var(--amber-soft) 120%);
  padding-block: clamp(56px, 9vw, 88px);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  background: var(--amber-soft);
  color: var(--amber-ink);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-sub { color: var(--ink-soft); font-size: 1.08rem; max-width: 540px; margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }

.hero-stats {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.4rem; color: var(--teal); }
.hero-stats span { color: var(--ink-soft); font-size: 0.88rem; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30px -20px;
  background-image: radial-gradient(var(--teal) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.12;
  border-radius: var(--radius);
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px 28px;
  text-align: center;
  transform: rotate(-2deg);
}
html[dir="ltr"] .hero-card { transform: rotate(2deg); }
.hero-card-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
  border: 3px solid var(--teal-soft);
}
.hero-card-quote { font-weight: 500; font-size: 1.02rem; margin-inline: auto; }
.hero-card-name { color: var(--teal); font-weight: 600; margin: 0; }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-photo { margin: 0; }

.photo-frame {
  position: relative;
  max-width: 360px;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--amber);
  border-radius: var(--radius);
  transform: translate(-12px, 12px);
  z-index: 0;
}
html[dir="ltr"] .photo-frame::before { transform: translate(12px, 12px); }

.photo-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-caption {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 600;
}

.check-list { list-style: none; padding: 0; margin: 20px 0 0; }
.check-list li {
  position: relative;
  padding-inline-start: 32px;
  margin-bottom: 10px;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Credentials chips */
.creds {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 26px 0 0;
}
.cred-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.cred-chip svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }

/* ============ Cards (services, steps) ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.section-alt .card { background: var(--bg); }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--teal);
}
.card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: 16px;
}
.card-icon svg { width: 24px; height: 24px; }

/* ============ Student notes ============ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.note-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 12px 6px;
  transform: rotate(-1.2deg);
  transition: transform 0.2s, box-shadow 0.2s;
}
.note-card:nth-child(even) { transform: rotate(1.2deg); }
.note-card:hover { transform: rotate(0) scale(1.02); box-shadow: var(--shadow-lg); }
.note-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.note-card figcaption {
  font-size: 0.84rem;
  color: var(--ink-soft);
  padding: 10px 4px 6px;
  text-align: center;
}

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.price-card.featured {
  border: 2px solid var(--teal);
  box-shadow: var(--shadow-lg);
}

.badge {
  position: absolute;
  top: -14px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: var(--amber);
  color: #5c3a05;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  margin: 0;
}
html[dir="ltr"] .badge { transform: translateX(-50%); }

.price { font-size: 2.4rem; font-weight: 700; color: var(--teal); margin: 0; }
.price .currency { font-size: 1rem; color: var(--ink-soft); font-weight: 500; }
.price-note { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 18px; }

.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.price-card li {
  padding-inline-start: 26px;
  position: relative;
  margin-bottom: 8px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.price-card li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ============ How it works ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.section-alt .step { background: var(--bg); box-shadow: none; }
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-latin);
}
.step p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

/* ============ FAQ ============ */
.faq-container { max-width: 780px; }

.faq-list { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--teal); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--teal);
  flex-shrink: 0;
  transition: transform 0.25s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* ============ Booking ============ */
.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.booking-note {
  display: flex;
  gap: 12px;
  background: var(--amber-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 24px;
}
.booking-note p { margin: 0; font-size: 0.92rem; }
.note-icon { width: 22px; height: 22px; color: var(--amber-ink); flex-shrink: 0; margin-top: 3px; }

.booking-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.optional { color: var(--ink-soft); font-weight: 400; font-size: 0.82rem; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(62, 125, 92, 0.15);
}

.field input.invalid,
.field select.invalid { border-color: #c0392b; }

.form-error {
  color: #c0392b;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0 0 14px;
}

.wa-fallback {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: underline;
}

.form-hint {
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-align: center;
  margin: 12px auto 0;
}

.wa-icon { flex-shrink: 0; }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #cfdedc;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 40px;
  padding-block: 56px 32px;
}

.footer-logo { color: #fff; margin-bottom: 10px; }
.footer-tag { font-size: 0.92rem; margin: 0; }

.site-footer h3 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }

.footer-contact a,
.footer-links a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cfdedc;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s;
  width: fit-content;
}
.footer-contact a svg { width: 17px; height: 17px; flex-shrink: 0; }
.footer-contact a:hover,
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* ============ Floating WhatsApp ============ */
.floating-wa {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: scale 0.2s;
}
.floating-wa:hover { scale: 1.06; }
.floating-wa:focus-visible { outline-color: var(--wa-green); }

/* ============ Entrance animations (JS-gated) ============ */
@media (prefers-reduced-motion: no-preference) {
  html.js .anim {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: var(--anim-delay, 0s);
  }
  html.js .anim.in-view {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover { transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .photo-frame { margin-inline: auto; }
  .photo-caption { text-align: center; }
  .cards-grid, .pricing-grid, .steps-grid, .notes-grid { grid-template-columns: 1fr 1fr; }
  .booking-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 68px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 20px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: 10px; border-radius: 12px; }
}

@media (max-width: 640px) {
  .cards-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .notes-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .note-card figcaption { font-size: 0.76rem; }
  .price-card.featured { order: -1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-stats { gap: 24px; }
  .floating-wa { width: 52px; height: 52px; right: 16px; }
}
