/* Excellencias Academy — one stylesheet for the French and Arabic pages. Version 3. */

:root {
  --ground: #FFF7FC;
  --bar: #831D66;
  --plum: #6F0650;
  --black: #040707;
  --hot: #FF5CCC;
  --vivid: #FA0078;
  --orchid: #EC6CCB;
  --lilac: #DDB9FF;
  --rose: #FFB8E0;
  --pale: #FFDDE8;
  --on-dark: #FFCEDD;
  --nav-link: #F7D0DD;
  --foot: #700650;
  --white: #FFFFFF;

  --sans: Arial, Helvetica, "Liberation Sans", sans-serif;
  --font: var(--sans);

  --edge: clamp(1rem, 4.5vw, 3rem);          /* text column */
  --edge-wide: clamp(1rem, 3.334vw, 4rem);   /* hero: 64px at 1920 */
  --edge-full: clamp(1rem, 1.3vw, 1.5625rem);/* testimonial: 25px at 1920 */
  --col: 76.25rem;                           /* 1220px */
  --section: clamp(4rem, 8vw, 8rem);
  --radius: 1.25rem;
  --nav-h: 4.375rem;                         /* 70px */
  --stick: calc(var(--nav-h) + 1.25rem);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dir: 1;

  color-scheme: light;
}

:root:lang(ar) {
  --font: "IBM Plex Sans Arabic", var(--sans);
  --dir: -1;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  padding-block-start: var(--nav-h);
  background: var(--ground);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:root:lang(ar) [lang="en"] { font-family: var(--sans); }

::selection { background: var(--hot); color: var(--black); }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-head :focus-visible,
.site-foot :focus-visible,
.hero :focus-visible { outline-color: var(--white); }
main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 2 * var(--edge));
  margin-inline: auto;
  padding-inline: var(--edge);
}
.wide { padding-inline: var(--edge-wide); }
.full { padding-inline: var(--edge-full); }

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(1rem, 2vw, 2rem); }

.sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: var(--edge);
  top: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  color: var(--plum);
  border-radius: 0.5rem;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Placeholder: content the owner still has to send ---------- */

.todo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35em 0.7em;
  border: 2px dashed currentColor;
  border-radius: 0.375rem;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

/* ---------- Buttons ---------- */

/* White on #FF5CCC is the reference's own pair; kept at 19px uppercase only. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9375rem 1.5625rem;
  border-radius: 0.5rem;
  background: var(--hot);
  color: var(--white);
  font: 400 1.1875rem/1.2 var(--font);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 1.375rem;
  border: 1px solid var(--nav-link);
  border-radius: 3.125rem;
  color: var(--nav-link);
  font-size: 0.875rem;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.btn-pill:active { transform: scale(0.97); }

.arrow {
  width: 1em;
  height: 1em;
  flex: none;
  transform: scaleX(var(--dir));
  transition: transform 200ms var(--ease-out);
}

/* ---------- 1 · Header: fixed, 70px ---------- */

.site-head {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 20;
  height: var(--nav-h);
  background: var(--bar);
  color: var(--white);
}
.site-head .wrap { max-width: none; padding-inline: var(--edge-wide); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-inline-end: auto;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { width: auto; height: 1.5rem; }

.menu { display: flex; align-items: center; gap: 1.5rem; }
.menu ul { display: flex; gap: 0 1.75rem; }
.menu ul a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--nav-link);
  font-size: 0.9375rem;
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease;
}

.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0.5rem;
  color: var(--nav-link);
  font-size: 0.9375rem;
  text-decoration: none;
}
/* The French page loads no web font: the Arabic link uses a system Arabic face. */
.lang[lang="ar"] { font-family: "IBM Plex Sans Arabic", Tahoma, var(--sans); }
.lang[lang="fr"] { font-family: var(--sans); }

.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: 400 0.9375rem/1 var(--font);
  cursor: pointer;
  transition: border-color 180ms ease, transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.97); }
