html {
  scroll-behavior: smooth;
}

body {
  font-family: "sans-serif";
  background-color: #f9fafb;
}

img[loading="lazy"] {
  opacity: 1;
  transition: opacity 0.3s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #059669;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #047857;
}

/* NAVIGATION LINK */
.nav-link {
  position: relative;
  overflow: hidden;
  color: #374151;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #059669;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* ARMADA CARD */
.armada-card {
  border-radius: 12px;
  transition: all 0.3s ease;
}
.armada-card:hover {
  box-shadow: 0 10px 20px rgba(5, 108, 73, 0.2);
}
.armada-card:hover .fas.fa-star {
  animation: float 1.5s ease-in-out infinite;
}

/* RESPONSIVE GALLERY */
@media (max-width: 640px) {
  .armada-card {
    margin: 0 10px;
  }
  .armada-card img {
    height: 200px;
    object-position: center 30%;
  }
}

/* FORM INPUT */
input,
textarea {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 0.5rem;
}
input:focus,
textarea:focus {
  border-color: #059669;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 108, 73, 0.1);
}

/* FORM CONTAINER */
#contact-form {
  background-color: #f3f4f6;
}

/* TESTIMONI */
blockquote {
  border-left: 4px solid #059669;
  padding-left: 1rem;
  font-style: italic;
  color: #6b7280;
}
blockquote cite {
  font-style: normal;
  color: #059669;
}

/* WHATSAPP BUTTON - FIXED POSITIONING */
.whatsapp-float {
  position: fixed !important;
  bottom: 1.25rem; /* bottom-5 */
  right: 1.25rem; /* right-5 */
  z-index: 9999 !important;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 3px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  animation: gentlePulse 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  animation: none;
}

.whatsapp-float i {
  font-size: 1.5rem; /* text-2xl */
  animation: none;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, #25d366, #128c7e, #25d366);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  animation: gentleGlow 3s ease-in-out infinite;
}

.whatsapp-float:hover::before {
  opacity: 0.7;
}

/* FOOTER */
footer {
  background-color: #1f2937;
  color: #f9fafb;
}
footer a {
  color: #9ca3af;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #ffffff;
}
@media (max-width: 768px) {
  footer {
    grid-template-columns: 1fr;
  }
}

/* BUTTON STYLE */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.btn-primary {
  background-color: #059669;
  color: white;
}
.btn-primary:hover {
  background-color: #047857;
  transform: scale(1.05);
}
.btn-outline {
  border: 2px solid #059669;
  color: #059669;
}
.btn-outline:hover {
  background-color: #ecfdf5;
}

/* SOCIAL ICON */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.social-icon:hover {
  transform: translateY(-3px);
}

/* CAROUSEL */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}
.carousel-slide {
  display: none;
  text-align: center;
}
.carousel-slide.active {
  display: block;
}
.carousel-slide img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.carousel-slide h3 {
  margin-top: 16px;
  color: #059669;
}
.carousel-slide p {
  color: #6b7280;
}

/* AOS CUSTOM */
[data-aos="custom-flip"] {
  transform: rotateY(90deg);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease;
}
[data-aos="custom-flip"].aos-animate {
  transform: rotateY(0);
  opacity: 1;
}

/* WAVE BACKGROUND */
.hero-wave,
.shape-overlays {
  background: linear-gradient(45deg, #059669 0%, #10b981 100%);
  background-size: 400% 400%;
  animation: wave 18s ease infinite;
  opacity: 0.1;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* MOBILE NAVBAR SYSTEM - REMOVED DUPLICATE */
/* CSS moved to ENHANCED MOBILE MENU section below */

/* CUSTOM ANIMATIONS */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes wave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@media (max-width: 640px) {
  .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  .max-w-6xl {
    max-width: 100% !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Pastikan gambar selalu responsif */
img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .your-element {
    width: 100%;
    padding: 0 15px;
  }
}

.container {
  display: flex;
  flex-wrap: wrap;
}

.item {
  flex: 1 1 100%;
}
/* Tambahan untuk armada responsive penuh */
@media (max-width: 768px) {
  .armada-card img {
    height: auto !important;
    object-fit: cover;
    object-position: center !important;
  }
}
@media (max-width: 768px) {
  .armada-card img,
  .swiper-slide img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
  }
}
@keyframes wa-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

.wa-hover:hover i {
  animation: wa-shake 0.4s ease-in-out;
  transform-origin: center;
}
@media (max-width: 640px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}
/* Tambahkan di akhir file */
.text-gray-600 p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .grid-cols-1 > div {
    padding: 0 1rem;
  }
}

/* Perbaikan destinasi wisata */
.destination-card .relative {
  height: 280px;
}

@media (max-width: 640px) {
  .destination-card .relative {
    height: 220px;
  }
}

/* Footer responsif */
@media (max-width: 1024px) {
  footer .grid-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  footer .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}
.carousel-slide {
  display: none;
  animation: slide-up-fade 0.8s ease-in-out;
}
.carousel-slide.active {
  display: block;
}
.heroSwiper img {
  min-height: 300px;
  object-fit: cover;
}
.carousel-slide img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}
@media (min-width: 1024px) {
  .carousel-slide img {
    max-height: 500px;
  }
}

