/* =========================================
   CYBEROAKS CLEAN PREMIUM NAVBAR
========================================= */

.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 82px;

    z-index: 9999;

    background: #ffffff;

    border-bottom: 1px solid #eeeeee;

    transition: box-shadow 0.3s ease;
}


/* =========================================
   NAV CONTAINER
========================================= */

.cyber-nav-container {
    width: min(1400px, 92%);
    height: 100%;

    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================
   LOGO
========================================= */

.cyber-logo {
    display: flex;
    align-items: center;

    gap: 11px;

    color: #172033;

    flex-shrink: 0;
}


/* Logo symbol */

.cyber-logo-mark {
    position: relative;

    width: 42px;
    height: 42px;
}


.cyber-logo-mark span {
    position: absolute;

    width: 21px;
    height: 21px;

    border-radius: 5px;
}
/* =========================================
   CYBEROAKS NEW LOGO
========================================= */

.cyber-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.cyber-logo-image {
    display: block;
    width: 210px;
    height: auto;
    max-height: 62px;
    object-fit: contain;
}

/* TABLET */
@media (max-width: 900px) {

    .cyber-logo-image {
        width: 185px;
        max-height: 55px;
    }

}

/* MOBILE */
@media (max-width: 480px) {

    .cyber-logo-image {
        width: 155px;
        max-height: 48px;
    }

}


/* Blue */

.cyber-logo-mark span:nth-child(1) {
    background: #2563eb;

    left: 0;
    top: 0;
}


/* Teal */

.cyber-logo-mark span:nth-child(2) {
    background: #16b8a6;

    right: 0;
    top: 10px;
}


/* Orange */

.cyber-logo-mark span:nth-child(3) {
    background: #f59e0b;

    left: 7px;
    bottom: 0;
}


/* Logo text */

.cyber-logo-text {
    display: flex;
    flex-direction: column;
}


.cyber-logo-text strong {
    color: #172033;

    font-size: 23px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.8px;
}


.cyber-logo-text small {
    margin-top: 5px;

    color: #7b8494;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.4px;
}


/* =========================================
   NAVIGATION
========================================= */

.cyber-navigation {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 4px;
}


.cyber-nav-link {
    position: relative;

    height: 42px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: none;

    background: transparent;

    color: #4b5563;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease;
}


.cyber-nav-link:hover {
    color: #2563eb;
}


/* Active underline */

.cyber-nav-link::after {
    content: "";

    position: absolute;

    left: 15px;
    right: 15px;

    bottom: 2px;

    height: 2px;

    background: #2563eb;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.25s ease;
}


.cyber-nav-link:hover::after,
.cyber-nav-link.active::after {
    transform: scaleX(1);
}


.cyber-nav-link.active {
    color: #2563eb;
}


/* =========================================
   SERVICES DROPDOWN
========================================= */

.cyber-nav-dropdown {
    position: static;

    height: 100%;

    display: flex;
    align-items: center;
}


.cyber-services-button {
    font-family: inherit;
}


/* Arrow */

.cyber-arrow {
    color: #2563eb;

    font-size: 17px;

    line-height: 1;

    transition: transform 0.25s ease;
}


/* Desktop-only: open on mouse hover.
   Scoped to devices that actually have a mouse + real hover,
   so a tap on a touchscreen (which browsers can momentarily
   treat as "hover") never fights with the tap-driven .active
   toggle used on mobile/tablet below. */
@media (hover: hover) and (pointer: fine) {

    .cyber-nav-dropdown:hover .cyber-arrow {
        transform: rotate(180deg);
    }


    .cyber-nav-dropdown:hover .cyber-mega-menu {
        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateX(-50%)
            translateY(0);
    }

}


/* =========================================
   MEGA MENU
========================================= */

.cyber-mega-menu {
    position: absolute;

    top: 82px;
    left: 50%;

    width: min(1320px, 94vw);

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e7e9ed;

    border-radius: 0 0 16px 16px;

    box-shadow:
        0 18px 45px rgba(20, 30, 50, 0.12);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(-50%)
        translateY(8px);

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}


/* (hover-to-open behavior for .cyber-mega-menu now lives in the
   @media (hover: hover) and (pointer: fine) block above, so it
   only applies on real mouse-driven devices) */


/* =========================================
   MEGA MENU GRID
========================================= */

.cyber-mega-inner {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 20px 22px;
}


/* =========================================
   SERVICE COLUMN
========================================= */

.cyber-service-column {
    min-width: 0;
}


/* =========================================
   SERVICE HEADING
========================================= */

.cyber-service-heading {
    min-height: 42px;

    display: flex;
    align-items: center;

    padding: 8px 12px;

    margin-bottom: 8px;

    background: #f5f6f8;

    border-left: 4px solid #f59e0b;

    border-radius: 4px;

    color: #252b36;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.8px;

    line-height: 1.3;
}


/* =========================================
   SERVICE LINKS
========================================= */

.cyber-service-column a {
    display: block;

    padding: 6px 10px;

    border-radius: 5px;

    color: #687386;

    font-size: 12px;
    font-weight: 500;

    line-height: 1.5;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        padding-left 0.2s ease;
}


.cyber-service-column a:hover {
    color: #2563eb;

    background: #f4f8ff;

    padding-left: 14px;
}


/* =========================================
   CONTACT BUTTON
========================================= */

.cyber-contact-link {
    margin-left: 7px;

    padding-left: 18px;
    padding-right: 18px;

    border: 1px solid #2563eb;

    border-radius: 7px;

    color: #2563eb;
}


.cyber-contact-link:hover {
    color: #ffffff;

    background: #2563eb;
}


.cyber-contact-link::after {
    display: none;
}


/* =========================================
   MOBILE BUTTON
========================================= */

.cyber-menu-toggle {
    display: none;

    width: 43px;
    height: 43px;

    padding: 9px;

    border: 1px solid #e3e6eb;

    border-radius: 7px;

    background: #ffffff;

    cursor: pointer;
}


.cyber-menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: #172033;

    transition: 0.3s ease;
}


