/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(3, 6, 9, .94);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--line);
}

/* =========================================
   TOP HEADER
========================================= */

.top-header {
    width: 100%;
    background: #030609;
    border-bottom: 1px solid rgba(255,255,255,.07);
    padding-left: 30px;
    padding-right: 30px;
}

.top-header-inner {
    width: 100%;
    min-height: 38px;

    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    gap: 20px;
}


/* =========================================
   CONTACT — LEFT
========================================= */

.top-contact {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 24px;

    min-width: 0;
}

.top-contact a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #f4f8fc;

    font-size: 13px;
    font-weight: 500;

    line-height: 1;
    white-space: nowrap;

    text-decoration: none;
}

.top-contact a i {
    color: #ffffff;
    font-size: 13px;
}

.top-contact a:hover {
    color: var(--accent);
}


/* =========================================
   SOCIAL — RIGHT
========================================= */

.top-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 12px;

    margin-left: auto;

    white-space: nowrap;
}

.top-social a {
    width: 24px;
    height: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    font-size: 14px;
    line-height: 1;

    text-decoration: none;

    transition:
        color .25s ease,
        transform .25s ease;
}

.top-social a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}
/* =========================================
   MAIN HEADER
========================================= */

.main-header {
    background: rgba(3,6,9,.90);
}

.nav-wrap {
    min-height: 78px;

    display: flex;
    align-items: center;

    gap: 30px;
}


/* =========================================
   BRAND
========================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 11px;

    flex-shrink: 0;

    color: var(--white);

    font-weight: 800;
    white-space: nowrap;

    text-decoration: none;
}

.brand img {
    width: 80px;
    height: 80px;

    object-fit: contain;
}

.brand span {
    color: var(--white);

    font-size: 16px;
    font-weight: 700;
}


/* =========================================
   MAIN NAVIGATION
========================================= */

.main-nav {
    display: flex;
    align-items: center;

    margin-left: auto;
}

.main-nav ul {
    list-style: none;

    margin: 0;
    padding: 0;
}

.main-nav > ul {
    display: flex;
    align-items: center;

    gap: 30px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: flex;
    align-items: center;

    gap: 7px;

    color: var(--white);

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    transition: color .3s ease;
}

.main-nav > ul > li > a {
    min-height: 78px;
}

.main-nav a:hover {
    color: var(--accent);
}


/* =========================================
   PORTFOLIO SUBMENU
========================================= */

.main-nav .submenu {
    position: absolute;

    top: calc(100% + 1px);
    left: 50%;

    width: 245px;

    transform:
        translateX(-25%)
        translateY(10px);

    padding: 9px;

    background: #091522;

    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.35);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease,
        transform .25s ease;

    z-index: 999;
}

.submenu-arrow {
    font-size: 13px;
    line-height: 1;

    transition: transform .25s ease;
}

.main-nav .has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-25%)
        translateY(0);
}

.main-nav .has-submenu:hover .submenu-arrow {
    transform: rotate(180deg);
}


/* SUBMENU LINKS */

.main-nav .submenu li {
    width: 100%;
}

.main-nav .submenu a {
    display: block;

    width: 100%;

    min-height: auto !important;

    padding: 12px 14px;

    color: var(--muted);

    border-radius: 6px;

    font-size: 13px;
    line-height: 1.4;

    box-sizing: border-box;
}

.main-nav .submenu a:hover {
    color: var(--white);

    background: rgba(66,165,255,.08);
}


/* =========================================
   QUICK TALK
========================================= */

.quick-talk {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 11px;

    flex-shrink: 0;

    padding: 12px 18px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #138fc3,
            #203b63
        );

    border: 1px solid rgba(42,174,227,.55);
    border-radius: var(--radius-sm);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform .3s ease,
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.quick-talk i {
    font-size: 11px;

    transition: transform .3s ease;
}

.quick-talk:hover {
    color: #ffffff;

    transform: translateY(-2px);

    border-color: rgba(66,165,255,.75);

    box-shadow:
        0 8px 25px rgba(42,174,227,.18);
}

.quick-talk:hover i {
    transform: translateX(4px);
}


/* =========================================
   MOBILE TOGGLE
========================================= */

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;

    flex-direction: column;

    gap: 5px;

    width: 28px;

    cursor: pointer;
}

.nav-toggle-label span {
    display: block;

    width: 25px;
    height: 2px;

    background: #dce8f3;

    transition:
        transform .25s ease,
        opacity .25s ease;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .nav-wrap {
        gap: 20px;
    }

    .main-nav > ul {
        gap: 21px;
    }

    .quick-talk {
        padding: 11px 15px;
    }
}


/* =========================================
   MOBILE / TABLET MENU
========================================= */

@media (max-width: 950px) {

    .top-header-inner {
        min-height: 36px;
    }

    .top-contact {
        gap: 15px;
    }

    .top-contact a {
        font-size: 10px;
    }

    .top-contact a i {
        font-size: 9px;
    }

    .top-social {
        gap: 5px;
    }

    .top-social a {
        width: 23px;
        height: 23px;

        font-size: 9px;
    }


    /* MAIN HEADER */

    .nav-wrap {
        min-height: 70px;
        position: relative;
    }

    .brand img {
        width: 40px;
        height: 40px;
    }

    .brand span {
        font-size: 14px;
    }


    /* QUICK TALK */

    .quick-talk {
        margin-left: auto;
    }


    /* MENU BUTTON */

    .nav-toggle-label {
        display: flex;

        order: 4;
    }


    /* NAV */

    .main-nav {
        position: absolute;

        top: 70px;
        left: 0;
        right: 0;

        display: none;

        margin: 0;

        padding: 12px 20px 20px;

        background: #060c13;

        border-bottom: 1px solid var(--line);

        box-shadow:
            0 20px 35px rgba(0,0,0,.25);
    }

    .main-nav > ul {
        display: flex;

        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav > ul > li > a {
        min-height: auto;

        padding: 13px 0;
    }


    /* SHOW MOBILE MENU */

    .nav-toggle:checked ~ .main-nav {
        display: block;
    }


    /* MOBILE SUBMENU */

    .main-nav .submenu {
        position: static;

        width: 100%;

        transform: none;

        margin: 0 0 8px;

        padding: 5px 0;

        background: rgba(255,255,255,.025);

        border: 0;
        border-left: 1px solid rgba(66,165,255,.20);

        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        display: none;
    }

    .main-nav .has-submenu:hover > .submenu {
        transform: none;
    }

    .main-nav .has-submenu:hover .submenu-arrow {
        transform: none;
    }

    .main-nav .has-submenu:hover > .submenu {
        display: block;
    }

    .main-nav .submenu a {
        padding: 11px 16px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 600px) {

    .top-header {
        display: none;
    }

    .nav-wrap {
        min-height: 70px;
    }

    .brand {
        gap: 8px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand span {
        font-size: 13px;
    }

    .quick-talk {
        padding: 10px 12px;

        font-size: 12px;
    }

    .quick-talk i {
        display: none;
    }

    .nav-toggle-label {
        width: 25px;
    }

    .main-nav {
        top: 70px;

        padding: 10px 14px 18px;
    }
}


/* =========================================
   VERY SMALL SCREENS
========================================= */

@media (max-width: 400px) {

    .brand span {
        display: none;
    }

    .quick-talk {
        padding: 9px 11px;
    }
}