/* ==========================================================================
   OEM Beauty Luxury - Hero Slider Styles (340px to 2K Responsive)
   File: assets/css/slider.css
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, var(--clr-surface) 0%, var(--clr-bg) 100%);
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-slide {
  display: none;
  opacity: 0;
}

.hero-slide.active {
  display: block;
  opacity: 1;
  animation: heroSlideFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroSlideFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-content {
  max-width: 650px;
  min-width: 0;
}

.hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  font-weight: 700;
  flex-wrap: wrap;
}

.hero-pretitle::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--clr-primary);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.42rem, 3.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--clr-text-title);
  letter-spacing: -0.5px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.hero-title span {
  color: var(--clr-primary);
}

.hero-description {
  font-size: clamp(0.88rem, 1.4vw, 1.05rem);
  color: var(--clr-text-body);
  line-height: 1.68;
  margin-bottom: 28px;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
  margin-bottom: 32px;
}

.hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--clr-text-title);
  font-weight: 600;
  line-height: 1.4;
}

.hero-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--clr-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-image-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 30, 80, 0.15));
  transition: transform var(--transition-slow);
}

.hero-image-wrap:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border-glow);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: floatBadge 4s ease-in-out infinite;
  max-width: 92%;
}

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

.badge-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--clr-primary);
}

.badge-text {
  text-align: left;
}

.badge-text .b-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-text-title);
  line-height: 1.3;
}

.badge-text .b-desc {
  font-size: 0.74rem;
  color: var(--clr-text-muted);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.slider-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-title);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: all var(--transition-fast);
}

.slider-btn svg,
.slider-btn i {
  pointer-events: none;
}

.slider-btn:hover {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
  transform: translateY(-2px);
}

.slider-btn:active {
  transform: scale(0.95);
}

.slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clr-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dot.active {
  width: 26px;
  border-radius: var(--radius-pill);
  background: var(--clr-primary);
}

/* Tablet Portrait & Mobile Landscape/Portrait (<= 991px) */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding-top: 104px;
    padding-bottom: 44px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-pretitle {
    justify-content: center;
  }
  .hero-features {
    text-align: left;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group,
  .hero-controls {
    justify-content: center;
  }
  .hero-image-wrap img {
    max-height: 360px;
  }
}

/* Mobile Landscape & Portrait (<= 768px) */
@media (max-width: 768px) {
  .hero-section {
    padding-top: 86px;
    padding-bottom: 36px;
  }
  .hero-floating-badge {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 14px;
    max-width: 100%;
    width: 100%;
    animation: none;
  }
  .hero-image-wrap img {
    max-height: 290px;
  }
}

/* Mobile Portrait (340px - 576px) */
@media (max-width: 576px) {
  .hero-section {
    padding-top: 76px;
    padding-bottom: 32px;
  }
  .hero-pretitle {
    font-size: 0.72rem;
    letter-spacing: 1px;
  }
  .hero-features {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
  }
  .hero-controls {
    margin-top: 22px;
  }
  .hero-image-wrap img {
    max-height: 240px;
  }
}
