/* ============================================================
   Mannyetha Primary School — style.css
   ============================================================ */

:root {
  --maroon: #6b1d2c;
  --maroon-deep: #4a1320;
  --gold: #e8b53a;
  --gold-soft: #f5dca0;
  --ink: #1a1414;
  --ink-soft: #4a4044;
  --paper: #fdfbf7;
  --paper-warm: #f6f1e7;
  --line: #e8e0d0;
  --line-strong: #c8bda6;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-weight: 400; font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── PAGE VIEWS ── */
.page-view { display: none; }
.page-view.active { display: block; }

/* ── HEADER ── */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(253,251,247,0.96);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(26,20,20,0.08); }
.header-inner {
  max-width: 1180px; margin: 0 auto;
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; background: none; border: none;
  font-family: inherit; flex-shrink: 0;
}
.brand-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.brand-name {
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; color: var(--maroon-deep); line-height: 1.1; text-align: left;
}
.brand-name small {
  display: block; font-size: 11px; font-weight: 400;
  font-style: italic; color: var(--maroon); letter-spacing: 0.01em; margin-top: 2px;
}
.nav { display: flex; gap: 24px; align-items: center; }
.nav button {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color 0.2s ease;
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.nav button:hover { color: var(--maroon); }
.nav button.active { color: var(--maroon); }
.nav button.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--gold);
}
.menu-toggle {
  display: none; background: none; border: none;
  cursor: pointer; padding: 8px; margin: -8px; flex-shrink: 0;
}
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--maroon-deep); }
.mobile-drawer {
  display: none; position: fixed; top: 0; right: 0;
  width: 78%; max-width: 320px; height: 100vh; height: 100dvh;
  background: var(--paper); z-index: 100;
  padding: 80px 32px 32px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; font-size: 18px; font-weight: 500;
  color: var(--ink); padding: 18px 0; border-bottom: 1px solid var(--line);
  cursor: pointer; font-family: 'Fraunces', serif;
}
.mobile-drawer button.active { color: var(--maroon); }
.drawer-close {
  position: absolute !important; top: 18px !important; right: 24px !important;
  width: auto !important; padding: 8px !important; border: none !important;
  font-size: 28px !important; line-height: 1 !important; color: var(--ink-soft) !important;
}
.drawer-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(26,20,20,0.4); z-index: 99;
}
.drawer-backdrop.open { display: block; }

/* ── LAYOUT ── */
main { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.page { padding-top: 56px; padding-bottom: 80px; }
.page-head { margin-bottom: 56px; max-width: 720px; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--maroon); font-weight: 600; margin-bottom: 14px;
}
h1 {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(36px, 6vw, 64px); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 20px;
}
h1 em { font-style: italic; color: var(--maroon); font-weight: 400; }
.lede { font-size: 18px; line-height: 1.55; color: var(--ink-soft); max-width: 580px; }
.section-heading {
  font-family: 'Fraunces', serif; font-weight: 500; font-size: 28px;
  letter-spacing: -0.01em; color: var(--maroon-deep); margin-bottom: 28px;
}
.section-sub {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--maroon); font-weight: 600; margin-bottom: 12px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; font-size: 15px; font-weight: 500;
  font-family: inherit; border: none; cursor: pointer;
  border-radius: 2px; transition: all 0.2s ease;
  text-decoration: none; -webkit-appearance: none; appearance: none;
}
.btn-primary { background: var(--maroon); color: var(--paper); }
.btn-primary:hover { background: var(--maroon-deep); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(107,29,44,0.25); }
.btn-ghost { background: transparent; color: var(--maroon); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--maroon); background: var(--paper-warm); }

/* ── 3D HERO ── */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 60px; padding: 72px 0 64px; align-items: center;
  perspective: 1000px;
}
.hero-text { min-width: 0; }
.cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-logo-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 20px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}
.hero-logo {
  width: 100%; max-width: 320px; height: auto;
  filter: drop-shadow(0 8px 32px rgba(107,29,44,0.18));
  transform: translateZ(40px);
  transition: filter 0.3s, transform 0.3s;
}
.hero-logo-wrap:hover .hero-logo {
  filter: drop-shadow(0 16px 48px rgba(107,29,44,0.28));
}
.hero-motto {
  font-family: 'Fraunces', serif; font-style: italic; font-size: 20px;
  color: var(--maroon); text-align: center; letter-spacing: -0.01em;
  transform: translateZ(20px);
}

