/* ==========================================================
   مدارس النجوم الذهبية — style.css
   ========================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --navy: #0A3A96;
  --navy-dark: #061F66;
  --blue: #2563D6;
  --gold: #D9A81E;
  --gold-light: #F2D06B;
  --white: #FFFFFF;
  --bg: #F6F8FE;
  --bg-soft: #EAF0FC;
  --gray: #6B7688;
  --ink: #16203A;

  --grad-navy: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--blue) 100%);
  --grad-gold: linear-gradient(135deg, #B8860B 0%, var(--gold) 50%, var(--gold-light) 100%);

  --font-display: 'Cairo', sans-serif;
  --font-body: 'Tajawal', sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(10,58,150, .10);
  --shadow-lg: 0 24px 60px rgba(10,58,150, .16);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; color: var(--navy); }

.container { width: min(1180px, 92%); margin-inline: auto; }

.section { padding: 96px 0; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .5px;
  color: var(--gold);
  background: rgba(217,168,30, .12);
  border: 1px solid rgba(217,168,30, .35);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow.light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: var(--gold-light); }

.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.section-sub { color: var(--gray); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s, color .35s;
}
.btn:hover { transform: translateY(-3px); }
.btn-lg { padding: 16px 42px; font-size: 1.08rem; }

.btn-gold { background: var(--grad-gold); color: var(--navy-dark); box-shadow: 0 10px 26px rgba(217,168,30,.35); }
.btn-gold:hover { box-shadow: 0 16px 34px rgba(217,168,30,.5); }

.btn-primary { background: var(--grad-navy); color: var(--white); box-shadow: 0 10px 26px rgba(10,58,150,.3); }
.btn-primary:hover { box-shadow: 0 16px 34px rgba(10,58,150,.4); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.65); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(10,58,150,.06);
  transition: height .35s var(--ease), box-shadow .35s;
}
.header.scrolled { height: 70px; box-shadow: 0 8px 30px rgba(10,58,150,.1); }

.nav-wrap { height: 100%; display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: inline-flex; }
.brand-logo { height: 60px; width: auto; }
.header.scrolled .brand-logo { height: 50px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; color: var(--navy); font-size: 1.12rem; }
.brand-text small { color: var(--gold); font-size: .74rem; font-weight: 500; }

.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-link {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .96rem;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  position: relative;
  transition: color .3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--navy); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta { padding: 10px 26px; font-size: .95rem; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.6px; background: var(--navy); margin: 5.5px 0; border-radius: 2px; transition: transform .35s var(--ease), opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg,
.cta-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(217,168,30,.28), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(37,99,214,.55), transparent 55%),
    url("../images/stars-pattern.svg"),
    linear-gradient(135deg, var(--navy-dark), var(--navy) 60%, var(--blue));
  background-size: auto, auto, 240px 240px, auto;
}
.hero-bg { will-change: transform; transform: scale(1.05); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(200deg, rgba(6,31,102,.55) 0%, rgba(10,58,150,.75) 55%, rgba(6,31,102,.92) 100%);
}
.hero-content { position: relative; z-index: 5; max-width: 780px; padding-top: var(--header-h); }

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(242,208,107,.4);
  padding: 7px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: fadeUp .9s var(--ease) both;
}
.hero-title {
  font-size: clamp(2.2rem, 5.6vw, 3.9rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeUp .9s .15s var(--ease) both;
}
.hero-title .gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc {
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin-bottom: 38px;
  animation: fadeUp .9s .3s var(--ease) both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp .9s .45s var(--ease) both; }

.scroll-hint { position: absolute; bottom: 32px; inset-inline-start: 50%; transform: translateX(50%); z-index: 5; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.7); border-radius: 14px; position: relative; }
.wheel { position: absolute; top: 7px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; background: var(--gold-light); border-radius: 3px; animation: wheel 1.8s ease-in-out infinite; }

/* ---------- Stats ---------- */
.stats { margin-top: -70px; position: relative; z-index: 3; padding-bottom: 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 20px 26px;
  text-align: center;
  border-top: 4px solid transparent;
  border-image: var(--grad-gold) 1;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.stat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stat-icon { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 16px; color: var(--navy); background: rgba(217,168,30,.14); }
.stat-icon svg { width: 28px; height: 28px; }
.stat-number { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--navy); }
.stat-plus { color: var(--gold); }
.stat-label { color: var(--gray); font-weight: 500; margin-top: 2px; }

