/* ==========================================================================
   HERO BANNER (MOTOLECTRON 2-COLUMN HERO CAROUSEL)
   Pure Vanilla HTML & Custom CSS — Strictly No Frameworks
   ========================================================================== */
.hero-banner {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 135px);
  min-height: calc(100svh - 135px);
  background-color: #12151c;
  background-image:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 65%, rgba(0,0,0,0.16) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 50%, rgba(0,0,0,0.08) 100%),
    url('../photos/herobg2.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px clamp(24px, 4vw, 60px) 46px;
  color: #ffffff;
}

/* Fallback direct background per slide */
.hero-banner[data-slide="1"] {
  background-image:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 65%, rgba(0,0,0,0.18) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, transparent 50%, rgba(0,0,0,0.10) 100%),
    url('../photos/herobg3.jpg');
  background-position: center bottom;
}

/* Dynamic background layers for butter-smooth transitions */
.hero-bg-layers {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity;
}

.hero-bg-layer.active {
  opacity: 1;
}

/* Slide 1: Helmet Background (herobg2.jpg) */
.hero-bg-layer.bg-slide-0 {
  background-image:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 65%, rgba(0,0,0,0.16) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, transparent 50%, rgba(0,0,0,0.08) 100%),
    url('../photos/herobg2.jpg');
  background-position: center bottom;
}

/* Slide 2: Intercom Background (herobg3.jpg) */
.hero-bg-layer.bg-slide-1 {
  background-image:
    radial-gradient(ellipse 110% 100% at 50% 50%, transparent 65%, rgba(0,0,0,0.18) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, transparent 50%, rgba(0,0,0,0.10) 100%),
    url('../photos/herobg3.jpg');
  background-position: center bottom;
}

/* Top fade into navbar */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Bottom fade into catalog */
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 55px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   CAROUSEL SLIDES TRACK
   ========================================================================== */
.hero-slider-track {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
  min-height: calc(100svh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SLIDE CONTAINER: FULL-WIDTH 2-COLUMN LAYOUT (40% LEFT TEXT, 60% RIGHT IMAGE) */
.hero-slide {
  width: 100%;
  display: none;
  grid-template-columns: 42% 58%;
  align-items: flex-end;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-slide.active {
  display: grid;
  opacity: 1;
}

/* ==========================================================================
   COLUMN 1: LEFT CONTENT (Typography & Controls)
   ========================================================================== */
.left-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  gap: 0;
  height: auto;
  /* Above .product-column (z 5) so the product entrance sweeps in BEHIND the
     headline instead of covering it; the two columns never overlap at rest */
  z-index: 6;
  padding-left: clamp(12px, 2.5vw, 40px);
  padding-bottom: 0;
  transform: translateY(-16px);
}

/* Brand tag for both slides: Bold, white, sans-serif ("EVO Helmets" & "FreedConn") */
.brand-tag,
.banner-brand-logo,
.hero-slide[data-theme="blue"] .banner-brand-logo,
.hero-slide[data-theme="red"] .banner-brand-logo {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: clamp(2rem, 2.9vw, 2.65rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: #ffffff;
  text-transform: none;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 8px 0 !important;
  user-select: none;
  position: relative;
  text-shadow: none !important;
}

.brand-tag::before,
.banner-brand-logo::before,
.hero-slide[data-theme="blue"] .banner-brand-logo::before,
.hero-slide[data-theme="red"] .banner-brand-logo::before {
  display: none !important;
}

.left-main-content {
  margin-top: 8px;
}

/* Subtitle (Small, uppercase, tracking wide, clean vibrant color) */
.model-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #ff3838;
  text-transform: uppercase;
  margin-bottom: 12px;
  margin-top: 4px;
  display: block;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.hero-slide[data-theme="blue"] .model-tagline {
  color: #00e5ff;
  text-shadow: none !important;
}

/* Main Heading (Large, elegant bold Serif, white, tight line-height) */
.main-title {
  font-family: 'Playfair Display', 'Merriweather', Georgia, serif;
  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 22px;
  text-shadow: none !important;
}

/* ──────────────────────────────────────────────────────────────────────────
   CTA "AVAILABLE NOW →" — MINIMALIST TEXT LINK WITH HOVER GLOW
   ────────────────────────────────────────────────────────────────────────── */
.cta-wrapper {
  margin-bottom: 22px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 0 !important;
  box-shadow: none !important;
  transition: all 0.25s ease;
  text-shadow: none !important;
}

.cta-text {
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
}

.cta-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff3838;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: none;
}

.hero-slide[data-theme="blue"] .cta-text::after {
  background-color: #00e5ff;
  box-shadow: none;
}

.cta-arrow {
  display: inline-block;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s ease, color 0.25s ease;
  text-shadow: none !important;
}

.cta-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.hero-slide[data-theme="blue"] .cta-link:hover {
  color: #00e5ff;
}

.hero-slide[data-theme="red"] .cta-link:hover {
  color: #ff4747;
}

.cta-link:hover .cta-text::after {
  transform: scaleX(1);
}

.cta-link:hover .cta-arrow {
  transform: translateX(6px);
}

/* Divider: Subtle horizontal line with centered text */
.first-to-own-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  margin-bottom: 20px;
}

.first-to-own-tag .rule-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.25));
  box-shadow: none !important;
}

