/* ===== MOBILE MENU ===== */
#mobileMenu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  padding: 25px;
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  z-index: 999;
  border-top: 1px solid #eee;
  border-bottom: 2px solid var(--primary);
}

.mobile-item {
  text-decoration: none;
  color: #1e1e1e;
  font-weight: 500;
  padding: 12px 15px;
  border-radius: 12px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.mobile-cta {
  display: block;
  background: #fbbf24;
  color: #1e1e1e;
  padding: 16px;
  border-radius: 60px;
  text-align: center;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  margin-top: 10px;
  border: 2px solid white;
  box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

/* ===== UTILITY CLASSES ===== */
.cta-mini {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(179, 31, 12, 0.25);
  transition: all 0.25s;
}

.cta-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(179, 31, 12, 0.35);
}

.cta-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 16px 45px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 15px 30px rgba(179, 31, 12, 0.3);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(179, 31, 12, 0.4);
}

.text-muted {
  color: #4a4a4a !important;
}
.bg-warning {
  background: #fef1f0;
}
.badge-hot {
  background: #b31f0c;
  color: white;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 11px;
}

/* ===== SCROLL MARGIN ===== */
#section-2,
#section-3,
#section-4,
#paket,
#section-6,
#testimoni,
#faq,
#garansi {
  scroll-margin-top: 80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideIn {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-30px); opacity: 0; }
}

@media (max-width: 480px) {
  @keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  @keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(20px); opacity: 0; }
  }
}

/* ===== STABILKAN LAYOUT ===== */
.hero > div > div:first-child {
  min-height: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.hero h1 {
  min-height: calc(1.2em * 2);
  margin-bottom: 15px;
  display: block;
  width: 100%;
}

.hero p {
  min-height: 4.5em;
  max-width: 650px;
  margin: 0 auto 25px;
}

.hero .cta-button-container {
  min-height: 80px;
  margin: 35px 0 20px;
}

#paket > div > div {
  min-height: 550px;
  display: flex;
  flex-direction: column;
}

#testimoni > div > div {
  min-height: 350px;
}

#section-2 > div > div:nth-child(4) {
  min-height: 160px;
  display: grid;
  gap: 15px;
}

img, svg {
  width: auto;
  height: auto;
  max-width: 100%;
  display: inline-block;
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  body { padding-top: 60px; }
  :root { --navbar-height: 60px; }

  #paket > div:nth-child(2) {
    grid-template-columns: 1fr !important;
    gap: 25px;
  }

  #testimoni > div:nth-child(2) {
    grid-template-columns: 1fr !important;
  }

  #section-2 > div > div:nth-child(4) {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  #section-2 > div > div:nth-child(4) > div > div {
    font-size: 36px !important;
  }

  #section-6 > div { padding: 30px 16px !important; }
  #section-6 .voucher-inner { padding: 20px 12px !important; }
  #section-6 .voucher-price-box { flex-direction: column; align-items: center; }

  #section-6 .voucher-inner [id$="hours"],
  #section-6 .voucher-inner [id$="minutes"],
  #section-6 .voucher-inner [id$="seconds"] {
    font-size: 32px !important;
  }

  #section-6 .voucher-inner > div:nth-child(4) {
    padding: 20px 15px !important;
  }
}

#section-6 .voucher-cta {
  display: inline-block;
  background: #fbbf24;
  color: #1e1e1e;
  padding: 20px 50px;
  border-radius: 60px;
  font-weight: 900;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 20px 30px rgba(251, 191, 36, 0.3);
  border: 3px solid white;
  transition: 0.2s;
  white-space: nowrap;
}

@media (max-width: 600px) {
  #section-6 .voucher-cta {
    font-size: 18px;
    padding: 16px 30px;
    white-space: normal;
  }
}

/* ===== MEMPERKECIL UKURAN FONT DI MOBILE ===== */
@media (max-width: 768px) {
  
  /* === HERO SECTION === */
  .hero h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }
  
  .hero p {
    font-size: 16px !important;
  }
  
  .hero a[href="#paket"] {
    font-size: 18px !important;
    padding: 14px 30px !important;
  }
  
  .hero p:last-of-type {
    font-size: 12px !important;
  }
  
  .hero span[style*="border-radius: 60px"] {
    font-size: 11px !important;
    padding: 4px 12px !important;
  }

  /* === SECTION 6 (VOUCHER) === */
  #section-6 > div:first-child > span {
    font-size: 14px !important;
    padding: 8px 16px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  
  #section-6 > div:nth-child(2) > h3 {
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }
  
  #section-6 > div:nth-child(2) > p {
    font-size: 14px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(3) {
    padding: 12px !important;
    margin-bottom: 15px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(3) span:last-child {
    font-size: 28px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(3) p {
    font-size: 12px !important;
    margin-top: 5px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) {
    padding: 15px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:first-child > div:first-child {
    width: 50px !important;
    height: 50px !important;
    font-size: 24px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:first-child > div:last-child > p {
    font-size: 18px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:first-child > div:last-child > div span:first-child {
    font-size: 40px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:first-child > div:last-child > div span:last-child {
    font-size: 16px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:nth-child(2) {
    margin-bottom: 15px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:nth-child(2) > div:first-child span {
    font-size: 12px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:nth-child(3) {
    padding: 15px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(4) > div:nth-child(3) p {
    font-size: 13px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(5) {
    padding: 15px !important;
    margin: 15px auto !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(5) span[id$="hours"],
  #section-6 > div:nth-child(2) > div:nth-child(5) span[id$="minutes"],
  #section-6 > div:nth-child(2) > div:nth-child(5) span[id$="seconds"] {
    font-size: 24px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(5) > p {
    font-size: 14px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(6) a {
    font-size: 18px !important;
    padding: 14px 30px !important;
  }
  
  #section-6 > div:nth-child(2) > div:nth-child(6) p {
    font-size: 11px !important;
  }

  /* === RATING GABUNGAN (3 KOTAK) === */
  #testimoni > div:last-child {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    padding: 12px 10px !important;
    margin: 15px auto 0 !important;
    max-width: 100% !important;
  }
  
  #testimoni > div:last-child > div[style*="width: 1px"] {
    display: none !important;
  }
  
  #testimoni > div:last-child > div {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #testimoni > div:last-child > div > div:first-child {
    font-size: 22px !important;
    margin-bottom: 2px !important;
  }
  
  #testimoni > div:last-child > div > p {
    font-size: 9px !important;
    line-height: 1.2 !important;
    color: #666 !important;
    margin: 0 !important;
  }
  
  #testimoni > div:last-child > div:nth-child(3) > p {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
  }
  
  #testimoni > div:last-child > div:nth-child(3) span {
    font-size: 10px !important;
  }
  
  #testimoni > div:last-child > div:nth-child(3) span:first-child {
    font-size: 12px !important;
  }
}
/* ===== BACK TO TOP BUTTON ===== */
#backToTopBtn {
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  opacity: 0;
  visibility: hidden;
  width: 44px;
  height: 44px;
  min-width: 44px; /* Pastikan dimensi tetap */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#backToTopBtn.show {
  opacity: 1 !important;
  visibility: visible !important;
}

#backToTopBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(179, 31, 12, 0.4);
}

/* ===== FLOATING CONTAINER ===== */
div[style*="position: fixed"][style*="bottom: 20px"][style*="right: 20px"] {
  contain: layout size paint; /* Optimasi performa */
  will-change: transform;
}