/* ==========================================================================
   New Generation Matriculation School — stylesheet
   A collegiate, seal-and-ribbon design language built from the school's own
   crest, campus and uniform colours — warm paper, deep navy, gold and maroon.
   ========================================================================== */

:root {
  --primary: #1E3A5F;
  --primary-dark: #0F1F32;
  --primary-light: #4A6E96;
  --accent: #E7A400;
  --accent-dark: #A8790A;
  --maroon: #7C2233;
  --maroon-dark: #58131F;
  --ink: #182A26;
  --text: #4F5D57;
  --text-soft: #7C877E;
  --bg: #FBF6EA;
  --bg-soft: #F3EAD5;
  --bg-tint: #EEE3C8;
  --border: #E2D6B8;
  --white: #FFFFFF;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-accent: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 14px 34px -14px rgba(24, 42, 38, 0.32);
  --shadow-sm: 0 6px 16px -8px rgba(24, 42, 38, 0.24);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.22rem; }

em, .accent-italic {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: .9em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.bg-primary .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent); }

.lede { font-size: 1.08rem; color: var(--text); }

.bg-soft { background: var(--bg-soft); }
.bg-primary { background: var(--primary); color: #cfdaea; }
.bg-primary h1, .bg-primary h2, .bg-primary h3 { color: var(--white); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .93rem;
  letter-spacing: .01em;
  padding: .85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}
.btn-accent:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(231, 164, 0, .5); }

.btn-outline {
  border-color: rgba(255,255,255,.55);
  color: inherit;
}
.btn-outline:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }

.btn-primary-outline {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-primary-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }

.btn-block { width: 100%; justify-content: center; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 234, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img { height: 52px; width: 52px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong {
  font-family: var(--font-head);
  color: var(--primary);
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text span {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  color: var(--primary);
  position: relative;
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--maroon); }

.header-actions { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.header-actions .btn { padding: .7em 1.4em; font-size: .88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(100deg, rgba(15,31,50,.94) 0%, rgba(15,31,50,.88) 38%, rgba(15,31,50,.55) 62%, rgba(15,31,50,.28) 100%),
    url("../img/campus-building.jpg") center 68% / cover no-repeat,
    var(--primary-dark);
  color: #dbe4ee;
  overflow: hidden;
  padding: 108px 0 118px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -260px;
  border-radius: 50%;
  border: 1px solid rgba(231,164,0,.35);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 460px;
  height: 460px;
  right: -140px;
  top: -180px;
  border-radius: 50%;
  border: 1px solid rgba(231,164,0,.22);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { color: var(--white); margin-bottom: .5em; }
.hero .lede { color: #d3dce6; max-width: 46ch; margin-bottom: 2rem; font-size: 1.12rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-emblem {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%), rgba(10,20,32,.35);
  border: 1px solid rgba(231,164,0,.45);
  box-shadow: 0 0 0 10px rgba(231,164,0,.08), var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.hero-emblem img { border-radius: 50%; }

.hero-stats {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(231,164,0,.3);
  border-bottom: 1px solid rgba(231,164,0,.3);
}
.hero-stats div {
  padding: 24px 18px;
  text-align: center;
  border-left: 1px solid rgba(231,164,0,.18);
}
.hero-stats div:first-child { border-left: none; }
.hero-stats strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.hero-stats span { font-size: .8rem; color: #c3d0dd; letter-spacing: .02em; }

/* Feature / value / icon list --------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.value-grid { grid-template-columns: repeat(2, 1fr); }
.pillar-grid { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  padding: 2.1rem 1.7rem 1.8rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .25s ease;
}
.feature-card:hover { background: var(--bg-soft); }
.feature-card .icon-badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  background: var(--white);
}
.feature-card img { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: .45em; font-size: 1.1rem; }
.feature-card p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* About split -------------------------------------------------------------*/
.split {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 3.5rem;
  align-items: center;
}
.split.reverse { grid-template-columns: 1.18fr .82fr; }
.split.reverse .split-media { order: 2; }

.split-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3.6;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.split-media img {
  width: 58%;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.25));
}
.split-media .accent-block {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 110px;
  height: 110px;
  background: var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}
.split-media .accent-block.tl {
  bottom: auto; right: auto; top: -22px; left: -22px;
}

/* Photo panel — a framed real photograph, echoing the founder frame's ring */
.photo-panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3.6;
  box-shadow: var(--shadow);
}
.photo-panel::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius) + 14px);
  border: 1px solid var(--accent);
  opacity: .5;
  z-index: -1;
}
.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-panel .tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent); color: var(--primary-dark);
  font-family: var(--font-body); font-weight: 700; font-size: .72rem;
  padding: .35em .9em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
}

/* Founder portrait — an arched seal-frame, not a generic card ------------- */
.founder-frame {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 380px;
  margin: 0 auto;
}
.founder-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 210px 210px 18px 18px;
  border: 1px solid var(--accent);
  opacity: .55;
}
.founder-portrait {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 200px 200px 16px 16px;
  overflow: hidden;
  background: radial-gradient(120% 120% at 50% 12%, #fffdf7 0%, var(--bg-soft) 55%, var(--bg-tint) 100%);
  box-shadow: var(--shadow);
  border: 6px solid var(--bg);
  outline: 2px solid var(--accent);
}
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.founder-seal {
  position: absolute;
  bottom: -14px;
  right: -14px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .68rem;
  line-height: 1.15;
  letter-spacing: .02em;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow-sm);
  transform: rotate(-8deg);
}

