/* ==========================================================================
   Venom Racing — Responsive Layout
   Mobile-first breakpoints. Base styles (outside any media query) target
   mobile; each breakpoint below progressively enhances the layout.

   Breakpoints:
     Tablet:        min-width 600px
     Desktop:       min-width 992px
     Large Desktop: min-width 1440px
   ========================================================================== */

/* ---------------------------------------------------------------------
   Mobile first base (0 - 599px)
   --------------------------------------------------------------------- */
/* Below the desktop split, the hero is a single column laid over the
   video — use a more uniform, stronger scrim to guarantee text contrast. */
@media (max-width: 991px) {
  .hero__overlay {
    background:
      radial-gradient(90% 50% at 80% 12%, rgba(224, 30, 46, 0.14), transparent 60%),
      linear-gradient(180deg, rgba(10, 10, 11, 0.80) 0%, rgba(10, 10, 11, 0.72) 45%, rgba(10, 10, 11, 0.88) 100%);
  }
}

.navbar__links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: var(--z-dropdown);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  background-color: rgba(10, 10, 11, 0.98);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-lg);
}

.navbar__links.is-open {
  display: flex;
}

.navbar__links li {
  border-bottom: 1px solid var(--color-border);
}

.navbar__links li:last-child {
  border-bottom: none;
  padding: var(--space-md) var(--container-padding);
}

.navbar__links .navbar__link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-md) var(--container-padding);
}

.navbar__links .navbar__link::after {
  display: none;
}

.navbar__links .navbar__cta {
  width: 100%;
  justify-content: center;
}

.navbar__toggle {
  display: inline-flex;
}

/* Hero (mobile base): full-width stacked CTAs; the split grid, showcase
   and feature cards stack via their single-column base. Heading via clamp(). */
.hero__actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.hero__actions .btn {
  width: 100%;
}

.grid--auto,
.grid--services,
.grid--features {
  grid-template-columns: 1fr;
}

.container {
  padding-inline: var(--space-md);
}

/* ---------------------------------------------------------------------
   Tablet — min-width: 600px
   --------------------------------------------------------------------- */
@media (min-width: 600px) {
  .section {
    padding-block: var(--space-3xl);
  }

  .grid--auto,
  .grid--services,
  .grid--features {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-grid--wide-left {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------------------------
   Desktop — min-width: 992px
   --------------------------------------------------------------------- */
@media (min-width: 992px) {
  .section {
    padding-block: var(--space-4xl);
  }

  .floating-badge {
    bottom: -24px;
    left: -24px;
  }

  .navbar__links {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
    background-color: transparent;
    border: none;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

  .navbar__links li {
    border-bottom: none;
  }

  .navbar__links li:last-child {
    padding: 0;
  }

  .navbar__links .navbar__link {
    min-height: auto;
    padding: 0;
  }

  .navbar__links .navbar__link::after {
    display: block;
  }

  .navbar__links .navbar__cta {
    width: auto;
  }

  .navbar__toggle {
    display: none;
  }

  .grid--auto,
  .grid--services {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--features {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    padding-inline: var(--space-xl);
  }
}

/* ---------------------------------------------------------------------
   Large Desktop — min-width: 1440px
   --------------------------------------------------------------------- */
@media (min-width: 1440px) {
  .grid--auto {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    padding-inline: var(--space-2xl);
  }
}
