/* SHARED CUSTOM LANDING PAGES HEADER STYLING */


.custom-desktop-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    height: 60px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--border-light) !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: var(--shadow-sm) !important;
}

@media (max-width: 767px) {
    .custom-desktop-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
    }
    /* Specific adjustment for malware emergency banner height on mobile */
    .page-malware .custom-desktop-header {
        top: 38px !important;
    }
    .custom-header-nav {
        display: flex !important;
        flex-grow: 1 !important;
        justify-content: flex-end !important;
    }
    .custom-header-nav > div,
    .custom-header-nav > ul,
    .custom-header-nav > button,
    .custom-header-nav > a {
        margin-left: auto !important;
        margin-right: 0 !important;
    }
    .custom-header-right {
        display: none !important;
    }
    .custom-header-container {
        padding: 0 16px !important;
    }
    .custom-header-logo img {
        max-height: 32px !important;
    }
    .service-hero, .about-section.hero, .portfolio-hero {
        padding-top: 40px !important;
    }
    .page-malware .service-hero {
        padding-top: 40px !important;
    }
}

.custom-header-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 var(--space-4) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.custom-header-logo {
    font-family: var(--font-heading) !important;
    font-size: var(--text-lg) !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    text-decoration: none !important;
    letter-spacing: var(--tracking-tight) !important;
}

.custom-header-nav {
    flex-grow: 1 !important;
    display: flex !important;
    justify-content: center !important;
}

.custom-landing-menu {
    display: flex !important;
    gap: 18px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100% !important;
}

.custom-landing-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
}

.custom-landing-menu li a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--text-secondary) !important;
    font-family: var(--font-heading) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: color 0.2s ease !important;
    padding: 8px 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.custom-landing-menu li a:hover {
    color: var(--accent-page, var(--accent-primary)) !important;
}

.custom-landing-menu li a svg {
    flex-shrink: 0 !important;
    transition: transform 0.2s ease !important;
}

.custom-landing-menu li a:hover svg {
    transform: scale(1.15) !important;
}

/* Fix Contact Form 7 Auto Paragraph & Line Break Spacing */
.wpcf7 p,
.wpcf7-form p {
    margin: 0 !important;
    padding: 0 !important;
}
.wpcf7 br,
.wpcf7-form br {
    display: none !important;
}
.wpcf7-form-control-wrap {
    display: block !important;
}

.custom-header-right a {
    white-space: nowrap !important;
}

/* Prevent menu crowding on desktop & tablet screens */
@media (min-width: 768px) and (max-width: 1440px) {
    .custom-landing-menu {
        gap: 10px !important;
    }
    .custom-landing-menu li a {
        font-size: 11px !important;
        gap: 3px !important;
    }
    .custom-landing-menu li a svg {
        width: 11px !important;
        height: 11px !important;
    }
    .custom-header-container {
        padding: 0 10px !important;
    }
    .custom-header-right a {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .custom-landing-menu li a svg {
        display: none !important;
    }
}

