/* Centralised Header Component Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(6, 14, 34, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    width: 100%;
}

.header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
    gap: 32px !important;
}

@media (min-width: 1200px) {
    .header .container {
        padding: 0 48px !important;
        max-width: 1440px !important;
    }
}

.logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.logo img {
    height: 36px !important;
    width: auto !important;
    display: block !important;
    max-width: 180px !important;
    object-fit: contain !important;
}

.nav {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
    flex-wrap: nowrap !important;
}

.nav a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap !important;
    transition: color 0.2s;
}

.nav a:hover, .nav a.active {
    color: #ffffff;
}

.nav-item.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 0;
    cursor: pointer;
    white-space: nowrap !important;
    transition: color 0.2s;
}

.dropdown-toggle:hover, .nav-item.dropdown:hover .dropdown-toggle {
    color: #ffffff;
}

.dropdown-arrow {
    font-size: 9px;
    transition: transform 0.2s;
    opacity: 0.7;
}

.nav-item.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    width: 410px;
    background: #08142c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
}

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

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

.dropdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-item-icon svg {
    width: 18px;
    height: 18px;
}

.dropdown-item-text {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-item-desc {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.3;
}

/* Styled Primary Get in Touch Button */
.nav-cta-btn {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    padding: 10px 22px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.nav-cta-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
    color: #ffffff !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s;
}

@media (max-width: 1024px) {
    .header .container {
        padding: 0 24px !important;
        gap: 16px !important;
    }
    .nav {
        gap: 20px !important;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #060e22;
        flex-direction: column;
        padding: 24px;
        gap: 18px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        align-items: stretch !important;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    .header .nav.active {
        display: flex !important;
    }
    .mobile-menu-btn {
        display: block !important;
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .nav-item.dropdown {
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 8px;
        margin-top: 8px;
        box-shadow: none;
        display: none;
        box-sizing: border-box;
    }
    .nav-item.dropdown.active .dropdown-menu {
        display: block;
    }
}