/* ========== FLOATING NAVBAR SYSTEM - PREMIUM CENTERING ========== */

/* Container wrapper untuk true mathematical centering */
.nav-container {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1280px;
  z-index: 50;
  /* pointer-events: none REMOVED - causing hamburger menu issues */
}

.nav-container > * {
  /* pointer-events: auto REMOVED - no longer needed */
}

/* Base navbar state (default - top of page) */
nav.nav-default {
  height: 5rem; /* h-20 = 80px */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 1rem;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
}

/* Floating state (when scrolling) - Premium card-like appearance */
nav.nav-floating {
  height: 4rem; /* h-16 = 64px */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  position: relative;
}

/* Hidden state (fast scroll down) - FIXED stacking context */
nav.nav-hidden {
  transform: translateY(-120%);
  opacity: 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== PREMIUM MENU INTERACTIONS ========== */

/* Desktop navigation links with premium hover effects */
.nav-link {
  position: relative;
  overflow: hidden;
  color: #374151;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

/* Premium hover background */
.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.08),
    transparent
  );
  transition: left 500ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-link:hover::before {
  left: 100%;
}

/* Hover text color transition */
.nav-link:hover {
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Active menu indicator - elegant dot */
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
  animation: activePulse 2s infinite;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Subtle underline on hover */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Logo scaling in floating state */
nav.nav-floating .h-14 {
  height: 3rem;
  width: 3rem;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Brand text scaling in floating state */
nav.nav-floating .text-2xl {
  font-size: 1.5rem;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation links adjustments in floating state */
nav.nav-floating .space-x-6 {
  gap: 1rem;
}

nav.nav-floating .nav-link {
  font-size: 0.875rem;
  padding: 0.375rem 0.625rem;
}

/* ========== ENHANCED MOBILE MENU ========== */

/* Mobile menu base styling - ENHANCED POSITIONING */
#mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99999; /* Above WhatsApp button */
  position: fixed;
  top: 5.5rem; /* Below navbar position - adjusted for floating navbar */
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-10px);
  visibility: hidden;
  /* Enhanced mobile menu styling */
}

/* Open state - ENHANCED */
#mobile-menu.open {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  overflow-y: auto; /* Enable scrolling if content is too long */
}

/* Ensure mobile menu items are visible */
#mobile-menu .space-y-2 > * {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mobile menu items with staggered animations */
#mobile-menu a {
  display: block;
  padding: 1rem 1.25rem;
  margin: 0.25rem 0;
  font-size: 1rem;
  border-radius: 0.75rem;
  background: transparent;
  border: none;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
  opacity: 0;
  transform: translateX(-30px);
  position: relative;
  overflow: hidden;
}

/* Staggered animation delays */
#mobile-menu.open a:nth-child(1) {
  animation: slideInStagger 0.4s ease forwards 0.1s;
}
#mobile-menu.open a:nth-child(2) {
  animation: slideInStagger 0.4s ease forwards 0.15s;
}
#mobile-menu.open a:nth-child(3) {
  animation: slideInStagger 0.4s ease forwards 0.2s;
}
#mobile-menu.open a:nth-child(4) {
  animation: slideInStagger 0.4s ease forwards 0.25s;
}
#mobile-menu.open a:nth-child(5) {
  animation: slideInStagger 0.4s ease forwards 0.3s;
}
#mobile-menu.open a:nth-child(6) {
  animation: slideInStagger 0.4s ease forwards 0.35s;
}
#mobile-menu.open a:nth-child(7) {
  animation: slideInStagger 0.4s ease forwards 0.4s;
}
#mobile-menu.open a:nth-child(8) {
  animation: slideInStagger 0.4s ease forwards 0.45s;
}
#mobile-menu.open a:nth-child(9) {
  animation: slideInStagger 0.4s ease forwards 0.5s;
}

/* Mobile menu hover/active states */
#mobile-menu a:hover {
  background: rgba(59, 130, 246, 0.08);
  transform: translateX(8px);
  color: #1d4ed8;
}

