/* Sterling & Cole Law — supplemental styles beyond Tailwind utilities */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Respect focus-visible only for keyboard users; Tailwind's focus-visible utilities
   handle most cases, this is a safety net for native elements. */
:focus:not(:focus-visible) {
  outline: none;
}

/* Hero Background Banner Slider Styles */
.banner-slider-container {
  position: relative;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
  pointer-events: none;
  z-index: 1;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
  z-index: 2;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 8s ease-out;
}

.banner-slide.active img {
  animation: heroKenBurns 10s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(1.08);
  }
}

/* Dynamic Text Slide Animations inside Hero */
.hero-text-content {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.banner-slide.active .hero-text-content {
  opacity: 1;
  transform: translateY(0);
}

/* Slide progress indicator bar */
.slider-progress-bar {
  height: 4px;
  background-color: #EE4B24;
  width: 0%;
  transition: width 0.1s linear;
}

.slider-progress-bar.running {
  animation: sliderProgress 5000ms linear infinite;
}

@keyframes sliderProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* Ambient backlight and controls */
.banner-glow {
  box-shadow: 0 0 45px -5px rgba(238, 75, 36, 0.25), 0 20px 30px -5px rgba(0, 0, 0, 0.5);
}

.banner-dot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-dot.active {
  width: 2.25rem !important;
  background-color: #EE4B24 !important;
  opacity: 1 !important;
}

/* Animated floating badge */
.banner-badge {
  animation: floatBadge 4s ease-in-out infinite alternate;
}

@keyframes floatBadge {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-6px);
  }
}


