/* ---------- reset & base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', sans-serif;
    background: #F8FAFC;
    color: #0F172A;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- color tokens ---------- */
:root {
    --primary: #1769E0;
    --primary-dark: #2563EB;
    --sky: #3B82F6;
    --sky-light: #60A5FA;
    --green-deep: #166534;
    --green: #15803D;
    --green-light: #22C55E;
    --light-bg: #F5FAFF;
    --dark: #0F172A;
    --dark-green: #123524;
    --white: #FFFFFF;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    --radius: 20px;
}

/* ---------- navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

/* ============================================
   NAV DROPDOWN
   ============================================ */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
    transition: 0.2s;
}

.navbar.scrolled .dropdown-toggle {
    color: var(--dark);
}

.dropdown-toggle:hover {
    color: white;
}

.navbar.scrolled .dropdown-toggle:hover {
    color: var(--primary);
}

.dropdown-toggle svg {
    transition: transform 0.25s ease;
}

/* Rotate chevron saat terbuka */
.nav-dropdown.open .dropdown-toggle svg {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 100;
    list-style: none;
    border: 1px solid #f1f5f9;
}

/* Arrow kecil di atas dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-top: 1px solid #f1f5f9;
    border-left: 1px solid #f1f5f9;
    border-radius: 2px;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark) !important;
    border-radius: 10px;
    transition: 0.18s;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: #f1f5f9;
    color: var(--primary) !important;
    padding-left: 20px;
}

/* Active state untuk item dropdown */
.dropdown-menu a.active {
    background: #eef2ff;
    color: var(--primary) !important;
    font-weight: 600;
}

/* Responsive: sembunyikan dropdown di mobile (karena pakai hamburger) */
@media (max-width: 768px) {
    .nav-dropdown {
        display: none;
    }
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.6rem;
    color: white;
    transition: color 0.2s;
}

.navbar.scrolled .nav-logo {
    color: var(--dark);
}

.logo-mark {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-mark svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: 0.2s;
    letter-spacing: 0.3px;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a:hover {
    color: white;
}

.navbar.scrolled .nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-actions .btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 18px;
    border-radius: 40px;
    font-weight: 500;
    transition: 0.2s;
    font-size: 0.9rem;
}

.navbar.scrolled .nav-actions .btn-outline-light {
    border-color: var(--primary);
    color: var(--primary);
}

.nav-actions .btn-outline-light:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.navbar.scrolled .nav-actions .btn-outline-light:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.search-icon {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.navbar.scrolled .search-icon {
    color: var(--dark);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: white;
    border-radius: 4px;
    transition: 0.2s;
}

.navbar.scrolled .hamburger span {
    background: var(--dark);
}

/* mobile menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    padding: 20px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    gap: 16px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-weight: 500;
    color: var(--dark);
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* ---------- hero ---------- */
.hero {
    min-height: 100vh;
    background: url('https://traverse.id/wp-content/uploads/2020/01/Gunung-Dua-Sudara-www.traverse.id_.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(10, 30, 50, 0.72) 20%, rgba(6, 40, 30, 0.55) 90%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
    text-align: center;
    /* 1. Meratakan teks ke tengah */
}

.hero-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: 20px;
    letter-spacing: -1px;
    margin-inline: auto;
    /* 2. Memposisikan kotak h1 di tengah */
}

.hero h1 span {
    color: var(--sky-light);
}

.hero p {
    font-size: 1.2rem;
    max-width: 540px;
    opacity: 0.9;
    margin-bottom: 32px;
    margin-inline: auto;
    /* 3. Memposisikan kotak p di tengah */
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    /* 4. Meratakan tombol-tombol ke tengah */
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 34px;
    border-radius: 60px;
    font-weight: 600;
    border: none;
    transition: 0.25s;
    box-shadow: 0 8px 20px rgba(23, 105, 224, 0.3);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background: #1a5bc7;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(23, 105, 224, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 14px 34px;
    border-radius: 60px;
    font-weight: 600;
    transition: 0.25s;
    cursor: pointer;
    font-size: 1rem;
}

.btn-outline:hover {
    background: white;
    color: var(--dark);
    border-color: white;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    padding: 20px 28px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    margin-inline: auto;
}

.hero-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.hero-stats .stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
}