#mobile-menu a:active {
  transform: scale(0.98);
}

/* WhatsApp button in mobile menu - enhanced */
#mobile-menu a[href*="wa.me"] {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
  border: none;
  position: relative;
  overflow: hidden;
}

#mobile-menu a[href*="wa.me"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s infinite;
}

#mobile-menu a[href*="wa.me"]:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateX(8px) scale(1.02);
}

/* ========== ENHANCED CTA BUTTONS ========== */

/* WhatsApp floating button with subtle glow */
.fixed.bottom-5.right-5.z-50 {
  position: relative;
  overflow: hidden;
}

.fixed.bottom-5.right-5.z-50::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #059669, #10b981, #059669);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  animation: gentleGlow 3s ease-in-out infinite;
}

.fixed.bottom-5.right-5.z-50:hover::before {
  opacity: 1;
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
  .nav-container {
    width: calc(100% - 1.5rem);
    top: 0.5rem;
  }

  nav.nav-floating {
    height: 3.75rem;
  }

  /* Ensure mobile menu toggle stays accessible */
  nav.nav-floating #menu-toggle {
    position: relative;
    z-index: 70;
  }
}

/* Performance optimization - REMOVED transform: translateZ(0) to fix stacking context */
nav {
  will-change: transform, opacity, height, background, border-radius, box-shadow;
  /* transform: translateZ(0); REMOVED - causing stacking context bug */
}

/* ========== ANIMATION KEYFRAMES ========== */

@keyframes slideInStagger {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes activePulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) scale(1.3);
    opacity: 0.8;
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes gentleGlow {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.5);
  }
}

/* ========== RESPONSIVITAS MOBILE ========== */
@media (max-width: 768px) {
  /* Hero Image Height Fix */
  .heroSwiper img {
    min-height: 200px !important;
    max-height: 50vh !important;
  }

  /* Armada Card Grid Fix */
  .grid-cols-1.sm\:grid-cols-2.lg\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  /* Testimoni Grid Fix */
  .grid-cols-1.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
  }

  /* Button Tap Target */
  .btn,
  .btn-primary,
  .btn-outline {
    min-height: 44px;
    min-width: 44px;
    padding: 12px 20px !important;
  }

  /* Image Overflow Fix */
  .carousel-slide img,
  .glightbox img {
    width: 100% !important;
    max-height: 200px !important;
    object-fit: cover;
  }

  /* Font Size Adjustments */
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /* Mobile Menu Item Size */
  #mobile-menu a {
    padding: 14px 16px !important;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  /* WhatsApp Button Size */
  .fixed.bottom-5.right-5 {
    bottom: 15px;
    right: 15px;
    padding: 12px;
    width: 50px;
    height: 50px;
  }

  .fixed.bottom-5.right-5 i {
    font-size: 1.5rem;
  }
}

/* ========== DROPDOWN MENU STYLES ========== */

/* Desktop Dropdown Menu */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.dropdown-menu:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown menu items */
.dropdown-menu a {
  transition: all 200ms ease;
  border-radius: 0.5rem;
  margin: 0.25rem;
}

.dropdown-menu a:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  transform: translateX(4px);
}

/* Mobile Dropdown Styles */
.mobile-dropdown {
  margin: 0.25rem 0;
}

.mobile-dropdown-toggle {
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mobile-dropdown-toggle:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
}

.mobile-dropdown-toggle i {
  transition: transform 300ms ease;
}

.mobile-dropdown-content {
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}

.mobile-dropdown-content:not(.hidden) {
  max-height: 200px;
  opacity: 1;
}

.mobile-dropdown-content a {
  transition: all 200ms ease;
  font-size: 0.95rem;
}

.mobile-dropdown-content a:hover {
  background: rgba(59, 130, 246, 0.08);
  color: #1d4ed8;
  transform: translateX(4px);
}

/* Responsive adjustments for dropdown */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    margin-top: 0.5rem;
  }

  .dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

/* ================= LP HERO BADGE HARD RESET ================= */
/* Ini untuk menghindari bentrok CSS global yang bikin "bola kuning" */
.heroSwiper .lp-hero-badge{
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  box-sizing: border-box !important;
  background: #f6b400 !important;
  color: #1b1b1b !important;

  padding: 10px 18px !important;
  border-radius: 999px !important;

  font-weight: 800 !important;
  font-size: 14px !important;
  line-height: 1 !important;

  max-width: calc(100% - 32px) !important;
  text-align: center !important;
}

/* Matikan pseudo-element dari style global */
.heroSwiper .lp-hero-badge::before,
.heroSwiper .lp-hero-badge::after{
  content: none !important;
  display: none !important;
}

