/* ==========================================================================
   Hero Slider Styles
   Modern, accessible hero slider for AVS Website
   Mobile-first responsive design
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Brand Colors */
  --hero-color-primary: #54AF3A;
  --hero-color-primary-dark: #3d8a2a;
  --hero-color-primary-light: #6bc752;
  --hero-color-secondary: #004E81;
  --hero-color-secondary-dark: #003a61;
  --hero-color-secondary-light: #0066a8;
  --hero-color-accent: #e63946;
  --hero-color-accent-dark: #c62d39;
  --hero-color-accent-light: #ff4d5a;

  /* Neutral Colors */
  --hero-color-white: #ffffff;
  --hero-color-black: #000000;
  --hero-color-gray-100: #f8f9fa;
  --hero-color-gray-200: #e9ecef;
  --hero-color-gray-300: #dee2e6;
  --hero-color-gray-400: #ced4da;
  --hero-color-gray-500: #adb5bd;
  --hero-color-gray-600: #6c757d;
  --hero-color-gray-700: #495057;
  --hero-color-gray-800: #343a40;
  --hero-color-gray-900: #212529;

  /* Typography */
  --hero-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hero-font-size-xs: 0.75rem;
  --hero-font-size-sm: 0.875rem;
  --hero-font-size-base: 1rem;
  --hero-font-size-lg: 1.125rem;
  --hero-font-size-xl: 1.25rem;
  --hero-font-size-2xl: 1.5rem;
  --hero-font-size-3xl: 1.875rem;
  --hero-font-size-4xl: 2.25rem;
  --hero-font-size-5xl: 3rem;
  --hero-font-size-6xl: 3.75rem;
  --hero-font-weight-normal: 400;
  --hero-font-weight-medium: 500;
  --hero-font-weight-semibold: 600;
  --hero-font-weight-bold: 700;
  --hero-line-height-tight: 1.2;
  --hero-line-height-normal: 1.5;
  --hero-line-height-relaxed: 1.75;

  /* Spacing */
  --hero-spacing-xs: 0.25rem;
  --hero-spacing-sm: 0.5rem;
  --hero-spacing-md: 1rem;
  --hero-spacing-lg: 1.5rem;
  --hero-spacing-xl: 2rem;
  --hero-spacing-2xl: 3rem;
  --hero-spacing-3xl: 4rem;

  /* Transitions */
  --hero-transition-fast: 150ms;
  --hero-transition-base: 300ms;
  --hero-transition-slow: 600ms;
  --hero-transition-easing: ease-out;
  --hero-transition-easing-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --hero-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --hero-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hero-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --hero-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --hero-shadow-glow-primary: 0 0 20px rgba(84, 175, 58, 0.4);
  --hero-shadow-glow-secondary: 0 0 20px rgba(0, 78, 129, 0.4);

  /* Border Radius */
  --hero-radius-sm: 0.25rem;
  --hero-radius-md: 0.5rem;
  --hero-radius-lg: 0.75rem;
  --hero-radius-xl: 1rem;
  --hero-radius-full: 9999px;

  /* Z-Index Scale */
  --hero-z-slides: 1;
  --hero-z-overlay: 10;
  --hero-z-content: 20;
  --hero-z-navigation: 30;
  --hero-z-controls: 40;
  --hero-z-skip-link: 100;

  /* Focus Outline */
  --hero-focus-ring-width: 3px;
  --hero-focus-ring-color: rgba(84, 175, 58, 0.5);
  --hero-focus-ring-offset: 2px;
}

/* ==========================================================================
   2. Base Reset & Accessibility
   ========================================================================== */

/* Skip Link for Accessibility */
.hero-skip-link {
  position: absolute;
  top: var(--hero-spacing-md);
  left: var(--hero-spacing-md);
  z-index: var(--hero-z-skip-link);
  padding: var(--hero-spacing-sm) var(--hero-spacing-md);
  background-color: var(--hero-color-primary);
  color: var(--hero-color-white);
  font-family: var(--hero-font-family);
  font-size: var(--hero-font-size-sm);
  font-weight: var(--hero-font-weight-semibold);
  text-decoration: none;
  border-radius: var(--hero-radius-md);
  transform: translateY(-150%);
  transition: transform var(--hero-transition-base) var(--hero-transition-easing);
}

