/* ========================================
   FILE: frontend/css/hero.css
   ======================================== */

.hero-carousel {
  position: relative;
  height: calc(100vh - var(--navbar-height) - var(--announcement-height));
  min-height: 480px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

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

@media (min-width: 1024px) {
  .hero-carousel {
    min-height: 90vh;
    max-height: 90vh;
  }
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
  will-change: transform;
}

.hero-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slide-bg {
  position:absolute;
  inset: 0;
  background-size:cover;
  background-position: center top;
  transition: transform 6s ease;
  transform: scale(1.05);
}
.hero-slide.active .hero-slide-bg { transform: scale(1); }

@media (min-width: 1024px) {
  .hero-slide-bg {
    background-position: center 20%;
  }
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.2) 60%,
    rgba(0,0,0,0.1) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-primary);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.1s;
}
.hero-slide.active .hero-tag { opacity: 1; transform: translateY(0); }

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: var(--font-weight-black);
  color: white;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease 0.2s;
}
.hero-slide.active .hero-title { opacity: 1; transform: translateY(0); }

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.35s;
}
.hero-slide.active .hero-subtitle { opacity: 1; transform: translateY(0); }

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.5s;
}
.hero-slide.active .hero-ctas { opacity: 1; transform: translateY(0); }

.hero-btn-primary {
  background: var(--color-primary);
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition-base);
}
.hero-btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,60,0,0.4);
}

.hero-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: white;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.7);
}

/* Controls */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}
.hero-nav-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.05);
}
.hero-prev { left: var(--space-xl); }
.hero-next { right: var(--space-xl); }

.hero-dots {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all var(--transition-base);
}
.hero-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

/* ── FIX 2: Increase hero height by 60px on desktop only ─────────────────── */
@media (min-width: 1024px) {
  .hero-carousel {
    min-height: calc(90vh + 140px);
    max-height: calc(90vh + 140px);
  }
  .hero-slide {
    min-height: calc(90vh + 140px);
  }
  .hero-slide-bg {
    min-height: calc(90vh + 140px);
  }
}