/* =========================================
   NAVBAR SHADOW WHEN SCROLLED
========================================= */

.cyber-nav.scrolled {
    box-shadow:
        0 5px 25px rgba(20, 30, 50, 0.08);
}


/* =========================================================
   CYBEROAKS — FINAL RESPONSIVE NAVBAR
   Mobile + Tablet
========================================================= */

@media (max-width: 900px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden !important;
    }

    /* =========================
       NAVBAR
    ========================= */

    .cyber-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;

        height: 82px !important;

        margin: 0 !important;
        padding: 0 !important;

        z-index: 999999 !important;

        background: #ffffff !important;
    }

    /* =========================
       NAVBAR CONTAINER
    ========================= */

    .cyber-nav-container {
        width: 100% !important;
        max-width: none !important;

        height: 82px !important;
        min-height: 82px !important;

        margin: 0 !important;
        padding: 0 18px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;

        box-sizing: border-box !important;
    }

    /* =========================
       LOGO
    ========================= */

    .cyber-logo {
        display: flex !important;
        align-items: center !important;

        gap: 9px !important;

        min-width: 0 !important;
        max-width: calc(100% - 60px) !important;

        flex-shrink: 1 !important;
    }

    .cyber-logo-mark {
        width: 38px !important;
        height: 38px !important;

        flex: 0 0 38px !important;
    }

    .cyber-logo-mark span {
        width: 19px !important;
        height: 19px !important;
    }

    .cyber-logo-text {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .cyber-logo-text strong {
        display: block !important;

        font-size: 21px !important;
        line-height: 1 !important;

        white-space: nowrap !important;
    }

    .cyber-logo-text small {
        display: none !important;
    }

    /* =========================
       HAMBURGER
    ========================= */

    .cyber-menu-toggle {
        display: flex !important;

        width: 44px !important;
        height: 44px !important;

        min-width: 44px !important;
        max-width: 44px !important;

        flex: 0 0 44px !important;

        padding: 0 !important;
        margin: 0 !important;

        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;

        gap: 0 !important;

        border: 1px solid #e3e6eb !important;
        border-radius: 10px !important;

        background: #ffffff !important;

        position: relative !important;
        z-index: 1000001 !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        box-sizing: border-box !important;
    }

    .cyber-menu-toggle span {
        display: block !important;

        width: 21px !important;
        height: 2px !important;

        margin: 3px 0 !important;

        padding: 0 !important;

        background: #172033 !important;

        border-radius: 10px !important;

        opacity: 1 !important;
        visibility: visible !important;

        transform-origin: center !important;

        transition:
            transform .25s ease,
            opacity .2s ease !important;
    }

    /* =========================
       MOBILE NAVIGATION
    ========================= */

    .cyber-navigation {
        position: fixed !important;

        top: 82px !important;
        left: 0 !important;
        right: 0 !important;

        width: 100vw !important;
        max-width: 100vw !important;

        height: auto !important;

        max-height: calc(100vh - 82px) !important;
        max-height: calc(100dvh - 82px) !important;

        margin: 0 !important;
        padding: 12px 16px 22px !important;

        display: none !important;

        flex-direction: column !important;
        align-items: stretch !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        box-sizing: border-box !important;

        background: #ffffff !important;

        border-top: 1px solid #eeeeee !important;
        border-bottom: 1px solid #e5e7eb !important;

        box-shadow:
            0 18px 45px rgba(15, 23, 42, .14) !important;

        z-index: 1000000 !important;

        -webkit-overflow-scrolling: touch !important;
    }

    .cyber-navigation.active {
        display: flex !important;
    }

    /* =========================
       NAV LINKS
    ========================= */

    .cyber-nav-link,
    .cyber-services-button {
        width: 100% !important;

        min-height: 50px !important;
        height: auto !important;

        display: flex !important;

        align-items: center !important;
        justify-content: space-between !important;

        margin: 0 !important;
        padding: 14px 12px !important;

        box-sizing: border-box !important;

        border-radius: 10px !important;

        font-size: 15px !important;
        line-height: 1.3 !important;

        text-align: left !important;

        color: #374151 !important;
        background: transparent !important;
    }

    .cyber-nav-link::after {
        display: none !important;
    }

    .cyber-nav-link:hover,
    .cyber-nav-link.active {
        color: #2563eb !important;
        background: #f5f8ff !important;
    }

    /* =========================
       SERVICES
    ========================= */

    .cyber-nav-dropdown {
        width: 100% !important;
        height: auto !important;

        display: flex !important;

        flex-direction: column !important;
        align-items: stretch !important;
    }

    .cyber-services-button {
        border: 0 !important;

        cursor: pointer !important;

        font-family: inherit !important;

        appearance: none !important;
        -webkit-appearance: none !important;
    }

    .cyber-arrow {
        flex: 0 0 auto !important;

        margin-left: 10px !important;

        font-size: 18px !important;

        color: #2563eb !important;

        transition: transform .25s ease !important;
    }

    .cyber-nav-dropdown.active .cyber-arrow {
        transform: rotate(180deg) !important;
    }

    /* =========================
       SERVICES MEGA MENU
    ========================= */

    .cyber-mega-menu {
        position: static !important;

        width: 100% !important;
        max-width: none !important;

        display: none !important;

        margin: 2px 0 8px !important;
        padding: 10px !important;

        box-sizing: border-box !important;

        background: #f7f9fc !important;

        border: 1px solid #e7ebf0 !important;
        border-radius: 12px !important;

        box-shadow: none !important;

        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        transform: none !important;
    }

    .cyber-nav-dropdown.active .cyber-mega-menu {
        display: block !important;
    }

    .cyber-mega-inner {
        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 10px !important;
    }

    .cyber-service-heading {
        min-height: 0 !important;

        padding: 10px 11px !important;
        margin: 0 0 4px !important;

        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    .cyber-service-column a {
        display: block !important;

        padding: 9px 10px !important;

        font-size: 13px !important;
        line-height: 1.45 !important;

        border-radius: 7px !important;
    }

    /* =========================
       CONTACT
    ========================= */

    .cyber-contact-link {
        width: 100% !important;

        margin: 6px 0 0 !important;

        justify-content: center !important;

        text-align: center !important;

        border: 1px solid #2563eb !important;

        color: #2563eb !important;

        background: #ffffff !important;
    }

    /* =========================
       HAMBURGER → X
    ========================= */

    .cyber-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .cyber-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .cyber-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    /* =========================
       BODY WHEN MENU OPEN
    ========================= */

    body.cyber-menu-open {
        overflow: hidden !important;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .cyber-nav {
        height: 72px !important;
    }

    .cyber-nav-container {
        height: 72px !important;
        min-height: 72px !important;

        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .cyber-navigation {
        top: 72px !important;

        max-height: calc(100vh - 72px) !important;
        max-height: calc(100dvh - 72px) !important;
    }

    .cyber-logo-mark {
        width: 36px !important;
        height: 36px !important;

        flex-basis: 36px !important;
    }

    .cyber-logo-text strong {
        font-size: 20px !important;
    }

    .cyber-menu-toggle {
        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        max-width: 42px !important;

        flex-basis: 42px !important;
    }
}
/* =========================================================
   CYBEROAKS NEW LOGO - GLOBAL NAVBAR
   ========================================================= */

.cyber-nav .cyber-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    width: 230px !important;
    height: 65px !important;
    text-decoration: none !important;
    position: relative !important;
}

/* Hide OLD logo */
.cyber-nav .cyber-logo-mark {
    display: none !important;
}

.cyber-nav .cyber-logo-text {
    display: none !important;
}

/* Show NEW logo */
.cyber-nav .cyber-logo::before {
    content: "" !important;
    display: block !important;

    width: 230px !important;
    height: 65px !important;

    background-image: url("/cyberoaks-logo.webp") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {

    .cyber-nav .cyber-logo {
        width: 200px !important;
        height: 58px !important;
    }

    .cyber-nav .cyber-logo::before {
        width: 200px !important;
        height: 58px !important;
    }
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 480px) {

    .cyber-nav .cyber-logo {
        width: 165px !important;
        height: 50px !important;
    }

    .cyber-nav .cyber-logo::before {
        width: 165px !important;
        height: 50px !important;
    }
}
