/* =============================================
   DESA HUTARUHOM — Hero Slider
   ============================================= */

.hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  background: var(--hijau-tua);
}

.hero-slides {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(.77,0,.18,1);
}

.hero-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Slide backgrounds */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.slide-1 .slide-bg { background: linear-gradient(160deg, #0f4626 0%, #1a6b3a 45%, #2d9e58 100%); }
.slide-2 .slide-bg { background: linear-gradient(160deg, #0d2b4a 0%, #1a546b 45%, #2d8f9e 100%); }
.slide-3 .slide-bg { background: linear-gradient(160deg, #3a1a0a 0%, #6b3c1a 45%, #9e6b2d 100%); }

/* Pattern overlay on every slide */
.slide-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* Slide content */
.slide-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 700px;
  animation: slideFadeIn 0.8s ease;
}

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

.slide-content h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
  text-shadow: 2px 3px 14px rgba(0,0,0,0.5);
  margin-bottom: 14px;
}

.slide-content p {
  font-size: 1.05rem;
  color: #b2dfdb;
  margin-bottom: 24px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
  line-height: 1.65;
}

/* Dots navigation */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 10;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.hero-dot.active {
  background: var(--emas);
  transform: scale(1.25);
}

/* Arrow controls */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover,
.hero-next:hover { background: rgba(0,0,0,0.55); }

/* ---- Stats strip below hero ---- */
.stats-strip {
  background: var(--emas);
  padding: 16px 0;
}

.stats-strip .container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-item { text-align: center; }

.stat-item .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--hijau-tua);
  line-height: 1;
}

.stat-item .lbl {
  font-size: 11px;
  color: var(--hijau-tua);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 2px;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(15,70,38,0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .hero { height: 300px; }
  .slide-content h2 { font-size: 1.7rem; }
  .slide-content p { font-size: 0.9rem; }
  .hero-prev, .hero-next { display: none; }
  .stat-sep { display: none; }
}
