/* =====================================================================
   Nawal El Daou — site stylesheet
   Tokens → base → layout → components → sections → utilities
   Logical properties used throughout so an RTL (Arabic) version mirrors.
   ===================================================================== */

:root {
  /* Color */
  --paper: #F4F6F5;
  --paper-2: #EBEFED;
  --ink: #0F1F2E;
  --ink-2: #3B4A58;
  --ink-3: #6B7884;
  --line: #D9DFDC;
  --teal: #0E6B6B;
  --teal-2: #0A5252;
  --teal-soft: #D9ECEA;
  --saffron: #D99A2B;
  --saffron-2: #B87E1B;
  --saffron-soft: #F7EAD0;
  --white: #FFFFFF;

  /* Type */
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-arabic: "IBM Plex Sans Arabic", "Noto Sans Arabic", sans-serif;

  /* Scale (Elements of Typographic Style: 1.25 ratio, 18px base) */
  --t-0: 0.8rem;
  --t-1: 1rem;
  --t-2: 1.125rem;
  --t-3: 1.4rem;
  --t-4: 1.75rem;
  --t-5: 2.2rem;
  --t-6: 2.75rem;
  --t-7: 3.5rem;
  --t-8: clamp(2.8rem, 6vw, 5.2rem);

  /* Layout */
  --wrap: 1300px;
  --gutter: clamp(20px, 5vw, 64px);
  --space: clamp(64px, 10vw, 128px);
  --radius: 4px;
  --radius-lg: 12px;

  /* Motion */
  --ease: cubic-bezier(.22,1,.36,1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--t-8); font-variation-settings: "opsz" 144, "SOFT" 40; }
h2 { font-size: clamp(2rem, 3.6vw, var(--t-7)); font-variation-settings: "opsz" 96, "SOFT" 40; }
h3 { font-size: var(--t-4); font-variation-settings: "opsz" 48; }
h4 { font-size: var(--t-3); }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: inherit; text-decoration: none; }
p a, .article li a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--teal); }
img { max-width: 100%; display: block; }
ul { padding-inline-start: 1.2em; }
.ar { font-family: var(--f-arabic); direction: rtl; unicode-bidi: isolate; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--space); position: relative; }
.section--tight { padding-block: calc(var(--space) * .6); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink p { color: #C9D1D8; }
.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--rev { grid-template-columns: 7fr 5fr; }
.lead { font-size: var(--t-3); line-height: 1.45; color: var(--ink-2); max-width: 30em; font-weight: 400; }
.sub { color: var(--ink-3); }
.measure { max-width: 62ch; }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--rev { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  body { font-size: 1.05rem; }
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-stuck { border-color: var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; height: 76px; }
.header .btn { white-space: nowrap; min-height: 44px; padding: 10px 18px; font-size: .92rem; }
.brand { display: flex; flex: 0 0 auto; flex-direction: column; line-height: 1.05; font-family: var(--f-display); white-space: nowrap; }
.brand__name { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__title { font-family: var(--f-body); font-size: .72rem; color: var(--ink-3); margin-top: 3px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; padding: 0; margin-block: 0; }
.nav > li { list-style: none; position: relative; }
.nav a { display: inline-flex; align-items: center; white-space: nowrap; padding: 10px 11px; font-weight: 500; font-size: .95rem; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.nav .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-inline-start: 8px; }
.sub-menu {
  position: absolute; inset-inline-start: 0; top: 100%; min-width: 280px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 8px; margin: 0; list-style: none; box-shadow: 0 20px 40px -20px rgba(15,31,46,.25);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; transform: none; pointer-events: auto; }
.sub-menu a { display: block; padding: 10px 12px; font-size: .95rem; }
.sub-menu a small { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 400; }
.ctas { display: flex; gap: 10px; }
.burger { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font: inherit; }
@media (max-width: 1180px) {
  .nav, .ctas { display: none; }
  .burger { display: block; }
  .header.is-open .nav, .header.is-open .ctas { display: flex; }
  .header.is-open .header__in { flex-wrap: wrap; height: auto; padding-block: 16px; }
  .header.is-open .nav { flex-direction: column; width: 100%; margin: 0; }
  .header.is-open .sub-menu { position: static; opacity: 1; transform: none; pointer-events: auto; box-shadow: none; border: none; background: transparent; padding-inline-start: 16px; }
  .header.is-open .ctas { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
  position: relative; overflow: hidden; will-change: transform;
}
.btn::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.18); transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn:hover::after { transform: translateX(0); }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-2); }
.btn--saffron { background: var(--saffron); color: var(--ink); }
.btn--saffron:hover { background: var(--saffron-2); color: var(--white); }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border-color: var(--paper); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.link-more { font-weight: 600; color: var(--teal); display: inline-flex; align-items: center; gap: 8px; transition: gap .3s var(--ease); }
.link-more svg { width: 18px; height: 18px; flex: 0 0 auto; }
.link-more:hover { gap: 12px; }
.link-more--saffron { color: var(--saffron-2); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 130px);
  min-height: 82vh; display: flex; align-items: center;
}
.hero__bg-word {
  position: absolute; inset-inline-end: -4vw; top: 50%; transform: translateY(-50%);
  font-family: var(--f-arabic); font-weight: 700; font-size: clamp(12rem, 26vw, 24rem);
  line-height: .9; color: var(--ink); opacity: .045; pointer-events: none; user-select: none;
  direction: rtl; white-space: nowrap; z-index: 0;
}
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__kicker { font-size: var(--t-1); color: var(--ink-3); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.hero__kicker::before { content: ""; width: 28px; height: 1px; background: var(--saffron); }
.hero h1 { margin-bottom: 22px; max-width: 12ch; }
.hero h1 .ar-inline { font-family: var(--f-arabic); font-weight: 500; font-size: .92em; color: var(--teal); display: inline-block; }
.hero .lead { margin-bottom: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-3); font-size: .95rem; margin-top: 32px; }
.hero__proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 16px; height: 16px; color: var(--teal); }
.tracks { display: grid; gap: 16px; }
.track {
  position: relative; padding: 28px 28px 26px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  display: grid; gap: 12px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.track:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -30px rgba(15,31,46,.3); }
