/* ===================================================
   Dallas BEST Robotics — Main Stylesheet
   Color Palette:
     Navy:    #0D1B2A  (deep background)
     Teal:    #00B4D8  (primary accent)
     Orange:  #FF6B35  (secondary accent / CTA)
     Light:   #F0F4F8  (section backgrounds)
     White:   #FFFFFF
=================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #0D1B2A;
  background: #fff;
  line-height: 1.6;
}

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

a { color: #00B4D8; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 0.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: #FF6B35;
  border-radius: 2px;
  margin-top: 0.5rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: #4a6080;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #FF6B35;
  color: #fff;
}
.btn-primary:hover { background: #e85a24; text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.btn-teal {
  background: #00B4D8;
  color: #fff;
}
.btn-teal:hover { background: #009ab8; text-decoration: none; }

/* ---------- Navigation ---------- */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
}
#navbar.scrolled {
  background: #0D1B2A;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  padding: 0.6rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}
.nav-brand img { height: 40px; width: auto; }
.nav-brand span { color: #00B4D8; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: #fff;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: #00B4D8; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: all 0.3s;
}

/* ---------- Hero / Slideshow ---------- */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0D1B2A; /* fallback if image hasn't loaded yet */
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13,27,42,0.7) 0%, rgba(13,27,42,0.5) 60%, rgba(13,27,42,0.85) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-block;
  background: #FF6B35;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-title span { color: #00B4D8; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Slideshow dots */
.slideshow-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}
.dot.active { background: #FF6B35; }

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 3;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(5px); }
}

/* ---------- About Section ---------- */
#about {
  padding: 5rem 0;
  background: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.stat-card {
  background: #F0F4F8;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border-top: 3px solid #00B4D8;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #0D1B2A;
}
.stat-label {
  font-size: 0.85rem;
  color: #4a6080;
  margin-top: 0.25rem;
}
.about-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0D1B2A;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-placeholder {
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* ---------- 2026 Season Section ---------- */
#season {
  padding: 5rem 0;
  background: #0D1B2A;
  color: #fff;
}
#season .section-title { color: #fff; }
#season .section-subtitle { color: rgba(255,255,255,0.7); }
.season-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.season-info h3 {
  font-size: 1.5rem;
  color: #00B4D8;
  margin-bottom: 1rem;
}
.season-info p { color: rgba(255,255,255,0.85); margin-bottom: 1.5rem; }
.timeline {
  list-style: none;
  margin: 1.5rem 0 2rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.15);
}
.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FF6B35;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}
.timeline-text strong { display: block; color: #fff; font-size: 0.95rem; }
.timeline-text span { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

.video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #f5c800;
  aspect-ratio: 16/9;
  cursor: pointer;
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.video-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.video-wrap:hover .video-thumb-img { transform: scale(1.03); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.play-btn svg { width: 80px; height: 80px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5)); }
.video-wrap:hover .play-btn svg circle { fill: rgba(255,107,53,0.85); }
.video-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

/* ---------- Sponsors Section ---------- */
#sponsors {
  padding: 5rem 0;
  background: #F0F4F8;
}
.sponsor-intro { max-width: 650px; }
.sponsor-tiers { margin-top: 3rem; }
.sponsor-tier { margin-bottom: 3rem; }
.tier-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 3px;
}
.tier-gold     { background: #7a5c00; color: #ffd700; }
.tier-silver   { background: #3a3a3a; color: #c0c0c0; }
.tier-friend   { background: #1a4a6b; color: #a8d8f0; }
.tier-stemhero { background: #1a3a1a; color: #7fdd7f; }

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}
.sponsor-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: #4a6080;
  font-weight: 600;
  border: 1px solid #dde4ed;
  min-width: 160px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sponsor-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }

/* Smaller cards for lower sponsor tiers */
.sponsor-card-sm {
  padding: 0.75rem 1rem;
  min-width: 120px;
  max-width: 200px;
}
.sponsor-grid-stemhero {
  justify-content: flex-start;
}

.sponsor-card.placeholder {
  border: 2px dashed #c0cad8;
  color: #9aacbc;
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
}
.sponsor-cta {
  margin-top: 3rem;
  background: #0D1B2A;
  border-radius: 12px;
  padding: 2.5rem 3rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.sponsor-cta h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.sponsor-cta p { color: rgba(255,255,255,0.75); max-width: 500px; }

/* ---------- Contact Section ---------- */
#contact {
  padding: 5rem 0;
  background: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact-info h3 { font-size: 1.2rem; color: #0D1B2A; margin: 1.5rem 0 0.5rem; }
.contact-info p { color: #4a6080; margin-bottom: 0.25rem; }
.contact-form-wrap {
  background: #F0F4F8;
  border-radius: 12px;
  padding: 2rem;
}
.contact-form-wrap h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: #0D1B2A; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid #c8d4e0;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #0D1B2A;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00B4D8;
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* ---------- Footer ---------- */
footer {
  background: #0D1B2A;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-brand img { height: 45px; margin-bottom: 1rem; filter: brightness(1.2); }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-links h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: #00B4D8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.footer-bottom a { color: #00B4D8; }

/* ---------- Contact — full width layout ---------- */
.contact-info-block { max-width: 900px; }
.contact-info-block > p { color: #4a6080; margin-bottom: 2rem; }
.contact-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.contact-meta h3 { font-size: 1rem; color: #0D1B2A; margin-bottom: 0.4rem; }
.contact-meta p { color: #4a6080; font-size: 0.95rem; }

.core-members-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #FF6B35;
  display: inline-block;
}
.core-members-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.core-members-table th {
  background: #0D1B2A;
  color: #fff;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.core-members-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dde4ed;
  color: #0D1B2A;
}
.core-members-table tr:nth-child(even) td { background: #F0F4F8; }
.core-members-table tr:hover td { background: #e6f0f8; }
.core-members-table td a { color: #00B4D8; }
.placeholder-cell { color: #aab8c8; font-style: italic; }

/* ---------- Notice Banner ---------- */
.photo-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #664d03;
  margin-bottom: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid,
  .season-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-image-wrap { min-height: 280px; }
  .sponsor-cta { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; background: #0D1B2A; position: absolute; top: 60px; left: 0; width: 100%; padding: 1rem 1.5rem; gap: 1rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