/* ===============================
   HERO SWIPER - FINAL OVERRIDE
   (taruh PALING BAWAH style.css)
   =============================== */

/* pastikan swiper & slide punya tinggi yang benar */
.heroSwiper,
.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
  height: 100%;
}

section.pt-20.relative.overflow-hidden {
  padding-top: 0 !important; /* biar gak nambah kosong aneh */
}

/* kunci tinggi hero biar stabil */
.heroSwiper {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 560px;
  overflow: hidden;
}

/* gambar background full */
.heroSwiper .swiper-slide > img,
.heroSwiper .swiper-slide img.w-full.h-full.object-cover {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block;
}

/* overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
}

/* konten selalu di atas overlay */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid !important;
  place-items: center !important;
  padding: 120px 16px 60px !important;
  text-align: center;
}

/* blok utama teks */
.hero-main {
  max-width: 980px;
  margin: 0 auto;
}

/* badge jangan pernah jadi bulat aneh */
.hero-badge {
  display: inline-block;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  width: auto !important;
  height: auto !important;
  max-width: 92vw;
  background: #f6b400;
  color: #111;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  margin: 0 auto 14px;
}

/* judul */
.hero-title {
  font-size: clamp(34px, 4.2vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  color: #f6b400;
  margin: 0 0 10px;
}
.hero-subtitle {
  font-size: clamp(20px, 2.3vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}
.hero-desc {
  color: rgba(255,255,255,.92);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 auto 18px;
  max-width: 780px;
}

/* CTA */
.hero-cta {
  display: flex !important;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 18px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  min-width: 240px;
}
.btn-cta--wa {
  background: #22c55e;
  color: #fff;
}
.btn-cta--ghost {
  background: rgba(255,255,255,.92);
  color: #0f172a;
}

/* stats bawah */
.hero-stats {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-stats .stat-item h3 {
  color: #f6b400;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  margin: 0;
}
.hero-stats .stat-item p {
  color: rgba(255,255,255,.9);
  margin: 6px 0 0;
  font-size: 13px;
}

/* MOBILE */
@media (max-width: 768px) {
  .heroSwiper {
    height: 78vh;
    min-height: 520px;
  }
  .hero-content {
    padding: 96px 14px 56px !important;
    place-items: start center !important;
  }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 18px; }
  .hero-desc { font-size: 13px; max-width: 92vw; }
  .btn-cta { min-width: 92vw; }
  .hero-stats { gap: 18px; }
}
/* =========================
   HERO FINAL FIX (DESKTOP + MOBILE)
   taruh PALING BAWAH style.css
========================= */

/* pastikan slide jadi canvas penuh */
.heroSwiper,
.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
  width: 100%;
  height: 100%;
}

.heroSwiper {
  position: relative;
  height: 100vh;          /* desktop full screen */
  min-height: 560px;
  overflow: hidden;
}

/* gambar jadi background full */
.heroSwiper .swiper-slide {
  position: relative;
}

.heroSwiper .swiper-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay wajib di bawah teks */
.heroSwiper .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* teks + CTA harus selalu di atas overlay */
.heroSwiper .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  /* bikin center vertikal */

  text-align: center;
  padding: 130px 18px 90px; /* ruang buat navbar + bawah */
  gap: 10px;
}

/* paksa semua elemen hero tampil (biar badge/title nggak hilang) */
.heroSwiper .hero-badge,
.heroSwiper .hero-title,
.heroSwiper .hero-subtitle,
.heroSwiper .hero-desc,
.heroSwiper .hero-cta,
.heroSwiper .hero-stats {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 3;
}

/* CTA & stats rapihin */
.heroSwiper .hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.heroSwiper .hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .heroSwiper {
    height: 78vh;        /* biar nggak kepanjangan */
    min-height: 520px;
  }

  .heroSwiper .hero-content {
    padding: 96px 14px 70px; /* navbar mobile lebih kecil */
    justify-content: center; /* tetap center */
  }

  .heroSwiper .hero-title { font-size: 30px; line-height: 1.05; }
  .heroSwiper .hero-subtitle { font-size: 16px; line-height: 1.15; }
  .heroSwiper .hero-desc { font-size: 13px; line-height: 1.35; max-width: 92%; }

  .heroSwiper .btn-cta { width: 92%; }
}

/* ===== HP KECIL ===== */
@media (max-width: 420px) {
  .heroSwiper { min-height: 500px; }
  .heroSwiper .hero-title { font-size: 28px; }
  .heroSwiper .hero-subtitle { font-size: 15px; }
}
/* ================================
   FIX HERO SWIPER (DESKTOP + MOBILE)
   - Biar background image full
   - Konten center vertikal
   - Tidak putih kosong
================================= */