.track::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 5px; }
.track--tutoring::before { background: var(--saffron); }
.track--services::before { background: var(--teal); }
.track h2 { font-size: var(--t-4); margin: 0; }
.track p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.track__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.track__ar { position: absolute; inset-inline-end: 18px; top: 14px; font-family: var(--f-arabic); font-size: 2.4rem; color: var(--line); font-weight: 600; }
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero__in { grid-template-columns: 1fr; }
  .hero__bg-word { font-size: 40vw; top: 12%; transform: none; opacity: .05; }
}

/* ---------- Page hero (inner pages) ---------- */
.phero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.phero__in { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: end; }
.phero .crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.phero .crumbs a:hover { color: var(--ink); }
.phero h1 { max-width: 16ch; }
.phero__aside { display: grid; gap: 14px; }
.phero__ar {
  position: absolute; inset-inline-end: -2vw; bottom: -6vw; font-family: var(--f-arabic); font-weight: 700;
  font-size: clamp(9rem, 20vw, 18rem); line-height: 1; color: var(--ink); opacity: .04; pointer-events: none; user-select: none; direction: rtl;
}
.phero--tutoring .phero__ar { color: var(--saffron-2); opacity: .08; }
.phero--services .phero__ar { color: var(--teal); opacity: .07; }
@media (max-width: 900px) { .phero__in { grid-template-columns: 1fr; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 22px; background: var(--white); }
.marquee__track { display: flex; gap: 64px; width: max-content; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--f-display); font-size: var(--t-3); color: var(--ink-2); white-space: nowrap; }
.marquee__item::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); }
.marquee__item:nth-child(even)::before { background: var(--teal); }