.menu-btn .bars { position: relative; width: 1rem; height: 0.625rem; }
.menu-btn .bars::before, .menu-btn .bars::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 200ms var(--ease-out);
}
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 69.999rem) {
  .js .menu-btn { display: inline-flex; }
  .js .menu {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem var(--edge-wide) 2rem;
    background: var(--bar);
    border-block-start: 1px solid rgb(255 255 255 / 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s linear 180ms;
  }
  .js .menu[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s;
  }
  .js .menu ul { flex-direction: column; }
  .js .menu ul a {
    width: 100%;
    min-height: 3.25rem;
    border-block-end: 1px solid rgb(255 255 255 / 0.2);
    font-size: 1.75rem;
    font-weight: 400;
  }
  .js .menu .btn-pill { min-height: 3rem; }
}

/* Phone: wordmark, language link and menu button stay on one line.
   The button keeps its label for screen readers; only the two bars show. */
@media (max-width: 26rem) {
  .nav { gap: 0.5rem; }
  .brand { font-size: 0.8125rem; gap: 0.4rem; letter-spacing: 0; }
  .lang { padding-inline: 0.25rem; }
  .js .menu-btn { font-size: 0; gap: 0; padding-inline: 0.875rem; }
}
@media (max-width: 22rem) {
  .brand { font-size: 0.6875rem; gap: 0.3rem; }
  .brand img { height: 1.125rem; }
  .lang { font-size: 0.8125rem; padding-inline: 0; min-width: 0; }
}

/* ---------- 2 · Hero ---------- */

.hero { padding-block: clamp(0.75rem, 1.5vw, 1.5rem) 0; }

.hero-frame {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: clamp(32rem, 100vh - var(--nav-h) - 2.5rem, 53.125rem);
  height: clamp(32rem, 100svh - var(--nav-h) - 2.5rem, 53.125rem);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--plum);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%; /* faces are in the upper third */
  z-index: -2;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Bottom shade for the headline, plus a side shade on the text side so it reads over people. */
  background:
    linear-gradient(to top, rgb(4 7 7 / 0.82) 0%, rgb(4 7 7 / 0.5) 45%, rgb(4 7 7 / 0) 85%),
    linear-gradient(to right, rgb(4 7 7 / 0.45) 0%, rgb(4 7 7 / 0) 65%);
}
:root[dir="rtl"] .hero-frame::after {
  background:
    linear-gradient(to top, rgb(4 7 7 / 0.82) 0%, rgb(4 7 7 / 0.5) 45%, rgb(4 7 7 / 0) 85%),
    linear-gradient(to left, rgb(4 7 7 / 0.45) 0%, rgb(4 7 7 / 0) 65%);
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: clamp(1.25rem, 2.4vw, 2.25rem);
  padding: clamp(1.25rem, 4vw, 4rem);
  color: var(--white);
}

/* 102px at 1020px and up; 10vw below so « EXCELLENCIAS » never overflows. */
.hero h1 {
  font-size: min(6.375rem, 10vw);
  line-height: 0.92;
  text-transform: uppercase;
}
/* Hook for a rolling second line; static until the owner sends the words. */
.h1-roll { display: inline-block; }

:root:lang(ar) .hero h1 { font-size: min(6.375rem, 9.2vw); line-height: 1.25; }

/* ---------- 3 and 8 · Running bands ---------- */

.band {
  overflow: hidden;
  padding-block: clamp(1.5rem, 3.6vw, 3.75rem);
  font-size: clamp(3.5rem, 7.3vw, 8.75rem);
  line-height: 1;
  white-space: nowrap;
  color: var(--black);
}
:root:lang(ar) .band { line-height: 1.45; padding-block: clamp(1rem, 2.6vw, 2.5rem); }

.band-track {
  display: flex;
  width: max-content;
  animation: band 70s linear infinite;
}
.band-group {
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding-inline-end: 0.35em;
}
.band-group img { width: auto; height: 0.8em; }
.band .dot { font-size: 0.5em; }

.band:hover .band-track,
.band:focus-within .band-track { animation-play-state: paused; }
.band:focus-visible { outline-offset: -3px; border-radius: 0; }

@keyframes band {
  to { transform: translateX(calc(-50% * var(--dir))); }
}

/* ---------- Section headings ---------- */

.h2 {
  font-size: clamp(2.5rem, 0.6rem + 5.3vw, 5.1875rem);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
}
:root:lang(ar) .h2 { line-height: 1.35; }

.body-lg {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.55;
}

/* ---------- 4 · Statement ---------- */

.statement .wrap { display: grid; justify-items: center; text-align: center; }