/* ── QUICK INFO ── */
.quick-info {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0;
}
.info-block { padding: 0 24px; border-right: 1px solid var(--line); }
.info-block:last-child { border-right: none; }
.info-block:first-child { padding-left: 0; }
.info-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500; display: block; margin-bottom: 8px;
}
.info-value {
  font-family: 'Fraunces', serif; font-size: 20px;
  font-weight: 400; color: var(--maroon-deep); line-height: 1.3;
}

/* ── 3D PARALLAX SECTIONS ── */
.parallax-section {
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.parallax-bg {
  position: absolute; inset: -20%; z-index: 0;
  will-change: transform;
  transition: transform 0.05s linear;
}

/* ── FIND US ── */
.find-us {
  margin: 64px 0 0; display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid var(--line); overflow: hidden;
  transform: translateZ(0);
  transition: box-shadow 0.3s;
}
.find-us:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.find-us-text {
  padding: 48px 44px; display: flex; flex-direction: column;
  justify-content: center; background: var(--paper);
}
.find-us-tag {
  display: inline-block; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--maroon); font-weight: 600;
  margin-bottom: 16px; align-self: flex-start;
}
.find-us h2 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(26px,3vw,34px); line-height: 1.1;
  color: var(--maroon-deep); margin-bottom: 14px; letter-spacing: -0.01em;
}
.find-us p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 20px; }
.gps-code {
  background: var(--maroon); color: var(--paper);
  padding: 20px 24px; display: flex; flex-direction: column;
  gap: 6px; margin-bottom: 20px; border-left: 4px solid var(--gold);
}
.gps-code-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.gps-code-value { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; letter-spacing: 0.02em; word-break: break-word; }
.gps-code-muni { font-size: 13px; color: var(--gold-soft); font-style: italic; }
.find-us-map {
  background: var(--paper-warm); display: flex; align-items: center;
  justify-content: center; padding: 40px; min-height: 320px; position: relative;
}
.find-us-map svg { width: 100%; max-width: 360px; height: auto; }

/* ── TRIP FEATURE ── */
.trip-feature {
  margin: 64px 0 0; display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; border: 1px solid var(--line); overflow: hidden; background: var(--paper-warm);
  transition: box-shadow 0.3s;
}
.trip-feature:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.08); }
.trip-image {
  background-image: url('https://images.unsplash.com/photo-1580060839134-75a5edca2e99?auto=format&fit=crop&w=1200&q=80');
  background-size: cover; background-position: center; min-height: 380px; position: relative;
}
.trip-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(107,29,44,0.15) 0%, rgba(107,29,44,0.35) 100%);
}
.trip-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.trip-tag {
  display: inline-block; background: var(--gold); color: var(--maroon-deep);
  padding: 6px 14px; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 20px; align-self: flex-start;
}
.trip-title {
  font-family: 'Fraunces', serif; font-weight: 400;
  font-size: clamp(28px,3.5vw,40px); line-height: 1.1;
  color: var(--maroon-deep); margin-bottom: 16px; letter-spacing: -0.01em;
}
.trip-title em { color: var(--maroon); font-style: italic; }
.trip-dates { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 400; color: var(--ink); margin-bottom: 20px; font-style: italic; }
.trip-desc { font-size: 16px; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }

/* ── SPORTS ── */
.home-sports {
  margin: 64px 0 0; padding: 48px 44px;
  border: 1px solid var(--line); background: var(--paper);
}
.home-sports-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.home-sports-head h2 {
  font-family: 'Fraunces', serif; font-weight: 500;
  font-size: clamp(26px,3vw,34px); color: var(--maroon-deep); letter-spacing: -0.01em;
}
.fixtures { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fixture {
  display: grid; grid-template-columns: 120px 1fr auto auto;
  gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center;
  transition: background 0.15s;
}
.fixture:hover { background: var(--paper-warm); }
.fixture:last-child { border-bottom: none; }
.fixture-date { font-family: 'Fraunces', serif; font-size: 15px; font-weight: 500; color: var(--maroon-deep); }
.fixture-match { font-size: 15px; color: var(--ink); font-weight: 500; }
.fixture-venue { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.fixture-badge {
  display: inline-block; padding: 4px 10px; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; border-radius: 2px;
}
.fixture-badge.home { background: var(--gold-soft); color: var(--maroon-deep); }
.fixture-badge.away { background: var(--paper-warm); color: var(--ink-soft); border: 1px solid var(--line-strong); }

/* ── RESULTS ── */
.results-block { margin-bottom: 80px; }
.results-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; align-items: start; }
.results-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat-card { background: var(--paper); padding: 28px 24px; text-align: center; }
.stat-card.highlight { background: var(--maroon); color: var(--paper); }
.stat-value { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 400; color: var(--maroon-deep); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.stat-card.highlight .stat-value { color: var(--gold); }
.stat-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.stat-card.highlight .stat-label { color: var(--gold-soft); }
.results-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.results-table th, .results-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
.results-table th { background: var(--paper-warm); font-weight: 600; color: var(--maroon-deep); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.results-table tr:last-child td { border-bottom: none; }
.results-table .grade-cell { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; color: var(--maroon); }
.results-table .pass-rate { font-weight: 600; color: var(--ink); }
.pass-bar-wrap { width: 100%; max-width: 140px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 10px; }
.pass-bar { height: 100%; background: var(--gold); border-radius: 3px; }
.pass-bar.high { background: #4a9d5e; }
.pass-bar.medium { background: var(--gold); }

/* ── COMMITTEES ── */
.committees { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 80px; }
.committee-card { border: 1px solid var(--line); padding: 36px 32px; background: var(--paper); transition: box-shadow 0.25s, transform 0.25s; }
.committee-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.07); transform: translateY(-3px); }
.committee-card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; color: var(--maroon-deep); margin-bottom: 4px; }
.committee-card .committee-sub { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); font-weight: 600; margin-bottom: 24px; }
.member-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.member-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.member-list li:last-child { border-bottom: none; }
.member-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.member-role { font-size: 12px; color: var(--ink-soft); font-style: italic; }
.member-role-primary { color: var(--maroon); font-weight: 600; font-style: normal; }

/* ── ENRICHMENT ── */
.enrichment-card {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; padding: 44px; background: var(--paper-warm);
  border: 1px solid var(--line); margin-bottom: 80px; align-items: center;
}
.enrichment-subjects { display: grid; gap: 16px; }
.subject-chip {
  display: flex; align-items: baseline; gap: 14px;
  padding: 16px 20px; background: var(--paper); border-left: 3px solid var(--gold);
}
.subject-chip-phase { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--maroon); font-weight: 600; min-width: 140px; }
.subject-chip-name { font-family: 'Fraunces', serif; font-size: 17px; font-weight: 500; color: var(--ink); }

/* ── VISION / MISSION ── */
.vision-mission {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; padding: 96px 0; border-bottom: 1px solid var(--line);
}
.vm-heading { font-family: 'Fraunces', serif; font-weight: 500; font-size: 32px; letter-spacing: -0.01em; color: var(--maroon); margin-bottom: 20px; }
.vm-body { font-size: 20px; line-height: 1.5; color: var(--ink); font-family: 'Fraunces', serif; font-weight: 300; }
.vm-list { list-style: none; display: grid; gap: 14px; }
.vm-list li { font-size: 16px; color: var(--ink); padding-left: 22px; position: relative; line-height: 1.5; }
.vm-list li::before { content: ''; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--gold); }

/* ── ANNOUNCE ── */
.announce { padding: 80px 0; text-align: center; max-width: 720px; margin: 0 auto; }
.announce-tag { display: inline-block; padding: 6px 14px; background: var(--gold-soft); color: var(--maroon-deep); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; margin-bottom: 24px; }
.announce-title { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(26px,4vw,42px); line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 20px; }
.announce-body { font-size: 17px; color: var(--ink-soft); margin-bottom: 32px; line-height: 1.6; }