/* ---------- Feature list / value props ---------- */
.feature { display: grid; gap: 10px; padding-block: 24px; border-top: 1px solid var(--line); }
.feature h3 { font-size: var(--t-3); margin: 0; }
.feature p { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.feature__icon { width: 36px; height: 36px; color: var(--teal); }
.feature--saffron .feature__icon { color: var(--saffron-2); }

/* ---------- Service / sub-page cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
  position: relative; display: grid; gap: 12px; padding: 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line); min-height: 100%;
  transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--teal); }
.card h3 { margin: 0; font-size: var(--t-3); }
.card p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.card .link-more { margin-top: auto; }
.card__ar { font-family: var(--f-arabic); font-size: 1.6rem; color: var(--teal); font-weight: 600; line-height: 1; }
.card--saffron .card__ar { color: var(--saffron-2); }

/* ---------- Steps (sequence) ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-block: 22px; border-top: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step); font-family: var(--f-display); font-size: var(--t-5); line-height: 1; color: var(--saffron); font-variation-settings: "opsz" 96; }
.steps--teal .step::before { color: var(--teal); }
.step h3 { margin: 0 0 4px; font-size: var(--t-3); }
.step p { margin: 0; color: var(--ink-2); }

/* ---------- Two-column checklist ---------- */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check li { display: grid; gap: 12px; align-items: start; }
.check li::before { content: ""; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%230E6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.check--saffron li::before { background-color: var(--saffron-soft); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23B87E1B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* ---------- Stats / credentials strip ---------- */
.creds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cred { padding: 24px 0; border-top: 2px solid var(--ink); }
.cred strong { display: block; font-family: var(--f-display); font-size: var(--t-6); font-weight: 500; line-height: 1; margin-bottom: 8px; font-variation-settings: "opsz" 96; }
.cred span { color: var(--ink-2); font-size: .98rem; }
.section--ink .cred { border-color: var(--saffron); }
.section--ink .cred span { color: #C9D1D8; }
@media (max-width: 900px) { .creds { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Comparison table ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.table th, .table td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--f-body); font-weight: 600; color: var(--ink-2); font-size: .9rem; }
.table-wrap { overflow-x: auto; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--f-display); font-size: var(--t-3); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 14px; height: 14px; border-inline-end: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .35s var(--ease); margin-inline-end: 6px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq__body { padding: 0 0 24px; color: var(--ink-2); max-width: 68ch; }
.faq .faq__body p { margin: 0; }

/* ---------- Quote / testimonial ---------- */
.quote { display: grid; gap: 18px; padding: 32px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.quote p { font-family: var(--f-display); font-size: var(--t-3); line-height: 1.35; margin: 0; }
.quote cite { font-style: normal; color: var(--ink-3); font-size: .95rem; }
.quote--ph { border-style: dashed; color: var(--ink-3); }

/* ---------- CTA band ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding-block: clamp(56px, 8vw, 100px); }
.cta__ar { position: absolute; inset-inline-end: -1vw; top: 50%; transform: translateY(-50%); font-family: var(--f-arabic); font-weight: 700; font-size: clamp(9rem, 22vw, 20rem); color: var(--paper); opacity: .05; direction: rtl; pointer-events: none; }
.cta__in { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta h2 { margin: 0 0 12px; }
.cta p { color: #C9D1D8; margin: 0; }
.cta__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 900px) { .cta__in { grid-template-columns: 1fr; } .cta__btns { justify-content: flex-start; } }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.post { display: grid; gap: 12px; padding: 26px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post:hover { transform: translateY(-3px); border-color: var(--teal); }
.post__cat { font-size: .82rem; font-weight: 600; color: var(--teal); }
.post__cat--saffron { color: var(--saffron-2); }
.post h3 { margin: 0; font-size: var(--t-3); }
.post p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.post__meta { color: var(--ink-3); font-size: .85rem; }
.article { max-width: 720px; margin-inline: auto; }
.article h2 { font-size: var(--t-5); margin-top: 1.6em; }
.article h3 { font-size: var(--t-3); margin-top: 1.4em; }
.article p, .article li { color: var(--ink-2); }
.article table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .98rem; }
.article th, .article td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article__head { max-width: 820px; margin-inline: auto; padding-block: clamp(48px, 7vw, 96px) 24px; }
.article__head h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 22ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-soft); }
.form__hint { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #C9D1D8; padding-block: 64px 32px; font-size: .95rem; }
.footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: var(--paper); font-family: var(--f-body); font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--paper); }
.footer__brand { font-family: var(--f-display); color: var(--paper); font-size: 1.4rem; }
.footer__bar { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #8E9AA6; }
@media (max-width: 900px) { .footer__in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__in { grid-template-columns: 1fr; } }

/* ---------- Portrait / visual placeholders ---------- */
.portrait { aspect-ratio: 4/5; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--teal-soft), var(--paper-2) 60%, var(--saffron-soft)); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--ink-3); font-size: .9rem; }
.portrait .ar { font-size: 6rem; color: var(--teal); opacity: .35; font-weight: 600; }
.visual { aspect-ratio: 16/10; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--paper-2), var(--white)); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-3); font-size: .9rem; overflow: hidden; position: relative; }
.visual .ar { font-size: 5rem; color: var(--saffron); opacity: .5; font-weight: 600; }

