/* =========================================================
   Mustang Wrestling Foundation — Design System
   Palette matches Cal Poly's published brand colors (Poly
   Green #154734, Mustang Gold #BD8B13, plus secondary colors
   Poly Canyon, Stadium Gold, Mission Beige, Seal Gray — per
   ucm.calpoly.edu/color-guidelines). Color values themselves
   are not protectable; this project deliberately excludes any
   Cal Poly logo, wordmark, "CP" mark, or Mustang mascot artwork.

   Deliberately distinct from the sibling Mustang Wrestling Camp
   site: white-forward instead of cream-forward, a serif display
   face (Fraunces) instead of a condensed athletic caps face,
   sharper corners/shadows, more whitespace — a donor/foundation
   register rather than a recruiting/camp register. Same family,
   different voice.
   ========================================================= */

:root {
  /* Color — Cal Poly published values */
  --color-green-900: #0f3325;
  --color-green-800: #154734;  /* Poly Green */
  --color-green-700: #1d5c44;
  --color-green-600: #277356;
  --color-gold-600: #7a5a0c;
  --color-gold-500: #bd8b13;  /* Mustang Gold */
  --color-gold-400: #d9a52a;
  --color-gold-100: #f8e08e;  /* Stadium Gold */
  --color-cream-200: #e4e3d3; /* Mission Beige */
  --color-ink-900: #1b1e1d;
  --color-ink-700: #3e4242;
  --color-ink-500: #5b5f5d;   /* Seal Gray */
  --color-white: #ffffff;
  --color-off-white: #f7f7f4;

  /* Type */
  --font-head: "abolition", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / layout */
  --max-width: 1140px;
  --radius: 3px;
  --radius-lg: 3px;
  --line: rgba(27, 30, 29, 0.16);
  --shadow-sm: 0 1px 2px rgba(15, 51, 37, 0.08);
  --shadow-md: 0 6px 14px rgba(15, 51, 37, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink-900);
  background: var(--color-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 400; /* Abolition ships in 400 only — prevents faux-bold */
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--color-green-800);
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  margin-bottom: 0.75em;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--color-off-white); }
.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { color: var(--color-ink-700); font-size: 1.08rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--color-gold-500);
  color: var(--color-green-900);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { background: var(--color-gold-400); box-shadow: var(--shadow-md); }
.btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: var(--color-white);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--color-white); }
.btn--outline-dark {
  background: transparent;
  border-color: var(--color-green-800);
  color: var(--color-green-800);
}
.btn--outline-dark:hover { background: var(--color-green-800); color: var(--color-white); }
.btn--sm { padding: 10px 22px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-green-800);
}
.brand span { color: var(--color-gold-600); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink-700);
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover {
  color: var(--color-green-800);
  background: var(--color-off-white);
  border-color: var(--line);
}
.header-cta { display: flex; align-items: center; gap: 20px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-green-800);
  margin: 5px 0;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  padding: 100px 0 90px;
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: -12% -5%;
  z-index: 0;
  will-change: transform;
}
.hero-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: heroZoom 26s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(15,51,37,0.94) 0%, rgba(21,71,52,0.93) 55%, rgba(29,92,68,0.9) 100%);
}
.hero > .container { position: relative; z-index: 2; }
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg__img { animation: none; }
}
.hero .eyebrow { color: var(--color-gold-100); }
.hero h1 { color: var(--color-white); max-width: 820px; margin-left: auto; margin-right: auto; }
.hero-sub {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.86);
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 28px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

/* Signup form */
.signup-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 640px;
  margin: 0 auto;
}
.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;
}
.signup-form__input {
  font-family: var(--font-body);
  font-size: 0.92rem;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--color-white);
  color: var(--color-ink-900);
  flex: 1 1 220px;
  min-width: 200px;
}
.signup-form__input:focus {
  outline: none;
  border-color: var(--color-gold-500);
}
.signup-form__input::placeholder { color: var(--color-ink-500); }
.signup-form__submit { flex: 0 0 auto; height: 46px; }

.signup-band {
  background: var(--color-green-800);
  color: var(--color-white);
  padding: 64px 0;
}
.signup-band__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.signup-band h2 { color: var(--color-white); }
.signup-band .eyebrow { color: var(--color-gold-100); }
.signup-band p { color: rgba(255,255,255,0.85); }
.signup-band .signup-form { justify-content: flex-start; margin: 0; max-width: none; }

/* Featured event */
.featured-card {
  background: var(--color-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.featured-card__body {
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.featured-card__details h3 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 0.3em; }
.featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 18px 0 22px;
  font-size: 0.92rem;
  color: var(--color-ink-700);
  font-weight: 600;
}
.featured-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--color-gold-500); display: inline-block; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.photo-grid .placeholder-photo:first-child,
.photo-grid .gallery-trigger:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.photo-grid .gallery-trigger {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
}

