/* Freedom Eagles Robotics FRC 11318 - Site styles */

:root {
  --black: #0d0d0d;
  --black-soft: #1a1a1a;
  --white: #f5f5f5;
  --white-muted: #b3b3b3;
  --gold: #d4af37;
  --gold-soft: #e8c547;
  --gold-dim: rgba(212, 175, 55, 0.25);
}

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--white);
  background: var(--black);
  min-height: 100vh;
}

/* Site navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: var(--black-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--white-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--gold-soft);
}

.nav-links a.nav-active {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 30%, var(--gold-dim) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
}

.hero-logo {
  display: block;
  width: clamp(140px, 28vw, 220px);
  height: auto;
  margin: 0 auto 1.25rem;
}

.hero-badge {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.hero h1 {
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.25rem);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.hero-sub {
  color: var(--white-muted);
  font-size: 1rem;
  margin: 0;
}

.hero-compact .hero-content {
  max-width: none;
}

.hero-compact {
  min-height: 28vh;
}

main {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.updates {
  padding: 3rem 0;
}

.updates h2,
.contact h2,
.page-section h2,
.subteams h2,
.team-history h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

/* About page */
.page-section {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-section:first-of-type {
  border-top: none;
  padding-top: 0;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--white);
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
}

.subteam-cards {
  display: grid;
  gap: 2rem;
}

.subteam-card {
  display: grid;
  gap: 1.25rem;
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.subteam-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.subteam-image-wrap {
  aspect-ratio: 16 / 10;
  background: var(--black);
  overflow: hidden;
}

.subteam-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.subteam-body {
  padding: 0 1.5rem 1.5rem;
}

.subteam-body h3 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.subteam-body p {
  margin: 0;
  color: var(--white-muted);
  font-size: 1rem;
}

.team-history .history-range {
  color: var(--gold-soft);
  font-size: 1rem;
  margin: 0 0 1.5rem;
}

.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.history-year h3 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  margin: 0 0 1rem;
}

.awards h4 {
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.award-logo {
  width: 56px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.award-item p {
  margin: 0;
  color: var(--white-muted);
  line-height: 1.5;
}

.award-item p strong {
  color: var(--white);
}

@media (min-width: 640px) {
  .subteam-card {
    grid-template-columns: 320px 1fr;
    gap: 0;
  }

  .subteam-image-wrap {
    aspect-ratio: auto;
    height: 100%;
    min-height: 200px;
  }

  .subteam-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.updates-grid {
  display: grid;
  gap: 1.5rem;
}

.update-card {
  background: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.update-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.update-card.highlight {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, var(--black-soft) 0%, rgba(212, 175, 55, 0.06) 100%);
}

.update-card time {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}

.update-card h3 {
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--white);
}

.update-card p {
  margin: 0;
  color: var(--white-muted);
}

.update-card p strong {
  color: var(--white);
}

.contact {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-intro {
  color: var(--white-muted);
  margin: 0 0 1.5rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--black-soft);
  color: var(--gold-soft);
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.contact-link:hover {
  background: var(--gold-dim);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold);
}

.contact-icon {
  opacity: 0.9;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--white-muted);
}

@media (min-width: 640px) {
  .updates-grid {
    grid-template-columns: 1fr 1fr;
  }
}