.hero-skip-link:focus {
  transform: translateY(0);
  outline: var(--hero-focus-ring-width) solid var(--hero-focus-ring-color);
  outline-offset: var(--hero-focus-ring-offset);
}

/* Focus Visible Styles */
.hero-slider *:focus {
  outline: none;
}

.hero-slider *:focus-visible {
  outline: var(--hero-focus-ring-width) solid var(--hero-focus-ring-color);
  outline-offset: var(--hero-focus-ring-offset);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slider,
  .hero-slider *,
  .hero-slider *::before,
  .hero-slider *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   3. Hero Container (Mobile-First)
   ========================================================================== */

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 400px;
  max-height: 85vh;
  overflow: hidden;
  background-color: var(--hero-color-gray-900);
  font-family: var(--hero-font-family);
}

.hero-slider__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Responsive Container */
/* sm: 480px+ */
@media (min-width: 480px) {
  .hero-slider {
    aspect-ratio: 4 / 3;
    min-height: 450px;
  }
}

/* md: 768px+ */
@media (min-width: 768px) {
  .hero-slider {
    aspect-ratio: 16 / 10;
    min-height: 480px;
    max-height: 82vh;
  }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
  .hero-slider {
    aspect-ratio: 16 / 9;
    min-height: 500px;
    max-height: 80vh;
  }
}

/* xl: 1280px+ */
@media (min-width: 1280px) {
  .hero-slider {
    min-height: 550px;
  }
}

/* ==========================================================================
   4. Slides & Transitions
   ========================================================================== */

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: var(--hero-z-slides);
  transition: opacity var(--hero-transition-slow) var(--hero-transition-easing),
              visibility var(--hero-transition-slow) var(--hero-transition-easing);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: calc(var(--hero-z-slides) + 1);
}

.hero-slide.is-transitioning-out {
  opacity: 0;
  visibility: visible;
}

.hero-slide.is-transitioning-in {
  opacity: 1;
  visibility: visible;
}

/* Slide Background Image */
.hero-slide__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide__background img,
.hero-slide__background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Ken Burns Effect (Optional) */
.hero-slide.has-ken-burns .hero-slide__background {
  animation: heroKenBurns 20s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.1) translate(-2%, -2%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.has-ken-burns .hero-slide__background {
    animation: none;
  }
}

/* ==========================================================================
   5. Content Overlay (Mobile-First: Bottom Gradient)
   ========================================================================== */

.hero-slide__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--hero-z-overlay);
  /* Mobile: Bottom gradient overlay */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 30%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
}

/* Desktop: Left-side gradient overlay */
@media (min-width: 768px) {
  .hero-slide__overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.6) 35%,
      rgba(0, 0, 0, 0.2) 60%,
      transparent 100%
    );
  }
}

@media (min-width: 1024px) {
  .hero-slide__overlay {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 0.15) 65%,
      transparent 100%
    );
  }
}

/* ==========================================================================
   6. Slide Content
   ========================================================================== */

.hero-slide__content {
  position: absolute;
  z-index: var(--hero-z-content);
  display: none; /* HIDDEN: Images already have text baked in - uncomment when using clean images */
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: var(--hero-spacing-lg);
  padding-bottom: calc(var(--hero-spacing-2xl) + 40px); /* Space for dots */
  /* Mobile: Bottom positioned */
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 100%;
}

/* sm: 480px+ */
@media (min-width: 480px) {
  .hero-slide__content {
    padding: var(--hero-spacing-xl);
    padding-bottom: calc(var(--hero-spacing-2xl) + 50px);
  }
}

/* md: 768px+ - Transition to left-side layout */
@media (min-width: 768px) {
  .hero-slide__content {
    justify-content: center;
    align-items: flex-start;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    max-width: 60%;
    padding: var(--hero-spacing-2xl);
    padding-left: var(--hero-spacing-2xl);
  }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
  .hero-slide__content {
    max-width: 55%;
    padding: var(--hero-spacing-3xl);
    padding-left: calc(var(--hero-spacing-3xl) + 1rem);
  }
}

/* xl: 1280px+ */
@media (min-width: 1280px) {
  .hero-slide__content {
    max-width: 50%;
    padding-left: calc(var(--hero-spacing-3xl) + 2rem);
  }
}

/* Content Inner Wrapper */
.hero-slide__content-inner {
  display: flex;
  flex-direction: column;
  gap: var(--hero-spacing-md);
}

