:root {
  /* Brand colors sampled from the school logo */
  --ink: #1d353c;
  --teal-dark: #2a4d56;
  --teal: #3e6b7a;
  --gold: #d7bc85;
  --gold-deep: #c49a4f;
  --gold-text: #8a6424;
  --gold-soft: #f1e6cc;
  --cream: #f7f2e6;
  --paper: #fffdf8;
  --muted: #56666b;
  --line: #e6dcc6;
  --radius: 18px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--cream);
}
html[lang="en"] body { line-height: 1.65; }
h1, h2, h3 { font-family: "Readex Pro", sans-serif; font-weight: 600; line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .7em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(247,242,230,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Readex Pro", sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--teal-dark); margin-inline-end: auto; }
.brand img { width: 36px; height: auto; }
.nav { display: flex; gap: 26px; margin-inline-end: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--teal); }
.lang { text-decoration: none; font-weight: 600; color: var(--teal); padding: .3em .8em; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.lang:hover { border-color: var(--teal); }
.site-header .btn { padding: .45em 1.2em; }

/* Hero */
.hero { color: #fff; background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; padding-block: 88px; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: .25em 1em; border: 1px solid rgba(215,188,133,.6); border-radius: 999px; color: var(--gold-soft); font-size: .9rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; margin-bottom: .15em; }
.tagline { font-family: "Readex Pro", sans-serif; color: var(--gold); font-size: clamp(1.2rem, 2.6vw, 1.6rem); margin-bottom: .9em; }
.lead { color: rgba(255,255,255,.85); max-width: 34em; font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; height: auto; border-radius: 22px; border: 6px solid rgba(255,253,248,.95); box-shadow: 0 24px 48px rgba(10,30,36,.35); }
.hero-photo figcaption { position: absolute; inset-inline-start: 18px; bottom: -16px; background: var(--gold); color: var(--ink); font-weight: 600; font-size: .9rem; padding: .35em 1em; border-radius: 999px; }

/* Sections */
section { padding-block: 88px; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.kicker { display: block; color: var(--gold-text); font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.section-head h2, .about h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); color: var(--teal-dark); }
.section-head p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.card h3 { font-size: 1.35rem; margin-bottom: .2em; color: var(--teal-dark); }
.card p { color: var(--muted); margin: 0; }
.icon { width: 56px; height: 56px; border-radius: 16px; background: var(--gold-soft); color: var(--teal); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 28px; height: 28px; }
.grades { display: block; color: var(--gold-text); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about p { color: var(--muted); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.fact strong { display: block; font-family: "Readex Pro", sans-serif; font-size: 1.55rem; line-height: 1.3; color: var(--teal); }
.fact span { color: var(--muted); font-size: .95rem; }

/* Features */
.features { gap: 36px 40px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature svg { flex: none; width: 32px; height: 32px; margin-top: 2px; }
.feature h3 { font-size: 1.15rem; margin-bottom: .2em; color: var(--teal-dark); }
.feature p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.44fr 1.37fr .71fr; gap: 16px; align-items: start; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.gallery figcaption { color: var(--muted); font-size: .92rem; margin-top: 8px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; }
.steps li.card { padding-top: 96px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 28px; inset-inline-start: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  font-family: "Readex Pro", sans-serif; font-size: 1.3rem; font-weight: 600;
}
html[lang="ar"] .steps li::before { content: counter(step, arabic-indic); }
.note { text-align: center; color: var(--muted); margin: 28px auto 0; max-width: 640px; font-size: .95rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { width: 46px; height: 46px; border-radius: 12px; margin: 0; flex: none; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--muted); font-size: .9rem; }
.contact-list b { font-weight: 600; }
.contact-list a { color: var(--teal); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.cta-panel { background: var(--teal-dark); color: #fff; border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.cta-panel h3 { font-size: 1.6rem; color: #fff; }
.cta-panel p { color: rgba(255,255,255,.82); }
.cta-panel .actions { margin-top: 10px; }

/* Legal pages */
.page-head { background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 100%); color: #fff; padding-block: 56px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; margin-bottom: .2em; }
.page-head p { color: rgba(255,255,255,.82); margin: 0; }
.legal { max-width: 780px; padding-block: 56px 88px; }
.legal h2 { font-size: 1.3rem; color: var(--teal-dark); margin: 2em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #34484e; }
.legal ul { padding-inline-start: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.legal li::marker { color: var(--gold-deep); }
.legal strong { color: var(--ink); }
.legal a { color: var(--teal); }

/* Footer */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.75); padding-block: 28px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 30px; height: auto; }
.site-footer strong { color: #fff; font-family: "Readex Pro", sans-serif; font-weight: 600; }
.footer-links { display: flex; align-items: center; gap: 18px; }
.footer-links > a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer-links > a:hover { color: var(--gold); text-decoration: underline; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); color: #fff; }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 56px 72px; text-align: center; gap: 40px; }
  .lead { margin-inline: auto; }
  .actions { justify-content: center; }
  section { padding-block: 64px; }
  .about, .contact { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { grid-column: 1 / -1; max-width: 340px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .site-header .btn { display: none; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