/* ── KEY FACTS ── */
.key-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 80px; }
.fact { background: var(--paper); padding: 32px 28px; }
.fact-accent { background: var(--maroon); color: var(--paper); }
.fact-accent .fact-label { color: var(--gold); }
.fact-accent .fact-value { color: var(--paper); }
.fact-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; display: block; margin-bottom: 12px; }
.fact-value { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 400; color: var(--maroon-deep); line-height: 1.25; }

/* ── STEPS ── */
.steps { margin-bottom: 80px; }
.step-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step-list li { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); align-items: start; transition: background 0.15s; }
.step-list li:hover { background: var(--paper-warm); }
.step-list li:last-child { border-bottom: none; }
.step-num { font-family: 'Fraunces', serif; font-style: italic; font-size: 36px; color: var(--gold); font-weight: 400; }
.step-list h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; color: var(--maroon-deep); margin-bottom: 8px; }
.step-list p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 640px; }

/* ── DOCS ── */
.docs-block { margin-bottom: 80px; }
.docs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.doc-card { border: 1px solid var(--line); padding: 32px 28px; background: var(--paper-warm); transition: transform 0.2s, box-shadow 0.2s; }
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); }
.doc-icon { font-size: 28px; display: block; margin-bottom: 16px; }
.doc-card h3 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; color: var(--maroon-deep); margin-bottom: 8px; }
.doc-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ── CALLOUT ── */
.callout { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 48px; background: var(--maroon); color: var(--paper); }
.callout h2 { font-family: 'Fraunces', serif; font-weight: 500; font-size: 28px; margin-bottom: 8px; }
.callout p { color: var(--gold-soft); font-size: 16px; }
.callout .btn-primary { background: var(--gold); color: var(--maroon-deep); flex-shrink: 0; }
.callout .btn-primary:hover { background: var(--paper); }

