/* EduShift — brand palette from the Coolors sheet */
:root {
  --navy: #1B2C56;
  --navy-deep: #121B2E;
  --green: #8BCF4E;
  --green-dark: #6FB335;
  --grey: #DBDBDA;
  --white: #FFFFFF;
  --text: #1B2C56;
  --muted: #55607a;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(18, 27, 46, .35);
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Poppins', system-ui, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0 0 1em; }
.green { color: var(--green); }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .18em; font-size: .85rem; color: var(--green-dark); margin-bottom: .75em; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .95em 1.8em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; font-family: var(--font-body); }
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--navy-deep); box-shadow: 0 10px 24px -10px rgba(139, 207, 78, .8); }
.btn-green:hover { background: #9bdc5f; }
.btn-ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-sm { padding: .6em 1.3em; font-size: .88rem; }

/* Logo */
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; color: var(--white); }
.logo-word { font-family: var(--font-body); font-weight: 600; font-size: 1.75rem; letter-spacing: -.02em; display: inline-flex; align-items: flex-start; }
.logo-mark { width: .7em; height: .7em; color: var(--green); margin-left: .08em; margin-top: -.12em; }
.logo-tag { font-family: var(--font-body); font-weight: 300; font-size: .78rem; margin-top: .15em; padding-left: .1em; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; transition: background .3s, box-shadow .3s; }
.site-header.is-scrolled { background: rgba(18, 27, 46, .92); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.menu { display: flex; align-items: center; gap: 2rem; }
.menu a:not(.btn) { color: var(--white); text-decoration: none; font-size: .95rem; position: relative; opacity: .9; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--green); transition: width .25s; }
.menu a:not(.btn):hover::after, .menu a.is-current::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-actions { display: none; align-items: center; gap: .5rem; }
.lang-switch { font: 600 .9rem 'Cairo', var(--font-body); color: var(--white); background: transparent; border: 1.5px solid rgba(255,255,255,.45); border-radius: 999px; padding: .35em 1em; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lang-switch:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.lang-switch[lang="en"] { font-family: var(--font-body); }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; color: var(--white); overflow: hidden; background: var(--navy-deep); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 80% 20%, rgba(139,207,78,.18), transparent 55%),
  linear-gradient(100deg, rgba(18,27,46,.9) 0%, rgba(27,44,86,.55) 60%, rgba(27,44,86,.3) 100%); }
.hero-inner { position: relative; padding: calc(var(--header-h) + 40px) 0 80px; max-width: 820px; margin-left: max(16px, calc((100% - 1200px) / 2)); }
.hero .eyebrow { color: var(--green); }
.hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 500; letter-spacing: .03em; margin-bottom: .3em; }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300; max-width: 620px; opacity: .92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-tags li { border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: .35em 1em; font-size: .85rem; }
.hero-tags li::before { content: "•"; color: var(--green); margin-right: .5em; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--green); border-radius: 2px; animation: cue 1.6s infinite; }
@keyframes cue { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* Sections */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section-alt { background: #f3f4f2; }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy p { color: rgba(255,255,255,.82); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head > p:last-child { color: var(--muted); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s; display: flex; flex-direction: column; }
.pillar:hover { transform: translateY(-8px); }
.pillar img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.pillar-body { padding: 1.4rem 1.4rem 1.6rem; }
.pillar-body p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Band with rotating text video */
.band { position: relative; background: var(--navy); color: var(--white); display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; }
.band video { width: 100%; height: 100%; max-height: 560px; object-fit: cover; }
.band-text { padding: clamp(40px, 6vw, 80px); }
.band-text h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; }
.band-text p { color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 460px; }

/* Solutions */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; margin-bottom: clamp(50px, 8vw, 90px); }
.feature img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; object-fit: cover; width: 100%; }
.feature h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
.feature p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%231B2C56' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 2rem; transition: transform .3s, box-shadow .3s; border: 1px solid #e6e8e4; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 1.2rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 0; }

.duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(50px, 8vw, 90px); }
.duo-item { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; color: var(--white); min-height: 420px; }
.duo-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.duo-item:hover img { transform: scale(1.05); }
.duo-item figcaption { position: absolute; inset: auto 0 0; padding: 4rem 1.6rem 1.6rem; background: linear-gradient(transparent, rgba(18,27,46,.95)); }
.duo-item figcaption p { margin: 0; font-size: .92rem; opacity: .9; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid #e6e8e4; overflow: hidden; transition: border-color .3s, transform .3s; }
.step:hover { border-color: var(--green); transform: translateY(-4px); }
.step img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 1rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
.step-num { position: absolute; top: .6rem; right: 1.2rem; font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; color: var(--grey); opacity: .7; line-height: 1; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.values > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 1.3rem; }
.values img { width: 48px; height: 48px; object-fit: contain; margin-bottom: .7rem; background: var(--white); border-radius: 12px; padding: 6px; }
.values h3 { font-size: 1.15rem; margin-bottom: .3em; }
.values p { font-size: .88rem; margin: 0; }

/* Quotes */
.quotes-section { background: var(--grey); text-align: center; }
.quotes { display: grid; min-height: 9em; align-items: center; }
.quote { grid-area: 1 / 1; margin: 0; font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.2; font-weight: 500; color: var(--navy); opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; pointer-events: none; }
.quote::before { content: "\201D"; display: block; font-size: 1.6em; line-height: .6; color: var(--navy); }
.quote.is-active { opacity: 1; transform: none; pointer-events: auto; }
.quote-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 2rem; }
.quote-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(27,44,86,.3); cursor: pointer; padding: 0; transition: width .3s, background .3s; }
.quote-dots button.is-active { width: 30px; border-radius: 6px; background: var(--navy); }