/* The reference sets this in #FF5CCC (2.6:1 on the ground); the vivid pink keeps the look at 3.8:1. */
.statement-lead {
  max-width: 51.25rem;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  line-height: 1.3;
  color: var(--vivid);
}

.stats {
  display: flex;
  justify-content: center;
  margin-block: clamp(2.5rem, 5vw, 4.5rem);
  width: 100%;
}

.stat {
  --tilt: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 18.25rem;
  min-width: 0;
  min-height: 14.375rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--vivid);
  color: var(--white);
  text-align: start;
  transform: rotate(calc(var(--tilt) * var(--dir)));
}
.stat:nth-child(1) { --tilt: -4deg; margin-inline-end: -1rem; }
.stat:nth-child(2) { z-index: 1; }
.stat:nth-child(3) { --tilt: 4deg; margin-inline-start: -1rem; }

.stat-num {
  padding-block-end: 0.75rem;
  border-block-end: 1px solid var(--white);
  font-size: 4rem;
  font-weight: 300;
  line-height: 1;
}
.stat-label {
  margin-block-start: 1rem;
  font-size: clamp(1.5rem, 1rem + 1.1vw, 2rem);
  line-height: 1.1;
}
/* White on #FA0078 is 3.9:1: placeholder text stays large and bold there. */
.stat .todo, .date .todo { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }

.statement-text {
  max-width: 51rem;
  margin-block-end: clamp(1.75rem, 3vw, 2.5rem);
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  font-weight: 500;
}

@media (max-width: 47.999rem) {
  .stats { flex-direction: column; align-items: center; }
  .stat { flex: none; width: min(18.25rem, 100%); min-height: 11rem; margin: 0; }
  .stat:nth-child(1) { --tilt: -2deg; margin: 0 0 -0.75rem; }
  .stat:nth-child(3) { --tilt: 2deg; margin: -0.75rem 0 0; }
  .stat-num { font-size: 3rem; }
}

/* ---------- 5 · Mission ---------- */

.mission { padding-block-start: 0; }
.mission .wrap { display: grid; justify-items: center; gap: clamp(1.5rem, 3vw, 2.5rem); }
.mission .body-lg { max-width: 51.25rem; text-align: start; }

/* ---------- 6 and 7 · Stacks (sticky from 48rem) ---------- */

.stack { display: grid; gap: 0.75rem; margin-block-start: clamp(2rem, 4.5vw, 4rem); }

.photo-stack img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--pale);
}
/* Vertical crop of each wide strip, set so every face stays in frame. */
.photo-stack img:nth-child(1) { object-position: 50% 33%; }
.photo-stack img:nth-child(2) { object-position: 50% 19%; }
.photo-stack img:nth-child(3) { object-position: 50% 19%; }

@media (min-width: 48rem) {
  .photo-stack img { aspect-ratio: 1220 / 425; position: sticky; top: var(--stick); }
  .photo-stack img:nth-child(2) { top: calc(var(--stick) + 0.625rem); }
  .photo-stack img:nth-child(3) { top: calc(var(--stick) + 1.25rem); }
}

/* ---------- 7 · Programme cards ---------- */

.programmes .h2 { max-width: 16ch; margin-inline: auto; }
:root:lang(ar) .programmes .h2 { max-width: 20ch; }

.card-stack { gap: 1rem; justify-items: center; }

.prog {
  --tint: var(--orchid);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 36.9375rem; /* 591px */
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--black);
}
.prog:nth-child(2) { --tint: var(--lilac); }
.prog:nth-child(3) { --tint: var(--rose); }

.prog-label {
  font-size: clamp(1.25rem, 1rem + 0.7vw, 1.875rem);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.1;
}
.prog-title {
  margin-block: 0.75rem 1.25rem;
  padding-block-end: 1.25rem;
  border-block-end: 1px solid var(--plum);
  color: var(--plum);
  font-size: clamp(2.75rem, 1.5rem + 3.4vw, 4.1875rem);
  line-height: 1;
}
:root:lang(ar) .prog-title { line-height: 1.3; }

