/* ===============================
   WRM CUSTOM STYLE.CSS (RAPI & MODERN)
   =============================== */

/* RESET DASAR & GLOBAL UTILITY */
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 {
  z-index: 9999 !important;
}

/* 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 MENU TRANSISI */
#mobile-menu {
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

/* 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;
  }
}
/* ========== 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;
  }
}
