﻿/* =========================================================
   Crocker Hall Bonfire Building Bastards Alumni
   Shared stylesheet â€” mobile-first, Aggie Maroon tribute
   ========================================================= */

/* =========================================================
   TYPOGRAPHY â€” pick ONE font (Airbnb-Cereal lookalikes)
   ---------------------------------------------------------
   Airbnb's real font ("Airbnb Cereal") is proprietary and not
   publicly licensed, so these are free Google Fonts that share
   the same clean, geometric, friendly feel.

   TO SWAP FONTS:
     1. Comment out the ACTIVE @import line below and uncomment
        the one you want (only ONE active at a time).
     2. Do the same for the matching --font-family line further
        down in :root (look for "FONT CHOICE").
   That's the whole change.

   --- @import options (keep exactly one uncommented) ---------- */

/* DM Sans â€” closest to Circular/Cereal (ACTIVE) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&display=swap");

/* Nunito Sans â€” warmer, rounder, friendly */
/* @import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap"); */

/* Poppins â€” more geometric / perfectly round */
/* @import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;1,400&display=swap"); */

/* Mulish â€” clean, slightly condensed */
/* @import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,600;0,700;1,400&display=swap"); */

/* ---- Theme tokens ---- */
:root {
  --aggie-maroon: #500000;
  --deep-maroon: #2f0000;
  --bonfire-smoke: #f3f0ea;
  --weathered-gray: #d8d8d8;
  --charcoal: #222222;
  --white: #ffffff;
  --gold: #c8a24a;

  --maroon-grad: linear-gradient(160deg, var(--aggie-maroon) 0%, var(--deep-maroon) 100%);
  --panel-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --maxw: 1080px;
  /* FONT CHOICE â€” keep ONE pair uncommented, match it to the @import above */
  /* DM Sans (ACTIVE) */
  --font: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "DM Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  /* Nunito Sans */
  /* --font: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif; */
  /* Poppins */
  /* --font: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif; */
  /* Mulish */
  /* --font: "Mulish", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-head: "Mulish", "Segoe UI", "Helvetica Neue", Arial, sans-serif; */
}

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px; /* larger base for older alumni on phones */
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--bonfire-smoke);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--aggie-maroon);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--deep-maroon);
}

h1 {
  font-size: 2rem;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--deep-maroon);
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  background: var(--maroon-grad);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--panel-shadow);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: bold;
}

.brand img {
  height: 46px;
  width: auto;
}

.brand span {
  font-size: 0.8rem;
  line-height: 1.05;
  white-space: nowrap; /* keep "Bonfire Buildin' Bastards" on one line */
}

.brand small {
  display: block;
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hamburger toggle */
.nav-toggle {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--white);
  font-size: 1.1rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

/* Mobile: full-screen dark overlay menu */
.nav-links.open {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  position: fixed;
  inset: 0;
  z-index: 90; /* sits under the sticky header (z-index 100) so the close button stays tappable */
  background: var(--deep-maroon);
  padding: 5rem 1.25rem 2rem; /* top padding clears the header bar */
  overflow-y: auto;
}

.nav-links li {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.nav-links li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  color: var(--white);
  text-decoration: none;
  padding: 1.15rem 1rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(0, 0, 0, 0.25);
  color: var(--gold);
}

/* Prevent the page behind the open mobile menu from scrolling */
body.nav-open {
  overflow: hidden;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--deep-maroon);
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  border: none;
  font-size: 1.05rem;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s ease, filter 0.15s ease;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(200, 162, 74, 0.15);
}

.btn-maroon {
  background: var(--aggie-maroon);
  color: var(--white);
}

.btn-block {
  display: block;
  width: 100%;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  background:
    linear-gradient(rgba(47, 0, 0, 0.72), rgba(47, 0, 0, 0.82)),
    /* REPLACE: hero background image (bonfire or dorm photo) */
    url("../img/bonfire-photo.jpg") center / cover no-repeat;
}

.hero-logo {
  height: 192px;
  width: auto;
  margin: 0 auto 1rem;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hero h1 {
  color: var(--white);
  font-size: 2.1rem;
  margin: 0.3rem 0;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 1rem auto 0;
  color: var(--bonfire-smoke);
}

.hero .btn-group {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Smaller page hero for interior pages */
.page-hero {
  background: var(--maroon-grad);
  color: var(--white);
  padding: 2.25rem 1rem;
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  margin: 0 0 0.5rem;
}
.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--bonfire-smoke);
}

/* =========================================================
   Sections / Panels
   ========================================================= */
.section {
  padding: 2.5rem 0;
}
.section.alt {
  background: var(--white);
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
}
.section-head p {
  max-width: 640px;
  margin: 0 auto;
  color: #555;
}

.panel {
  background: var(--white);
  border: 1px solid var(--weathered-gray);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--panel-shadow);
}
.section.alt .panel {
  background: var(--bonfire-smoke);
}