/* ── CALENDAR ── */
.term-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 48px; }
.term-tab { background: var(--paper); border: none; padding: 24px 20px; cursor: pointer; text-align: left; font-family: inherit; transition: background 0.2s ease; -webkit-appearance: none; appearance: none; }
.term-tab:hover { background: var(--paper-warm); }
.term-tab.active { background: var(--maroon); color: var(--paper); }
.term-num { display: block; font-family: 'Fraunces', serif; font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.term-tab.active .term-num { color: var(--gold); }
.term-dates { display: block; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }
.term-tab.active .term-dates { color: var(--gold-soft); }
.cal-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.cal-months { display: grid; gap: 48px; min-width: 0; }
.cal-month { border: 1px solid var(--line); padding: 28px; background: var(--paper); }
.cal-month-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cal-month-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; color: var(--maroon-deep); letter-spacing: -0.01em; }
.cal-month-year { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.1em; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }
.cal-dow { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; text-align: center; padding: 8px 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; font-size: 14px; color: var(--ink); border: 1px solid transparent; cursor: default; position: relative; border-radius: 2px; transition: all 0.15s ease; font-weight: 400; user-select: none; -webkit-user-select: none; }
.cal-day.empty { color: transparent; pointer-events: none; }
.cal-day.weekend { color: var(--ink-soft); }
.cal-day.has-event { cursor: pointer; font-weight: 500; }
.cal-day.has-event::after { content: ''; position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.cal-day.has-event.event-holiday::after { background: #c43a3a; }
.cal-day.has-event.event-exam::after { background: #4a7fb8; }
.cal-day.has-event.event-trip::after { background: #2d8a6b; }
.cal-day.has-event.event-meeting::after { background: #a86abf; }
.cal-day.has-event.event-sports::after { background: #d67f2e; }
.cal-day.has-event:hover { background: var(--paper-warm); border-color: var(--line-strong); }
.cal-day.selected { background: var(--maroon); color: var(--paper); border-color: var(--maroon); }
.cal-day.selected::after { background: var(--gold) !important; }
.cal-day.today { border-color: var(--gold); font-weight: 600; }
.cal-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.cal-side-card, .legend-card { border: 1px solid var(--line); padding: 24px; background: var(--paper); }
.side-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 10px; }
.side-date { font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; color: var(--maroon-deep); letter-spacing: -0.01em; margin-bottom: 20px; line-height: 1.2; }
.side-events { display: grid; gap: 14px; }
.event-item { padding: 14px 16px; background: var(--paper-warm); border-left: 3px solid var(--gold); }
.event-item.event-holiday { border-left-color: #c43a3a; }
.event-item.event-exam { border-left-color: #4a7fb8; }
.event-item.event-trip { border-left-color: #2d8a6b; }
.event-item.event-meeting { border-left-color: #a86abf; }
.event-item.event-sports { border-left-color: #d67f2e; }
.event-item-title { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.event-item-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.event-item-tag { display: inline-block; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--maroon); font-weight: 600; margin-bottom: 6px; }
.side-empty { font-size: 14px; color: var(--ink-soft); line-height: 1.5; font-style: italic; }
.legend-list { list-style: none; display: grid; gap: 10px; margin-top: 6px; }
.legend-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-event { background: var(--gold); }
.dot-holiday { background: #c43a3a; }
.dot-exam { background: #4a7fb8; }
.dot-trip { background: #2d8a6b; }
.dot-meeting { background: #a86abf; }
.dot-sports { background: #d67f2e; }

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 48px; }
.contact-card { background: var(--paper); padding: 32px 28px; display: flex; flex-direction: column; gap: 8px; transition: background 0.2s; }
.contact-card:hover { background: var(--paper-warm); }
.contact-card-accent { background: var(--paper-warm); }
.contact-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 8px; }
.contact-value { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 400; color: var(--maroon-deep); line-height: 1.4; transition: color 0.2s ease; }
a.contact-value:hover { color: var(--maroon); }
.contact-email { font-size: 15px; word-break: break-word; }
.contact-meta { font-size: 14px; color: var(--ink-soft); display: grid; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line); }
.contact-meta a { color: var(--maroon); border-bottom: 1px solid var(--gold); cursor: pointer; }

/* ── SGB ── */
.sgb-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-bottom: 48px; }
.sgb-card { border: 1px solid var(--line); padding: 28px; background: var(--paper-warm); transition: transform 0.2s, box-shadow 0.2s; }
.sgb-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.07); }
.sgb-role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--maroon); font-weight: 600; margin-bottom: 6px; }
.sgb-name { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 500; color: var(--maroon-deep); }

/* ── STAFF STATS ── */
.staff-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 48px; }
.staff-stat { background: var(--paper); padding: 32px 24px; text-align: center; }
.staff-stat:first-child { background: var(--maroon); }
.staff-stat:first-child .stat-value { color: var(--gold); }
.staff-stat:first-child .stat-label { color: var(--gold-soft); }

/* ── FOOTER ── */
.site-footer { background: var(--maroon-deep); color: var(--gold-soft); padding: 56px 32px 24px; margin-top: 80px; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(245,220,160,0.15); }
.footer-name { font-family: 'Fraunces', serif; font-weight: 500; font-size: 20px; color: var(--gold); margin-bottom: 12px; }
.footer-meta { font-size: 14px; line-height: 1.7; color: var(--gold-soft); opacity: 0.85; }
.footer-nav { display: grid; gap: 10px; }
.footer-nav a { font-size: 14px; color: var(--gold-soft); opacity: 0.7; transition: opacity 0.2s; cursor: pointer; }
.footer-nav a:hover { opacity: 1; }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding-top: 24px; display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); opacity: 0.6; }

/* ── 3D SCROLL REVEAL ── */
.reveal-3d {
  opacity: 0;
  transform: translateY(32px) rotateX(4deg);
  transform-origin: top center;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-3d.visible {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}
.reveal-3d.delay-1 { transition-delay: 0.1s; }
.reveal-3d.delay-2 { transition-delay: 0.2s; }
.reveal-3d.delay-3 { transition-delay: 0.3s; }

/* ── TILT CARDS ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cal-layout { grid-template-columns: 1fr 300px; gap: 32px; }
  .vision-mission { gap: 48px; }
}
@media (max-width: 860px) {
  .header-inner { padding: 12px 20px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-drawer { display: block; }
  main { padding: 0 20px; }
  .page { padding-top: 40px; padding-bottom: 48px; }
  .page-head { margin-bottom: 40px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; text-align: center; }
  .hero-text { order: 2; }
  .hero-logo-wrap { order: 1; padding: 0; }
  .hero-logo { max-width: 200px; }
  .hero-motto { font-size: 17px; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; gap: 10px; }
  .btn { padding: 12px 18px; font-size: 14px; }
  .cta-row .btn { flex: 1; min-width: 140px; justify-content: center; }
  .quick-info { grid-template-columns: repeat(2,1fr); padding: 24px 0; gap: 0; }
  .info-block { padding: 16px; border-right: none; border-bottom: 1px solid var(--line); }
  .info-block:nth-child(2n+1) { border-right: 1px solid var(--line); padding-left: 0; }
  .info-block:nth-last-child(-n+2) { border-bottom: none; }
  .find-us { grid-template-columns: 1fr; margin: 48px 0 0; }
  .find-us-text { padding: 32px 24px; order: 2; }
  .find-us-map { order: 1; min-height: 220px; padding: 28px; }
  .trip-feature { grid-template-columns: 1fr; margin: 48px 0 0; }
  .trip-image { min-height: 240px; }
  .trip-body { padding: 32px 24px; }
  .home-sports { padding: 32px 24px; margin: 48px 0 0; }
  .fixture { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 0; }
  .fixture-date { grid-column: 1; grid-row: 1; font-size: 13px; }
  .fixture-badge { grid-column: 2; grid-row: 1; justify-self: end; }
  .fixture-match { grid-column: 1 / -1; grid-row: 2; font-size: 14px; }
  .fixture-venue { grid-column: 1 / -1; grid-row: 3; font-size: 12px; }
  .vision-mission { grid-template-columns: 1fr; gap: 48px; padding: 56px 0; }
  .vm-heading { font-size: 26px; }
  .vm-body { font-size: 18px; }
  .announce { padding: 56px 0; }
  .key-facts { grid-template-columns: repeat(2,1fr); margin-bottom: 48px; }
  .fact { padding: 24px 20px; }
  .fact-value { font-size: 18px; }
  .section-heading { font-size: 24px; margin-bottom: 20px; }
  .steps { margin-bottom: 48px; }
  .step-list li { grid-template-columns: 54px 1fr; gap: 16px; padding: 24px 0; }
  .step-num { font-size: 26px; }
  .step-list h3 { font-size: 19px; }
  .docs-block { margin-bottom: 48px; }
  .docs-grid { grid-template-columns: 1fr; gap: 16px; }
  .doc-card { padding: 24px 20px; }
  .callout { flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 20px; }
  .callout h2 { font-size: 22px; }
  .callout .btn-primary { width: 100%; justify-content: center; }
  .term-tabs { grid-template-columns: repeat(2,1fr); margin-bottom: 32px; }
  .term-tab { padding: 18px 16px; }
  .term-num { font-size: 18px; }
  .term-dates { font-size: 12px; }
  .cal-layout { grid-template-columns: 1fr; gap: 28px; }
  .cal-months { gap: 32px; }
  .cal-month { padding: 20px 16px; }
  .cal-month-name { font-size: 19px; }
  .cal-grid { gap: 2px; }
  .cal-dow { font-size: 10px; padding: 6px 0; }
  .cal-day { font-size: 13px; }
  .cal-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; margin-bottom: 32px; }
  .contact-card { padding: 24px 20px; }
  .results-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .results-stats { grid-template-columns: 1fr; }
  .committees { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .committee-card { padding: 28px 24px; }
  .enrichment-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; margin-bottom: 48px; }
  .subject-chip { flex-direction: column; gap: 4px; padding: 14px 16px; align-items: flex-start; }
  .subject-chip-phase { min-width: 0; }
  .sgb-grid { grid-template-columns: 1fr; }
  .staff-stats { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; font-size: 11px; }
}
@media (max-width: 480px) {
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 15px; }
  h1 { font-size: 32px; }
  .lede { font-size: 16px; }
  .hero-logo { max-width: 170px; }
  .quick-info { grid-template-columns: 1fr; }
  .info-block { border-right: none !important; padding: 14px 0 !important; }
  .info-block:last-child { border-bottom: none; }
  .key-facts { grid-template-columns: 1fr; }
  .term-tabs { grid-template-columns: 1fr; }
}
@media (hover: none) and (pointer: coarse) {
  .nav button, .term-tab, .btn { min-height: 44px; }
}
