/* ========================================
   HEADER STYLES - EXACT Match Original Website
======================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10002; /* Above overlays (popup/loading/perf HUD) */
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Top Contact Bar - Navy Blue Header */
.top-contact-bar {
    background: var(--header-navy);  /* Navy blue header */
    color: var(--white);
    padding: 12px 0;
}

.top-contact-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

/* Group logo and contact together */
.header-left-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    flex: 0 0 auto;
}

.header-logo-img {
    height: 50px;
    width: auto;
}

.header-contact {
    flex: 0 0 auto;
    margin-left: 20px;
}

.contact-whatsapp-text {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-whatsapp-text:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.header-social {
    flex: 0 0 auto;
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    color: var(--white);
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-green);
    transform: translateY(-2px);
}

/* Legacy styles - keeping for backward compatibility */
.contact-items {
    display: flex;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.1rem;
    color: var(--primary-blue-light);  /* Use lighter blue for icons on dark background */
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-value {
    font-size: 1.2rem;          /* Larger phone number */
    font-weight: 700;           /* Bolder */
    color: var(--white);
    line-height: 1.2;
    letter-spacing: 0.5px;      /* Better readability */
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.header-trust-badges {
    display: flex;
    gap: 15px;
    align-items: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.trust-badge i {
    font-size: 0.9rem;
    color: var(--primary-orange);
}

.trust-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.social-media-icons {
    display: flex;
    gap: 12px;
}

/* Duplication because original main.css repeated this for another section */
.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--white);
    color: var(--primary-blue); /* Darker blue now has good contrast on white */
    transform: scale(1.1);
}

.social-icon i {
    font-size: 0.9rem;
}

/* Main Navigation - Clean White */
.main-navigation {
    background: var(--white);
    padding: 10px 0; /* Reduced from 15px to 10px */
    border-bottom: 1px solid #E2E8F0;
}

.main-navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Match banner container padding for logo alignment */
}

.nav-logo {
    flex-shrink: 0;
}

.logo-img {
    height: 55px; /* Balanced size considering PNG whitespace */
    width: auto;
}

.navigation-menu {
    display: flex;
    list-style: none;
    gap: 25px;              /* Further reduced gap for compact navbar */
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--black);  /* Professional black */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
}

.has-dropdown:hover .dropdown-submenu,
.dropdown-submenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-submenu li {
    list-style: none;
}

.dropdown-submenu a {
    display: block;
    padding: 10px 20px;
    color: var(--black);  /* Professional black */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dropdown-submenu a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
    padding-left: 25px;
}

.booking-cta-btn {
    background: var(--button-blue);  /* Updated for better contrast */
    color: var(--white);
    padding: 10px 30px;             /* Exact padding dari original */
    border-radius: 12px;            /* Exact border radius dari original */
    border: 1.6px solid var(--white);  /* White border seperti original */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;                /* Exact font size dari original */
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3); /* Updated shadow color */
    display: inline-block;
}

.booking-cta-btn:hover {
    background: var(--primary-orange);  /* Orange hover from database */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 130, 32, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 5px;
    background: none;
    border: none;
    position: relative;
    z-index: 10060; /* Above popup overlay (10050) */
    pointer-events: auto; /* Ensure it can be clicked */
}

.mobile-menu-toggle span,
.mobile-menu-toggle .toggle-line {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

/* Animation for mobile menu toggle */
.mobile-menu-toggle.active span:nth-child(1),
.mobile-menu-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2),
.mobile-menu-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3),
.mobile-menu-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   MOBILE RESPONSIVE - FIX LAYOUT ISSUES
======================================== */
@media (max-width: 768px) {
    .top-contact-bar .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 15px;
    }

    /* Mobile Header Layout */
    .header-left-group {
        flex-direction: column;
        gap: 10px;
    }

    .header-logo-img {
        height: 40px;
    }

    .header-contact {
        text-align: center;
    }

    .header-social {
        justify-content: center;
        gap: 20px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .contact-items {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact-item {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .contact-value {
        font-size: 1rem;       /* Keep phone number readable on mobile */
    }

    .contact-label {
        font-size: 0.7rem;
    }

    .header-trust-badges {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .trust-badge {
        padding: 6px 10px;
    }

    .trust-badge span {
        font-size: 0.75rem;
    }

    .social-media-icons {
        gap: 8px;
        justify-content: center;
    }

    .navigation-menu {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        z-index: 10055; /* Higher than popup overlay (10050) */
        border-radius: 0 0 12px 12px;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .navigation-menu.mobile-active {
        display: flex !important;
    }

    .nav-item {
        border-bottom: 1px solid var(--light-gray);
        width: 100%;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 15px 20px;
        display: block;
        width: 100%;
        color: var(--black);  /* Professional black */
        font-weight: 600;
        line-height: 1.2;
    }

    .nav-link:hover {
        background: var(--light-gray);
        color: var(--primary-blue);
    }

    /* Dropdown in mobile */
    .dropdown-submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown-submenu.active {
        max-height: 500px;
        padding: 10px 0;
    }

    .dropdown-submenu a {
        padding: 12px 30px;
        border-top: 1px solid var(--light-gray);
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (min-width: 769px) {
    .navigation-menu {
        display: flex !important;
    }
}

