/* --- RESET & GLOBAL --- */
:root {
    --navy: #1A5B7A;
    --navy-dark: #13455C;
    --green: #2C9C4B;
    --gold: #F1B524;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; }

.text-gold { color: var(--gold); }

/* --- NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 50px; width: auto; object-fit: contain; }

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 0.5px;
}
.nav-links a:hover { color: var(--gold); }

.btn-wa-nav {
    background: var(--navy);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(42, 91, 177, 0.2);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-wa-nav:hover { background: var(--navy-dark); transform: translateY(-2px); }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .logo img { height: 40px; }
    .btn-wa-nav { padding: 8px 15px; font-size: 0.75rem; }
}

/* --- HAMBURGER MENU (MOBILE NAV) --- */
.hamburger-btn {
    display: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--navy);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Item WA di dalam menu hamburger, disembunyikan di desktop */
.wa-mobile-item {
    display: none;
}

@media (max-width: 900px) {
    .nav-wrapper {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-contact {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Sembunyikan tombol WA pill di navbar, karena sudah pindah ke dalam hamburger */
    .nav-contact .btn-wa-nav {
        display: none;
    }

    .hamburger-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        padding: 10px 20px;
        box-shadow: 0 15px 25px rgba(0,0,0,0.08);
        border-top: 1px solid #eef2f6;
        z-index: 999;
    }

    .nav-links.mobile-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 5px;
        font-size: 0.85rem;
    }

    /* Tombol WA di dalam hamburger, tampil beda dari link menu biasa */
    .wa-mobile-item {
        display: block;
        margin-top: 8px;
    }

    .wa-mobile-item a {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--navy);
        color: #fff !important;
        text-transform: none !important;
        font-weight: 700;
        padding: 12px !important;
        border-radius: 50px;
    }
}

/* --- HERO PRODUK (lebih pendek dari hero homepage) --- */
.hero-produk {
    position: relative;
    height: 45vh;
    min-height: 320px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(26, 91, 122, 0.5), rgba(19, 69, 92, 0.9));
}

.hero-content { width: 100%; z-index: 1; }
.hero-content h1 {
    font-size: 2.6rem;
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.5);
}
.hero-content p {
    font-size: 1.05rem;
    opacity: 0.9;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-produk { height: 38vh; min-height: 260px; }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content p { font-size: 0.9rem; }
}

/* --- PACKAGE GRID & HEADER --- */
.packages { padding: 60px 0 100px; }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; color: var(--navy); font-weight: 900; margin-bottom: 10px; }
.section-header p { color: #64748b; font-size: 1.1rem; max-width: 600px; margin: 0 auto; line-height: 1.6; }

@media (max-width: 768px) {
    .section-header h2 { font-size: 1.8rem; }
    .section-header p { font-size: 0.9rem; padding: 0 15px; }
}

.package-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-pill {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: var(--navy);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.25s;
}

.filter-pill:hover {
    border-color: var(--navy);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    box-shadow: 0 8px 18px rgba(26, 91, 122, 0.25);
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

@media (max-width: 768px) {
    /* --- FIX FILTER: SLIDE HORIZONTAL, JANGAN WRAP KE BAWAH --- */
    .package-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding: 4px 16px 12px;
        margin: 0 -16px 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .package-filter::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .filter-pill {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    /* --- FIX HARGA: TUMPUK KE BAWAH, JANGAN SEJAJAR SUPAYA GAK KEPOTONG --- */
    .p-price {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        white-space: nowrap;
    }

    .p-price span {
        display: inline-block;
    }
}

/* --- CARD: flex column biar tombol bisa didorong ke bawah rata --- */
.p-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.p-card:hover { transform: scale(1.02); }

.p-img { position: relative; height: 220px; flex-shrink: 0; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }

.p-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--green);
    color: white;
    padding: 5px 12px; border-radius: 50px; font-size: 0.7rem; font-weight: 800;
}

.p-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.p-info h3 { font-size: 1.3rem; margin-bottom: 10px; min-height: 52px; }

.p-features { list-style: none; padding: 0; margin-bottom: 15px; font-size: 0.85rem; color: #64748b; }
.p-features li { margin-bottom: 6px; }
.p-features i { margin-right: 6px; }

/* Ruang kosong "ngumpul" di sini, mendorong harga+tombol ke bawah */
.p-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    margin: 15px 0;
    margin-top: auto;
}
.p-price span { font-size: 0.8rem; color: #94a3b8; font-weight: 400; }

.btn-detail {
    width: 100%;
    background: var(--text-main);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: block;
    text-align: center;
    text-decoration: none;
}
.btn-detail:hover { background: var(--navy); }

@media (max-width: 768px) {
    .package-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
        padding: 0;
        justify-content: initial;
        align-items: stretch;
    }

    .p-card {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(0,0,0,0.08);
        height: 100%;
    }

    .p-card:hover { transform: none; }

    .p-img { height: 140px; }

    .p-badge {
        top: 10px;
        left: 10px;
        padding: 4px 9px;
        font-size: 0.62rem;
    }

    .p-info { padding: 12px; }
    .p-info h3 {
        font-size: 0.92rem;
        line-height: 1.3;
        min-height: 40px;
        margin-bottom: 6px;
    }

    .p-features {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .p-features li {
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .p-price {
        font-size: 1rem;
        margin: 8px 0;
        margin-top: auto;
    }

    .btn-detail {
        padding: 9px;
        border-radius: 10px;
        font-size: 0.78rem;
    }
}

/* --- FOOTER --- */
footer {
    padding: 100px 0 50px;
    background-color: #0D2E3D;
    color: #cbd5e1;
    text-align: center;
    border-top: 4px solid var(--gold);
}

.footer-logo {
    width: 200px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-social-pure {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 50px;
}

.footer-social-pure a {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.4s;
    border: 1px solid rgba(255,255,255,0.1);
}

.footer-social-pure a:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(198, 154, 83, 0.3);
}

.footer-copy {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.8rem;
    color: #64748b;
}