/* Edupace website. Colours and type follow the Edupace Mini Brand Guideline (Dec 2026). */
@font-face { font-family: 'GFS Didot'; src: url(/assets/fonts/GFSDidot-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Noto Sans'; src: url(/assets/fonts/NotoSans-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Noto Sans Arabic'; src: url(/assets/fonts/NotoSansArabic-arabic.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --navy: #142940;
  --navy-deep: #0e1f31;
  --navy-soft: #1d3a5a;
  --paper: #f6f5f1;
  --white: #ffffff;
  --ink: #142940;
  --muted: #5a6877;
  --line: #dde2e8;
  --on-navy-muted: #b9c6d4;
  --live: #1f7a55;
  --radius: 18px;
  --serif: 'GFS Didot', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Noto Sans', 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1160px;
}
:lang(ar) { --serif: 'Noto Sans Arabic', 'Noto Sans', system-ui, sans-serif; --sans: 'Noto Sans Arabic', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.65; text-rendering: optimizeLegibility; }
:lang(ar) body, body:lang(ar) { font-size: 18px; line-height: 1.85; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3 { font-weight: 600; letter-spacing: 0; line-height: 1.4; }
h2 { font-size: clamp(32px, 4.4vw, 52px); margin-bottom: 28px; }
:lang(ar) h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 26px; }
:lang(ar) h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
:focus-visible { outline: 3px solid #7fb2e5; outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 10px; z-index: 10; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Header */
.top { position: absolute; inset-inline: 0; top: 0; color: var(--white); z-index: 2; }
.top-row { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: inline-flex; padding: 8px 0; color: var(--white); }
.logo { width: 168px; height: auto; aspect-ratio: 4423 / 830; color: currentColor; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; font-size: 15px; }
.nav a, .lang { text-decoration: none; color: var(--on-navy-muted); transition: color .2s; }
.nav a:hover, .lang:hover { color: var(--white); }
.lang { border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 6px 16px; font-size: 15px; color: var(--white); font-family: 'Noto Sans Arabic', 'Noto Sans', sans-serif; }
.lang:lang(en) { font-family: 'Noto Sans', sans-serif; }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--white); background:
  radial-gradient(1200px 600px at 0% 0%, rgba(54, 104, 160, .38), transparent 60%),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: calc(84px + clamp(56px, 9vw, 120px)) 0 clamp(80px, 12vw, 160px); }
.hero-mark { position: absolute; width: min(70vw, 860px); height: auto; aspect-ratio: 1450 / 830; inset-inline-end: -6vw; bottom: -4vw; color: var(--white); opacity: .07; pointer-events: none; }
.hero-inner { position: relative; max-width: var(--wrap); }
.eyebrow { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--on-navy-muted); margin-bottom: 26px; font-weight: 600; }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 15px; }
.tagline { font-size: clamp(48px, 8.4vw, 104px); line-height: 1.02; max-width: 11ch; }
:lang(ar) .tagline { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.3; max-width: 14ch; }
.lead { font-size: clamp(19px, 2.1vw, 24px); color: #dbe4ee; margin: 26px 0 40px; max-width: 34ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 20px; height: 20px; }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: #e9eef4; }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); }

/* Sections */
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section-tint { background: var(--white); border-block: 1px solid var(--line); }
.kicker { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
:lang(ar) .kicker { letter-spacing: 0; font-size: 15px; }

.about { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about h2 { max-width: 13ch; }
.about-body p { font-size: 19px; color: #2b3e53; }
:lang(ar) .about-body p { font-size: 19px; }
.values { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values li { border-top: 1px solid #c9d1da; padding-top: 22px; }
.values .num { font-family: 'GFS Didot', Georgia, serif; color: #8b97a5; font-size: 22px; display: block; margin-bottom: 6px; }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--muted); margin: 0; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; }
.card p { color: #34475b; }
.card .lede { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 10px; line-height: 1.3; }
:lang(ar) .card .lede { font-size: 19px; font-weight: 600; }
.card .btn { margin-top: auto; }
.card-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.card-head h3 { font-family: 'GFS Didot', Georgia, serif; font-weight: 400; font-size: 30px; line-height: 1.1; margin-bottom: 6px; }
.app-icon { width: 64px; height: 64px; border-radius: 16px; flex: none; box-shadow: 0 6px 16px rgba(20, 41, 64, .18); }
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: #e6eaef; color: var(--muted); }
.tag-live { background: #e1f2ea; color: var(--live); }
.note { font-size: 15px; color: var(--muted) !important; margin-top: auto; margin-bottom: 0; padding-top: 6px; }

.schools-band { background: var(--navy); color: var(--white); }
.schools-band .kicker { color: var(--on-navy-muted); }
.schools { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.schools p { color: #d5dfea; font-size: 19px; max-width: 46ch; margin-bottom: 32px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .04); font-size: 17px; }
.checks .ico { color: #9fd3b8; }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; min-width: 0; }
a.contact:hover { border-color: #9fb0c3; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 41, 64, .08); }
.contact .ico { color: var(--navy); margin-bottom: 10px; width: 26px; height: 26px; }
.c-label { font-size: 14px; color: var(--muted); }
.c-value { font-weight: 600; font-size: 16px; font-style: normal; overflow-wrap: anywhere; }
.c-value[dir="ltr"] { font-size: 15px; white-space: nowrap; overflow-wrap: normal; }
[dir="rtl"] .c-value[dir="ltr"] { text-align: end; }
address.c-value { font-weight: 500; line-height: 1.55; }

/* Footer */
.foot { background: var(--navy-deep); color: var(--on-navy-muted); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 4fr 5fr 3fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-logo { color: var(--white); width: 150px; }
.foot-tag { margin-top: 14px; font-family: var(--serif); color: #dbe4ee; font-size: 18px; }
.legal p { margin: 0 0 6px; }
.legal-name { color: var(--white); font-weight: 600; }
.foot-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot-links a { color: #dbe4ee; text-decoration: none; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }
.copy { padding-top: 22px; font-size: 14px; }

/* 404 */
.nf { background: var(--navy); color: var(--white); min-height: 100vh; display: grid; place-items: center; text-align: center; }
.nf-box { padding: 40px 24px; }
.nf-logo { width: 200px; margin: 0 auto 36px; color: var(--white); }
.nf h1 { font-size: 44px; margin-bottom: 8px; }
.nf p { color: var(--on-navy-muted); }
.nf .btn { margin: 8px 4px 0; }

/* Tablet and phone */
@media (max-width: 1180px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .about, .schools, .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .top-row { min-height: 70px; }
  .hero { padding-top: calc(70px + 48px); }
  .logo { width: 132px; }
  .hero-mark { width: 120vw; inset-inline-end: -40vw; bottom: -8vw; }
  .actions .btn { flex: 1 1 auto; justify-content: center; }
  .contact-grid, .foot-grid { grid-template-columns: 1fr; }
  .card-head h3 { font-size: 26px; }
  .about-body p, .schools p { font-size: 17px; }
}