/* Placeholder photo blocks */
.placeholder-photo {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(21,71,52,0.9), rgba(21,71,52,0.65)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: rgba(255,255,255,0.85);
}
.placeholder-photo__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.placeholder-photo__icon {
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  opacity: 0.9;
}

/* Regional socials */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.social-card {
  background: var(--color-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.social-card__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.social-card__photos .placeholder-photo { aspect-ratio: 1/1; border-radius: 0; }
.social-card__photos .gallery-trigger { aspect-ratio: 1/1; border-radius: 0; }
.social-card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.social-card__date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  margin-bottom: 8px;
}
.social-card__body h3 { margin-bottom: 8px; }
.social-card__body p { color: var(--color-ink-700); font-size: 0.95rem; flex: 1; }
.social-card__body .btn { margin-top: 12px; align-self: flex-start; }

/* Mission */
.mission-band {
  background: var(--color-green-800);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.mission-band .eyebrow { color: var(--color-gold-100); }
.mission-band h2 { color: var(--color-white); margin-bottom: 0.4em; }
.mission-band p { color: rgba(255,255,255,0.88); font-size: 1.05rem; }
.mission-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.mission-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.mission-stat strong {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-gold-100);
  margin-bottom: 4px;
}
.mission-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.mission-stat--highlight {
  grid-column: 1 / -1;
  background: rgba(189,139,19,0.12);
  border-color: var(--color-gold-500);
  padding: 26px 22px;
}
.mission-stat--highlight strong { font-size: 2rem; color: var(--color-gold-100); }
.mission-stat--highlight span { font-size: 0.88rem; color: rgba(255,255,255,0.85); }

/* Board */
.board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 44px;
}
.board-card {
  text-align: center;
  padding: 22px 14px;
  border-radius: var(--radius-lg);
  background: var(--color-off-white);
  border: 1px solid var(--line);
}
.board-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-green-800);
  border-bottom: 2px solid var(--color-gold-500);
  color: var(--color-gold-100);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.05rem;
}
.board-card h3 { font-size: 1rem; margin-bottom: 2px; }
.board-card .role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.board-cta {
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.board-cta p { color: var(--color-ink-700); margin-bottom: 18px; }

/* Give */
.give-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.give-card {
  background: var(--color-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.give-card--featured {
  border-color: var(--color-gold-500);
  border-width: 2px;
}
.give-badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-600);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.give-number {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-green-800);
  color: var(--color-green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 400;
  margin-bottom: 18px;
}
.give-card h3 { margin-bottom: 10px; }
.give-card p { color: var(--color-ink-700); font-size: 0.95rem; flex: 1; }
.give-card .btn { margin-top: 8px; }
.give-contact {
  font-size: 0.88rem;
  color: var(--color-ink-500);
  margin-top: 10px;
}
.give-contact a { color: var(--color-green-800); font-weight: 600; text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--color-green-900);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand .brand { color: var(--color-white); margin-bottom: 12px; display: inline-block; }
.footer-brand .brand span { color: var(--color-gold-400); }
.footer-brand p { font-size: 0.92rem; color: rgba(255,255,255,0.65); max-width: 320px; }
.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.footer-col a:hover { color: var(--color-gold-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-milestone {
  color: var(--color-gold-100);
  font-weight: 600;
}

/* Gallery triggers */
.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: inherit;
}
.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-trigger:hover img,
.gallery-trigger:focus-visible img { transform: scale(1.06); }
.gallery-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15,51,37,0.35), rgba(15,51,37,0) 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8'><circle cx='11' cy='11' r='7'/><path d='M21 21l-4.3-4.3'/><path d='M11 8v6M8 11h6'/></svg>") center/28px no-repeat;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-trigger:hover::after,
.gallery-trigger:focus-visible::after { opacity: 1; }
.gallery-trigger:focus-visible { outline: 2px solid var(--color-gold-500); outline-offset: 2px; }

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,14,12,0.94);
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure {
  margin: 0;
  max-width: 88vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.97);
  transition: transform 0.25s ease;
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
  max-width: 88vw;
  max-height: 74vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__caption {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox__close,
.lightbox__nav {
  position: fixed;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.18); }
.lightbox__close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
@media (max-width: 720px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; }
}

/* Responsive */
@media (max-width: 980px) {
  .featured-card__body { grid-template-columns: 1fr; padding: 32px; }
  .socials-grid { grid-template-columns: 1fr 1fr; }
  .board-grid { grid-template-columns: repeat(3, 1fr); }
  .give-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .mission-band { grid-template-columns: 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .signup-band__inner { grid-template-columns: 1fr; text-align: center; }
  .signup-band .signup-form { justify-content: center; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .socials-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 76px 0 64px; }
  .mission-band { padding: 28px; }
  .social-card__body h3 { font-size: 1.55rem; }
}
@media (max-width: 480px) {
  .mission-stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
}