@media (min-width: 768px) {
  .hero-slide__content-inner {
    gap: var(--hero-spacing-lg);
  }
}

/* ==========================================================================
   7. Content Elements: Badge, Title, Subtitle
   ========================================================================== */

/* Badge */
.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--hero-spacing-xs);
  padding: var(--hero-spacing-xs) var(--hero-spacing-sm);
  background-color: var(--hero-color-primary);
  color: var(--hero-color-white);
  font-size: var(--hero-font-size-xs);
  font-weight: var(--hero-font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--hero-radius-sm);
  box-shadow: var(--hero-shadow-md);
}

.hero-slide__badge--secondary {
  background-color: var(--hero-color-secondary);
}

.hero-slide__badge--accent {
  background-color: var(--hero-color-accent);
}

@media (min-width: 480px) {
  .hero-slide__badge {
    padding: var(--hero-spacing-sm) var(--hero-spacing-md);
    font-size: var(--hero-font-size-sm);
  }
}

/* Title */
.hero-slide__title {
  margin: 0;
  color: var(--hero-color-white);
  font-size: var(--hero-font-size-2xl);
  font-weight: var(--hero-font-weight-bold);
  line-height: var(--hero-line-height-tight);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* sm: 480px+ */
@media (min-width: 480px) {
  .hero-slide__title {
    font-size: var(--hero-font-size-3xl);
  }
}

/* md: 768px+ */
@media (min-width: 768px) {
  .hero-slide__title {
    font-size: var(--hero-font-size-4xl);
  }
}

/* lg: 1024px+ */
@media (min-width: 1024px) {
  .hero-slide__title {
    font-size: var(--hero-font-size-5xl);
  }
}

/* xl: 1280px+ */
@media (min-width: 1280px) {
  .hero-slide__title {
    font-size: var(--hero-font-size-6xl);
  }
}

/* Subtitle */
.hero-slide__subtitle {
  margin: 0;
  color: var(--hero-color-gray-200);
  font-size: var(--hero-font-size-sm);
  font-weight: var(--hero-font-weight-normal);
  line-height: var(--hero-line-height-relaxed);
  max-width: 100%;
}

@media (min-width: 480px) {
  .hero-slide__subtitle {
    font-size: var(--hero-font-size-base);
  }
}

@media (min-width: 768px) {
  .hero-slide__subtitle {
    font-size: var(--hero-font-size-lg);
    max-width: 90%;
  }
}

@media (min-width: 1024px) {
  .hero-slide__subtitle {
    font-size: var(--hero-font-size-xl);
    max-width: 85%;
  }
}

/* ==========================================================================
   8. CTA Buttons
   ========================================================================== */

.hero-slide__cta-group {
  display: flex;
  flex-direction: column;
  gap: var(--hero-spacing-sm);
  width: 100%;
  margin-top: var(--hero-spacing-sm);
}

@media (min-width: 480px) {
  .hero-slide__cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }
}

@media (min-width: 768px) {
  .hero-slide__cta-group {
    gap: var(--hero-spacing-md);
    margin-top: var(--hero-spacing-md);
  }
}

/* Base Button Styles */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hero-spacing-sm);
  padding: var(--hero-spacing-sm) var(--hero-spacing-lg);
  font-family: var(--hero-font-family);
  font-size: var(--hero-font-size-sm);
  font-weight: var(--hero-font-weight-semibold);
  text-decoration: none;
  text-align: center;
  border-radius: var(--hero-radius-md);
  cursor: pointer;
  transition: all var(--hero-transition-base) var(--hero-transition-easing);
  border: 2px solid transparent;
}

@media (min-width: 480px) {
  .hero-btn {
    padding: var(--hero-spacing-md) var(--hero-spacing-xl);
    font-size: var(--hero-font-size-base);
  }
}

@media (min-width: 768px) {
  .hero-btn {
    padding: var(--hero-spacing-md) var(--hero-spacing-2xl);
    border-radius: var(--hero-radius-lg);
  }
}

/* Primary Button - Green Gradient */
.hero-btn--primary {
  background: linear-gradient(
    135deg,
    var(--hero-color-primary) 0%,
    var(--hero-color-primary-dark) 100%
  );
  color: var(--hero-color-white);
  border-color: var(--hero-color-primary);
  box-shadow: var(--hero-shadow-lg), var(--hero-shadow-glow-primary);
}