.hero-slide[data-theme="blue"] .first-to-own-tag .rule-line {
  background: linear-gradient(to right, #00d4ff, rgba(255, 255, 255, 0.5));
  box-shadow: none !important;
}

.hero-slide[data-theme="red"] .first-to-own-tag .rule-line {
  background: linear-gradient(to right, #ff4747, rgba(255, 255, 255, 0.5));
  box-shadow: none !important;
}

.first-to-own-tag .rule-text {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #ffffff;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
  text-shadow: none !important;
}

/* Model Selector */
.swatches-section {
  margin-top: 14px;
}

.available-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: none !important;
}

.swatches-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.swatch-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 4px 6px !important;
  box-shadow: none !important;
  transition: transform 0.2s ease;
}

.swatch-item:hover {
  background: none !important;
  border: none !important;
  transform: translateY(-2px);
}

.swatch-item.active {
  background: none !important;
  border: none !important;
  transform: translateY(-2px);
}

.swatch-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: none !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.swatch-item:hover .swatch-circle {
  border-color: #ffffff;
  transform: scale(1.1);
}

.swatch-item.active .swatch-circle {
  border: 2.5px solid #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4) !important;
}

.swatch-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.02em;
  text-shadow: none !important;
  transition: color 0.2s ease;
}

.swatch-item:hover .swatch-label {
  color: #ffffff !important;
  text-shadow: none !important;
}

.swatch-item.active .swatch-label {
  color: #ffffff !important;
  font-weight: 900;
  text-shadow: none !important;
}