/* ---------- Why Us ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 30px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--grad-gold);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .45s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleY(1); }
.feature-icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10,58,150,.08), rgba(37,99,214,.14));
  color: var(--blue);
  margin-bottom: 20px;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.feature-icon svg { width: 30px; height: 30px; }
.feature-card:hover .feature-icon { background: var(--grad-navy); color: var(--white); transform: rotate(-6deg) scale(1.05); }
.feature-card h3 { font-size: 1.22rem; font-weight: 800; margin-bottom: 10px; }
.feature-card p { color: var(--gray); font-size: .98rem; }

/* ---------- About ---------- */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.about-badge {
  position: absolute;
  bottom: -26px;
  inset-inline-end: -18px;
  background: var(--grad-navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 20px 26px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center;
  border: 3px solid var(--white);
}
.about-badge strong { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--gold-light); line-height: 1.1; }
.about-badge span { font-size: .82rem; opacity: .9; }
.about-text .section-title { text-align: start; }
.about-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 6px; }
.about-text p { color: var(--gray); margin-bottom: 16px; }
.about-list { list-style: none; margin: 10px 0 30px; }
.about-list li { position: relative; padding-inline-start: 32px; margin-bottom: 12px; font-weight: 500; }
.about-list li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: .7rem;
  color: var(--white);
  background: var(--grad-gold);
  border-radius: 50%;
}

/* ---------- Stages ---------- */
.stages { background: var(--bg-soft); }
.stages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stage-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.stage-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.stage-img { position: relative; overflow: hidden; }
.stage-img img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.stage-card:hover .stage-img img { transform: scale(1.08); }
.stage-tag {
  position: absolute;
  bottom: 12px; inset-inline-start: 12px;
  background: rgba(6,31,102,.85);
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.stage-body { padding: 24px 22px 28px; }
.stage-body h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: 8px; }
.stage-body p { color: var(--gray); font-size: .94rem; }

/* ---------- Activities ---------- */
.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.activity {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
}
.activity img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.activity::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,31,102,.8) 0%, rgba(6,31,102,.05) 55%);
  transition: background .4s;
}
.activity:hover img { transform: scale(1.09); }
.activity:hover::after { background: linear-gradient(to top, rgba(6,31,102,.9) 0%, rgba(217,168,30,.25) 100%); }
.activity-label {
  position: absolute;
  bottom: 18px; inset-inline-start: 22px;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  transition: transform .4s var(--ease);
}
.activity:hover .activity-label { transform: translateY(-6px); }

/* ---------- Numbers Band ---------- */
.numbers {
  background: var(--grad-navy);
  color: var(--white);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(217,168,30,.18), transparent 40%),
              radial-gradient(circle at 85% 85%, rgba(255,255,255,.07), transparent 45%);
}
.numbers-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.number-item strong { display: block; font-family: var(--font-display); font-size: 2.7rem; font-weight: 900; color: var(--gold-light); line-height: 1.2; }
.number-item span { opacity: .9; font-size: .98rem; }
.number-item { border-inline-start: 1px solid rgba(255,255,255,.12); }
.number-item:first-child { border-inline-start: 0; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-img { position: relative; overflow: hidden; }
.news-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.07); }
.news-date {
  position: absolute;
  top: 14px; inset-inline-start: 14px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  line-height: 1.25;
}
.news-date strong { display: block; font-family: var(--font-display); font-weight: 900; color: var(--navy); font-size: 1.2rem; }
.news-date span { font-size: .74rem; color: var(--gold); font-weight: 600; }
.news-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-body h3 { font-size: 1.1rem; font-weight: 800; }
.news-body p { color: var(--gray); font-size: .94rem; flex: 1; }
.read-more { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: .95rem; transition: color .3s, gap .3s; display: inline-flex; align-items: center; gap: 6px; }
.read-more:hover { color: var(--gold); gap: 10px; }
.news-more { text-align: center; margin-top: 44px; }
.section-more { text-align: center; margin-top: 48px; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); }
.slider { max-width: 820px; margin-inline: auto; overflow: hidden; }
.slider-track { display: flex; transition: transform .6s var(--ease); }
.testimonial {
  min-width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 46px 38px;
  position: relative;
}
.testimonial::before {
  content: "❝";
  position: absolute;
  top: 18px; inset-inline-end: 28px;
  font-size: 3rem;
  color: rgba(217,168,30,.3);
  line-height: 1;
}
.testimonial p { font-size: 1.08rem; color: var(--ink); margin-bottom: 26px; }
.testimonial footer { display: flex; align-items: center; gap: 14px; }
.testimonial footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(217,168,30,.5); }
.testimonial cite { display: block; font-style: normal; font-family: var(--font-display); font-weight: 800; color: var(--navy); }
.testimonial footer span { font-size: .85rem; color: var(--gray); }

