/* ==========================================================================
   Samarth Foundation — The Global School
   Main stylesheet
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #16336f;
  --navy-dark: #0c1f47;
  --navy-deep: #081735;
  --navy-soft: #e8edf7;
  --orange: #f2791f;
  --orange-dark: #d8630c;
  --orange-soft: #fdeede;
  --cream: #faf8f4;
  --white: #ffffff;
  --ink: #1b2233;
  --muted: #5d6679;
  --line: #e3e6ee;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(12, 31, 71, 0.06);
  --shadow: 0 12px 32px rgba(12, 31, 71, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 31, 71, 0.18);

  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy-dark);
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-dark); color: #d7def0; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.text-center { text-align: center; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 2000;
  background: var(--orange); color: var(--white); padding: 8px 16px; border-radius: 6px;
}
.skip-link:focus { left: 8px; color: var(--white); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: ""; width: 28px; height: 2px; background: currentColor;
}
.eyebrow--left::after { display: none; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--navy .section-head p { color: #b4bfd8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .04em;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px rgba(242, 121, 31, .35); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-dark); color: var(--white); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy-dark); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #aab6d3;
  font-size: .85rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar a { color: #d5dcef; }
.topbar a:hover { color: var(--orange); }
.topbar__info, .topbar__social { display: flex; align-items: center; gap: 22px; }
.topbar__info span { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--orange); }
.topbar__social svg { color: inherit; }

/* ---------- Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { height: 58px; width: auto; transition: height .3s; }
.header.is-scrolled .brand img { height: 50px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; }
.nav__link {
  position: relative;
  font-weight: 600; font-size: .95rem; color: var(--navy-dark);
  padding: 6px 0;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--orange); }
.nav .btn { padding: 11px 24px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border: 0; border-radius: 10px;
  background: var(--navy-soft); cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 22px; height: 2px; background: var(--navy-dark);
  transform: translateX(-50%); transition: transform .3s, opacity .3s, top .3s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #22498f 0%, var(--navy) 35%, var(--navy-deep) 100%);
  color: #d9e1f3;
  padding: 110px 0 140px;
  isolation: isolate;
}
/* Sun-ray motif inspired by the logo */
.hero__rays {
  position: absolute; z-index: -1;
  right: -260px; top: 50%;
  width: 900px; height: 900px;
  transform: translateY(-50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.055) 0deg 4deg, transparent 4deg 14deg);
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%);
          mask: radial-gradient(circle, #000 20%, transparent 70%);
  animation: spin 120s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 .accent { color: var(--orange); display: block; }
.hero__lead { font-size: 1.15rem; max-width: 560px; color: #c4cee6; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .eyebrow { color: #ffb57d; }
.hero__badge {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero__badge::before {
  content: ""; position: absolute; inset: 6%;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 14px rgba(255,255,255,.08), 0 0 0 30px rgba(255,255,255,.04), var(--shadow-lg);
}
.hero__badge img { position: relative; width: 82%; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: 80px; }

/* ---------- Stats strip ---------- */
.stats {
  position: relative; z-index: 2;
  margin-top: -70px;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat__num span { color: var(--orange); }
.stat__num span[data-count] { color: inherit; }
.stat__label { margin-top: 8px; color: var(--muted); font-size: .92rem; font-weight: 500; }

/* ---------- About / split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.media-card {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-deep) 100%);
  display: grid; place-items: center;
}
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card--placeholder::after {
  content: attr(data-label);
  position: absolute; bottom: 18px; left: 18px;
  font-size: .75rem; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.media-card__art { width: 55%; color: rgba(255,255,255,.9); }
.media-card--orange { background: linear-gradient(145deg, #f7964a 0%, var(--orange-dark) 100%); }
.floating-note {
  position: absolute; right: -24px; bottom: -28px;
  background: var(--orange); color: var(--white);
  padding: 22px 26px; border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 220px;
}
.floating-note strong { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.floating-note span { font-size: .9rem; }
.checklist { display: grid; gap: 14px; margin: 26px 0 34px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 24px; height: 24px; margin-top: 2px;
  border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2791f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Cards / programs ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 62px; height: 62px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--navy-soft); color: var(--navy);
  margin-bottom: 22px;
  transition: background .3s, color .3s;
}
.card:hover .card__icon { background: var(--orange); color: var(--white); }
.card__icon svg { width: 30px; height: 30px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card__meta { display: inline-block; margin-bottom: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 700; font-size: .92rem; }
.section--navy .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--navy .card p { color: #b4bfd8; }
.section--navy .card__icon { background: rgba(242,121,31,.15); color: var(--orange); }

/* Program cards with coloured header */
.program { padding: 0; overflow: hidden; }
.program__top {
  padding: 30px 30px 26px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  position: relative;
}
.program__top h3 { color: var(--white); margin: 0; font-size: 1.5rem; text-transform: uppercase; }
.program__top span { font-size: .85rem; color: #ffb57d; font-weight: 700; letter-spacing: .1em; }
.program__top::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.06);
}
.program__body { padding: 26px 30px 32px; }
.program__body ul { display: grid; gap: 8px; margin-top: 14px; }
.program__body li { position: relative; padding-left: 20px; color: var(--muted); font-size: .95rem; }
.program__body li::before { content: "★"; position: absolute; left: 0; color: var(--orange); font-size: .75rem; top: 3px; }

/* ---------- Features (why us) ---------- */
.feature { display: flex; gap: 20px; }
.feature__icon {
  flex: 0 0 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(242,121,31,.14); color: var(--orange);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 6px; }
.feature p { margin: 0; font-size: .96rem; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px; gap: 18px;
}
.gallery__item {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--navy);
  border: 0; padding: 0; text-align: left;
  transition: opacity .35s, transform .35s;
}
.gallery__item.is-hidden { display: none; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__img {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: transform .6s var(--ease);
}
.gallery__img img { width: 100%; height: 100%; object-fit: cover; }
.gallery__img svg { width: 64px; height: 64px; color: rgba(255,255,255,.35); }
.gallery__item:hover .gallery__img { transform: scale(1.07); }
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(8,23,53,.85));
  color: var(--white); font-weight: 600; font-size: .95rem;
}
.gallery__caption small { display: block; color: #ffb57d; font-weight: 700; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; }
.bg-1 { background: linear-gradient(135deg, #1e4592, #0c1f47); }
.bg-2 { background: linear-gradient(135deg, #f59a52, #d8630c); }
.bg-3 { background: linear-gradient(135deg, #2c5aa8, #16336f); }
.bg-4 { background: linear-gradient(135deg, #16336f, #f2791f); }
.bg-5 { background: linear-gradient(135deg, #0c1f47, #2c5aa8); }
.bg-6 { background: linear-gradient(135deg, #e5701a, #16336f); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(5, 13, 32, .92);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage {
  width: min(900px, 100%); aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg); overflow: hidden;
  position: relative; display: grid; place-items: center;
  transform: scale(.94); transition: transform .35s var(--ease);
}
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__stage img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__stage svg { width: 110px; height: 110px; color: rgba(255,255,255,.35); }
.lightbox__caption { position: absolute; left: 24px; bottom: 20px; color: var(--white); font-size: 1.1rem; font-weight: 600; }
.lightbox__btn {
  position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: var(--white); cursor: pointer;
  display: grid; place-items: center; transition: background .25s;
}
.lightbox__btn:hover { background: var(--orange); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; max-width: 860px; margin: 0 auto; }
.testimonials__track { position: relative; min-height: 290px; }
.testimonial {
  position: absolute; inset: 0;
  text-align: center;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .6s, transform .6s var(--ease), visibility .6s;
}
.testimonial.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.testimonial__quote {
  font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.65; color: var(--white);
  font-style: italic; margin-bottom: 28px;
}
.testimonial__quote::before {
  content: "\201C"; display: block;
  font-family: Georgia, serif; font-size: 5rem; line-height: .6; color: var(--orange); font-style: normal;
  margin-bottom: 14px;
}
.testimonial__author { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}
.testimonial__author strong { display: block; color: var(--white); }
.testimonial__author span { font-size: .88rem; color: #9eabc9; }
.dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.dot {
  width: 11px; height: 11px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255,255,255,.25); cursor: pointer; transition: width .3s, background .3s;
}
.dot.is-active { width: 34px; background: var(--orange); }

/* ---------- Events / news ---------- */
.event {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.event:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.event__date {
  flex: 0 0 76px; text-align: center; border-radius: var(--radius);
  background: var(--navy); color: var(--white); padding: 12px 6px;
}
.event__date strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.event__date span { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: #ffb57d; font-weight: 700; }
.event h3 { font-size: 1.2rem; margin-bottom: 6px; }
.event p { color: var(--muted); font-size: .95rem; margin-bottom: 8px; }
.event__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); }
.event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event__meta svg { width: 14px; height: 14px; color: var(--orange); }

/* ---------- CTA banner ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--orange) 0%, #f59a52 100%);
  padding: 60px 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  color: var(--white);
}
.cta::before {
  content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.12) 0deg 5deg, transparent 5deg 15deg);
}
.cta h2 { color: var(--white); margin-bottom: 8px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta p { margin: 0; color: rgba(255,255,255,.9); max-width: 560px; }
.cta > * { position: relative; }
.cta .btn--navy { flex-shrink: 0; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 90% 0%, #22498f 0%, var(--navy) 40%, var(--navy-deep) 100%);
  padding: 90px 0 80px;
  color: #c4cee6;
  isolation: isolate;
}
.page-banner .hero__rays { width: 700px; height: 700px; right: -200px; }
.page-banner h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 10px; }
.breadcrumb { display: flex; gap: 10px; font-size: .92rem; }
.breadcrumb a { color: #ffb57d; }
.breadcrumb span::before { content: "/"; margin-right: 10px; color: #7f8db0; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.timeline__item { position: relative; width: 50%; padding: 0 44px 44px 0; text-align: right; }
.timeline__item:nth-child(even) { margin-left: 50%; padding: 0 0 44px 44px; text-align: left; }
.timeline__item::before {
  content: ""; position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 5px var(--orange-soft);
}
.timeline__item:nth-child(even)::before { right: auto; left: -9px; }
.timeline__year { font-family: var(--font-display); font-size: 1.6rem; color: var(--orange); font-weight: 700; }
.timeline__item h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.timeline__item p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Team / leadership ---------- */
.person { text-align: center; }
.person__photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--navy-soft), #d3dcee);
  display: grid; place-items: center; margin-bottom: 18px; overflow: hidden;
  font-family: var(--font-display); font-size: 3rem; color: var(--navy);
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { margin-bottom: 2px; font-size: 1.2rem; }
.person span { color: var(--orange); font-size: .9rem; font-weight: 600; }

/* Message from principal */
.message {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 50px; display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center;
  border-left: 6px solid var(--orange);
}
.message .person__photo { margin: 0; border-radius: 50%; }
.message blockquote { margin: 0; font-size: 1.1rem; color: var(--muted); font-style: italic; }
.message cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; color: var(--navy-dark); }
.message cite span { display: block; font-weight: 500; color: var(--orange); font-size: .9rem; }

/* ---------- Tabs ---------- */
.tabs__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; padding: 6px; background: var(--navy-soft); border-radius: 999px; width: fit-content; margin-inline: auto; }
.tabs__btn {
  padding: 11px 26px; border-radius: 999px; border: 0; background: transparent;
  font-weight: 700; font-size: .92rem; color: var(--navy); cursor: pointer;
  transition: background .25s, color .25s;
}
.tabs__btn.is-active { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.tabs__panel { display: none; animation: fadeUp .5s var(--ease); }
.tabs__panel.is-active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--navy); color: var(--white); font-weight: 600; font-size: .9rem; letter-spacing: .04em; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:nth-child(even) { background: var(--cream); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding: 34px 26px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--orange); margin-bottom: 16px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.accordion__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.accordion__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; border: 0; background: none; cursor: pointer; text-align: left;
  font-weight: 700; font-size: 1.02rem; color: var(--navy-dark);
}
.accordion__btn::after {
  content: "+"; flex: 0 0 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 500;
  background: var(--navy-soft); color: var(--navy); transition: transform .3s, background .3s, color .3s;
}
.accordion__item.is-open .accordion__btn::after { transform: rotate(45deg); background: var(--orange); color: var(--white); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion__panel p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group--full { grid-column: 1 / -1; }
.form-group label { font-weight: 600; font-size: .9rem; color: var(--navy-dark); }
.form-group label .req { color: var(--orange); }
.form-control {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--cream);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.form-control:focus { outline: none; border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(22,51,111,.1); }
textarea.form-control { min-height: 130px; resize: vertical; }
.form-group.has-error .form-control { border-color: #d93a3a; background: #fff6f6; }
.form-error { font-size: .82rem; color: #d93a3a; min-height: 1em; }
.form-success {
  display: none; margin-top: 20px; padding: 16px 20px; border-radius: 10px;
  background: #e8f7ee; color: #1d7a45; font-weight: 600;
}
.form-success.is-visible { display: block; }

/* Contact info */
.contact-list { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-item .feature__icon { flex-basis: 50px; height: 50px; }
.contact-item h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-item p { margin: 0; color: var(--muted); font-size: .95rem; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); line-height: 0; }
.map iframe { width: 100%; height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #9eabc9; padding-top: 80px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 50px; padding-bottom: 60px; }
.footer__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.footer__brand img { width: 74px; height: 74px; background: var(--white); border-radius: 50%; padding: 5px; }
.footer__brand strong { display: block; font-family: var(--font-display); color: var(--white); font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; }
.footer__brand span { font-size: .72rem; letter-spacing: .22em; color: var(--orange); font-weight: 700; text-transform: uppercase; }
.footer h4 { color: var(--white); font-size: 1.1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 22px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--orange); border-radius: 2px; }
.footer__links { display: grid; gap: 10px; }
.footer a { color: #9eabc9; }
.footer a:hover { color: var(--orange); }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; }
.footer__contact svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--orange); margin-top: 4px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: var(--white);
  transition: background .25s, transform .25s;
}
.socials a:hover { background: var(--orange); color: var(--white); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }
.newsletter { display: flex; margin-top: 16px; background: rgba(255,255,255,.07); border-radius: 999px; padding: 5px; }
.newsletter input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 10px 16px; color: var(--white); }
.newsletter input::placeholder { color: #7f8db0; }
.newsletter input:focus { outline: none; }
.newsletter button { border: 0; border-radius: 999px; background: var(--orange); color: var(--white); padding: 10px 20px; font-weight: 700; cursor: pointer; }
.newsletter button:hover { background: var(--orange-dark); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0; font-size: .88rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--orange); color: var(--white); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__list { gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .section { padding: 80px 0; }
  .brand img { height: 46px; }
  .header.is-scrolled .brand img { height: 44px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    background: var(--white); padding: 30px 24px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: 16px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }

  .hero { padding: 70px 0 130px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__lead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__badge { width: min(300px, 80%); order: -1; }
  .hero .eyebrow::after { display: block; }

  .split, .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .floating-note { right: 16px; bottom: -20px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cta { flex-direction: column; text-align: center; padding: 48px 32px; }
  .message { grid-template-columns: 1fr; text-align: center; padding: 36px 28px; border-left: 0; border-top: 6px solid var(--orange); }
  .message .person__photo { width: 160px; margin: 0 auto; }
  .timeline::before { left: 9px; }
  .timeline__item, .timeline__item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 36px 44px; text-align: left; }
  .timeline__item::before, .timeline__item:nth-child(even)::before { left: 0; right: auto; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar__info span:not(:first-child) { display: none; }
  .grid-4, .steps, .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px 20px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: auto; }
  .gallery__item--tall { grid-row: auto; }
  .stat__num { font-size: 2.2rem; }
  .event { flex-direction: column; }
  .tabs__nav { border-radius: var(--radius); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}