/* Custom radio-like swatches */
.swatch-cyan   { background-color: #00e5ff; }
.swatch-black  { background-color: #1a1a1e; }
.swatch-silver { background-color: #e2e8f0; }
.swatch-red    { background-color: #ef4444; }
.swatch-grey   { background-color: #64748b; }
.swatch-blue   { background-color: #3b82f6; }

/* Custom radio-like swatches */
.swatch-cyan   { background-color: #00e5ff; }
.swatch-black  { background-color: #1a1a1e; }
.swatch-silver { background-color: #e2e8f0; }
.swatch-red    { background-color: #ef4444; }
.swatch-grey   { background-color: #64748b; }
.swatch-blue   { background-color: #3b82f6; }
.swatch-white  { background-color: #f8fafc; }

/* ==========================================================================
   COLUMN 2: RIGHT CONTENT (Product Image Showcase)
   ========================================================================== */
.right-column.product-column {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
  align-self: flex-end;
  width: 100%;
  padding-bottom: 12px;
}

.product-stage {
  position: relative;
  width: min(680px, 98%);
  height: min(560px, 78vh);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  /* Entrance travel: a full viewport width, so the product starts completely
     outside the banner (which clips with overflow: hidden) and glides in */
  --hero-enter-x: 100vw;
}

/* Product entrance: fade-in from the LEFT whenever a slide becomes active.
   Runs on the stage (image + ground shadow move together) so it never
   fights the floatProduct transform animating .product-img itself. */
.hero-slide.active .product-stage {
  animation: heroStageFadeInLeft 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Variant switch: fade-in from the RIGHT when a color/model swatch is picked.
   Toggled by hero-banner.js and cleared again when the slide is deactivated,
   so the next slide entrance goes back to the fade-in-left above. */
.hero-slide.active .product-stage.is-variant-switch {
  animation: heroStageFadeInRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes heroStageFadeInLeft {
  from { opacity: 0; transform: translateX(calc(var(--hero-enter-x) * -1)); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroStageFadeInRight {
  from { opacity: 0; transform: translateX(var(--hero-enter-x)); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the crossfade, drop the horizontal travel */
  .product-stage { --hero-enter-x: 0px; }
}

/* Dynamic variant backdrop circle — HIDDEN (removed per design) */
.variant-backdrop-circle {
  display: none !important;
}

@keyframes circleAmbientPulse {
  0%   { transform: translate(-50%, -50%) scale(0.97); opacity: 0.92; }
  100% { transform: translate(-50%, -50%) scale(1.03); opacity: 1; }
}

/* Glow Presets */
.hero-slide[data-glow="cyan"] .variant-backdrop-circle,
.hero-banner[data-glow="cyan"] .variant-backdrop-circle {
  background: radial-gradient(circle,
    rgba(0,229,255,0.45) 0%, rgba(0,140,200,0.26) 50%,
    rgba(0,40,70,0.08) 75%, transparent 100%);
  border: 1.5px solid rgba(0,229,255,0.55);
  box-shadow:
    0 0 55px rgba(0,229,255,0.4),
    0 0 20px rgba(0,229,255,0.25),
    inset 0 0 35px rgba(0,229,255,0.22);
}

.hero-slide[data-glow="dark"] .variant-backdrop-circle,
.hero-banner[data-glow="dark"] .variant-backdrop-circle {
  background: radial-gradient(circle,
    rgba(110,110,130,0.4) 0%, rgba(55,55,70,0.24) 50%,
    rgba(20,20,25,0.08) 75%, transparent 100%);
  border: 1.5px solid rgba(140,140,165,0.5);
  box-shadow:
    0 0 45px rgba(110,110,130,0.3),
    0 0 15px rgba(110,110,130,0.18),
    inset 0 0 30px rgba(110,110,130,0.18);
}

.hero-slide[data-glow="silver"] .variant-backdrop-circle,
.hero-banner[data-glow="silver"] .variant-backdrop-circle {
  background: radial-gradient(circle,
    rgba(210,225,245,0.42) 0%, rgba(130,150,175,0.25) 50%,
    rgba(35,45,60,0.08) 75%, transparent 100%);
  border: 1.5px solid rgba(220,235,255,0.58);
  box-shadow:
    0 0 50px rgba(210,230,255,0.35),
    0 0 18px rgba(210,230,255,0.2),
    inset 0 0 30px rgba(210,230,255,0.2);
}

.hero-slide[data-glow="grey"] .variant-backdrop-circle,
.hero-banner[data-glow="grey"] .variant-backdrop-circle {
  background: radial-gradient(circle,
    rgba(145,145,160,0.38) 0%, rgba(80,80,92,0.22) 50%,
    rgba(22,22,30,0.08) 75%, transparent 100%);
  border: 1.5px solid rgba(195,195,210,0.45);
  box-shadow:
    0 0 45px rgba(185,185,200,0.28),
    0 0 15px rgba(185,185,200,0.18),
    inset 0 0 35px rgba(185,185,200,0.16);
}

.hero-slide[data-glow="red"] .variant-backdrop-circle,
.hero-banner[data-glow="red"] .variant-backdrop-circle {
  background: radial-gradient(circle,
    rgba(235,20,45,0.45) 0%, rgba(160,10,30,0.26) 50%,
    rgba(40,5,10,0.08) 75%, transparent 100%);
  border: 1.5px solid rgba(255,45,65,0.55);
  box-shadow:
    0 0 55px rgba(255,30,50,0.4),
    0 0 20px rgba(255,30,50,0.25),
    inset 0 0 35px rgba(255,30,50,0.22);
}

.hero-slide[data-glow="blue"] .variant-backdrop-circle,
.hero-banner[data-glow="blue"] .variant-backdrop-circle {
  background: radial-gradient(circle,
    rgba(0,140,255,0.45) 0%, rgba(0,80,190,0.26) 50%,
    rgba(0,20,60,0.08) 75%, transparent 100%);
  border: 1.5px solid rgba(0,160,255,0.55);
  box-shadow:
    0 0 55px rgba(0,140,255,0.4),
    0 0 20px rgba(0,140,255,0.25),
    inset 0 0 35px rgba(0,140,255,0.22);
}

/* Product image with dynamic 3D shadow depth (Anti-boring directive) */
.product-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 28px 38px rgba(0, 0, 0, 0.85))
    drop-shadow(0 10px 18px rgba(0, 0, 0, 0.60))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.40));
  user-select: none;
  animation: floatProduct 4.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes floatProduct {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* Ground contact shadow dynamically scaling with the floating product */
.ground-shadow {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 82%;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(9px);
  animation: shadowScale 4.5s ease-in-out infinite alternate;
}

@keyframes shadowScale {
  0%   { transform: translateX(-50%) scale(1);    opacity: 0.92; }
  100% { transform: translateX(-50%) scale(0.92); opacity: 0.65; }
}

/* ==========================================================================
   BOTTOM: CENTERED CAROUSEL PAGINATION PILL
   ========================================================================== */
.hero-carousel-pagination {
  position: absolute;
  bottom: 22px;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: auto !important;
  max-width: fit-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  z-index: 10;
  padding: 8px 18px !important;
  background: rgba(8, 10, 16, 0.75) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.75) !important;
}

.hero-pagination-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
  opacity: 0.5 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background-color: #ffffff !important;
}

.hero-pagination-dot:hover { opacity: 0.85 !important; }

.hero-pagination-dot.active {
  width: 30px !important;
  border-radius: 10px !important;
  opacity: 1 !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
  .hero-banner {
    min-height: calc(100vh - 130px);
    min-height: calc(100svh - 130px);
    padding: 20px 30px 48px;
  }
  .hero-slider-track {
    min-height: calc(100vh - 190px);
    min-height: calc(100svh - 190px);
  }
  .hero-slide {
    grid-template-columns: 45% 55%;
    gap: 20px;
    align-items: flex-end;
  }
  .product-stage { width: min(580px, 95%); height: min(490px, 72vh); }
  .left-column { transform: translateY(-10px); }
  .variant-backdrop-circle { width: 340px; height: 340px; }
  .main-title { font-size: 3rem; }
}

@media (max-width: 900px) {
  .hero-banner {
    min-height: auto;
    padding: 32px 24px 56px;
    background-position: center center;
    background-image:
      linear-gradient(to bottom, rgba(6, 8, 14, 0.92) 0%, rgba(6, 8, 14, 0.75) 45%, rgba(6, 8, 14, 0.3) 85%, transparent 100%),
      url('../photos/herobg2.jpg');
  }
  .hero-banner[data-slide="1"],
  .hero-bg-layer.bg-slide-1 {
    background-image:
      linear-gradient(to bottom, rgba(6, 8, 14, 0.92) 0%, rgba(6, 8, 14, 0.75) 45%, rgba(6, 8, 14, 0.3) 85%, transparent 100%),
      url('../photos/herobg3.jpg');
    background-position: center center;
  }
  .hero-bg-layer.bg-slide-0 {
    background-image:
      linear-gradient(to bottom, rgba(6, 8, 14, 0.92) 0%, rgba(6, 8, 14, 0.75) 45%, rgba(6, 8, 14, 0.3) 85%, transparent 100%),
      url('../photos/herobg2.jpg');
    background-position: center center;
  }
  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
    align-items: center;
  }
  .left-column {
    align-items: center;
    min-height: auto;
    padding-left: 0;
    padding-bottom: 0;
    transform: none;
  }
  .banner-brand-logo { margin-bottom: 10px; }
  .cta-wrapper { display: flex; justify-content: center; }
  .first-to-own-tag { margin: 0 auto 12px; }
  .swatches-group { justify-content: center; }
  .product-stage { width: min(380px, 90%); height: min(340px, 55vw); margin: 0 auto; transform: none; }
  .variant-backdrop-circle { width: 280px; height: 280px; }
}

@media (max-width: 540px) {
  .hero-banner { min-height: auto; padding: 28px 16px 52px; }
  .hero-slider-track { min-height: auto; }
  .main-title { font-size: 2.2rem; }
  .product-stage { width: min(300px, 88%); height: min(280px, 60vw); }
  .variant-backdrop-circle { width: 230px; height: 230px; }
  .swatches-group { gap: 14px; }
}
