:root {
    --primary: #d70000;
    --dark: #0b0b0b;
    --muted: #6b7280;
    --bg: #ffffff;
    --radius: 18px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* === GLOBAL RESET === */
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: #fff;
    color: #111;
    font-family: "Poppins", "Segoe UI", sans-serif;
    line-height: 1.6;
}
*,
*::before,
*::after {
    box-sizing: inherit;
}
body,
button,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    color: #fff;
    transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.navbar.scrolled,
.page--inner .navbar {
    background: #fff;
    color: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.navbar a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.navbar .brand img {
    height: 34px;
    border-radius: 6px;
}

.navbar.scrolled .brand,
.page--inner .navbar .brand,
.navbar.scrolled nav a:not(.cta),
.page--inner .navbar nav a:not(.cta) {
    color: #111;
}

/* NAV LINKS (DESKTOP) */
.navbar nav {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 300;
}

/* CTA */
.navbar .cta {
    background: var(--primary);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}
.navbar .cta:hover {
    transform: translateY(-2px);
    background: #b60000;
}

/* === HAMBURGER BUTTON === */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.navbar.scrolled .menu-toggle span,
.page--inner .navbar .menu-toggle span {
    background: #111;
}
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === MOBILE MENU === */
@media (max-width: 900px) {
    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right 0.4s ease;
        z-index: 1000;
    }
    .navbar nav.open {
        right: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    }
    .navbar nav a {
        color: #111;
        font-size: 18px;
    }
    .navbar .cta {
        padding: 12px 20px;
        font-size: 16px;
    }
    .menu-toggle {
        display: flex;
    }
}

/* === NAVBAR STATES === */
.page--home .navbar {
    background: transparent;
    color: #fff;
}
.page--home .navbar.scrolled {
    background: #fff;
    color: #111;
}
.page--home .navbar .menu-toggle span {
    background: #fff;
}
.page--home .navbar.scrolled .menu-toggle span,
.page--inner .navbar .menu-toggle span {
    background: #111;
}
.page--home .navbar:not(.scrolled) .menu-toggle.active span {
    background: #111 !important;
}

/* === FIX UNTUK HALAMAN INNER TIDAK TERTUTUP NAVBAR === */
.page--inner main.container.page-content {
    padding-top: 100px; /* sesuaikan tinggi navbar */
    background: #fff;
    position: relative;
    z-index: 1;
}

/* === NAVBAR DROPDOWN === */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px; /* sedikit jarak alami antara teks dan panah */
}

.dropdown-toggle {
    position: relative;
    z-index: 1;
    padding-right: 0;
    user-select: none;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
}

.dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-size: 1.3em;
    color: inherit;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 3;
    pointer-events: auto;
    transition: transform 0.25s ease;
}

/* Saat dropdown aktif */
.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Pastikan area klik <a> tidak overlap ke panah */
.dropdown-toggle::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: transparent;
    pointer-events: none;
}

/* Submenu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: var(--primary);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

@media (min-width: 901px) {
    .dropdown:hover .dropdown-menu {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }
}

/* Item di dropdown */
.dropdown-menu a {
    display: block;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    padding: 12px 18px;
    font-weight: 600;
    transition: all 0.25s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.dropdown-menu a:hover {
    background: #fff;
    color: var(--primary);
}

/* === JAGA WARNA MERAH & TEKS PUTIH DI SEMUA KONDISI === */
.navbar .dropdown-menu,
.navbar.scrolled .dropdown-menu,
.page--inner .navbar .dropdown-menu {
    background: var(--primary);
}
.navbar .dropdown-menu a,
.navbar.scrolled .dropdown-menu a,
.page--inner .navbar .dropdown-menu a {
    color: #fff !important;
    background: var(--primary);
}
.navbar .dropdown-menu a:hover,
.navbar.scrolled .dropdown-menu a:hover,
.page--inner .navbar .dropdown-menu a:hover {
    background: #fff;
    color: var(--primary) !important;
}

@media (max-width: 900px) {
    .dropdown {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 0px;
        position: relative;
    }

    .dropdown:not(.active) .dropdown-menu {
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }

    /* area teks utama dan panah tetap */
    .dropdown-toggle {
        display: flex;
        align-items: center;
        gap: 4px;
        position: relative;
        z-index: 2;
        pointer-events: auto;
    }

    .dropdown-arrow {
        color: #111 !important;
        background: none;
        border: none;
        font-size: 1.4em;
        line-height: 1;
        padding: 0 !important;
        margin: 0 !important;
        cursor: pointer;
        pointer-events: auto;
        position: relative;
        z-index: 5;
        transform: translateY(1px);
    }

    .dropdown.active .dropdown-arrow {
        pointer-events: auto;
    }

    /* ANIMASI & TAMPILAN MENU (MOBILE) */
    .dropdown-menu {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 85%;
        background: var(--primary);
        margin-top: 8px;
        border-radius: 16px;
        padding: 8px 0;
        opacity: 0;
        max-height: 0;
        transform: translateY(-8px);
        transition: all 0.35s ease;
        overflow: hidden;
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
        pointer-events: none;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 400px;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-menu a {
        color: #fff;
        background: var(--primary);
        border: none;
        width: 100%;
        text-align: center;
        border-radius: 8px;
        margin: 4px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }

    .dropdown-menu a:hover {
        color: var(--primary);
        background: #fff;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .dropdown-menu a:last-child {
        border-bottom: none;
    }
}

/* === HERO (PARALLAX) === */
.hero {
    min-height: 100vh; /* lebih fleksibel daripada height fix */
    width: 100%; /* jangan 100vw — biar tak ikut scrollbar */
    background: url("/images/hero-dekstop.webp") center center / cover no-repeat
        fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0; /* pastikan tak ada margin atas */
    padding: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero .title {
    font-size: 52px;
    font-weight: 700;
}
.hero .title span {
    color: var(--primary);
}
.hero .subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 20px 0 30px;
}
.btn {
    background: var(--primary);
    color: #fff;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn:hover {
    background: #b60000;
    transform: translateY(-2px);
}
.btn.outline {
    background: transparent;
    border: 2px solid #fff;
}
.btn.outline:hover {
    background: #fff;
    color: var(--primary);
}

/* === SECTIONS === */
.why-us,
.grid,
.banner {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
}
.feature-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-5px);
}
.feature-card img {
    height: 60px;
    margin-bottom: 18px;
}

