/* =========================================
   VALOROUS — HERO SLIDER (clone page)
   Self-contained styles for the interactive
   banner slider. Reuses brand tokens from
   style.css (--primary, --accent, etc.)
   ========================================= */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #0d0d0d;
  /* keep dark palette regardless of theme */
  --white: #ffffff;
  --text-light: #e0e0e0;
}

/* ---- Slides ---- */
.hs-slides {
  position: absolute;
  inset: 0;
}

.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
  z-index: 1;
}

.hs-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Background image with Ken-Burns zoom on the active slide */
.hs-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8s ease-out;
  will-change: transform;
}

.hs-slide.active .hs-slide-bg {
  transform: scale(1.18);
}

/* Readability overlay — dark on left, fading right */
.hs-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.88) 0%, rgba(13, 13, 13, 0.6) 45%, rgba(13, 13, 13, 0.25) 100%),
    linear-gradient(0deg, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0) 45%);
  z-index: 1;
}

/* ---- Content ---- */
.hs-content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: var(--container-width, 1200px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
}

.hs-inner {
  max-width: 640px;
}

/* Animated entry — children stagger in when slide becomes active */
.hs-slide .hs-badge,
.hs-slide .hs-title,
.hs-slide .hs-subtitle,
.hs-slide .hs-desc,
.hs-slide .hs-actions {
  opacity: 0;
  transform: translateY(34px);
}

.hs-slide.active .hs-badge { animation: hsUp 0.7s 0.25s forwards cubic-bezier(0.2, 0.7, 0.2, 1); }
.hs-slide.active .hs-title { animation: hsUp 0.8s 0.4s forwards cubic-bezier(0.2, 0.7, 0.2, 1); }
.hs-slide.active .hs-subtitle { animation: hsUp 0.8s 0.55s forwards cubic-bezier(0.2, 0.7, 0.2, 1); }
.hs-slide.active .hs-desc { animation: hsUp 0.8s 0.7s forwards cubic-bezier(0.2, 0.7, 0.2, 1); }
.hs-slide.active .hs-actions { animation: hsUp 0.8s 0.85s forwards cubic-bezier(0.2, 0.7, 0.2, 1); }

@keyframes hsUp {
  to { opacity: 1; transform: translateY(0); }
}

.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 22px;
  font-family: var(--font-main, 'Space Grotesk', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(200, 16, 46, 0.22);
  border: 1px solid rgba(255, 45, 80, 0.55);
  border-radius: 100px;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}

.hs-badge i { color: var(--accent, #f5a623); }

.hs-title {
  font-family: var(--font-main, 'Space Grotesk', sans-serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.04;
  color: #fff;
  margin-bottom: 14px;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
}

.hs-title .accent {
  color: var(--accent, #f5a623);
  display: inline-block;
}

.hs-subtitle {
  font-family: var(--font-main, 'Space Grotesk', sans-serif);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  color: var(--primary-light, #ff2d50);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.hs-desc {
  font-family: var(--font-body, 'Noto Sans KR', sans-serif);
  font-size: clamp(0.98rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin-bottom: 32px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ---- Action buttons ---- */
.hs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-main, 'Space Grotesk', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hs-btn i { font-size: 1.2rem; }

.hs-btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.hs-btn-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
  background: #20bd5a;
}

.hs-btn-call {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.hs-btn-call:hover {
  transform: translateY(-3px);
  background: var(--primary, #c8102e);
  border-color: var(--primary, #c8102e);
  box-shadow: 0 14px 36px rgba(200, 16, 46, 0.5);
}

/* ---- Navigation arrows ---- */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(13, 13, 13, 0.35);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hs-arrow:hover {
  background: var(--primary, #c8102e);
  border-color: var(--primary, #c8102e);
}

.hs-prev { left: 24px; }
.hs-next { right: 24px; }
.hs-arrow:hover { transform: translateY(-50%) scale(1.08); }

/* ---- Dots ---- */
.hs-dots {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}

.hs-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.hs-dot.active {
  width: 34px;
  border-radius: 100px;
  background: var(--accent, #f5a623);
}

/* ---- Progress bar (autoplay timer) ---- */
.hs-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 5;
}

.hs-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary, #c8102e), var(--accent, #f5a623));
}

.hs-progress-bar.run {
  animation: hsProgress linear forwards;
}

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

/* ---- Scroll cue ---- */
.hs-scroll {
  position: absolute;
  bottom: 26px;
  right: 28px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hs-scroll i { animation: hsBob 1.6s infinite; }

@keyframes hsBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  /* Mobile: square slider with the FULL image visible and the text +
     buttons overlaid at the bottom over a readability gradient. */
  .hero-slider {
    height: auto;
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  /* Fill the square — crop the photo a little (cover) instead of letterboxing */
  .hs-slide-bg {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0d0d0d;
    transform: none !important;
  }

  /* Gradient so overlaid text stays readable at the bottom */
  .hs-overlay {
    background: linear-gradient(0deg,
        rgba(13, 13, 13, 0.95) 0%,
        rgba(13, 13, 13, 0.55) 32%,
        rgba(13, 13, 13, 0) 62%);
  }

  .hs-content {
    justify-content: flex-end;
    padding: 0 18px 62px;
    text-align: center;
  }

  .hs-inner { max-width: 100%; }

  .hs-badge {
    margin-bottom: 12px;
    padding: 6px 13px;
    font-size: 0.72rem;
  }

  /* Smaller heading for mobile */
  .hs-title {
    font-size: 1.5rem;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .hs-subtitle {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  /* Hide the 2-line description on mobile per request */
  .hs-desc { display: none; }

  /* Hide the action buttons on the slider in mobile view */
  .hs-actions { display: none; }

  .hs-arrow {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .hs-prev { left: 10px; }
  .hs-next { right: 10px; }

  .hs-dots { bottom: 26px; }

  .hs-scroll { display: none; }
}

@media (max-width: 380px) {
  .hs-title { font-size: 1.3rem; }
  .hs-actions { flex-direction: column; }
  .hs-btn { width: 100%; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-slide-bg,
  .hs-slide.active .hs-slide-bg { transition: none; transform: scale(1.05); }
  .hs-slide.active * { animation: none !important; opacity: 1 !important; transform: none !important; }
}
