/* The visual identity is the academy's logo: copper and sand on white, with near-black text. */
:root {
  --copper: #a9612c;
  --copper-dark: #82441e;
  --sand: #d6b987;
  --sand-light: #efe3cc;
  --white: #ffffff;
  --cream: #faf8f4;
  --ink: #25211f;
  --muted: #806d60;
  --line: #e8dfd3;
  /* older names, kept for the rules below */
  --brown-900: var(--ink);
  --brown-800: var(--ink);
  --brown-700: var(--copper-dark);
  --brown: var(--copper);
  --gold: var(--sand);
  --gold-light: var(--sand-light);
  --paper: var(--white);
  --blue: var(--copper-dark);
  --green: var(--copper);
  --radius: 18px;
  --shadow: 0 8px 26px rgba(169, 97, 44, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.4em; border-radius: 999px;
  font-weight: 800; text-decoration: none; font-size: 1rem;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--copper); color: var(--white); }
.btn-gold:hover { background: var(--copper-dark); }
.btn-outline { border: 2px solid var(--copper); color: var(--copper); background: var(--white); }
.btn-dark { border: 2px solid var(--copper); color: var(--copper); background: var(--white); }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--sand-light);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand strong { display: block; font-size: 1rem; font-weight: 800; }
.brand small { display: block; color: var(--copper); font-size: .85rem; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; }
.site-nav a:not(.btn):hover { color: var(--copper); }
.nav-cta { padding: .45em 1.1em; }
.menu-toggle, .menu-button { display: none; }

