/* ==========================================================================
   BAO at UIC — stylesheet
   Organized top to bottom: tokens, base, header, buttons, home, subpages,
   footer, responsive. Edit a section by finding its heading below.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — change a color here and it updates across the whole site
   -------------------------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --surface: #faf7f0;          /* soft cream for alternating sections */
  --surface-2: #f3ecdd;        /* slightly deeper cream */
  --ink: #17130f;              /* headings, near-black */
  --body: #585046;             /* body copy, softer than headings */
  --gold: #e0b420;             /* BAO gold — backgrounds and accents */
  --gold-deep: #8a6503;        /* darker gold for text, readable on light */
  --line: rgba(23, 19, 15, 0.12);
  --line-strong: rgba(23, 19, 15, 0.2);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 19, 15, 0.04), 0 8px 24px rgba(23, 19, 15, 0.05);
  --shadow-lift: 0 2px 4px rgba(23, 19, 15, 0.05), 0 14px 34px rgba(23, 19, 15, 0.09);
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 { font-size: clamp(38px, 5.2vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 42px); }
h3 { font-size: 21px; letter-spacing: -0.015em; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Small uppercase label that sits above a heading */
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Section wrappers: .section sets vertical rhythm, .wrap centers content */
.section { padding: clamp(60px, 8vw, 100px) clamp(20px, 5vw, 48px); }
.wrap { max-width: var(--wrap); margin-inline: auto; }
.section-cream { background: var(--surface); }
.lede { max-width: 46ch; font-size: 18px; }

/* --------------------------------------------------------------------------
   3. Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.brand b { color: var(--gold-deep); font-weight: 800; }

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}
nav a { color: var(--body); padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:hover { color: var(--ink); border-color: var(--gold); }
nav a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }

/* "Join BAO" sits in the nav as a small pill */
nav .nav-cta {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
}
nav .nav-cta:hover { background: #cfa412; color: var(--ink); }

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  padding: 10px 0 10px 10px;
  cursor: pointer;
}
.menu-button span:not(.sr-only) {
  display: block;
  width: 24px; height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--ink);
}

/* --------------------------------------------------------------------------
   3b. Promo banner — points first-time visitors at the resources page
   -------------------------------------------------------------------------- */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 14px;
  padding: 13px clamp(20px, 5vw, 48px);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  transition: background 0.18s ease;
}
.promo-banner:hover { background: rgba(224, 180, 32, 0.28); }
.promo-banner b { font-weight: 800; }
.promo-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--gold-deep); white-space: nowrap; }

/* --------------------------------------------------------------------------
   4. Buttons and links
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.button:hover { transform: translateY(-2px); }
.button span { font-size: 16px; }

.button-gold { background: var(--gold); color: var(--ink); box-shadow: var(--shadow); }
.button-gold:hover { background: #cfa412; box-shadow: var(--shadow-lift); }

.button-outline { border: 1.5px solid var(--line-strong); color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); }

.button-light { background: var(--paper); color: var(--ink); }

/* Inline text link with a gold underline */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding-bottom: 2px;
  border-bottom: 1.5px solid var(--gold);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.text-link:hover { border-color: var(--gold-deep); }
.text-link-light { color: var(--paper); }

/* --------------------------------------------------------------------------
   5. Home — hero
   -------------------------------------------------------------------------- */
.hero { padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 48px) clamp(56px, 7vw, 88px); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 i { display: block; color: var(--gold-deep); font-style: normal; }
.hero p { max-width: 42ch; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }

.hero-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.hero-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* --------------------------------------------------------------------------
   6. Home — about, benefits, cards, events teaser, join
   -------------------------------------------------------------------------- */
.mission h2 { max-width: 22ch; }
.mission-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 5vw, 56px); align-items: end; }

