/* ==========================================================================
   UIG — Undergraduate Investment Group
   Layout + typography copied from yalesig.org (white header, full-bleed
   photo hero with centered Libre Baskerville headline, plain content
   sections, full black footer bar with legal disclaimer).
   Brand colors: ASU maroon / gold accents on black.
   ========================================================================== */

:root {
  --black: #000000;
  --maroon: #8c1d40;
  --gold: #ffc627;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: #e4e4e4;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }
.site-header, .site-footer { flex: none; }

/* ---------- Scroll-reveal animation (matches yalesig.org's Squarespace
   fade-in-up "data-animation-role" effect) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.6s; }

h1, h2, h3, h4 {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--maroon);
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Header (white, simple text nav — matches yalesig.org) ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 300;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.brand { display: flex; align-items: center; position: relative; z-index: 310; }
.brand img { height: 80px; width: auto; }

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.primary-nav a {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 400;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

nav.primary-nav a:hover,
nav.primary-nav a.active {
  border-bottom-color: var(--maroon);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
  position: relative;
  z-index: 310;
}

/* ---------- Mobile nav: full-screen overlay (matches yalesig.org exactly —
   Squarespace's mobile menu: fixed full-viewport white panel, large centered
   Libre Baskerville links stacked with generous spacing, hamburger becomes
   an X while open) ---------- */

@media (max-width: 860px) {
  nav.primary-nav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
  }
  nav.primary-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  nav.primary-nav a {
    width: auto;
    padding: 0;
    border-bottom: none;
    font-size: clamp(1.7rem, 8vw, 2.4rem);
    font-weight: 400;
  }
  nav.primary-nav a.active { border-bottom: none; color: var(--maroon); }
  .menu-toggle { display: block; }
}

/* ---------- Photo hero (full-bleed image, centered serif title) ---------- */

.photo-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.78), rgba(0,0,0,0.62) 45%, rgba(0,0,0,0.82));
}

.photo-hero .hero-inner {
  position: relative;
  max-width: 900px;
  padding: 0 24px;
}

.photo-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin-bottom: 20px;
}

.photo-hero .lede {
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
  margin-bottom: 34px;
}

.photo-hero .lede em { font-style: italic; }

.hero-logo {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 28px;
}

.btn-outline-white {
  display: inline-block;
  padding: 16px 36px;
  border: 1px solid rgba(255,255,255,0.85);
  border-radius: 2px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

/* ---------- Small page hero (interior pages, black, no photo) ---------- */

.page-hero {
  background: var(--black);
  color: #fff;
  padding: 64px 0 48px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0 auto; }

/* ---------- Content sections ---------- */

section { padding: 72px 0; }
section.narrow .wrap { max-width: 800px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 700;
  background: var(--black);
  color: #fff;
}
.btn:hover { background: var(--maroon); }

.tag {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---------- Team / people ---------- */

.group-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--maroon);
  margin: 48px 0 6px;
}

.person-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  margin-top: 28px;
  max-width: 880px;
}
.person-grid:first-child { margin-top: 0; }

.person {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.person-photo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;              /* cancels the HTML height attribute hint */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--line);
}

.person-body { border-top: 2px solid var(--black); padding-top: 18px; }
.person h4 { font-size: 1.15rem; margin-bottom: 4px; color: var(--ink); }
.person .role {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--maroon);
  margin-bottom: 10px;
}
.person .meta { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 10px; }
.person .bio { font-size: 0.92rem; color: var(--ink); margin-bottom: 12px; }
.person .linkedin {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.person .linkedin:hover { color: var(--maroon); border-bottom-color: var(--maroon); }

@media (max-width: 640px) {
  .person { grid-template-columns: 1fr; gap: 0; }
  .person-photo { margin-bottom: 16px; }
}

/* ---------- Why-join columns ---------- */

.col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 860px) { .col-grid { grid-template-columns: 1fr; } }
.col-grid h3 { font-size: 1.15rem; text-align: center; }
.col-grid p { text-align: justify; }

/* ---------- Sponsor / placement logo grid ---------- */

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 40px;
}

.sponsor-tile {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sponsor-tile img {
  max-height: 130px;
  max-width: 280px;
  width: auto;
  height: auto;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .sponsor-tile img { max-height: 80px; max-width: 180px; }
}

/* Wider, centered block text (matches yalesig.org) — used on About, Sponsors intro */
.text-block .wrap { max-width: 960px; text-align: justify; }

.placements-heading { font-size: 1.9rem; text-align: center; }

/* ---------- Contact ---------- */

.coming-soon-box {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  background: #fafafa;
}
.coming-soon-box h2 { margin-bottom: 10px; }

/* ---------- Footer (full black bar, matches yalesig.org) ---------- */

.site-footer {
  background: var(--black);
  color: #fff;
  padding: 56px 0 40px;
  text-align: center;
}
.site-footer .address { color: rgba(255,255,255,0.9); font-size: 1rem; margin-bottom: 20px; }
.site-footer .legal {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto;
  text-align: justify;
}
.site-footer .legal p { color: inherit; margin-bottom: 10px; }
.site-footer .legal p:last-child { margin-bottom: 0; }
