/* ============================================================
   IECY2K — Igbinedion Education Centre Class of 2000
   Alumni Association website
   Design tokens
   ============================================================ */

:root {
  /* Colour */
  --navy: #0A2647;         /* primary — deep navy, from crest */
  --royal: #1E5C97;        /* secondary blue accent */
  --gold: #B8933C;         /* accent, from crest bronze/gold */
  --gold-bright: #D4AF5A;
  --paper: #FFFFFF;        /* background */
  --mist: #F3F6FA;         /* alternate section background */
  --ink: #12233F;          /* body text */
  --ink-soft: #4C5E77;     /* secondary text */
  --line: #DCE4EE;         /* hairline rules */

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 4px;
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .18s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--royal); text-decoration: none; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-bright); text-decoration: none; }

/* ---------- Seal motif (signature element) ----------
   A concentric-ring seal echoing the crest, used as a
   section divider throughout the site. */
.seal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 2.5rem;
  color: var(--gold);
}
.seal-divider::before,
.seal-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--line);
}
.seal-divider svg { width: 22px; height: 22px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.nav-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(10,38,71,.12);
}
.brand-text { font-family: var(--font-display); line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.15rem; color: var(--navy); font-weight: 700; letter-spacing: .02em;}
.brand-text span { display: block; font-size: .68rem; letter-spacing: .12em; color: var(--ink-soft); text-transform: uppercase; }

nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  justify-content: flex-end;
}
nav.main-nav a {
  color: var(--ink);
  font-size: .86rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  background: var(--mist);
  color: var(--navy);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: .2s;
}

@media (max-width: 920px) {
  .menu-toggle { display: block; }
  nav.main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 0;
  }
  nav.main-nav.open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, #0d2e57 100%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(184,147,60,.14) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(184,147,60,.12) 0, transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-crest {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  margin: 0 auto 22px;
}
.hero .eyebrow { color: var(--gold-bright); }
.hero h1 { color: #fff; margin-top: .3em; }
.hero p.lede { color: #C9D6E8; max-width: 640px; margin: 18px auto 30px; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 62px 0 68px;
  text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: #C9D6E8; max-width: 620px; margin: 10px auto 0; }
.page-hero .eyebrow { color: var(--gold-bright); }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
section.alt { background: var(--mist); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 46px; }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: 0 8px 28px rgba(10,38,71,.08); transform: translateY(-2px); }
.card h3 { margin-bottom: .4em; }

.tag {
  display: inline-block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--royal);
  background: #EAF1F9;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}

/* ---------- Person / Exco card ---------- */
.person-card { text-align: center; }
.person-photo {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--mist);
  box-shadow: 0 0 0 1px var(--line);
}
.person-card h3 { margin-bottom: 2px; font-size: 1.15rem; }
.person-role { color: var(--gold); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 6px; }
.person-tenure { color: var(--ink-soft); font-size: .82rem; }

/* ---------- Year tabs (executives page) ---------- */
.year-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.year-tabs button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .88rem;
  padding: 10px 22px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 100px;
  cursor: pointer;
  transition: .18s;
}
.year-tabs button.active,
.year-tabs button:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.year-panel { display: none; }
.year-panel.active { display: block; }

/* ---------- Then & Now compare ---------- */
.compare-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-imgs { display: grid; grid-template-columns: 1fr 1fr; }
.compare-imgs figure { margin: 0; position: relative; }
.compare-imgs img { width: 100%; height: 200px; object-fit: cover; }
.compare-imgs figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,38,71,.72); color: #fff;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px;
}
.compare-name { padding: 14px 16px; font-weight: 600; color: var(--navy); text-align: center; }

/* ---------- Timeline (news / history) ---------- */
.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date { color: var(--gold); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 4px; }
@media (max-width: 640px) {
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

/* ---------- In Memoriam ---------- */
.memoriam-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.memoriam-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 14px;
  filter: grayscale(15%);
  border: 3px solid var(--mist);
}
.memoriam-dates { color: var(--ink-soft); font-size: .85rem; margin-bottom: 12px; }
.tribute-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
.tribute-quote cite { display: block; font-style: normal; font-size: .78rem; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Donor tiers ---------- */
.tier-card { text-align: center; border-top: 4px solid var(--line); }
.tier-gold { border-top-color: #C9A227; }
.tier-silver { border-top-color: #9AA7B5; }
.tier-bronze { border-top-color: #A6693B; }
.tier-card h3 { text-transform: uppercase; letter-spacing: .06em; font-size: 1.1rem; }
.tier-card ul { padding-left: 0; list-style: none; margin: 14px 0 0; text-align: left; }
.tier-card li { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--ink-soft); font-size: .95rem; }

/* ---------- Bank info box ---------- */
.bank-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
}
.bank-box .eyebrow { color: var(--gold-bright); }
.bank-box h3 { color: #fff; }
.bank-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .96rem; }
.bank-row span:first-child { color: #AEBFD6; }
.bank-row span:last-child { font-weight: 600; letter-spacing: .02em; }

/* ---------- Embed frames (Drive / YouTube) ---------- */
.embed-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
}
.embed-frame iframe { width: 100%; border: none; display: block; }
.embed-note {
  font-size: .82rem;
  color: var(--ink-soft);
  background: var(--mist);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 10px;
}

/* ---------- Zone / contact cards ---------- */
.zone-card { text-align: center; }
.zone-card h3 { color: var(--royal); }

/* ---------- Forms ---------- */
form.simple-form { display: grid; gap: 16px; max-width: 560px; }
form.simple-form label { font-size: .85rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
form.simple-form input,
form.simple-form select,
form.simple-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
}
form.simple-form textarea { min-height: 120px; resize: vertical; }
form.simple-form input:focus,
form.simple-form select:focus,
form.simple-form textarea:focus {
  outline: 2px solid var(--royal);
  outline-offset: 1px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  color: #C9D6E8;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  color: #fff;
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
  margin-bottom: 16px;
}
.footer-grid a { color: #C9D6E8; display: block; margin-bottom: 9px; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.2rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .78rem;
  color: #8FA3BE;
}
.footer-fullname {
  font-size: .72rem;
  color: #5E7593;
  font-style: italic;
}

/* ---------- Poster carousel (Business Spotlight) ---------- */
.poster-carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--mist);
  border: 1px solid var(--line);
}
.poster-track {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.poster-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.poster-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.poster-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(10,38,71,.85), transparent);
  color: #fff;
  padding: 30px 20px 16px;
  font-size: .92rem;
  font-weight: 600;
}
.poster-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.poster-nav:hover { background: #fff; }
.poster-nav.prev { left: 12px; }
.poster-nav.next { right: 12px; }
.poster-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  background: #fff;
}
.poster-dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}
.poster-dots button.active { background: var(--gold); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: .85rem; color: var(--ink-soft); }
.divider-space { height: 1px; background: var(--line); margin: 60px 0; }
