/* =========================================================
   INDEX.CSS (FULL) – Slider + Hero NO IMAGE + Mobile Nav + Fix
   ========================================================= */

/* ================= GLOBAL FIXES ================= */
/* FIX: Buang horizontal scroll seluruh page */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* FIX: Semua media jangan melebihi screen */
img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= HAMBURGER ================= */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* ================= MOBILE NAV (OFFCANVAS) ================= */
.nav-overlay {
  display: none;
}

@media (max-width: 768px) {
  .navbar {
    padding: 14px 22px;
  }

  .menu-toggle {
    display: flex;
    z-index: 10001;
  }

  /* offcanvas menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: #ffffff;
    display: flex;              /* ✅ jangan hilangkan */
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.35s ease;
    z-index: 10000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    margin: 0;
    font-size: 16px;
    padding: 10px 0;
  }

  /* overlay belakang */
  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9999;
  }
  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ================= MAIN SLIDER ================= */
.main-slider {
  padding-top: 0;
}

.slider-container {
  position: relative;
  max-width: 100%;
  height: 400px; /* 🔹 tinggi slider sesuai 3200x1000 */
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 4s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* pastikan ratio 3.2:1 penuh di container */
}

/* Overlay Text */
.slide-content {
  position: absolute;
  top: 20px; /* letak atas slider */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
}

.slide-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
}

.slide-content p {
  font-size: 16px;
}

/* ARROWS */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.prev:hover,
.next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev { left: 15px; }
.next { right: 15px; }

/* ===== DOT BAWAH SLIDER (TAK OVERLAP) ===== */
.slider-dots {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: var(--text-muted);
  border-radius: 50%;
  display: inline-block;
  margin: 0 6px;
  opacity: 0.4;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot:hover {
  transform: scale(1.2);
}

.slider-dots .dot.active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.3);
}

/* RESPONSIVE (slider) */
@media (max-width: 1024px) {
  .slider-container { height: 320px; }
  .slide-content h2 { font-size: 28px; }
  .slide-content p { font-size: 14px; }
}

@media (max-width: 768px) {
  .slider-container { height: 240px; }
  .slide-content h2 { font-size: 22px; }
  .slide-content p { font-size: 12px; }
}

@media (max-width: 480px) {
  .slider-container { height: 180px; }
  .slide-content h2 { font-size: 18px; }
  .slide-content p { font-size: 10px; }
}

/* ================= HERO (NO IMAGE) ================= */
.hero.hero-no-image{
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 80px 90px;
  overflow: hidden;

  background:
    radial-gradient(900px 600px at 15% 20%, rgba(46, 125, 115, 0.12), transparent 60%),
    radial-gradient(700px 500px at 85% 30%, rgba(157, 89, 177, 0.10), transparent 55%),
    linear-gradient(120deg, #f5fbfd, #ffffff);
}

/* blur shapes */
.hero.hero-no-image::before,
.hero.hero-no-image::after{
  content:"";
  position:absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.9;
  pointer-events: none;
}

.hero.hero-no-image::before{
  left: -160px;
  top: -160px;
  background: rgba(46, 125, 115, 0.18);
}

.hero.hero-no-image::after{
  right: -180px;
  bottom: -180px;
  background: rgba(157, 89, 177, 0.14);
}

/* HERO TEXT CARD */
.hero.hero-no-image .hero-text{
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(10px);
  border-radius: 26px;
  padding: 44px 44px;

  box-shadow: 0 18px 60px rgba(0,0,0,0.10);
}

.hero.hero-no-image .hero-text span{
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: var(--secondary);
  display: inline-block;
  margin-bottom: 14px;
}

.hero.hero-no-image .hero-text h1{
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  line-height: 1.08;
  color: var(--primary);
  margin-bottom: 16px;
}

.hero.hero-no-image .hero-text h1 span{
  font-style: italic;
  color: var(--secondary);
}

.hero.hero-no-image .hero-text p{
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.85;
  color: var(--text-muted);
  font-size: 15.5px;
}

/* HERO BUTTONS */
.hero.hero-no-image .hero-buttons{
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.hero.hero-no-image .hero-buttons .btn{
  padding: 14px 34px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  box-shadow: 0 14px 35px var(--shadow-heavy);
}

.hero.hero-no-image .hero-buttons .btn.outline{
  background: rgba(255,255,255,0.65);
  color: var(--primary);
  border: 1.6px solid rgba(0,0,0,0.10);
  box-shadow: none;
}

.hero.hero-no-image .hero-buttons .btn:hover{
  transform: translateY(-4px);
  opacity: 0.98;
}

/* SOCIAL ICONS */
.hero.hero-no-image .social-media-icons{
  display: flex;
  justify-content: center;
  gap: 14px;
}

.hero.hero-no-image .social-media-icons a{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero.hero-no-image .social-media-icons a:hover{
  transform: translateY(-5px);
  background: var(--accent);
  color: #fff;
}

/* ================= TABLET HERO ================= */
@media (max-width: 1024px){
  .hero.hero-no-image{
    padding: 70px 40px;
    min-height: 62vh;
  }

  .hero.hero-no-image .hero-text{
    max-width: 680px;
    padding: 38px 34px;
  }

  .hero.hero-no-image .hero-text h1{
    font-size: 52px;
  }
}

/* ================= MOBILE POLISH (SLIDER + HERO) ================= */
@media (max-width: 768px) {

  /* SLIDER MOBILE KEMAS */
  .slider-container {
    height: 180px;
    border-radius: 18px;
    overflow: hidden;
    margin: 12px 16px 0;
  }

  .slide img { object-fit: cover; }

  .slide-content {
    top: 12px;
    width: calc(100% - 24px);
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
  }

  .slide-content h2 {
    font-size: 18px;
    line-height: 1.2;
  }

  .slide-content p {
    font-size: 12px;
    line-height: 1.4;
  }

  .prev,
  .next {
    font-size: 20px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.35);
  }
  .prev { left: 8px; }
  .next { right: 8px; }

  .slider-dots { margin: 12px 0 0; }
  .slider-dots .dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
  }

  /* HERO MOBILE KEMAS */
  .hero.hero-no-image{
    padding: 18px 16px 26px;
    min-height: auto;
  }

  .hero.hero-no-image .hero-text{
    padding: 26px 18px;
    border-radius: 22px;
  }

  .hero.hero-no-image .hero-text h1{
    font-size: 34px;
    margin-bottom: 10px;
  }

  .hero.hero-no-image .hero-text p{
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .hero.hero-no-image .hero-buttons{
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }

  .hero.hero-no-image .hero-buttons .btn{
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 16px;
  }

  .hero.hero-no-image::before,
  .hero.hero-no-image::after{
    width: 380px;
    height: 380px;
    filter: blur(55px);
    opacity: 0.75;
  }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
  .slider-container { height: 165px; }
  .hero.hero-no-image .hero-text h1 { font-size: 30px; }
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
  }
  .whatsapp-float img {
    width: 24px;
    height: 24px;
  }
}

/* ================= OFFER-IMAGE SLIDER (OPTIONAL) ================= */
.offer-image {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 550px;
  margin: auto;
  overflow: hidden;
}

.offer-image .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease-in-out, transform 4s ease;
  pointer-events: none;
}

.offer-image .slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}