/* CTA */
.cta { background: var(--navy) url("../img/banner.webp") center / cover no-repeat; color: var(--white); padding: clamp(70px, 10vw, 120px) 0; position: relative; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,27,46,.2), rgba(18,27,46,.85) 55%); }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.cta-inner h2 { max-width: 560px; font-weight: 500; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.contact > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }
.contact-list a { font-weight: 600; text-decoration: none; font-size: 1.1rem; }
.ci { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--green); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid #e6e8e4; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; font-size: .95rem; padding: .8em 1em; border: 1.5px solid #d8dbd6; border-radius: 10px; background: #fafbf9; color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(139,207,78,.2); }
.field .is-invalid { border-color: #d9534f; }
.form-note { margin: 0; font-size: .88rem; color: var(--green-dark); min-height: 1.3em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 50px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: var(--green); }
.copy { margin: 0; font-size: .85rem; width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; }

/* WhatsApp button */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: var(--white); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video, .band video { display: none; }
}

/* Responsive */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr 1fr; }
  .duo-item:last-child { grid-column: 1 / -1; min-height: 360px; }
}
@media (max-width: 860px) {
  .nav-actions { display: flex; position: relative; z-index: 2; }
  .menu .lang-switch { display: none; }
  .nav-toggle, .site-header .logo { display: block; position: relative; z-index: 2; }
  .site-header .logo { display: inline-flex; }
  .menu { position: fixed; inset: 0; background: var(--navy-deep); flex-direction: column; justify-content: center; gap: 1.8rem; transform: translateX(100%); transition: transform .35s; }
  .menu a:not(.btn) { font-size: 1.4rem; font-family: var(--font-head); }
  body.menu-open .menu { transform: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .band, .feature, .about, .contact { grid-template-columns: 1fr; }
  .band video { max-height: 360px; }
  .cta-inner { align-items: flex-start; text-align: left; }
  .cta::before { background: rgba(18,27,46,.8); }
}
@media (max-width: 600px) {
  .pillars, .cards, .steps, .duo, .values, .contact-form { grid-template-columns: 1fr; }
  .duo-item, .duo-item:last-child { min-height: 340px; }
  .hero-cta .btn { width: 100%; }
  .logo-word { font-size: 1.5rem; }
}

/* ---------- Arabic / right-to-left ---------- */
[dir="rtl"] body { font-family: 'Cairo', var(--font-body); line-height: 1.8; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .quote { font-family: 'Cairo', var(--font-head); font-weight: 700; line-height: 1.35; letter-spacing: 0; }
[dir="rtl"] h3 { font-weight: 600; }
/* Letter-spacing breaks Arabic letter joining, so it must be off everywhere */
[dir="rtl"] .eyebrow, [dir="rtl"] .hero h1 { letter-spacing: 0; text-transform: none; font-family: 'Cairo', var(--font-head); }
[dir="rtl"] .eyebrow { font-size: .95rem; font-weight: 600; }
[dir="rtl"] .hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 700; }
[dir="rtl"] .btn, [dir="rtl"] .field input, [dir="rtl"] .field select, [dir="rtl"] .field textarea { font-family: 'Cairo', var(--font-body); }
[dir="rtl"] .logo { align-items: flex-start; }
[dir="rtl"] .hero-overlay { background:
  radial-gradient(ellipse at 20% 20%, rgba(139,207,78,.18), transparent 55%),
  linear-gradient(-100deg, rgba(18,27,46,.9) 0%, rgba(27,44,86,.55) 60%, rgba(27,44,86,.3) 100%); }
[dir="rtl"] .hero-inner { margin-left: 0; margin-right: max(16px, calc((100% - 1200px) / 2)); }
[dir="rtl"] .hero-tags li::before { margin-right: 0; margin-left: .5em; }
[dir="rtl"] .menu a:not(.btn)::after { left: auto; right: 0; }
[dir="rtl"] .checks li { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .checks li::before { left: auto; right: 0; }
[dir="rtl"] .step-num { right: auto; left: 1.2rem; }
[dir="rtl"] .quote::before { content: "\201C"; }
/* The banner's arrows sit on the left, so text stays on the right in both languages */
[dir="rtl"] .cta-inner { align-items: flex-start; text-align: right; }
[dir="rtl"] .wa-float { right: auto; left: 20px; }
[dir="rtl"] .contact-list a[dir="ltr"] { unicode-bidi: isolate; }
@media (max-width: 860px) {
  [dir="rtl"] .menu { transform: translateX(-100%); }
  [dir="rtl"] body.menu-open .menu { transform: none; }
  [dir="rtl"] .menu a:not(.btn) { font-family: 'Cairo', var(--font-head); }
  [dir="rtl"] .cta-inner { text-align: right; }
}