.hero-stats .stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- sections common ---------- */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    color: #334155;
    max-width: 640px;
}

.section-label {
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 28px 20px;
    box-shadow: var(--shadow);
    transition: 0.25s;
    border: 1px solid #f1f5f9;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.card svg {
    display: inline-block;
    color: var(--primary);
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card p {
    color: #475569;
    font-size: 0.95rem;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    margin-top: 16px;
    display: inline-block;
}

/* ---------- about section ---------- */
.about-img {
    min-height: 300px;
    border-radius: var(--radius);
    background: url('https://i.pinimg.com/1200x/b2/f0/d8/b2f0d863cab1d5c77eff509daa40c3f1.jpg') center/cover;
}

.highlight-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.chip {
    background: #eef2ff;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 500;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ---------- map section ---------- */
.map-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.map-container {
    flex: 2;
    min-height: 480px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-panel {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.map-panel h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.filter-btn {
    background: #f1f5f9;
    border: none;
    padding: 6px 16px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.15s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.filter-btn:hover {
    background: var(--primary);
    color: white;
}

/* ---------- natural resources ---------- */
.asymmetric-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    margin-top: 30px;
}

.res-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.25s;
}

.res-card:hover {
    transform: translateY(-4px);
}

.res-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.res-card .overlay {
    padding: 20px;
}

.res-card .overlay h3 {
    margin-bottom: 6px;
}

/* ---------- tourism horizontal scroll ---------- */
.scroll-horizontal {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 30px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-horizontal .card {
    min-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ---------- timeline ---------- */
.timeline {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
}

.timeline-item {
    min-width: 200px;
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
}

/* ---------- CTA ---------- */
.cta-wrapper {
    background: linear-gradient(135deg, #0b2a4a, #0e3d2e);
    color: white;
    border-radius: var(--radius);
    padding: 70px 40px;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-wrapper h2 {
    font-size: 2.8rem;
}

.cta-btn {
    background: white !important;
    color: var(--dark) !important;
    box-shadow: none !important;
    margin-top: 24px;
}

.cta-btn:hover {
    background: #f0f4f8 !important;
}

/* ---------- footer ---------- */
.footer {
    background: var(--dark-green);
    color: rgba(255, 255, 255, 0.8);
    padding: 48px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: 0.2s;
    line-height: 2;
}

.footer a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: 0.2s;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.16);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }

    .map-wrapper {
        flex-direction: column;
    }

    .asymmetric-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn-outline-light {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-stats {
        border-radius: 28px;
        padding: 16px 20px;
        gap: 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .map-container {
        min-height: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-wrapper {
        padding: 40px 20px;
    }

    .cta-wrapper h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        border-radius: 20px;
    }

    .scroll-horizontal .card {
        min-width: 200px;
    }

}

/* ============================================
   CONTACT SECTION
   ============================================ */
.section-contact {
    padding: 80px 0;
}

.contact-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.contact-header .section-sub {
    margin: 0 auto;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* --- Info Cards --- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 16px;
    background: white;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    transition: 0.25s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-detail h4 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: var(--dark);
}

.contact-detail p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}

.contact-social {
    margin-top: 8px;
    padding: 20px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.contact-social p {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.social-icons-dark {
    display: flex;
    gap: 10px;
}

.social-icons-dark a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #f1f5f9;
    color: var(--primary);
    transition: 0.2s;
}

.social-icons-dark a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* --- Form --- */
.contact-form-wrapper {
    background: white;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.contact-form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.form-desc {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: inherit;
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--dark);
    transition: 0.2s;
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #475569;
}

.form-check input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.form-check label {
    cursor: pointer;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
}

.form-status {
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: 12px;
    display: none;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-status.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* --- Office Map --- */
.office-map-wrapper {
    margin-top: 48px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
}

.office-map-header {
    padding: 24px 28px 16px;
}

.office-map-header h3 {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.office-map-header p {
    color: #475569;
    font-size: 0.95rem;
}

.office-map {
    width: 100%;
    height: 360px;
}

/* --- Responsive Contact --- */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .office-map {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .contact-card {
        padding: 16px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }

    .contact-detail h4 {
        font-size: 0.95rem;
    }

    .contact-detail p {
        font-size: 0.85rem;
    }
}