body {
    font-family: "Inter", sans-serif;
    scroll-behavior: smooth;
}
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}
details[open] .faq-icon {
    transform: rotate(45deg);
}

* {
    box-sizing: border-box;
}

/* Font helpers not coverable by Tailwind CDN */
h1,
h2,
h3,
.serif {
    font-family: "Inter", serif;
}

/* Animated underline for nav links */
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: #e4c97e;
    transition: width 0.25s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Dropdown wrapper */
.nav-item {
    position: relative;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Dropdown menu */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: rgba(15, 27, 45, 0.98);
    border: 1px solid rgba(201, 168, 76, 0.2);
    min-width: 210px;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
    z-index: 300;
}

/* Segitiga kecil atas dropdown */
.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(201, 168, 76, 0.2);
}

/* Tutup gap antara link dan dropdown dengan invisible bridge */
.nav-dropdown::after {
    content: "";
    position: absolute;
    top: -14px; /* sama dengan gap (top: calc(100% + 14px)) */
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown a {
    display: block;
    padding: 11px 18px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition:
        color 0.2s,
        background 0.2s;
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    color: #e2c97e;
    background: rgba(255, 255, 255, 0.03);
}

/* Chevron kecil di sebelah label */
.has-dropdown > a::after {
    content: "";
    font-size: 0.6rem;
    opacity: 0.5;
    display: inline-block;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 {
    transition-delay: 0.1s;
}
.reveal-delay-2 {
    transition-delay: 0.2s;
}
.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* Why item hover line */
.why-item-line {
    position: absolute;
    bottom: 0;
    left: 2.5rem;
    width: 0;
    height: 1px;
    background: #c9a84c;
    transition: width 0.4s ease;
}
.why-item:hover .why-item-line {
    width: 32px;
}

/* Hero animation initial state */
.hero-anim {
    opacity: 0;
}

/* Mobile menu open/close */
#mobileMenu {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.card-img {
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tour-card:hover .card-img {
    transform: scale(1.06);
}
.tour-card {
    transition: box-shadow 0.3s ease;
}
.tour-card:hover {
    box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.18);
}
.badge {
    backdrop-filter: blur(6px);
}
