/*
  hero.css
  Hero section: angled navy panel (nods to a factory bay-door edge),
  headline, and an auto-advancing image carousel.
*/

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 62%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
  padding: 90px 0 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60%;
  height: 140%;
  background: repeating-linear-gradient(
    115deg,
    rgba(212, 160, 23, 0.06) 0px,
    rgba(212, 160, 23, 0.06) 2px,
    transparent 2px,
    transparent 34px
  );
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 70px;
  position: relative;
}

.hero__eyebrow { color: var(--gold-400); margin-bottom: 18px; }

.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 span { color: var(--gold-400); }

.hero__lede {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.78);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__stats {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-400);
}
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* --- Carousel --- */
.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  aspect-ratio: 4 / 3.1;
  background: var(--navy-800);
  border: 1px solid rgba(212,160,23,0.25);
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background-size: cover;
  background-position: center;
}

.carousel__slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 0; }

.carousel__caption {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(7,18,39,0.92));
  margin: -26px;
  padding: 60px 26px 22px;
}

.carousel__caption .tag { margin-bottom: 10px; }
.carousel__caption h3 { color: #fff; font-size: 1.15rem; }
.carousel__caption p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin-top: 4px; }

.carousel__dots {
  position: absolute;
  bottom: 16px;
  right: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.carousel__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel__dot.is-active { background: var(--gold-500); transform: scale(1.2); }

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(7,18,39,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(3px);
  transition: background 0.2s ease;
}
.carousel__arrow:hover { background: rgba(212,160,23,0.55); }
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-bottom: 40px; }
}