.founder-tag {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .7rem 1.2rem;
  margin-top: 1.5rem;
  font-size: .88rem;
}
.founder-tag strong { color: var(--primary); display: block; font-family: var(--font-head); font-size: 1rem; }
.founder-tag small { color: var(--text-soft); }

/* Timeline ---------------------------------------------------------------*/
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  margin-top: 1rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.timeline-item { position: relative; padding-top: 28px; }
.timeline-item::before {
  content: "";
  position: absolute;
  top: -5px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-item strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--maroon);
  font-size: 1.6rem;
  margin-bottom: .3em;
  font-variant-numeric: tabular-nums;
}
.timeline-item p { color: var(--text-soft); font-size: .92rem; margin: 0; }

/* Pillar / value cards ----------------------------------------------------*/
.pillar-card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  border-top: 3px solid var(--accent);
}
.pillar-card h3 { margin-bottom: .35em; }
.pillar-card p { color: var(--text-soft); font-size: .93rem; margin: 0; }

/* Testimonials -------------------------------------------------------------*/
.testimonial-wrap { max-width: 760px; margin: 0 auto; text-align: center; }
.testimonial-slide { display: none; }
.testimonial-slide.active { display: block; animation: fadeUp .5s ease; }
.testimonial-slide blockquote {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--white);
  line-height: 1.5;
  margin: 0 0 1.2rem;
}
.testimonial-slide blockquote::before { content: "\201C"; color: var(--accent); font-style: normal; }
.testimonial-slide blockquote::after { content: "\201D"; color: var(--accent); font-style: normal; }
.testimonial-slide cite { font-style: normal; font-family: var(--font-body); color: #b9c6d6; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.testimonial-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.8rem; }
.testimonial-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.25); cursor: pointer; padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.testimonial-dots button.active { background: var(--accent); transform: scale(1.25); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* CTA band -----------------------------------------------------------------*/
.cta-band {
  position: relative;
  background: linear-gradient(120deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--white);
  overflow: hidden;
}
.cta-band h2 { color: var(--white); margin-bottom: .3em; }
.cta-band p { color: #e7d2d6; margin: 0; }

/* Events / gallery ---------------------------------------------------------*/
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.photo-grid { grid-template-columns: repeat(2, 1fr); }
.event-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-media {
  aspect-ratio: 4/3;
  background: linear-gradient(155deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.event-media img.photo { width: 100%; height: 100%; object-fit: cover; }
.event-media img.icon { width: 44px; height: 44px; filter: brightness(0) invert(1); opacity: .92; }
.event-media span.tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--primary-dark);
  font-family: var(--font-body); font-weight: 700; font-size: .7rem;
  padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em;
  z-index: 1;
}
.event-body { padding: 1.4rem 1.5rem 1.6rem; }
.event-body h3 { margin-bottom: .4em; }
.event-body p { color: var(--text-soft); font-size: .92rem; margin: 0; }

.notice-card {
  background: var(--bg-soft);
  border: 1px dashed var(--primary-light);
  border-radius: var(--radius);
  padding: 2.4rem;
  text-align: center;
  max-width: 640px;
  margin: 3rem auto 0;
}
.notice-card h3 { margin-bottom: .5em; }
.notice-card p { color: var(--text-soft); margin: 0; }

/* Contact -------------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
}
.contact-card .ic {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .25em; }
.contact-card p, .contact-card a { color: var(--text-soft); font-size: .93rem; margin: 0; }
.contact-card a:hover { color: var(--primary); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .82rem;
  color: var(--primary);
  margin-bottom: .4em;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(74, 110, 150, .15);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--text-soft); margin-top: .8rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--primary-dark);
  color: #aebdcd;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1fr;
  gap: 2.5rem;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(231,164,0,.18);
}
.footer-brand img { height: 46px; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; color: #9fb0c2; max-width: 34ch; }
.footer-col h3 { color: var(--white); font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-col ul li { margin-bottom: .7rem; }
.footer-col a { font-size: .92rem; color: #aebdcd; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-col .contact-line { display: flex; gap: .6rem; font-size: .92rem; margin-bottom: .8rem; align-items: flex-start; }
.footer-col .contact-line svg { flex-shrink: 0; margin-top: .2em; color: var(--accent); }

.social-row { display: flex; gap: .7rem; margin-top: 1.3rem; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }

.footer-bottom {
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  font-size: .82rem;
  color: #7c8ba0;
}

/* Page hero (interior pages) ---------------------------------------------*/
.page-hero {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(100deg, rgba(15,31,50,.93) 0%, rgba(15,31,50,.86) 45%, rgba(15,31,50,.62) 100%),
    url("../img/campus-building.jpg") center 62% / cover no-repeat,
    var(--primary-dark);
  color: var(--white);
  padding: 72px 0 62px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: .4em; }
.breadcrumbs { font-size: .85rem; color: #c3d0dd; letter-spacing: .03em; }
.breadcrumbs a { color: #c3d0dd; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--accent); }

/* Reveal animation ---------------------------------------------------------*/
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Utility ------------------------------------------------------------------*/
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.mt-lg { margin-top: 3rem; }
.text-center { text-align: center; }

/* Responsive --------------------------------------------------------------*/
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-emblem { max-width: 240px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { border-left: none; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav, .header-actions .btn-primary-outline { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .timeline { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .feature-grid, .value-grid, .pillar-grid, .event-grid, .photo-grid, .grid-2 { grid-template-columns: 1fr; }
  .feature-card { border-right: none; }
  .timeline { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 84px; }
  .brand-text strong { font-size: .92rem; }
}