/* === HERO MOBILE VERSION === */
@media (max-width: 768px) {
    .hero {
        background: url("/images/hero-mobile.webp") center center / cover
            no-repeat scroll;
        min-height: 100vh;
        height: 100svh; /* viewport aman di mobile modern */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 16px;
        background-attachment: scroll; /* fix bug parallax iOS */
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0);
    }

    .hero-content {
        max-width: 90%;
        padding: 0 10px;
    }

    .hero .title {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero .subtitle {
        font-size: 16px;
        margin: 16px 0 24px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 15px;
    }

    .actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}

/* === FIX: TOUR HIGHLIGHTS GRID === */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    justify-content: center; /* pastikan 1-2 card tetap di tengah */
}

/* === Card Layout Consistency === */
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}

.card-img {
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover::after {
    opacity: 1;
}

.card-body {
    flex: 1;
    padding: 18px 20px 20px;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
}

.card-body p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.card-footer .price {
    color: #d70000;
    font-weight: 700;
    font-size: 1rem;
}

.card-footer .link {
    color: #d70000;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-footer .link:hover {
    text-decoration: underline;
}

.link.btn {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.link.btn:hover {
    background: #b60000;
    transform: translateY(-2px);
    text-decoration: none;
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 900px) {
    .packages-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 600px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
}

/* === BANNER === */
.banner {
    text-align: center;
    background: linear-gradient(120deg, #fff0f0, #ffeaea);
    padding: 60px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.banner h2 {
    font-size: 26px;
    margin-bottom: 10px;
}
.banner p {
    color: var(--muted);
}
.mt-3 {
    margin-top: 18px;
} /* (dedupe: pastikan hanya sekali deklarasi) */

/* === FOOTER === */
.footer {
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    padding: 25px 10px;
    color: #555;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.footer-left a {
    color: #d70000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-left a:hover {
    color: #a50000;
    text-decoration: underline;
}

.footer-right {
    font-size: 13px;
    color: #777;
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* === FADE-IN ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Fade-in delay per card untuk tampilan grid */
.package-card.fade-in:nth-child(1) {
    transition-delay: 0.1s;
}
.package-card.fade-in:nth-child(2) {
    transition-delay: 0.2s;
}
.package-card.fade-in:nth-child(3) {
    transition-delay: 0.3s;
}
.package-card.fade-in:nth-child(4) {
    transition-delay: 0.4s;
}
.package-card.fade-in:nth-child(5) {
    transition-delay: 0.5s;
}
.package-card.fade-in:nth-child(6) {
    transition-delay: 0.6s;
}

/* Halaman */
.page-title {
    font-size: 36px;
    font-weight: 700;
    margin-top: 10px;
    text-align: center;
}
.page-subtitle {
    color: var(--muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
}
.list {
    padding-left: 18px;
    margin: 6px 0 12px;
}
.list li {
    margin-bottom: 4px;
    color: #333;
}
.links {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    max-width: 700px;
    text-align: left;
}
.links li {
    margin: 8px 0;
}
.links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}
.links a:hover {
    color: #b60000;
}
.muted {
    color: var(--muted);
}
.mt-4 {
    margin-top: 32px;
}
.center {
    text-align: center;
}

/* Hover util untuk card yang "lift" */
/* .lift:hover {
    transform: translateY(-6px);
} */

/* === PACKAGE CATEGORY PAGE === */
.package-category {
    padding: 0;
}

/* Header */
.package-header {
    text-align: center;
    margin-bottom: 30px;
}
.package-header h1 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 6px;
}
.package-header p {
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
}
.package-header .back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}
.package-header .back-link:hover {
    color: #a30000;
}

/* Grid */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card */
.package-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.package-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* === KHUSUS untuk halaman Paket Detail === */
.package-category .card-img {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 10px;
}

.package-category .card-img img {
    max-width: 100%;
    height: auto;
    width: auto; /* biar tetap proporsional */
    max-height: 500px; /* biar di desktop gak terlalu tinggi */
    object-fit: contain; /* biar gak kepotong */
    border-radius: var(--radius);
}

/* Card body */
.package-body {
    padding: 16px;
}
.package-body h3 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 8px;
}
.package-body p {
    font-size: 14px;
    color: #555;
}
.package-link {
    margin-top: 0px;
}
.package-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}
.package-link a:hover {
    color: #a30000;
    text-decoration: underline;
}

/* Empty message */
.no-package {
    text-align: center;
    width: 100%;
    font-size: 16px;
    color: #555;
}

/* Pagination */
.package-pagination {
    margin-top: 30px;
    text-align: center;
}

/* === FAQ ACCORDION === */
.faq-item {
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.25s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-question {
    font-weight: 600;
    position: relative;
    padding-right: 24px;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "–";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    margin-top: 12px;
}