/* ---------- Motion utilities ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-in, .no-js [data-reveal] { opacity: 1; transform: none; }
.char { display: inline-block; will-change: transform, opacity; }
.cursor { position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--saffron); pointer-events: none; z-index: 99; transform: translate(-50%,-50%); mix-blend-mode: multiply; opacity: 0; transition: width .3s, height .3s, opacity .3s; }
.cursor.is-hover { width: 44px; height: 44px; opacity: .55; }
@media (hover: none) { .cursor { display: none; } }
.progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--saffron), var(--teal)); z-index: 60; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; }
  .btn, .card, .track, .post { transition: none; }
  .progress, .cursor { display: none; }
}

/* ---------- Note / placeholder tag (preview only) ---------- */
.ph { display: inline-block; background: var(--saffron-soft); color: var(--saffron-2); padding: 2px 8px; border-radius: 4px; font-size: .8rem; font-weight: 600; }


/* =====================================================================
   v2 additions: visuals, richer sections, FAQ filter, WhatsApp
   ===================================================================== */

/* ---------- Hero visual stack ---------- */
.stack { position: relative; min-height: 560px; }
.stack > * { position: absolute; }
.stack .v-lesson { inset-inline-start: 0; top: 0; width: 68%; z-index: 2; }
.stack .v-subtitle { inset-inline-end: 0; top: 40%; width: 70%; z-index: 3; }
.stack .v-tiles { inset-inline-end: 6%; top: -4%; z-index: 1; }
.stack .v-pair { inset-inline-start: 2%; bottom: 0; width: 52%; z-index: 4; }
@media (max-width: 900px) {
  .stack { min-height: 0; display: grid; gap: 16px; }
  .stack > * { position: static; width: 100% !important; }
  .stack .v-tiles { display: none; }
}