.hero-btn--primary:hover {
  background: linear-gradient(
    135deg,
    var(--hero-color-primary-light) 0%,
    var(--hero-color-primary) 100%
  );
  transform: translateY(-2px);
  box-shadow: var(--hero-shadow-xl), 0 0 30px rgba(84, 175, 58, 0.5);
}

.hero-btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--hero-shadow-md), var(--hero-shadow-glow-primary);
}

/* Secondary Button - Transparent with White Border */
.hero-btn--secondary {
  background: transparent;
  color: var(--hero-color-white);
  border-color: var(--hero-color-white);
  backdrop-filter: blur(4px);
}

.hero-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: var(--hero-shadow-lg);
}

.hero-btn--secondary:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.2);
}

/* Secondary Variant - Blue */
.hero-btn--secondary-blue {
  background: transparent;
  color: var(--hero-color-white);
  border-color: var(--hero-color-secondary-light);
}

.hero-btn--secondary-blue:hover {
  background: var(--hero-color-secondary);
  border-color: var(--hero-color-secondary);
  box-shadow: var(--hero-shadow-lg), var(--hero-shadow-glow-secondary);
}

/* Button Icons */
.hero-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  height: 1.25em;
}

.hero-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ==========================================================================
   9. Navigation Arrows
   ========================================================================== */

.hero-slider__arrows {
  /* Hidden on mobile */
  display: none;
}

/* md: 768px+ - Show arrows */
@media (min-width: 768px) {
  .hero-slider__arrows {
    display: block;
  }
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--hero-z-navigation);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--hero-radius-full);
  color: var(--hero-color-white);
  cursor: pointer;
  transition: all var(--hero-transition-base) var(--hero-transition-easing);
}

.hero-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.hero-slider__arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-slider__arrow--prev {
  left: var(--hero-spacing-md);
}

.hero-slider__arrow--next {
  right: var(--hero-spacing-md);
}

@media (min-width: 1024px) {
  .hero-slider__arrow {
    width: 56px;
    height: 56px;
  }

  .hero-slider__arrow--prev {
    left: var(--hero-spacing-lg);
  }

  .hero-slider__arrow--next {
    right: var(--hero-spacing-lg);
  }
}

@media (min-width: 1280px) {
  .hero-slider__arrow--prev {
    left: var(--hero-spacing-xl);
  }

  .hero-slider__arrow--next {
    right: var(--hero-spacing-xl);
  }
}

/* Arrow Icons */
.hero-slider__arrow-icon {
  width: 24px;
  height: 24px;
}

.hero-slider__arrow-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   10. Dot Indicators
   ========================================================================== */

.hero-slider__dots {
  position: absolute;
  z-index: var(--hero-z-navigation);
  display: flex;
  align-items: center;
  gap: var(--hero-spacing-sm);
  /* Mobile: Centered at bottom */
  bottom: var(--hero-spacing-lg);
  left: 50%;
  transform: translateX(-50%);
}

/* md: 768px+ - Left-aligned on desktop */
@media (min-width: 768px) {
  .hero-slider__dots {
    bottom: var(--hero-spacing-xl);
    left: var(--hero-spacing-2xl);
    transform: none;
  }
}

@media (min-width: 1024px) {
  .hero-slider__dots {
    bottom: var(--hero-spacing-2xl);
    left: var(--hero-spacing-3xl);
    gap: var(--hero-spacing-md);
  }
}

@media (min-width: 1280px) {
  .hero-slider__dots {
    left: calc(var(--hero-spacing-3xl) + 2rem);
  }
}

/* Individual Dot */
.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  border-radius: var(--hero-radius-full);
  cursor: pointer;
  transition: all var(--hero-transition-base) var(--hero-transition-easing);
}

.hero-slider__dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.hero-slider__dot.is-active {
  background: var(--hero-color-primary);
  width: 28px;
  border-radius: var(--hero-radius-md);
  box-shadow: var(--hero-shadow-glow-primary);
}

@media (min-width: 768px) {
  .hero-slider__dot {
    width: 12px;
    height: 12px;
  }

  .hero-slider__dot.is-active {
    width: 32px;
  }
}

/* ==========================================================================
   11. Play/Pause Button
   ========================================================================== */