.prog-body {
  display: grid;
  gap: 1rem 1.5rem;
  padding-block-end: 1.25rem;
  margin-block-end: 1.25rem;
  border-block-end: 1px solid var(--plum);
}
@media (min-width: 30rem) {
  .prog-body { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

.prog-list a {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 2.75rem;
  padding-block: 0.25rem;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.25;
  text-decoration: none;
}
.prog-side { font-size: 0.8125rem; line-height: 1.4; }

.prog-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.875rem 1rem;
  border-radius: 0.875rem;
  background: var(--pale);
  color: var(--plum);
  font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.5rem);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.prog:nth-child(2) .prog-btn { background: var(--hot); color: var(--white); }
.prog-btn:active { transform: scale(0.98); }

@media (min-width: 48rem) and (min-height: 45rem) {
  .prog { position: sticky; top: var(--stick); }
  .prog:nth-child(2) { top: calc(var(--stick) + 0.625rem); }
  .prog:nth-child(3) { top: calc(var(--stick) + 1.25rem); }
}

/* ---------- 9 · Testimonial ---------- */

.quote {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(26rem, 33vw, 38.75rem);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  background: var(--plum);
}
.quote img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%; /* keeps the faces; the table falls under the text */
  z-index: -2;
}
.quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(111 6 80 / 0.92) 0%, rgb(131 29 102 / 0.6) 50%, rgb(250 0 120 / 0.35) 100%);
}
.quote-copy {
  max-width: 58rem;
  padding: clamp(1.5rem, 4vw, 4rem);
  color: var(--white);
}
.quote .todo { font-size: clamp(1.25rem, 1rem + 1.2vw, 2.5rem); font-weight: 500; line-height: 1.2; text-align: start; }

/* ---------- 10 · Where learners work ---------- */

.logos .wrap { display: grid; justify-items: center; gap: clamp(1rem, 2vw, 1.5rem); text-align: center; }
.eyebrow { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.875rem); font-weight: 500; text-transform: uppercase; }
.logos .h2 .todo, .dates-section .h2 .todo { font-size: clamp(1.5rem, 1rem + 2vw, 3rem); }
.logos-line { font-size: 1.0625rem; }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
}
.logo-grid .todo { min-height: 6.5rem; color: var(--plum); font-size: 0.9375rem; }
@media (min-width: 40rem) { .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- 11 · Why choose ---------- */

.why { display: grid; gap: 0.75rem; }
.why-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 22%; /* the face sits in the upper part of the portrait */
  border-radius: var(--radius);
}
.why-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: var(--radius);
  background: var(--lilac);
}
/* The reference sets the name in #FF5CCC (1.6:1 on lilac): ours keeps two tones that read. */
.why-title {
  padding-block-end: 1.5rem;
  border-block-end: 1px solid var(--plum);
  width: 100%;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--black);
}
:root:lang(ar) .why-title { line-height: 1.35; }
.why-name { color: var(--plum); }

.why-list { display: grid; gap: 1.25rem; width: 100%; margin-block: 1.75rem 2.25rem; }
.why-list li { display: grid; justify-items: start; gap: 0.5rem; }
.why-num { color: var(--plum); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; }
.why-list .todo { font-size: 0.9375rem; }

@media (min-width: 56.25rem) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* The photo takes the card's height instead of setting the row's. */
  .why-photo { aspect-ratio: auto; height: 0; min-height: 100%; }
}

/* ---------- 12 · Start dates ---------- */

.dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-block-start: clamp(2rem, 4.5vw, 4rem);
}
.date {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-height: clamp(15rem, 30vw, 27.5rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 1rem;
  background: var(--vivid);
  color: var(--white);
}
.date .todo:first-child { padding-block-end: 0.5em; }
.date .todo:last-child { width: 100%; }
@media (min-width: 56.25rem) { .dates { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- 13 · Questions ---------- */

.faq {
  max-width: 75rem;
  margin: clamp(2rem, 4.5vw, 4rem) auto 0;
  padding: clamp(0.5rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--pale);
  color: var(--plum);
}
.faq details + details { border-block-start: 1px solid var(--plum); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 2rem;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-block-end: 1.25rem; }
.faq .todo { font-size: 1.0625rem; text-align: start; }

/* ---------- 14 · Footer, with the contact details ---------- */

.site-foot {
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(2rem, 4vw, 3rem);
  background: var(--foot);
  color: var(--on-dark);
  font-size: 1rem;
}
.site-foot .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }

.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.foot-logo { width: 13.75rem; height: auto; }
.foot-social { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }

.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .foot-grid { grid-template-columns: 2fr 1fr; } }

.foot-title {
  margin-block-end: 1rem;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
:root:lang(ar) .foot-title { letter-spacing: 0; }
.foot-col { display: grid; align-content: start; gap: 0.25rem; }
.foot-col p { min-height: 2.75rem; display: flex; align-items: center; }

.site-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  overflow-wrap: anywhere;
}
.foot-social a, .foot-links a { text-decoration: none; }
.foot-phone { color: var(--white); font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); text-decoration: none; }

