/* =========================================
   HERO SLIDESHOW — Brightline Painting
   Blue Entry + White Sweep Transition
   + Refined Mobile Responsiveness
========================================= */

.hero-slideshow {
  position: relative;
  width: 100%;
  min-height: 120vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #34425b;
  color: #fff;
  padding-top: calc(var(--announcement-height, 50px) + 50px);
}

/* Slides */
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.5s ease-in-out, transform 8s ease-out;
  overflow: hidden;
}
.hero-slideshow .slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero-slideshow .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-slideshow .slide.active img {
  opacity: 1;
}

/* =========================================
   OVERLAYS — Blue Entry + White Sweep
========================================= */

/* Blue overlay first — covers the screen fully */
.hero-slideshow .blue-transition {
  position: absolute;
  inset: 0;
  background-color: #34425b;
  z-index: 6;
  opacity: 1;
  animation: blueCover 0.6s ease-in forwards; /* faster transition */
}

@keyframes blueCover {
  0% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

/* White right-to-left sweep */
.hero-slideshow .white-transition {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.7) 100%
  );
  opacity: 0;
  transform: translateX(100%);
  z-index: 5;
  pointer-events: none;
}
.hero-slideshow .white-transition.active {
  animation: whiteSweep 0.7s ease-out forwards;
}

@keyframes whiteSweep {
  0% {
    opacity: 1;
    transform: translateX(100%);
  }
  50% {
    opacity: 1;
    transform: translateX(0%);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}

/* =========================================
   CONTENT / TEXT ANIMATION
========================================= */

.hero-slideshow .hero-content {
  position: relative;
  z-index: 7;
  max-width: 1100px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.hero-slideshow.show-text .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-kicker {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hero-title {
  font-family: 'Poppins';  !important;
  color: #fff;
  font-size: clamp(2.5rem, 4vw + 0.5rem, 4.25rem);
  font-weight: 850;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 850px;
  letter-spacing: -0.25px; /* slight tightening for bold text */
}

.hero-subtext {
  font-size: clamp(1rem, 1.5vw, 1.3rem); /* slightly larger for bigger screens */
  font-weight: 300;
  line-height: 1.55;
  margin-bottom: 2.4rem;
  max-width: 880px;
  color: rgba(255, 255, 255, 0.95);
}

/* Buttons */
.hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.btn {
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-size: 1rem;
}

/*.btn-primary {
  background-color: #ff040a;
  color: #fff;
  padding: 13px 32px;
  border: none;
 
}

.btn-primary:hover {
  background-color: #c92f2f;
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  padding: 13px 32px;
}

.btn-outline-white:hover {
  background-color: #fff;
  color: #34425b;
}*/

/* =========================================
   RESPONSIVE DESIGN
========================================= */

/* Surface Pro 7 / mid-large screens */
/* Large screens: Surface Pro 7, bigger laptops */
@media (min-width: 1280px) and (max-width: 1440px) {
  
  .hero-title {
    font-size: clamp(3.5rem, 4.5vw + 1rem, 5rem);
    line-height: 1.15;
    margin-bottom: 1.2rem;
  }

  .hero-subtext {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
    line-height: 1.65;
    max-width: 90%;
  }

  .hero-kicker {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    margin-bottom: 0.6rem;
  }
}

/* Mid-size screens: iPad Pro landscape */
@media (min-width: 912px) and (max-width: 1279px) {
  .hero-title {
    font-size: clamp(3rem, 4.5vw + 0.5rem, 4.5rem);
    line-height: 1.2;
    margin-bottom: 1.1rem;
  }

  .hero-subtext {
    font-size: clamp(1.2rem, 1.6vw, 1.4rem);
    line-height: 1.65;
    max-width: 92%;
  }

  .hero-kicker {
    font-size: clamp(0.95rem, 1.2vw, 1rem);
    margin-bottom: 0.5rem;
  }
}


@media (max-width: 1024px) {
  .hero-slideshow {
    min-height: 90vh;
  }
  
  .hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 1.2px;
  }

   .hero-title {
    font-size: clamp(2.2rem, 5vw + 0.4rem, 3.4rem); /* larger for foldables */
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-subtext {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 90%;
  }

  .btn-primary {
    padding: 13px 30px;
    font-size: 0.95rem;
  }
  
  .btn-outline-white {
    padding: 11px 28px;
    font-size: 0.9rem;
  }
}






@media (max-width: 768px) {
  .hero-slideshow {
    min-height: 100vh;
    padding-top: calc(var(--announcement-height, 40px) + 40px);
  }
  
  .hero-kicker {
      font-size: clamp(0.75rem, 1.8vw, 0.85rem);
      font-weight: 500;
      letter-spacing: 1px;
      text-transform: uppercase;
      opacity: 0.9;
      margin-bottom: 0.4rem;
      line-height: 1.3;
   }
  
  .hero-title {
    font-size: clamp(1.8rem, 4.5vw, 2.3rem);
    line-height: 1.25;
    margin-bottom: 1rem;
  }

   .hero-subtext {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 90%;
  }

  .btn-primary {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .btn-outline-white {
    padding: 9px 22px;
    font-size: 0.8rem;
  }

  .hero-buttons {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero-slideshow {
    min-height: 115vh;
  }

  .hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw + 0.5rem, 2.4rem); /* was 1.8rem */
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-subtext {
    font-size: 0.95rem; /* smaller to create hierarchy */
    line-height: 1.6;
    max-width: 92%;
  }

  .btn-primary,
  .btn-outline-white {
    width: 90%;
    max-width: 250px;
  }
}