/* ═══════════════════════════════════════════════════════════
   SECTIONS
   Styles for each page section. Mobile-first, then layered
   up with min-width queries.

   Contents:
     1. Hero (index — full-screen video)
     2. About / Stats (index — step-repeat section)
     3. Sponsors (index — marquee section)
     4. Video (index — YouTube embed)
     5. Hero Banner (subpages — photo banner)
     6. Footer (shared)
   ═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────
   1. HERO  (index page — video background)
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.hero__content {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-xl) var(--space-sm);
  gap: var(--space-xs);
  max-width: calc(var(--content-max) + var(--space-sm) * 2);
  margin-inline: auto;
}

.hero__title {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 8.4vw, 3.063rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.004em;
  line-height: 1.2;
  text-align: left;
}

/* On mobile, the two title lines wrap */
.hero__title #typed-l1 {
  display: block;
}

.hero__title #typed-overlay {
  width: 100%;
  text-align: left;
}

.hero__title #typed-l2 {
  white-space: nowrap;
}

.hero__subtitle {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-align: left;
}

.hero__content .btn {
  margin-top: var(--space-sm);
}


@media (min-width: 768px) {
  .hero__content {
    padding: var(--space-xl) 30px;
    gap: var(--space-xs);
    max-width: calc(var(--content-max) + 60px);
  }

  .hero__title {
    font-size: clamp(1.75rem, 4.2vw, 4.113rem);
    white-space: nowrap;
  }

  .hero__title #typed-l1 {
    display: inline;
  }

  .hero__subtitle {
    white-space: nowrap;
  }

  .hero__subtitle-break {
    display: none;
  }

}

@media (min-width: 1200px) {
  .hero__content {
    padding: var(--space-xl) 50px;
    max-width: calc(var(--content-max) + 100px);
  }
}


/* ─────────────────────────────────────────────────────────
   2. ABOUT / STATS  (step-repeat section)
   ───────────────────────────────────────────────────────── */
.about {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(rgba(12, 35, 64, 0.55), rgba(12, 35, 64, 0.55)), url('../assets/davis.jpg') center / cover no-repeat var(--color-navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-sm);
  gap: clamp(1.5rem, 3.5vh, 3.125rem);
}

.about__top,
.about__bottom {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

.about__bottom {
  gap: var(--space-lg);
}

/* ── Stats row ── */
.stats {
  margin-top: clamp(3rem, 6vh, 5rem);
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat__number {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  font-weight: 400;
  line-height: 1;
}

.stat__label {
  color: var(--color-gray);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 10px;
}

/* ── CTA row ── */
.about__cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.about__cta-text {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

@media (min-width: 768px) {
  .about {
    min-height: auto;
    padding: var(--space-xl) 30px;
    justify-content: flex-start;
    gap: clamp(2.5rem, 5vh, 5rem);
  }

  .stats {
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
  }

  .stat {
    flex: 1;
  }

  .stat__label {
    white-space: nowrap;
  }

  .about__cta {
    flex-direction: row;
    align-items: center;
    gap: var(--space-sm);
  }

}

@media (min-width: 1200px) {
  .about {
    padding: var(--space-xl) 50px;
  }
}


/* ── Vehicle Spotlight ── */
.vehicle-spotlight {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

.vehicle-spotlight__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(12, 35, 64, 0.9) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 85% 75%, rgba(12, 35, 64, 0.85) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(12, 35, 64, 0.3) 0%, transparent 80%),
    radial-gradient(ellipse 70% 90% at 30% 80%, rgba(12, 35, 64, 0.75) 0%, transparent 60%),
    radial-gradient(ellipse 90% 40% at 75% 15%, rgba(12, 35, 64, 0.8) 0%, transparent 70%),
    radial-gradient(ellipse 40% 70% at 60% 40%, rgba(10, 32, 56, 0.5) 0%, transparent 75%),
    linear-gradient(rgba(12, 35, 64, 0.55), rgba(12, 35, 64, 0.55)),
    url('../assets/lab.jpg') center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  min-height: 400px;
  padding: var(--space-md);
  text-decoration: none;
  overflow: hidden;
}

.vehicle-spotlight__text {
  position: relative;
  z-index: 1;
}

.vehicle-spotlight__label {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.vehicle-spotlight__desc {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

.vehicle-spotlight__img {
  position: relative;
  z-index: 1;
  width: 95%;
  height: auto;
  object-fit: contain;
  align-self: center;
  filter: brightness(1);
  transform: scaleX(-1);
  transition: filter 0.3s ease;
}

.vehicle-spotlight__card:hover .vehicle-spotlight__img {
  filter: brightness(1.2);
}

.vehicle-spotlight__card:hover {
  opacity: 1;
}

.vehicle-spotlight__btn {
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

@media (min-width: 768px) {
  .vehicle-spotlight__img {
    width: 95%;
  }
}



/* ─────────────────────────────────────────────────────────
   3. SPONSORS  (background image + marquee)
   ───────────────────────────────────────────────────────── */
.sponsors {
  position: relative;
  width: 100%;
  min-height: 91vh;
  background: linear-gradient(rgba(12, 35, 64, 0.55), rgba(12, 35, 64, 0.55)), url('../assets/home.jpg') center 20% / cover no-repeat var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}


.sponsors__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-sm) 0;
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
}

.sponsors__top h2 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 8.4vw, 3.063rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.004em;
  line-height: 1.2;
}

.sponsors__subtitle {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-md);
}

.sponsors__bottom {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-sm) var(--space-lg);
  text-align: center;
  max-width: var(--content-max);
  margin-inline: auto;
  width: 100%;
  display: flex;
  justify-content: center;
}