/* ------------------------------------------------------------ hero */
.hero {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--sand-light), transparent 65%),
    var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 56px;
}
.hero-logos { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 3vw, 18px); margin-bottom: 22px; }
.hero-logos img { width: clamp(56px, 20vw, 92px); height: clamp(56px, 20vw, 92px); border-radius: 50%; object-fit: cover; background: var(--white); box-shadow: 0 4px 16px rgba(169, 97, 44, .15); }
.hero-logos .hero-logo-main { width: clamp(96px, 34vw, 160px); height: clamp(96px, 34vw, 160px); }
.pill { display: inline-block; margin: 0 0 14px; padding: .3em 1.4em; border-radius: 999px; background: var(--sand-light); color: var(--copper-dark); font-weight: 800; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; color: var(--copper); }
.hero-motto { margin: 4px 0 26px; color: var(--ink); font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.verse { font-family: "Amiri", serif; font-size: 1.6rem; color: var(--copper-dark); margin: 26px 0 0; }

/* ------------------------------------------------------------ sections */
.section { padding: 72px 0; }
.section-tint { background: var(--cream); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; color: var(--brown-800); margin-bottom: 18px; }
.eyebrow { margin: 0 0 6px; color: var(--brown); font-weight: 800; letter-spacing: .02em; }
.eyebrow::before { content: "◆ "; color: var(--gold); }
.lead { color: var(--muted); font-size: 1.1rem; margin: 0 0 24px; }
.center { text-align: center; margin-top: 32px; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.about p { font-size: 1.12rem; margin: 0; }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.values li { background: var(--paper); border: 1px solid var(--line); border-inline-start: 5px solid var(--gold); border-radius: 14px; padding: 14px 18px; }
.values strong { display: block; font-size: 1.2rem; color: var(--brown); }
.values span { color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.card {
  --accent: var(--brown);
  background: var(--paper); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border-top: 6px solid var(--accent);
}
.card-gold { --accent: var(--gold); }
.card-blue { --accent: var(--blue); }
.card-green { --accent: var(--green); }
.card > img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); margin-bottom: 12px; }
.card-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--accent); color: #fff; margin-bottom: 12px; }
.card-icon svg { width: 38px; height: 38px; }
.card h3 { font-size: 1.3rem; font-weight: 900; color: var(--accent); }
.card-gold h3 { color: var(--brown-700); }
.card .tag { display: inline-block; margin: 8px 0 10px; padding: .1em .9em; border-radius: 999px; background: var(--accent); color: #fff; font-size: .9rem; font-weight: 700; }
.card-gold .tag { color: var(--brown-900); }
.card ul { margin: 0; padding-inline-start: 1.2em; color: var(--muted); }
.card li::marker { color: var(--gold); }
.card .card-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin-top: 16px; }
.gallery-title { margin: 28px 0 12px; font-size: 1.2rem; font-weight: 900; color: var(--brown-700); }
.gallery { max-width: 760px; margin-inline: auto; }
.gallery-stage { position: relative; border-radius: 14px; overflow: hidden; background: var(--sand-light, #efe3cc); box-shadow: var(--shadow); }
.gallery-main { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.gallery-prev { right: 12px; }
.gallery-next { left: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 4px; }
.gallery-thumbs > :first-child { margin-inline-start: auto; }
.gallery-thumbs > :last-child { margin-inline-end: auto; }
.gallery-thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button:hover { opacity: .9; }
.gallery-thumbs button.is-active { opacity: 1; border-color: var(--copper, #a9612c); }
.gallery-thumbs img { display: block; width: 76px; height: 56px; object-fit: cover; border-radius: 8px; }
.card-photo, .gallery-main { cursor: zoom-in; }
.card-photo { transition: transform .2s; }
.card-photo:hover { transform: scale(1.02); }
.viewer { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 92vh; overflow: visible; }
.viewer::backdrop { background: rgba(20, 14, 10, .88); }
.viewer img { display: block; max-width: 96vw; max-height: 92vh; width: auto; height: auto; border-radius: 12px; cursor: zoom-out; }
.viewer-close { position: absolute; top: -14px; left: -14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }

/* One block per unit (school, kindergarten, institute), its colour on the side. */
.unit { --accent: var(--brown); background: var(--paper); border-radius: var(--radius); border-inline-start: 6px solid var(--accent); padding: 28px; margin-top: 24px; scroll-margin-top: 90px; }
.unit-gold { --accent: var(--gold); }
.unit-green { --accent: var(--green); }
.unit-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.unit-head img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid var(--accent); flex: none; }
.unit h3 { font-size: clamp(1.35rem, 3.5vw, 1.8rem); font-weight: 900; color: var(--brown-800); }
.unit > p { font-size: 1.08rem; margin: 0 0 20px; }
.unit .tag { display: inline-block; margin: 6px 0 0; padding: .1em .9em; border-radius: 999px; background: var(--accent); color: #fff; font-size: .92rem; font-weight: 700; }
.unit-gold .tag { color: var(--brown-900); }
.card h4 { font-size: 1.2rem; font-weight: 900; color: var(--accent); margin: 0 0 6px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.points li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.points li::before { content: "◆ "; color: var(--accent); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--brown-900); font-weight: 900; font-size: 1.2rem; margin-bottom: 10px; }
.steps strong { display: block; font-size: 1.2rem; color: var(--brown-800); }
.steps span { color: var(--muted); }

.social { display: flex; flex-wrap: wrap; gap: 14px; }
.social-link { display: inline-flex; align-items: center; gap: .6em; padding: .8em 1.4em; border-radius: 14px; color: #fff; text-decoration: none; font-weight: 800; }
.social-link svg { width: 1.5em; height: 1.5em; }
.social-link.fb { background: #1877f2; }
.social-link.ig { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }

.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; font-size: 1.1rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.contact-list svg { color: var(--brown); width: 1.5em; height: 1.5em; margin-top: .2em; }
.contact-list a { font-weight: 900; font-size: 1.4rem; text-decoration: none; color: var(--brown-900); }
.muted { color: var(--muted); align-self: center; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map-card {
  display: grid; place-items: center; text-align: center; gap: 4px;
  min-height: 260px; border-radius: var(--radius); text-decoration: none; color: var(--white);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px),
    linear-gradient(160deg, var(--copper), var(--copper-dark));
  box-shadow: var(--shadow); padding: 24px;
}
.map-card svg { width: 56px; height: 56px; color: var(--white); }
.map-card strong { font-size: 1.6rem; }
.map-card span { color: var(--gold-light); font-weight: 700; }
.map-card em { font-style: normal; color: var(--sand-light); font-size: .95rem; margin-top: 8px; }

.site-footer { background: var(--sand-light); color: var(--ink); border-top: 2px solid var(--sand); padding: 22px 0; font-size: .95rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-row p { margin: 0; }

/* The page shown for a link that does not exist. */
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; background: radial-gradient(ellipse at 50% 0%, var(--sand-light), transparent 65%), var(--cream); }
.not-found img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; }
.not-found h1 { color: var(--copper); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 900; }
.not-found p { margin: 0 0 8px; color: var(--muted); font-size: 1.1rem; }

/* ------------------------------------------------------------ phones */
@media (max-width: 860px) {
  .menu-button { display: grid; gap: 5px; cursor: pointer; padding: 10px; }
  .menu-button span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--copper); }
  .site-nav {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 2px solid var(--sand-light); padding: 8px 16px 16px;
  }
  .site-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 12px; justify-content: center; }
  .menu-toggle:checked ~ .site-nav { display: flex; }
  .about, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
}
@media (max-width: 480px) {
  .brand strong { font-size: .88rem; }
  .brand small { font-size: .78rem; }
  .brand img { width: 44px; height: 44px; }
  .cards { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .unit { padding: 18px 16px; }
  .unit-head { flex-direction: column; text-align: center; gap: 10px; }
  .unit .tag { border-radius: 12px; padding: .2em .8em; }
  .card { padding: 18px; }
}
