/* ============================
   GLOBAL THEME COLORS
============================ */
:root {
    --brown-dark: #3E2723;
    --brown: #4E342E;
    --brown-light: #8d6363;
    --black-soft: #212121;
    --text-light: #f9f9f9;
}

/* ============================
   GENERAL STYLING
============================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ============================
   HERO STATIC SECTION
============================ */
.jumbotron,
.hero-custom {
    background: linear-gradient(rgba(33, 33, 33, 0.75), rgba(33, 33, 33, 0.75)),
                url('https://source.unsplash.com/random/1600x400/?indonesia,nature,travel')
                no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    padding: 100px 0;
    margin: 0;
}

.hero-custom h1 {
    font-weight: 700;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* ============================
   CARD DESIGN
============================ */
.card {
    border: none;
    border-radius: 12px;
    background-color: var(--brown);
    color: #ffffff;
    transition: transform 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.card-title {
    font-weight: 600;
}

/* ============================
   BUTTONS
============================ */
.btn-primary {
    background-color: var(--brown-dark) !important;
    border: none !important;
}
.btn-primary:hover {
    background-color: var(--black-soft) !important;
}

.btn-outline-primary {
    border-color: var(--brown-light) !important;
    color: var(--brown-light) !important;
}
.btn-outline-primary:hover {
    background-color: var(--brown-light) !important;
    color: #fff !important;
}

.btn-success {
    background-color: var(--black-soft) !important;
    border: none !important;
}
.btn-success:hover {
    background-color: #000 !important;
}

/* ============================
   NAVBAR FIX (FULL RESPONSIVE + MOBILE)
============================ */
.navbar {
    background-color: var(--brown-dark) !important;
}

.navbar-brand,
.nav-link {
    color: var(--text-light) !important;
}

.nav-link:hover {
    color: var(--brown-light) !important;
}

/* Dropdown */
.navbar .dropdown-menu {
    background-color: var(--brown-dark) !important;
    border: none !important;
}
.navbar .dropdown-menu .dropdown-item {
    color: white !important;
}
.navbar .dropdown-menu .dropdown-item:hover {
    background-color: var(--brown) !important;
}

/* MOBILE NAVBAR FIX */
@media (max-width: 992px) {
    #navbarNav {
        background-color: var(--brown-dark) !important;
        padding: 12px;
        border-radius: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .navbar-toggler {
        border-color: rgba(255,255,255,0.7) !important;
    }

    .navbar-toggler-icon {
        filter: brightness(0) invert(1);
    }
}

/* ============================
   SIDEBAR (PC)
============================ */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 240px;
    z-index: 100;
    padding: 48px 0 0;
    background-color: #5a3e2b !important;
    color: #fff;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.15);
}

.sidebar .nav-link {
    font-weight: 500;
    color: #eee;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

.sidebar .nav-link:hover {
    background-color: #704e36 !important;
    color: white;
}

.sidebar-heading {
    font-size: .8rem;
    text-transform: uppercase;
    padding: 1rem;
    font-weight: 700;
    color: #ddd;
}

/* ============================
   MAIN CONTENT MARGIN (PC)
============================ */
.pelanggan-main {
    margin-left: 240px;
}

/* ============================
   SIDEBAR RESPONSIVE (HP)
============================ */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -250px;
        top: 0;
        width: 250px;
        height: 100%;
        z-index: 999;
        transition: 0.3s;
    }

    .sidebar.show {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        background: var(--brown);
        padding: 8px 12px;
        color: white;
        border-radius: 8px;
        z-index: 1000;
    }

    .pelanggan-main {
        margin-left: 0 !important;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* ============================
   HERO VIDEO (MOVING BACKGROUND)
============================ */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.hero-text {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    text-shadow: 0 3px 15px rgba(0,0,0,0.8);
}

.hero-text p {
    font-size: 18px;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* ============================
   HERO PARIWISATA
============================ */
.hero-pariwisata {
    background: linear-gradient(
                rgba(32, 24, 15, 0.85),
                rgba(0, 51, 102, 0.85)
            ),
            url('https://source.unsplash.com/random/1600x400/?beach,travel,indonesia')
            no-repeat center center;

    background-size: cover;
    padding: 140px 0;
    color: white;
}

/* ============================
   FOOTER
============================ */
footer {
    background-color: var(--black-soft) !important;
    color: #ffffff;
    padding: 2rem 0;
}

/* ============================
   CTA SECTION
============================ */
.cta-container {
    background-color: var(--brown-dark);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

/* ============================
   FIX WHITE BACKGROUND (MODE PELANGGAN)
============================ */
body.pelanggan-mode {
    background-color: #E6DFD9 !important;
}

body.pelanggan-mode .container-fluid,
body.pelanggan-mode .row,
body.pelanggan-mode main {
    background: transparent !important;
    box-shadow: none !important;
}

/* ============================
   CARD RESPONSIVE FIX
============================ */
@media (max-width: 768px) {
    .card-img-top {
        height: 150px;
    }
}

/* ============================
    HERO RESPONSIVE (HP)
============================ */
@media (max-width: 768px) {
    .hero-video-container {
        height: 260px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 15px;
    }
}

/* Tombol Scroll ke Atas */
.btn-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #8B4513; /* coklat tua biar serasi yg kamu pakai */
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

/* Saat tombol muncul */
.btn-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsif untuk HP */
@media (max-width: 576px) {
    .btn-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}