.hero-slider__playpause {
  position: absolute;
  z-index: var(--hero-z-controls);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--hero-radius-full);
  color: var(--hero-color-white);
  cursor: pointer;
  transition: all var(--hero-transition-base) var(--hero-transition-easing);
  /* Mobile: Top right */
  top: var(--hero-spacing-md);
  right: var(--hero-spacing-md);
}

.hero-slider__playpause:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.hero-slider__playpause:active {
  transform: scale(0.95);
}

@media (min-width: 768px) {
  .hero-slider__playpause {
    width: 44px;
    height: 44px;
    top: var(--hero-spacing-lg);
    right: var(--hero-spacing-lg);
  }
}

@media (min-width: 1024px) {
  .hero-slider__playpause {
    width: 48px;
    height: 48px;
    top: var(--hero-spacing-xl);
    right: var(--hero-spacing-xl);
  }
}

/* Play/Pause Icons */
.hero-slider__playpause-icon {
  width: 18px;
  height: 18px;
}

.hero-slider__playpause-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Icon State Toggle */
.hero-slider__playpause .icon-pause {
  display: block;
}

.hero-slider__playpause .icon-play {
  display: none;
}

.hero-slider__playpause.is-paused .icon-pause {
  display: none;
}

.hero-slider__playpause.is-paused .icon-play {
  display: block;
}

/* ==========================================================================
   12. Content Animations
   ========================================================================== */

/* Slide-in-up Animation */
@keyframes heroSlideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation Classes */
.hero-slide.is-active .hero-slide__badge {
  animation: heroSlideInUp var(--hero-transition-slow) var(--hero-transition-easing) forwards;
  animation-delay: 100ms;
  opacity: 0;
}

.hero-slide.is-active .hero-slide__title {
  animation: heroSlideInUp var(--hero-transition-slow) var(--hero-transition-easing) forwards;
  animation-delay: 200ms;
  opacity: 0;
}

.hero-slide.is-active .hero-slide__subtitle {
  animation: heroSlideInUp var(--hero-transition-slow) var(--hero-transition-easing) forwards;
  animation-delay: 300ms;
  opacity: 0;
}

.hero-slide.is-active .hero-slide__cta-group {
  animation: heroSlideInUp var(--hero-transition-slow) var(--hero-transition-easing) forwards;
  animation-delay: 400ms;
  opacity: 0;
}

/* Fade-in Animation Alternative */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.hero-slide.is-active.fade-content .hero-slide__badge,
.hero-slide.is-active.fade-content .hero-slide__title,
.hero-slide.is-active.fade-content .hero-slide__subtitle,
.hero-slide.is-active.fade-content .hero-slide__cta-group {
  animation-name: heroFadeIn;
}

/* ==========================================================================
   13. Progress Bar (Optional)
   ========================================================================== */

.hero-slider__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: var(--hero-z-controls);
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-slider__progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--hero-color-primary) 0%,
    var(--hero-color-primary-light) 100%
  );
  width: 0;
  transition: width linear;
}

.hero-slider__progress-bar.is-animating {
  transition-duration: var(--hero-autoplay-duration, 5000ms);
  width: 100%;
}

.hero-slider.is-paused .hero-slider__progress-bar {
  animation-play-state: paused;
}

@media (min-width: 768px) {
  .hero-slider__progress {
    height: 4px;
  }
}

/* ==========================================================================
   14. Loading State
   ========================================================================== */

.hero-slider.is-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: calc(var(--hero-z-controls) + 1);
  background: var(--hero-color-gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: calc(var(--hero-z-controls) + 2);
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--hero-color-primary);
  border-radius: var(--hero-radius-full);
  animation: heroSpinner 800ms linear infinite;
}

@keyframes heroSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   15. Utility Classes
   ========================================================================== */

/* Screen Reader Only */
.hero-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus Visible Only */
.hero-sr-only-focusable:focus,
.hero-sr-only-focusable:focus-visible {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Hide on Mobile */
.hero-hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hero-hide-mobile {
    display: block;
  }
}

/* Hide on Desktop */
.hero-hide-desktop {
  display: block;
}

@media (min-width: 768px) {
  .hero-hide-desktop {
    display: none;
  }
}

/* Text Alignment Utilities */
.hero-text-center {
  text-align: center;
}

.hero-text-left {
  text-align: left;
}

.hero-text-right {
  text-align: right;
}

/* ==========================================================================
   16. Print Styles
   ========================================================================== */

@media print {
  .hero-slider {
    display: none;
  }
}
