/* ===================================================================
   MBSI Get Together — Stylesheet
   Palette: navy #0B2545 / gold #C9971C / off-white #FAF9F6 / ink #1C1C1C
   Fonts: system stack only (no external requests)
=================================================================== */

:root {
  --navy: #0B2545;
  --navy-light: #13345f;
  --gold: #C9971C;
  --gold-light: #e0b64f;
  --bg: #FAF9F6;
  --card-bg: #FFFFFF;
  --ink: #1C1C1C;
  --ink-soft: #4a4a4a;
  --border: #E4E1D8;

  --max-width: 1100px;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(11, 37, 69, 0.08);
  --shadow-hover: 0 12px 24px rgba(11, 37, 69, 0.14);

  --font: -apple-system, "Segoe UI", Roboto, system-ui, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.nav__brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.2px;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.nav__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 8px 16px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav__cta:hover { background: var(--navy-light); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  color: #fff;
  padding: 96px 0 80px;
  background:
    radial-gradient(circle at 85% 12%, rgba(201, 151, 28, 0.18), transparent 55%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.07) 1px, transparent 0) 0 0/28px 28px,
    linear-gradient(135deg, #0B2545 0%, #123a6b 55%, #0B2545 100%);
}

.hero__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
/* MBSI's logo is a near-square badge, MASC/Majlis's is a wide wordmark —
   align both on a shared height rather than forcing them into equal boxes. */
.hero__logos img {
  height: 64px;
  width: auto;
  max-width: 220px;
  border-radius: 8px;
}

.hero__eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 18px;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: #fff;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto 32px;
  color: #cdd7e6;
  font-size: 1.1rem;
}

.hero__highlight {
  color: var(--gold-light);
  font-weight: 700;
}

.hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0 0 40px;
  padding: 0;
}

.hero__facts li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.hero__fact-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 2px;
}

/* ---------- Countdown ---------- */

.countdown {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}

.countdown__unit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  min-width: 84px;
}

.countdown__value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-light);
}

.countdown__label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--secondary:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section--alt {
  background: #F3F1EA;
}

/* Shared content wrapper — every section's content sits inside this, so
   normal and alternating-background sections always share the same margins.
   The section element itself may be full-bleed (for its background), the
   .container is what actually constrains and centers the content. */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section__title {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 14px;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.section__lede {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0 0 16px;
  text-align: justify;
  text-align-last: left;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cards / Grids ---------- */

.grid {
  display: grid;
  gap: 20px;
  margin-top: 8px;
}

.grid--guests {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 640px;
}

.grid--colleges {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid--highlights {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card--guest {
  text-align: center;
}
.card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow);
}
.card__name {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.1rem;
}
.card__role {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.card--college {
  text-align: center;
}

/* Real logos come in wildly different sizes/aspect ratios; this frame gives
   every one of them the same footprint so the grid stays visually even. */
.logo-frame {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.logo-frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card--college p {
  margin: 0;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.card__title {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 0 0 10px;
}
.grid--highlights .card p {
  text-align: justify;
  text-align-last: left;
}
.card p:last-child { margin-bottom: 0; }

/* ---------- Poster guidelines ---------- */

.guidelines-list {
  max-width: 760px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}
.guidelines-list li { margin-bottom: 10px; }
.guidelines-list strong { color: var(--navy); }

/* ---------- Register ---------- */

.register__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 36px;
}

.contact {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.contact p { margin: 0; color: var(--ink-soft); }
.contact strong { color: var(--navy); }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 40px 24px 56px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.site-footer__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.site-footer__logos img {
  height: 32px;
  width: auto;
  max-width: 140px;
  border-radius: 6px;
}

.site-footer__credit {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.site-footer__credit span[aria-hidden="true"] {
  color: var(--gold);
}

.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;
}

/* ---------- Responsive ---------- */

@media (max-width: 780px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 14px;
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__cta { align-self: flex-start; }
}

@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .container { padding: 0 20px; }
  .countdown__unit { min-width: 68px; padding: 12px 14px; }
  .countdown__value { font-size: 1.4rem; }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
}