/* Pastikan container swiper punya tinggi */
.heroSwiper,
.heroSwiper .swiper-wrapper,
.heroSwiper .swiper-slide {
  height: 100vh;
  min-height: 640px;
}

/* Slide jadi "kanvas" untuk background */
.heroSwiper .swiper-slide {
  position: relative;
  overflow: hidden;
}

/* Image dibuat jadi background full */
.heroSwiper .swiper-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay gelap di atas gambar */
.heroSwiper .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
}

/* Konten teks + tombol selalu di atas overlay */
.heroSwiper .hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  padding: 0 16px;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .heroSwiper,
  .heroSwiper .swiper-wrapper,
  .heroSwiper .swiper-slide {
    height: 72vh;
    min-height: 420px;
  }

  .heroSwiper .hero-content{
    justify-content: flex-start;
    padding-top: 92px;
  }

  .heroSwiper .hero-title{
    font-size: 30px;
    line-height: 1.05;
    margin-bottom: 8px;
  }

  .heroSwiper .hero-subtitle{
    font-size: 18px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  .heroSwiper .hero-desc{
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 14px;
    max-width: 92%;
  }

  .heroSwiper .btn-cta{
    padding: 12px 16px;
    min-width: 92%;
  }
}

@media (max-width: 420px){
  .heroSwiper .hero-title{ font-size: 28px; }
  .heroSwiper .hero-subtitle{ font-size: 16px; }
}
/* =========================
   HERO STATS LANDSCAPE (ANTI TIMPA)
========================= */

.heroSwiper .hero-content .hero-stats,
.heroSwiper .hero-slide .hero-stats,
.heroSwiper .hero-stats{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 40px !important;
  flex-wrap: nowrap !important;   /* paksa 1 baris */
  width: 100% !important;
  margin-top: 20px !important;
}

.heroSwiper .hero-stats .stat-item{
  text-align: center !important;
  margin: 0 !important;
}

.heroSwiper .hero-stats .stat-item h3{
  font-size: 38px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.heroSwiper .hero-stats .stat-item p{
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* MOBILE */
@media (max-width: 768px){
  .heroSwiper .hero-content .hero-stats,
  .heroSwiper .hero-slide .hero-stats,
  .heroSwiper .hero-stats{
    gap: 18px !important;
  }

  .heroSwiper .hero-stats .stat-item h3{
    font-size: 24px !important;
  }

  .heroSwiper .hero-stats .stat-item p{
    font-size: 11px !important;
  }
}
.heroSwiper .hero-stats .stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.3);
}

.heroSwiper .hero-stats .stat-item {
  position: relative;
}
/* ======================
   HERO BUTTON GAP
====================== */

.heroSwiper .hero-cta{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;            /* Jarak antar tombol */
  flex-wrap: wrap;      /* Biar aman kalau layar kecil */
  margin-top: 20px;
}

/* MOBILE: tombol jadi stack dengan jarak */
@media (max-width: 768px){
  .heroSwiper .hero-cta{
    flex-direction: column;
    gap: 12px;
  }
}

/* =========================
   PROMO CARD (Professional)
   ========================= */
.promo-card{
  max-width: 980px;
  margin: 18px auto 40px;
  padding: 0 18px;
}

.promo-card__inner{
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,.10);
}

.promo-card__media{
  position: relative;
  min-height: 260px;
  background: #f4f6f8;
}

.promo-card__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.promo-badge{
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .2px;
  color: #111;
  background: rgba(255, 215, 0, .95);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.08);
}

.promo-card__content{
  padding: 20px 20px 18px;
}

.promo-title{
  margin: 2px 0 8px;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}

.promo-subtitle{
  margin: 0 0 12px;
  color: #475569;
  line-height: 1.55;
  font-size: 14.5px;
}

.promo-points{
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #0f172a;
  font-size: 14px;
}

.promo-cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  border: 1px solid transparent;
  min-width: 200px;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}

.btn-wa{
  background: #22c55e;
  color: #fff;
}

.btn-wa:hover{
  background: #16a34a;
}

.btn-outline{
  background: #fff;
  color: #0f172a;
  border-color: rgba(15,23,42,.18);
}

.btn-outline:hover{
  background: #f8fafc;
}

.promo-footnote{
  margin: 12px 0 0;
  color: #64748b;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 860px){
  .promo-card__inner{
    grid-template-columns: 1fr;
  }
  .promo-card__media{
    min-height: 220px;
  }
  .btn{
    width: 100%;
    min-width: unset;
  }
}