.panel + .panel {
  margin-top: 1.25rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

.media-figure img {
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  width: 100%;
}
.media-figure figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
  text-align: center;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fact-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--weathered-gray);
  display: flex;
  gap: 0.6rem;
}
.fact-list li:last-child {
  border-bottom: none;
}
.fact-list .label {
  font-weight: 700;
  color: var(--deep-maroon);
  min-width: 9rem;
}

.callout {
  background: var(--deep-maroon);
  color: var(--white);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout p {
  margin: 0;
}

/* =========================================================
   Card grids (home teasers / blog)
   ========================================================= */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--weathered-gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
}
.card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card h3 {
  margin: 0 0 0.5rem;
}
.card .meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.5rem;
}
.card p {
  margin: 0 0 1rem;
}
.card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.gallery-controls label {
  font-weight: 700;
  color: var(--deep-maroon);
}
.gallery-controls select {
  font-size: 1.05rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 2px solid var(--aggie-maroon);
  background: var(--white);
  min-width: 220px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.photo-card {
  background: var(--white);
  border: 1px solid var(--weathered-gray);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--panel-shadow);
}
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--weathered-gray);
}
.photo-card .photo-body {
  padding: 1rem;
}
.photo-card .year-tag {
  display: inline-block;
  background: var(--aggie-maroon);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.photo-card .caption {
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.photo-card .photo-meta {
  font-size: 0.85rem;
  color: #666;
  margin: 0.15rem 0;
}
.photo-card .help-identify {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--aggie-maroon);
  font-style: italic;
}

.gallery-empty {
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--aggie-maroon);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.gallery-empty h3 {
  margin-top: 0;
}
.available-years {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.available-years button {
  background: var(--bonfire-smoke);
  border: 1px solid var(--aggie-maroon);
  color: var(--aggie-maroon);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.available-years button:hover {
  background: var(--aggie-maroon);
  color: var(--white);
}

/* =========================================================
   Forms (upload.php + contact)
   ========================================================= */
.form-grid {
  display: grid;
  gap: 1.1rem;
}
.field label {
  display: block;
  font-weight: 700;
  color: var(--deep-maroon);
  margin-bottom: 0.35rem;
}
.field input[type=text], .field input[type=email], .field input[type=file], .field select, .field textarea {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.7rem 0.75rem;
  border: 2px solid var(--weathered-gray);
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--aggie-maroon);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field .checkbox {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-weight: 400;
}
.field .checkbox input {
  margin-top: 0.35rem;
  width: 1.2rem;
  height: 1.2rem;
}
.required {
  color: var(--aggie-maroon);
}
.help-text {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

/* Honeypot â€” hidden from humans */
.hp-field {
  position: absolute;
  left: -5000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
.alert-success {
  background: #e6f4e6;
  border: 1px solid #2e7d32;
  color: #1b5e20;
}
.alert-error {
  background: #fdecea;
  border: 1px solid #c62828;
  color: #b71c1c;
}

/* Embedded Google Form responsive frame */
.embed-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--panel-shadow);
  background: var(--white);
}
.embed-frame iframe {
  width: 100%;
  min-height: 1100px;
  border: 0;
  display: block;
}

/* =========================================================
   Blog article
   ========================================================= */
.article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--panel-shadow);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.article h2 {
  margin-top: 0;
}
.article .meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.article img {
  border-radius: var(--radius);
  margin: 1rem 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--deep-maroon);
  color: var(--bonfire-smoke);
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 2rem;
}
.site-footer .footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
}
.site-footer .footer-nav a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.site-footer .footer-nav a:hover {
  text-decoration: underline;
}
.site-footer .legal {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}
.site-footer .legal strong {
  color: var(--white);
}
.site-footer .legal a {
  color: var(--bonfire-smoke); /* creamish, readable on the dark maroon footer */
  text-decoration: underline;
}
.site-footer .legal a:hover {
  color: var(--white);
}
.site-footer .disclaimer {
  font-size: 0.8rem;
  color: var(--weathered-gray);
  margin-top: 1rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   Utilities
   ========================================================= */
.text-center {
  text-align: center;
}
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.lede {
  font-size: 1.15rem;
}

/* =========================================================
   Responsive â€” tablet / desktop
   ========================================================= */
@media (min-width: 720px) {
  h1 { font-size: 2.4rem; }
  .hero h1 { font-size: 2.8rem; }
  .brand span { font-size: 0.8rem; }

  .nav-toggle {
    display: none;
  }
  /* Reset the mobile overlay styles and lay items out in a row */
  .nav-links,
  .nav-links.open {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: stretch; /* every button stretches to the tallest one */
    width: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    gap: 0.25rem;
  }
  .nav-links li,
  .nav-links li:last-child {
    border: none;
    display: flex; /* lets the anchor fill the row height */
  }
  .nav-links a {
    display: flex;
    align-items: center;     /* vertical centering */
    justify-content: center; /* horizontal centering */
    text-align: center;
    font-size: 1rem;
    line-height: 1.15;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
  }

  .btn-group {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .split.two {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
