/* ============================================================
   RAZORBOTZ — Minimal Light Theme
   ============================================================ */
:root {
  /* U of A Brand Colors */
  --cardinal: #9D2235;
  --cardinal-dark: #7a1a29;

  /* Grays & Neutrals */
  --text-main: #111827;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --bg-main: #ffffff;
  --bg-alt: #f9fafb;
  --border-light: #e5e7eb;
  --border-dark: #d1d5db;

  /* Layout */
  --container-width: 1100px;
  --nav-height: 80px;
  --transition: all 0.2s ease-in-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 1rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

:focus-visible { outline: 2px solid var(--cardinal); outline-offset: 3px; }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-main);
}

h1 { font-size: clamp(3rem, 8vw, 4.5rem); letter-spacing: 0.01em; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); }

a { color: var(--cardinal); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cardinal-dark); }

.eyebrow {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--cardinal);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-intro { max-width: 640px; margin-bottom: 2.5rem; }
.section-intro.centered { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-sm { padding: 0.5rem 1.1rem; font-size: 1rem; }

.btn-primary { background: var(--cardinal); color: var(--bg-main); border: 1px solid var(--cardinal); }
.btn-primary:hover { background: var(--cardinal-dark); border-color: var(--cardinal-dark); color: var(--bg-main); }

.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-dark); }
.btn-outline:hover { border-color: var(--text-main); color: var(--text-main); }

.button-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.justify-center { justify-content: center; }
.mt-2 { margin-top: 2rem; }

/* Navigation */
.navbar {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-height);
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--text-main); }
.nav-brand span { color: var(--cardinal); }
.nav-logo { height: 42px; width: auto; margin-right: 12px; }

.nav-menu { display: flex; align-items: center; gap: 2rem; }

.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active { color: var(--cardinal); }

.nav-actions { display: flex; gap: 0.75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Hero / Who Are We */
.hero {
  background-color: var(--bg-main);
  padding: 5rem 0 4rem;
}

.hero-content { max-width: 560px; }

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Standard Sections */
.section { padding: 5rem 0; }
.bg-light { background-color: var(--bg-alt); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.text-center { text-align: center; }

/* Layout Grids */
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Cards */
.card {
  background: var(--bg-main);
  padding: 2rem;
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--cardinal);
}
.card-title { font-size: 1.35rem; margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* Carousel */
.carousel {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}
.carousel-slide { position: relative; flex: 0 0 100%; height: 100%; }

/* Spinner while a slide's photo is still downloading */
.carousel-slide.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--cardinal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
}
.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }
.carousel:hover .carousel-btn,
.carousel:focus-within .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: var(--bg-main); color: var(--cardinal); }

.carousel-dots {
  position: absolute;
  bottom: 0.9rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.carousel-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.carousel-dots button.active { background: var(--cardinal); }

/* Touch devices: always show arrows */
@media (hover: none) { .carousel-btn { opacity: 1; } }

/* Photo frame + missing-image placeholder */
.photo-frame { border: 1px solid var(--border-light); background: var(--bg-alt); }
.photo-frame img { width: 100%; height: auto; }

.img-fallback {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 1rem;
  text-align: center;
  background: var(--bg-alt);
  color: var(--text-light);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Video */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--text-main);
  border: 1px solid var(--border-light);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder {
  display: grid;
  place-items: center;
  color: var(--border-dark);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Timeline */
.timeline { border-left: 2px solid var(--border-light); padding-left: 1.75rem; margin-left: 0.5rem; }
.timeline-item { position: relative; padding-bottom: 1.75rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item p { margin-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: -2.15rem; top: 0.3rem; width: 12px; height: 12px; background: var(--bg-main); border: 2px solid var(--cardinal); border-radius: 50%; }
.timeline-year { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--cardinal); margin-bottom: 0.25rem; display: block; }

/* FAQ */
.faq-list { max-width: 780px; border-top: 1px solid var(--border-dark); }
.faq-item { border-bottom: 1px solid var(--border-dark); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-main);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.75rem;
  color: var(--cardinal);
  transition: var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--cardinal); }
.faq-item p { padding-bottom: 1.25rem; margin-bottom: 0; max-width: 680px; }