/* ---------- Visual: lesson window ---------- */
.v-lesson { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(15,31,46,.35); overflow: hidden; font-size: .9rem; }
.v-lesson__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.v-lesson__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.v-lesson__bar span { margin-inline-start: 8px; }
.v-lesson__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.v-lesson__tile { aspect-ratio: 4/3; border-radius: 8px; display: grid; place-items: center; position: relative; overflow: hidden; }
.v-lesson__tile--t { background: linear-gradient(150deg, var(--teal-soft), #c3dedb); }
.v-lesson__tile--s { background: linear-gradient(150deg, var(--saffron-soft), #efd9a8); }
.v-lesson__tile .av { width: 44px; height: 44px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.1rem; color: var(--ink); }
.v-lesson__tile .nm { position: absolute; inset-inline-start: 8px; bottom: 8px; background: rgba(15,31,46,.75); color: var(--white); padding: 2px 8px; border-radius: 4px; font-size: .7rem; }
.v-lesson__board { margin: 0 12px 12px; padding: 12px 14px; border-radius: 8px; background: var(--paper); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.v-lesson__board .ar { font-size: 1.6rem; font-weight: 600; color: var(--teal); grid-row: span 2; }
.v-lesson__board b { font-weight: 600; }
.v-lesson__board span { color: var(--ink-3); }

/* ---------- Visual: subtitle player ---------- */
.v-subtitle { background: var(--ink); border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(15,31,46,.5); overflow: hidden; color: var(--paper); font-size: .78rem; }
.v-subtitle__frame { aspect-ratio: 16/8; position: relative; background: radial-gradient(120% 90% at 30% 20%, #23415a, #0F1F2E 70%); display: grid; place-items: end center; padding: 14px; }
.v-subtitle__line { background: rgba(0,0,0,.55); padding: 6px 12px; border-radius: 4px; font-family: var(--f-arabic); font-size: 1.05rem; direction: rtl; text-align: center; }
.v-subtitle__en { position: absolute; top: 12px; inset-inline-start: 14px; color: #8E9AA6; font-size: .72rem; }
.v-subtitle__tl { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid rgba(255,255,255,.08); color: #8E9AA6; font-variant-numeric: tabular-nums; }
.v-subtitle__track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.v-subtitle__track i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%; background: var(--teal); border-radius: 3px; }
.v-subtitle__track b { position: absolute; top: -3px; height: 12px; width: 18%; inset-inline-start: 36%; border: 1px solid var(--saffron); border-radius: 3px; background: rgba(217,154,43,.25); }

/* ---------- Visual: letter tiles ---------- */
.v-tiles { display: grid; grid-template-columns: repeat(3, 44px); gap: 8px; }
.v-tiles span { width: 44px; height: 44px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--f-arabic); font-size: 1.3rem; font-weight: 600; color: var(--ink-2); box-shadow: 0 10px 20px -14px rgba(15,31,46,.35); }
.v-tiles span:nth-child(2) { background: var(--saffron); color: var(--ink); border-color: transparent; }
.v-tiles span:nth-child(6) { background: var(--teal); color: var(--white); border-color: transparent; }

/* ---------- Visual: language pair card ---------- */
.v-pair { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 20px 40px -24px rgba(15,31,46,.3); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; font-size: .8rem; }
.v-pair div { display: grid; gap: 2px; }
.v-pair small { color: var(--ink-3); font-size: .7rem; }
.v-pair strong { font-weight: 600; }
.v-pair .ar { font-size: .95rem; text-align: end; }
.v-pair svg { width: 22px; height: 22px; color: var(--teal); }

/* ---------- Visual: phone (localization) ---------- */
.v-phone { width: 230px; margin-inline: auto; border-radius: 30px; border: 8px solid var(--ink); background: var(--white); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,31,46,.5); font-size: .7rem; }
.v-phone__top { padding: 14px 14px 8px; background: var(--paper-2); display: flex; justify-content: space-between; direction: rtl; font-family: var(--f-arabic); }
.v-phone__hero { margin: 10px; height: 74px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), #2b8f8f); color: var(--white); padding: 10px; direction: rtl; font-family: var(--f-arabic); font-size: .85rem; display: grid; align-content: end; }
.v-phone__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 10px 10px; }
.v-phone__row i { display: block; height: 54px; border-radius: 8px; background: var(--paper-2); }
.v-phone__btn { margin: 0 10px 14px; padding: 8px; border-radius: 999px; background: var(--saffron); text-align: center; font-family: var(--f-arabic); direction: rtl; font-weight: 600; }
.v-phone__price { display: flex; justify-content: space-between; margin: 0 10px 10px; direction: rtl; font-family: var(--f-arabic); color: var(--ink-2); }

/* ---------- Visual: MTPE diff ---------- */
.v-diff { background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .88rem; }
.v-diff__head { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper-2); font-weight: 600; color: var(--ink-2); font-size: .78rem; }
.v-diff__head span { padding: 8px 14px; }
.v-diff__body { display: grid; grid-template-columns: 1fr 1fr; }
.v-diff__body > div { padding: 14px; font-family: var(--f-arabic); direction: rtl; line-height: 1.9; }
.v-diff__body > div + div { border-inline-start: 1px solid var(--line); }
.v-diff del { background: #fde2e2; color: #8a1c1c; text-decoration: line-through; padding: 0 2px; }
.v-diff ins { background: var(--teal-soft); color: var(--teal-2); text-decoration: none; padding: 0 2px; }

/* ---------- Visual: reach (GCC) ---------- */
.v-reach { position: relative; aspect-ratio: 1; max-width: 420px; margin-inline: auto; }
.v-reach svg { width: 100%; height: 100%; }
.v-reach .lbl { font-family: var(--f-body); font-size: 12px; fill: var(--ink-2); font-weight: 600; }
.v-reach .lbl--c { fill: var(--ink); font-size: 14px; }

/* ---------- Visual: process rail ---------- */
.rail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.rail::before { content: ""; position: absolute; top: 26px; inset-inline: 10%; height: 2px; background: var(--line); }
.rail__item { position: relative; padding-top: 70px; }
.rail__item::before { content: attr(data-n); position: absolute; top: 0; inset-inline-start: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); color: var(--teal); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.3rem; }
.rail--saffron .rail__item::before { border-color: var(--saffron); color: var(--saffron-2); }
.rail h3 { font-size: var(--t-3); margin: 0 0 6px; }
.rail p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 800px) { .rail { grid-template-columns: 1fr; } .rail::before { display: none; } .rail__item { padding-top: 0; padding-inline-start: 70px; } }

/* ---------- Intro (who is Nawal) ---------- */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__figure { position: relative; }
.intro__figure .portrait { aspect-ratio: 4/5; }
.intro__badge { position: absolute; inset-inline-end: -16px; bottom: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; box-shadow: 0 20px 40px -24px rgba(15,31,46,.35); display: grid; gap: 2px; }
.intro__badge strong { font-family: var(--f-display); font-size: 1.6rem; line-height: 1; }
.intro__badge span { font-size: .82rem; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.chip svg { width: 14px; height: 14px; color: var(--teal); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } .intro__badge { inset-inline-end: 8px; } }

/* ---------- Two-track section (home) ---------- */
.tracks--home { grid-template-columns: 1fr 1fr; gap: 24px; }
.tracks--home .track { padding: 36px; }
.tracks--home .track h2 { font-size: var(--t-5); }
.track__list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; color: var(--ink-2); font-size: .98rem; }
.track__list li::before { content: "— "; color: var(--ink-3); }
@media (max-width: 900px) { .tracks--home { grid-template-columns: 1fr; } }

/* ---------- Services grouped ---------- */
.svc-group { display: grid; gap: 14px; }
.svc-group__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.svc-group__head h3 { margin: 0; font-size: var(--t-4); }
.svc { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; align-items: start; transition: border-color .25s, transform .3s var(--ease); }
.svc:hover { border-color: var(--teal); transform: translateY(-2px); }
.svc--saffron:hover { border-color: var(--saffron); }
.svc__ic { width: 56px; height: 56px; border-radius: 12px; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-family: var(--f-arabic); font-size: 1.3rem; font-weight: 600; }
.svc--saffron .svc__ic { background: var(--saffron-soft); color: var(--saffron-2); }
.svc h4 { margin: 0 0 4px; font-family: var(--f-display); font-size: var(--t-3); }
.svc p { margin: 0; color: var(--ink-2); font-size: .98rem; }

/* ---------- Credential timeline (About) ---------- */
.tl { display: grid; gap: 0; }
.tl__item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); }
.tl__year { font-family: var(--f-display); font-size: var(--t-4); color: var(--teal); line-height: 1; font-variation-settings: "opsz" 96; }
.tl__item h3 { margin: 0 0 4px; font-size: var(--t-3); }
.tl__item p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.tl--saffron .tl__year { color: var(--saffron-2); }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.logo { padding: 22px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 4px; }
.logo strong { font-family: var(--f-display); font-size: var(--t-3); font-weight: 500; }
.logo span { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 600px) { .tl__item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- FAQ filter ---------- */
.ffilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ffilter button { font: inherit; font-size: .92rem; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; min-height: 44px; }
.ffilter button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq-group { margin-bottom: 40px; }
.faq-group h2 { font-size: var(--t-5); }
.faq-group[hidden] { display: none; }

/* ---------- WhatsApp ---------- */
.btn--wa { background: #25D366; color: #0b2b16; }
.btn--wa:hover { background: #1fb457; }
.wa-float { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; background: #25D366; color: #0b2b16; font-weight: 700; box-shadow: 0 16px 30px -12px rgba(0,0,0,.35); }
.wa-float svg { width: 22px; height: 22px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ccard { padding: 28px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 10px; }
.ccard h3 { margin: 0; }
.ccard p { margin: 0; color: var(--ink-2); }
.ccard--saffron { border-top: 4px solid var(--saffron); }
.ccard--teal { border-top: 4px solid var(--teal); }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Section head with side link ---------- */
.shead { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.shead h2 { margin: 0; }
.shead p { margin: 6px 0 0; color: var(--ink-2); max-width: 52ch; }

/* ---------- Quiet pattern band ---------- */
.band { background: var(--ink); color: var(--paper); border-radius: 16px; padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band p { color: #C9D1D8; }
.band__ar { position: absolute; inset-inline-end: -10px; top: -20px; font-family: var(--f-arabic); font-size: 12rem; color: var(--paper); opacity: .05; line-height: 1; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } }
.cursor { display: none; }

/* =====================================================================
   v3: photography layer + blog redesign
   ===================================================================== */
.photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.06); }
.photo--43 { aspect-ratio: 4/3; } .photo--45 { aspect-ratio: 4/5; } .photo--169 { aspect-ratio: 16/9; } .photo--1 { aspect-ratio: 1; } .photo--32 { aspect-ratio: 3/2; }
.photo__cap { position: absolute; inset-inline: 14px; bottom: 14px; background: rgba(15,31,46,.72); color: var(--paper); padding: 10px 14px; border-radius: 8px; font-size: .85rem; backdrop-filter: blur(6px); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.photo__cap .ar { font-size: 1.1rem; font-weight: 600; color: var(--saffron); }
.photo__tag { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--white); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; }

/* hero aside composition: photo + floating visual */
.hero-visual { position: relative; }
.hero-visual .photo { aspect-ratio: 4/3; }
.hero-visual__float { position: absolute; inset-inline-start: -8%; bottom: -10%; width: 62%; z-index: 2; }
.hero-visual__float .v-pair, .hero-visual__float .v-lesson, .hero-visual__float .v-subtitle, .hero-visual__float .v-diff { box-shadow: 0 30px 60px -24px rgba(15,31,46,.5); }
.hero-visual__phone { position: absolute; inset-inline-end: 6%; bottom: -12%; z-index: 2; }
@media (max-width: 900px) { .hero-visual__float { position: static; width: 100%; margin-top: 16px; } .hero-visual__phone { position: static; margin: 16px auto 0; } }

/* home hero stack: photo base */
.stack .v-photo { inset-inline-end: 0; top: 0; width: 66%; z-index: 0; aspect-ratio: 4/3; }
@media (max-width: 900px) { .stack .v-photo { display: none; } }

/* two-track cards with photo header */
.track__img { margin: -36px -36px 20px; aspect-ratio: 16/7; overflow: hidden; }
.track__img img { width: 100%; height: 100%; object-fit: cover; }
.tracks--home .track { padding-top: 0; }
.tracks--home .track::before { z-index: 1; }

/* photo band with quote */
.pband { position: relative; overflow: hidden; min-height: 420px; display: grid; align-items: center; color: var(--paper); }
.pband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,31,46,.88) 0%, rgba(15,31,46,.55) 55%, rgba(15,31,46,.2) 100%); }
.pband__in { position: relative; z-index: 1; padding-block: 72px; }
.pband h2 { color: var(--paper); max-width: 18ch; }
.pband p { color: #D5DCE2; max-width: 52ch; }
.pband .ar { display: block; font-size: 2.2rem; color: var(--saffron); margin-bottom: 12px; font-weight: 600; }

/* CTA with photo */
.cta--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }

/* gallery strip */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 240px; gap: 14px; }
.gallery .photo { height: 100%; }
.gallery .photo:first-child { grid-row: span 2; }
@media (max-width: 800px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; } .gallery .photo:first-child { grid-column: span 2; } }

