/* =========================================================
   NAVBAR
   ========================================================= */

:root {
    --northstar-blue: #0B3A6E;
    --northstar-green: #5A7F2C;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* =========================================================
   LOGO
   ========================================================= */

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    line-height: 1.1;
}

.logo-text span {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--northstar-blue);
}

.logo-text small {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--northstar-green);
}

/* =========================================================
   HAMBURGER BUTTON
   ========================================================= */

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: var(--northstar-blue);
    transition: all .25s ease;
}

/* Animate into X */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hide mobile call button on desktop */

.mobile-call-link {
    display: none;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 12px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hide desktop navigation */

    .navbar nav {
        display: none;
    }

    /* Show when JavaScript adds .active */

    .navbar nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 18px rgba(0,0,0,.12);
        z-index: 999;
    }

    .navbar nav.active a {
        padding: 16px 24px;
        text-decoration: none;
        color: var(--northstar-blue);
        border-bottom: 1px solid #ececec;
        font-weight: 600;
        transition: .2s;
    }

    .navbar nav.active a:hover {
        background: var(--northstar-blue);
        color: white;
    }

    .phone-btn {
        display: none;
    }

    .mobile-call-link {
        display: block;
        margin: 12px;
        padding: 14px;
        border-radius: 8px;
        background: var(--northstar-blue);
        color: white !important;
        text-align: center;
    }

    .logo img {
        height: 50px;
    }

    .logo-text span {
        font-size: 1.15rem;
    }

    .logo-text small {
        font-size: .72rem;
    }
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 901px) {

    .menu-toggle {
        display: none !important;
    }

    .navbar nav {
        display: flex !important;
    }
}