/**
 * Hero Section Styles
 * 
 * Two-column layout: headline/CTAs left, image right, with stats row.
 * Uses CSS variables for colors - no hardcoded values.
 */

.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-3xl) var(--spacing-lg);
}

.hero__text {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  background-color: transparent;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero__text.hero__text--animated {
  opacity: 1;
  transform: translateY(0);
}

.hero__headline {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.hero__headline.hero__headline--animated {
  opacity: 1;
  transform: translateY(0);
}

.hero__headline-main {
  font-size: var(--font-size-6xl);
  font-weight: 800;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.9;
}

.hero__headline-sub {
  font-size: var(--font-size-6xl);
  font-weight: 800;
  color: var(--color-accent-primary);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.9;
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
}

.hero__description.hero__description--animated {
  opacity: 1;
  transform: translateY(0);
}

.hero__actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.6s, transform 0.8s ease-out 0.6s;
}

.hero__actions.hero__actions--animated {
  opacity: 1;
  transform: translateY(0);
}

.hero__stats {
  display: flex;
  gap: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border-subtle);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.8s, transform 0.8s ease-out 0.8s;
}

.hero__stats.hero__stats--animated {
  opacity: 1;
  transform: translateY(0);
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--color-accent-primary);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.hero__stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(28, 28, 28, 0.82) 0%,
    rgba(28, 28, 28, 0.5) 40%,
    rgba(28, 28, 28, 0.25) 65%,
    transparent 85%
  ),
  linear-gradient(
    to bottom,
    rgba(42, 42, 42, 0.5) 0%,
    rgba(42, 42, 42, 0.3) 50%,
    rgba(42, 42, 42, 0.6) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__slider-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__slide {
  min-width: 100%;
  height: 100%;
  min-height: 0;
  flex-shrink: 0;
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background-color: transparent;
}

.hero__img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  filter: brightness(0.9) contrast(1.1);
  display: block;
}


.hero__slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  z-index: 3;
  pointer-events: none;
}

.hero__slider-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: rgba(42, 42, 42, 0.8);
  border: 2px solid var(--color-border-subtle);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  pointer-events: all;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__slider-btn:hover:not(:disabled) {
  background-color: var(--color-accent-primary);
  border-color: var(--color-accent-primary);
  transform: scale(1.1);
}

.hero__slider-btn:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

.hero__slider-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.hero__slider-dots {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 3;
}

.hero__slider-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero__slider-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.hero__slider-dot.active {
  background-color: var(--color-accent-primary);
  width: 32px;
  border-color: var(--color-accent-primary);
}

.hero__slider-dot:focus-visible {
  outline: 2px solid var(--color-accent-primary);
  outline-offset: 2px;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero__text,
  .hero__headline,
  .hero__description,
  .hero__actions,
  .hero__stats,
  .hero__slider-track {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__slider-track {
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__headline-main,
  .hero__headline-sub {
    font-size: var(--font-size-5xl);
  }

  .hero__stats {
    gap: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }

  .hero__content {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__slider-controls {
    padding: 0 var(--spacing-sm);
  }

  .hero__slider-btn {
    width: 40px;
    height: 40px;
  }

  .hero__slider-dots {
    bottom: var(--spacing-md);
  }

  .hero__text {
    gap: var(--spacing-lg);
  }

  .hero__headline-main,
  .hero__headline-sub {
    font-size: var(--font-size-4xl);
  }

  .hero__description {
    font-size: var(--font-size-base);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: space-around;
  }

  .hero__stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
  }

  .hero__stat-number {
    font-size: var(--font-size-3xl);
  }
}

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

  .hero__content {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .hero__slider-btn {
    width: 36px;
    height: 36px;
  }

  .hero__slider-dot {
    width: 10px;
    height: 10px;
  }

  .hero__slider-dot.active {
    width: 24px;
  }

  .hero__headline-main,
  .hero__headline-sub {
    font-size: var(--font-size-3xl);
  }

  .hero__description {
    font-size: var(--font-size-sm);
  }

  .hero__stats {
    gap: var(--spacing-md);
  }

  .hero__stat-number {
    font-size: var(--font-size-2xl);
  }

  .hero__stat-label {
    font-size: var(--font-size-xs);
  }
}