/* Sponsors */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: center;
  gap: 2rem;
  margin: 2.5rem 0 3rem;
}
.sponsor-logo {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  background: var(--bg-main);
}
.sponsor-logo img { max-height: 100%; width: 100%; object-fit: contain; }
a.sponsor-logo:hover { border-color: var(--border-dark); }
.sponsor-empty {
  border-style: dashed;
  color: var(--text-light);
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Join */
.plain-list { list-style-position: inside; color: var(--text-muted); line-height: 2; }

/* Gallery: large viewer + thumbnail grid */
.gallery-viewer {
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border: 0;
}
/* Show whole photos (no cropping) since they're mixed portrait/landscape */
.gallery-viewer .carousel-slide img { object-fit: contain; }
.gallery-viewer .img-fallback { background: #1a1a1a; color: var(--text-light); }
/* The thumbnails replace the dots here */
.gallery-viewer .carousel-dots { display: none; }

.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
  font-size: 0.95rem;
}
.gallery-count {
  flex-shrink: 0;
  color: var(--text-light);
  font-variant-numeric: tabular-nums;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.5rem;
}
.gallery-thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid var(--border-light);
  background: var(--bg-alt);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { opacity: 1; outline: 3px solid var(--cardinal); outline-offset: 2px; }
.gallery-thumb img,
.gallery-thumb .img-fallback {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  font-size: 0.75rem;
}

/* Spec Table */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
.spec-table.flush { margin-bottom: 0; }
.spec-table th, .spec-table td { padding: 1rem; border-bottom: 1px solid var(--border-light); text-align: left; }
.spec-table th { font-weight: 600; color: var(--text-muted); width: 35%; font-size: 0.95rem; }
.spec-table td { font-family: 'Barlow Condensed', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--text-main); }
.spec-table td.small { font-size: 1rem; }

/* Footer */
.site-footer {
  background: var(--bg-main);
  color: var(--text-muted);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-brand h3 { margin-bottom: 0.25rem; }
.footer-brand p { font-size: 0.9rem; margin: 0; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; max-width: 420px; }
.footer-nav a { color: var(--text-muted); font-size: 0.95rem; }
.footer-nav a:hover { color: var(--cardinal); }

.footer-social { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; align-self: flex-start; }
.footer-social a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-dark);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-social a:hover { border-color: var(--cardinal); color: var(--cardinal); }

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  max-width: 800px;
}
.footer-disclaimer p { color: var(--text-light); margin-bottom: 0; }

/* Team Roster (used on team.html) */
.roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2rem; }
.member-card { text-align: center; }
.member-photo { width: 100%; aspect-ratio: 1/1; background: var(--bg-alt); border: 1px solid var(--border-light); border-radius: 4px; margin-bottom: 1.25rem; display: grid; place-items: center; color: var(--text-light); }
.member-name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 0.15rem; color: var(--text-main); text-transform: uppercase; }
.member-role { color: var(--cardinal); font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; }
.member-major { color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 0.75rem 0; font-size: 1.05rem; border-bottom: 1px solid var(--border-light); }
  .nav-actions .btn { flex: 1; }
}

@media (max-width: 768px) {
  .two-column { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding: 3rem 0; }
  .section { padding: 3.5rem 0; }
  h2 { font-size: 2.1rem; }
}

/* Kept from the previous stylesheet in case team.html uses them */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 3rem; }
.image-placeholder { background: var(--bg-alt); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; border: 1px solid var(--border-light); }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; color: var(--cardinal); }
.link-arrow:hover { transform: translateX(5px); color: var(--cardinal-dark); }
.cta-section { background: var(--bg-alt); padding: 6rem 0; border-top: 1px solid var(--border-light); }
.cta-section p { max-width: 600px; margin: 0 auto 2rem auto; }
.bg-main { background: var(--bg-main); }
/* Video slides in carousels */
.carousel-slide:has(video, iframe) { background: #000; }
.carousel-slide video,
.carousel-slide iframe { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }
/* On a video slide, move the dots to the top so they don't cover the player controls */
.carousel.on-video .carousel-dots { top: 0.9rem; bottom: auto; }