/* blog cards */
.posts { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.post { padding: 0; overflow: hidden; }
.post__img { aspect-ratio: 16/9; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.post__read { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal); margin-top: 6px; }
.post--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
.post--feature .post__img { aspect-ratio: auto; min-height: 320px; }
.post--feature .post__body { padding: 40px; align-content: center; }
.post--feature h3 { font-size: var(--t-5); }
@media (max-width: 800px) { .post--feature { grid-template-columns: 1fr; } .post--feature .post__img { aspect-ratio: 16/9; min-height: 0; } }

/* blog article */
.article__hero { position: relative; }
.article__hero .photo { aspect-ratio: 21/9; border-radius: 0; }
.article__hero .photo img { transform: none; }
.article__head { position: relative; }
.article__meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; color: var(--ink-3); font-size: .9rem; }
.article__meta .post__cat { font-size: .82rem; }
.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 56px; align-items: start; }
.article-side { position: sticky; top: 100px; display: grid; gap: 18px; }
.side-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 10px; }
.side-card h4 { margin: 0; font-family: var(--f-body); font-size: .95rem; font-weight: 700; }
.side-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.side-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.article figure { margin: 2em 0; }
.article figure .photo { aspect-ratio: 16/9; }
.article figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 8px; }
.article blockquote { margin: 1.6em 0; padding: 18px 24px; border-inline-start: 4px solid var(--saffron); background: var(--white); border-radius: 0 12px 12px 0; font-family: var(--f-display); font-size: var(--t-3); }
.author { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; margin-top: 40px; }
.author__av { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(150deg, var(--teal-soft), var(--saffron-soft)); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.6rem; }
.author p { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-side { position: static; } }

/* intro figure with photo */
.intro__figure .photo { aspect-ratio: 4/5; }
.stack > .photo { position: absolute; }
.stack .v-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,31,46,0) 40%, rgba(15,31,46,.35)); }

.post__read svg { width: 16px; height: 16px; }
.article > h1 { display: none; }