.sponsors__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .sponsors__bottom-inner {
    flex-direction: row;
    align-items: center;
    margin-inline: auto;
  }
}

/* ── Marquee ── */
.sponsors__grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 0 var(--space-sm);
}

.sponsors__grid a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sponsors__grid img {
  height: 100px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.sponsors__grid a:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  .sponsors__top {
    padding: var(--space-xl) 30px 0;
  }

  .sponsors__top h2 {
    font-size: clamp(1.75rem, 4.2vw, 4.113rem);
  }

  .sponsors__bottom {
    padding: 0 30px var(--space-xl);
  }

  .sponsors__grid {
    gap: 60px;
    padding: 0 30px;
  }

  .sponsors__grid img {
    height: 130px;
    max-width: 240px;
  }
}

@media (min-width: 1200px) {
  .sponsors__top {
    padding: var(--space-xl) 50px 0;
  }

  .sponsors__bottom {
    padding: 0 50px var(--space-xl);
  }
}


/* ─────────────────────────────────────────────────────────
   4. VIDEO  (YouTube embed section)
   ───────────────────────────────────────────────────────── */
.video-section {
  position: relative;
  width: 100%;
  height: 40vh;
  background-image: url('../assets/lab.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-dark);
}

.video-section__embed {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--space-lg));
  max-width: var(--content-max);
  max-height: 80vh;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.video-section__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (min-width: 768px) {
  .video-section {
    height: 100vh;
  }

  .video-section__embed {
    width: calc(100% - 100px);
  }
}


/* ─────────────────────────────────────────────────────────
   5. HERO BANNER  (subpages — photo background)
   ───────────────────────────────────────────────────────── */
.hero-banner {
  position: relative;
  width: 100%;
  height: 45vh;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12, 35, 64, 0.3);
}

.hero-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: var(--content-max);
  padding-inline: var(--space-sm);
}

.hero-banner__title {
  font-size: var(--text-banner);
  line-height: 1.1;
}

.hero-banner__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
}

@media (min-width: 768px) {
  .hero-banner {
    height: 55vh;
    min-height: 350px;
  }

  .hero-banner__content {
    padding-inline: 30px;
  }
}

@media (min-width: 1200px) {
  .hero-banner__content {
    padding-inline: 50px;
  }
}


/* ─────────────────────────────────────────────────────────
   6. CONTENT  (subpage body section — text + pattern)
   ───────────────────────────────────────────────────────── */
.content {
  position: relative;
  width: 100%;
  background-color: var(--color-navy);
  padding: var(--space-lg) var(--space-sm) 7.5rem;
  overflow: hidden;
}

.content__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vh, 4rem);
}

.content__cta {
  margin-top: clamp(3rem, 6vh, 5rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.content__cta-text {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.05em;
}


@media (min-width: 768px) {
  .content {
    padding: var(--space-lg) 30px 11.25rem;
  }

  .content__cta {
    flex-direction: row;
    align-items: center;
  }

}

@media (min-width: 1200px) {
  .content {
    padding: var(--space-xl) 50px 13.75rem;
  }
}


/* ─────────────────────────────────────────────────────────
   7. TEAM GRID  (leadership page — member cards)
   ───────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 20px;
  max-width: none;
  margin-inline: auto;
}

.member-card {
  display: flex;
  flex-direction: column;
}

.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-bottom: 10px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.member-role {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.3;
  margin-top: 2px;
}

.member-links {
  font-family: var(--font-body);
  font-size: 12px;
  margin-top: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.member-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-speed);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-links a:hover {
  color: var(--color-white);
  opacity: 1;
}

.member-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.member-links span {
  color: rgba(255, 255, 255, 0.5);
}

/* Divider used between sections */
.title-divider {
  width: 100%;
  height: 2px;
  background: var(--border-light);
  margin: var(--space-md) 0 var(--space-lg);
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 30px;
  }
}


/* ─────────────────────────────────────────────────────────
   8. FOOTER
   ───────────────────────────────────────────────────────── */
.footer {
  position: relative;
  width: 100%;
  background-color: var(--color-navy);
  padding: var(--space-lg) var(--space-sm);
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  max-width: var(--content-max);
  margin-inline: auto;
}

.footer__left,
.footer__center,
.footer__right {
  width: 100%;
}

.footer__center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__center img {
  height: var(--footer-logo-height);
  width: auto;
}

.footer__right {
  display: flex;
  justify-content: center;
}

.footer__right-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer__org {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.footer__address {
  font-family: var(--font-detail);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-gray);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer {
    padding: var(--space-lg) 30px;
  }

  .footer__inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .footer__left,
  .footer__center,
  .footer__right {
    flex: 1;
  }

  .footer__right {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .footer {
    padding: var(--space-xl) 50px;
  }
}
