/* =========================================================
   DNC LOGISTICS — NAVBAR
   ========================================================= */

.navbar {
    position: relative;
    z-index: 1000;

    width: 100%;

    background: #ffffff;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.navbar-top {
    height: 40px;
    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #06171c;

    color: rgba(255, 255, 255, 0.65);

    font-family: var(--body-font);
    font-size: 11px;
}

.navbar-top-left {
    display: flex;
    align-items: center;

    gap: 28px;
}

.navbar-top-left span {
    white-space: nowrap;
}

.navbar-top-left span:first-child {
    color: #ffffff;
    font-weight: 600;
}


/* =========================================================
   SOCIAL ICONS
   ========================================================= */

.navbar-social {
    display: flex;
    align-items: center;

    gap: 8px;
}

.navbar-social a {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.7);

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    font-size: 10px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.navbar-social a:hover {
    color: #ffffff;

    background: var(--primary);
    border-color: var(--primary);

    transform: translateY(-2px);
}


/* =========================================================
   MAIN NAVBAR
   ========================================================= */

.navbar-main {
    width: min(var(--container), 90%);
    height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
   ========================================================= */

.navbar-logo {
    width: 150px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex-shrink: 0;
}

.navbar-logo-image {
    display: block;

    width: 120px;
    height: auto;

    max-height: 68px;

    object-fit: contain;

    transition: transform 0.3s ease;
}

.navbar-logo:hover .navbar-logo-image {
    transform: scale(1.02);
}


/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.navbar-links {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 36px;
}

.navbar-links > a:not(.quote-btn) {
    position: relative;

    height: 100%;

    display: flex;
    align-items: center;

    color: #26383d;

    font-family: var(--body-font);
    font-size: 14px;
    font-weight: 600;

    white-space: nowrap;

    transition: color 0.3s ease;
}


/* =========================================================
   NAV UNDERLINE
   ========================================================= */

.navbar-links > a:not(.quote-btn)::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 16px;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition: width 0.3s ease;
}

.navbar-links > a:not(.quote-btn):hover {
    color: var(--primary);
}

.navbar-links > a:not(.quote-btn):hover::after {
    width: 100%;
}


/* ACTIVE PAGE */

.navbar-links > a:not(.quote-btn).active {
    color: var(--primary);
}

.navbar-links > a:not(.quote-btn).active::after {
    width: 100%;
}


/* =========================================================
   GET A QUOTE
   ========================================================= */

.quote-btn {
    height: 56px;

    padding: 0 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    color: #ffffff !important;
    background: var(--primary);

    border-radius: 6px;

    font-family: var(--body-font);
    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    box-shadow: 0 8px 22px rgba(11, 130, 123, 0.16);

    transition: all 0.3s ease;
}

.quote-btn span {
    font-size: 18px;
    line-height: 1;

    transition: transform 0.3s ease;
}

.quote-btn:hover {
    color: #ffffff !important;
    background: var(--primary-dark);

    transform: translateY(-2px);

    box-shadow: 0 12px 28px rgba(11, 130, 123, 0.23);
}

.quote-btn:hover span {
    transform: translateX(4px);
}


/* =========================================================
   MOBILE HAMBURGER
   ========================================================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    align-items: center;
    justify-content: center;

    flex-direction: column;

    gap: 5px;

    background: #06171c;

    border-radius: 6px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 19px;
    height: 2px;

    background: #ffffff;

    border-radius: 4px;

    transition: all 0.3s ease;
}


/* =========================================================
   HAMBURGER OPEN ANIMATION
   ========================================================= */

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .navbar-top {
        padding: 0 4%;
    }

    .navbar-top-left {
        gap: 16px;
    }

    .navbar-main {
        width: 92%;
    }

    .navbar-links {
        gap: 22px;
    }

    .navbar-logo {
        width: 125px;
    }

    .navbar-logo-image {
        width: 110px;
    }

    .quote-btn {
        padding: 0 20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* TOP BAR */

    .navbar-top {
        height: 34px;

        padding: 0 5%;
    }

    .navbar-top-left {
        width: 100%;

        justify-content: center;

        gap: 0;
    }

    .navbar-top-left span {
        display: none;
    }

    .navbar-top-left span:first-child {
        display: block;

        font-size: 10px;
    }

    .navbar-social {
        display: none;
    }


    /* MAIN NAV */

    .navbar-main {
        width: 90%;
        height: 72px;
    }

    .navbar-logo {
        width: auto;
    }

    .navbar-logo-image {
        width: 115px;
        max-height: 52px;
    }

    .navbar-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }


    /* MOBILE MENU */

    .mobile-menu {
        position: absolute;

        top: 106px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;

        padding: 8px 5% 22px;

        background: #ffffff;

        border-top: 1px solid #edf1f1;

        box-shadow: 0 18px 35px rgba(0, 0, 0, 0.12);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-12px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s ease;
    }

    .mobile-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;

        transform: translateY(0);
    }


    /* MOBILE LINKS */

    .mobile-menu > a {
        padding: 15px 5px;

        color: #26383d;

        border-bottom: 1px solid #edf1f1;

        font-size: 14px;
        font-weight: 600;

        transition: color 0.3s ease;
    }

    .mobile-menu > a:hover,
    .mobile-menu > a.active {
        color: var(--primary);
    }


    /* MOBILE QUOTE */

    .mobile-menu .mobile-quote {
        margin-top: 18px;
        padding: 14px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 10px;

        color: #ffffff !important;
        background: var(--primary);

        border: none;
        border-radius: 6px;
    }

    .mobile-menu .mobile-quote span {
        font-size: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .navbar-top {
        height: 32px;
    }

    .navbar-top-left span:first-child {
        font-size: 9px;
    }

    .navbar-main {
        height: 70px;
    }

    .navbar-logo-image {
        width: 110px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .mobile-menu {
        top: 102px;
    }
}