/* Header Styles - Exact Parity with GCC Landing Page (Glassmorphism) */
.custom-header {
    width: 100%;
    z-index: 1000;
    position: relative;
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-navbar {
    background-color: transparent !important; /* Let the header background show through */
    padding: 15px 0;
    transition: all 0.4s ease;
}

/* Sticky State */
.custom-navbar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: rgba(26, 26, 26, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    z-index: 9999;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px; /* Matched to GCC landing page logo height */
    width: auto;
    transition: all 0.3s ease;
}

.custom-navbar.sticky .logo-img {
    height: 40px;
}

.navbar-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px; /* Matched to GCC landing page gap */
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.85rem; /* Matched to GCC landing page */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 10px 0;
    font-family: 'Titillium Web', sans-serif;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: #d81f26 !important;
}

/* Hover underline effect from GCC page */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d81f26;
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-item.active .nav-link::after {
    width: 100%;
}

/* Dropdown Styles */
.has-dropdown {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1a1a1a !important;
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top: 3px solid #d81f26;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    list-style: none;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background-color: rgba(216, 31, 38, 0.1);
    color: #d81f26 !important;
    padding-left: 30px;
    border-left: 3px solid #d81f26;
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
}

/* CTA Button in Header */
.nav-cta .btn-quote {
    background-color: #d81f26;
    color: #ffffff !important;
    padding: 10px 30px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.nav-cta .btn-quote:hover {
    background-color: #b7181d;
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .navbar-toggle {
        display: flex;
    }
    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        max-height: 0;
        overflow-y: auto;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        flex-direction: column;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .navbar-menu.active {
        max-height: calc(100vh - 80px);
    }
    .nav-list {
        flex-direction: column;
        padding: 20px 0;
        gap: 0;
    }
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .nav-link {
        padding: 15px 25px;
        display: block;
    }
    .nav-link::after {
        display: none;
    }
    
    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* Controlled by JS or active class */
        background-color: #222222 !important;
        box-shadow: none;
        border-top: none;
        padding: 0;
        width: 100%;
    }
    .has-dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown-link {
        padding: 12px 40px;
        background-color: transparent !important;
    }
    .dropdown-link:hover {
        padding-left: 45px;
    }

    .nav-cta {
        padding: 20px 25px;
        border-bottom: none;
    }
    .nav-cta .btn-quote {
        margin: 0;
        width: 100%;
        text-align: center;
        display: block;
    }
}

/* Horizontal/Tablet specific tweaks */
@media (min-width: 992px) and (max-width: 1200px) {
    .nav-list {
        gap: 15px;
    }
    .nav-link {
        font-size: 0.8rem;
    }
}
