/* =========================================
   AVENTRA - Custom Styles
   ========================================= */

/* Batas lebar halaman */
html,
body {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* Supaya judul section tidak tertutup navbar sticky saat klik menu */
section[id],
footer[id] {
    scroll-margin-top: 72px;
}

/* ---------- Navbar ---------- */
.nav-link {
    position: relative;
    padding: 0.25rem 0;
    color: #4b5563;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-link:hover,
.nav-link.active {
    color: #1d4ed8;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #f97316;
    transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Menu mobile */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}
.mobile-menu.open {
    max-height: 480px;
}
.mobile-link.active {
    color: #1d4ed8;
    background: #eff6ff;
}

/* ---------- Kartu paket ---------- */
.package-card {
    transition: all 0.3s ease;
}
.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ---------- Tombol WhatsApp melayang ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

/* ---------- FAQ ---------- */
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 1rem;
}
.faq-item .faq-icon {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* ---------- Transport "Read More" ---------- */
.transport-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}
.transport-details.open {
    max-height: 400px;
    opacity: 1;
}

/* ---------- Galeri & Lightbox ---------- */
.gallery-item img {
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.06);
}

/* ---------- Responsif ---------- */
@media (max-width: 768px) {
    .hero-section {
        padding-bottom: 5rem;
    }
}

/* Aksesibilitas: fokus keyboard & kurangi animasi */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- Halaman Itinerary (packages/) ---------- */
.day-card .day-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}
.day-card.open .day-body {
    max-height: 2000px;
}
.day-card .day-chevron {
    transition: transform 0.3s ease;
}
.day-card.open .day-chevron {
    transform: rotate(180deg);
}

/* Garis waktu di dalam tiap hari */
.timeline {
    position: relative;
    padding-left: 1.75rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 0.45rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: #dbeafe;
}
.timeline-item {
    position: relative;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: 0.4rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    background: #fff;
    border: 3px solid #1d4ed8;
}
.timeline-item.highlight::before {
    border-color: #f97316;
    background: #f97316;
}