.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.benefits li {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 16px;
}
.benefits b {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .card-num {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.card h3 { margin: 4px 0 0; }
.card p { font-size: 16px; }

.events-teaser .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: end;
}
.events-teaser h2 { max-width: 20ch; }

/* Dark call-to-action band with a campus photo behind it */
.join {
  padding: clamp(64px, 8vw, 100px) clamp(20px, 5vw, 48px);
  color: #f7f3ea;
  background:
    linear-gradient(90deg, rgba(19, 15, 11, 0.94) 0%, rgba(19, 15, 11, 0.86) 55%, rgba(19, 15, 11, 0.6) 100%),
    url("uic-campus-hero.png") center / cover no-repeat;
}
.join .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.join h2 { color: #ffffff; }
.join p { max-width: 44ch; color: rgba(247, 243, 234, 0.82); }
.join .eyebrow { color: var(--gold); }

/* --------------------------------------------------------------------------
   7. Subpage headers (Events, Resources, Contact)
   -------------------------------------------------------------------------- */
.page-hero {
  padding: clamp(52px, 7vw, 84px) clamp(20px, 5vw, 48px) clamp(40px, 5vw, 60px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
/* Utility pages where the content should start near the top */
.page-hero-tight { padding-top: clamp(36px, 4vw, 52px); padding-bottom: clamp(28px, 3.5vw, 40px); }
.page-hero-tight h1 { max-width: 26ch; margin-bottom: 12px; font-size: clamp(32px, 4vw, 46px); }
.page-hero p:not(.eyebrow) { max-width: 48ch; margin-bottom: 0; font-size: 18px; }

/* --------------------------------------------------------------------------
   8. Events page
   -------------------------------------------------------------------------- */
.event-list { display: grid; gap: 14px; margin-top: 32px; }
.event-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.event-card time { color: var(--gold-deep); font-size: 14px; font-weight: 800; }
.event-card h2 { margin-bottom: 6px; font-size: 22px; }
.event-card p { font-size: 16px; }

.event-empty {
  padding: 34px 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 17px;
}

.event-notice {
  max-width: 60ch;
  margin-top: 26px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
}
.event-notice a { font-weight: 700; border-bottom: 1.5px solid var(--gold); }

/* --------------------------------------------------------------------------
   9. Resources page
   -------------------------------------------------------------------------- */
.resources-category { margin-bottom: 6px; }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.resource-card h3 { margin: 0; }
.resource-card p { font-size: 15px; }
.resource-card .text-link { margin-top: auto; padding-top: 6px; }

/* One highlighted card — BAO's own referral link */
.resource-card-featured { background: var(--ink); border-color: var(--ink); }
.resource-card-featured h3 { color: #ffffff; }
.resource-card-featured p { color: rgba(247, 243, 234, 0.78); }
.resource-card-featured .text-link { color: #ffffff; border-color: var(--gold); }

.section-tight { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(60px, 7vw, 88px); }
.section-flush { padding-top: clamp(34px, 4vw, 52px); }

.resource-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(24px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.resource-note h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); }

/* --------------------------------------------------------------------------
   10. Contact page
   -------------------------------------------------------------------------- */
.contact-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.contact-form {
  display: block;
  width: 100%;
  height: 1200px;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
}
.form-fallback { margin-top: 16px; font-size: 15px; }
.form-fallback a { font-weight: 700; border-bottom: 1.5px solid var(--gold); }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 34px clamp(20px, 5vw, 48px);
  color: rgba(247, 243, 234, 0.72);
  background: var(--ink);
}
footer .brand { color: #ffffff; }
footer .brand b { color: var(--gold); }
footer p { margin: 0; font-size: 13px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.footer-links a { color: rgba(247, 243, 234, 0.82); }
.footer-links a:hover { color: var(--gold); }

/* --------------------------------------------------------------------------
   12. Responsive — phones and small tablets
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
  .hero .wrap,
  .mission-head,
  .events-teaser .wrap,
  .join .wrap { grid-template-columns: 1fr; }

  .hero .wrap { gap: 32px; }
  .join .wrap { align-items: start; justify-items: start; }
  .events-teaser .wrap { gap: 24px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .menu-button { display: block; }

  nav {
    display: none;
    position: absolute;
    z-index: 19;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  nav.open { display: flex; }
  nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  nav a:hover, nav a[aria-current="page"] { border-color: var(--line); }
  nav .nav-cta { margin-top: 14px; text-align: center; justify-content: center; border-bottom: 0; }

  .promo-banner { gap: 4px 10px; padding: 11px 20px; font-size: 14px; }
  .hero p, .lede, .page-hero p:not(.eyebrow) { font-size: 17px; }
  .hero-photo img { aspect-ratio: 3 / 2; }
  .event-card { grid-template-columns: 1fr; gap: 8px; }
  .resource-note { flex-direction: column; align-items: flex-start; }
  .contact-form { height: 1500px; }
  .footer-links { order: 3; width: 100%; }
}