.slider-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-size: 1.4rem;
  cursor: pointer;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.slider-btn:hover { background: var(--navy); color: var(--white); transform: scale(1.08); }
.slider-dots { display: flex; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(10,58,150,.25); cursor: pointer; transition: width .35s var(--ease), background .35s; }
.dot.active { width: 28px; background: var(--grad-gold); }

/* ---------- Gallery ---------- */
.masonry {
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}
.masonry-item { border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.masonry-item:nth-child(1), .masonry-item:nth-child(6) { grid-row: span 2; }
.masonry-item:nth-child(4) { grid-column: span 2; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.masonry-item:hover img { transform: scale(1.06); filter: brightness(1.06); }

.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(8, 22, 44, .92);
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute;
  top: 22px; inset-inline-end: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.12);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background .3s, transform .3s;
}
.lightbox-close:hover { background: var(--gold); color: var(--navy-dark); transform: rotate(90deg); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 130px 0; overflow: hidden; }

.cta-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(6,31,102,.94), rgba(10,58,150,.86) 55%, rgba(37,99,214,.8)); }
.cta-content { position: relative; z-index: 2; text-align: center; color: var(--white); max-width: 680px; }
.cta-content h2 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 900; margin-bottom: 16px; }
.cta-content p { color: rgba(255,255,255,.88); font-size: 1.1rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.82); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1fr;
  gap: 48px;
  padding: 80px 0 56px;
}
.footer h4 { color: var(--white); font-size: 1.08rem; font-weight: 800; margin-bottom: 20px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 34px; height: 3px; border-radius: 3px; background: var(--grad-gold); }

.footer-logo { height: 84px; width: auto; background: var(--white); border-radius: var(--radius-sm); padding: 8px 14px; }
.footer-brand-name { font-size: 1.32rem; font-weight: 800; color: var(--white); margin: 16px 0 14px; }
.footer-brand p { font-size: .95rem; line-height: 1.9; margin-bottom: 22px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  transition: background .3s, transform .3s var(--ease), color .3s;
}
.socials a svg { width: 18px; height: 18px; }
.socials a:hover { background: var(--grad-gold); color: var(--navy-dark); transform: translateY(-4px); }

.footer-links { display: flex; flex-direction: column; }
.footer-links a { padding: 6px 0; font-size: .96rem; transition: color .3s, padding .3s var(--ease); }
.footer-links a:hover { color: var(--gold-light); padding-inline-start: 6px; }

.footer-contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: .95rem; }
.footer-contact a:hover { color: var(--gold-light); }

.footer-hours p { font-size: .95rem; }
.footer-hours .hours { color: var(--gold-light); font-weight: 500; margin-bottom: 14px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; text-align: center; font-size: .9rem; }

/* ---------- To Top ---------- */
.to-top {
  position: fixed;
  bottom: 26px; inset-inline-start: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--grad-gold);
  color: var(--navy-dark);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(217,168,30,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal Animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* All @keyframes and dedicated motion effects (twinkle, floating badges,
   button shimmer, logo hover, gradient drift, scroll-hint wheel...) now
   live in animations.css, so this file stays focused on layout & color. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .activities-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { gap: 44px; }

}

@media (max-width: 1100px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    background: var(--white);
    padding: 18px 6%;
    gap: 2px;
    box-shadow: 0 24px 40px rgba(10,58,150,.14);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform .4s var(--ease), opacity .35s, visibility .35s;
    border-bottom: 1px solid rgba(10,58,150,.08);
  }
  .header.scrolled .nav { top: 70px; }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-link { padding: 12px 8px; border-bottom: 1px solid rgba(10,58,150,.06); }
  .nav-link::after { display: none; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .nav-cta { display: none; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { inset-inline-end: 12px; bottom: -20px; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .number-item:nth-child(3) { border-inline-start: 0; }
}

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .stats { margin-top: -50px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-number { font-size: 1.9rem; }
  .cards-grid, .stages-grid, .activities-grid, .news-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px 0 44px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 1rem; }
  .brand-logo { height: 46px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .testimonial { padding: 32px 26px 30px; }
  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .masonry-item:nth-child(4) { grid-column: auto; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
}