.foot-line { padding-block-start: 1.5rem; border-block-start: 1px solid rgb(255 206 221 / 0.3); font-size: 0.9375rem; }
.foot-credit { margin-block-start: 0.5rem; font-size: 0.8125rem; opacity: 0.85; }
.foot-credit a { display: inline-block; padding-block: 0.875rem; }

/* ---------- Hover: fine pointers only ---------- */

@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--bar); }
  .btn-pill:hover { background: var(--nav-link); color: var(--bar); }
  .menu ul a:hover, .lang:hover { color: var(--white); }
  .menu-btn:hover { border-color: var(--white); }
  .prog-list a:hover { text-decoration: underline; }
  .prog-list a:hover .arrow { transform: translateX(calc(0.25rem * var(--dir))) scaleX(var(--dir)); }
  .prog-btn:hover { background: var(--white); color: var(--plum); }
  .site-foot a:hover { color: var(--white); text-decoration: underline; }
  .faq summary:hover::after { color: var(--black); }
}

/* ---------- Hero entrance (once, on load) ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }
@keyframes settle { from { transform: scale(1.05); } }

.hero-img { animation: settle 1400ms var(--ease-out) both; }
.hero-copy > * { animation: rise 760ms var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: 120ms; }
.hero-copy > :nth-child(2) { animation-delay: 300ms; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-img, .hero-copy > * { animation: none; }

  /* Bands: one still, centred line. */
  .band { font-size: max(1.5rem, min(8.75rem, 6.5vw)); white-space: normal; }
  .band-track { animation: none; width: auto; justify-content: center; }
  .band-group { flex-wrap: wrap; justify-content: center; padding-inline-end: 0; }
  .band-group + .band-group,
  .band-group > :nth-child(n+6),
  .band-name .band-group > :nth-child(n+2) { display: none; }

  .btn, .btn-pill, .prog-btn, .menu-btn, .arrow, .faq summary::after { transition: background-color 180ms ease, color 180ms ease; }
  .btn:active, .btn-pill:active, .prog-btn:active, .menu-btn:active { transform: none; }
  .prog-list a:hover .arrow { transform: scaleX(var(--dir)); }
  .js .menu, .js .menu[data-open] { transform: none; }
}

/* ---------- Header additions, as on excellenciascorporate.com ---------- */

/* The Academy logo no longer pushes everything right; the Corporate pill
   takes the free space and sits in its middle. */
.site-head .brand { margin-inline-end: 0; }
.corp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2rem;
  margin-inline: auto;
  padding-inline: 0.375rem 0.875rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.corp-link img { width: 1.25rem; height: 1.25rem; object-fit: contain; filter: brightness(0) invert(1); }
.corp-link:hover { border-color: rgb(255 255 255 / 0.5); }

/* Round language button; the other languages open below it. */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease, color 200ms ease;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: rgb(255 255 255 / 0.5); }
.lang-menu[open] summary { border-color: var(--white); background: var(--white); color: var(--black); }
.lang-menu nav {
  position: absolute;
  top: calc(100% + 0.375rem);
  inset-inline-start: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.7);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
[dir="rtl"] .lang-menu nav { translate: 50% 0; }
.lang-menu nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  color: rgb(255 255 255 / 0.7);
  font-family: var(--sans);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.lang-menu nav a:hover { background: var(--white); color: var(--black); }
.lang-menu summary[lang="ar"], .lang-menu nav a[lang="ar"] {
  font-family: "IBM Plex Sans Arabic", Tahoma, var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0;
}

/* Small screens: the pill keeps only the X mark. */
@media (max-width: 40rem) {
  .corp-link { width: 2rem; padding: 0; justify-content: center; }
  .corp-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
/* Where the Academy menu sits in the bar, the gap is narrow: X mark only. */
@media (min-width: 70rem) and (max-width: 84rem) {
  .corp-link { width: 2rem; padding: 0; justify-content: center; }
  .corp-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
