/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    background: var(--green-deep);
    color: #dceee3;
    font-size: 11px;
    padding: 7px 0;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-left span {
    white-space: nowrap;
}

.topbar i {
    color: var(--lime);
    margin-right: 5px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 13px;
}

.topbar-right a {
    color: #fff;
    opacity: .85;
    text-decoration: none;
    transition: .25s ease;
}

.topbar-right a:hover {
    color: var(--lime);
    opacity: 1;
}



/* =========================================================
   MAIN NAVBAR
========================================================= */

.main-nav {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-bottom: 1px solid rgba(0, 0, 0, .04);

    min-height: 76px;

    z-index: 1000;
}



/* =========================================================
   BRAND
========================================================= */

.navbar-brand {
    color: var(--dark);
    text-decoration: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.brand-text {
    display: block;
}

.brand strong {
    display: block;

    font-size: 20px;
    font-weight: 800;

    letter-spacing: -.5px;
}

.brand small {
    display: block;

    margin-top: 5px;

    font-size: 7px;
    letter-spacing: 1.7px;

    font-weight: 700;

    color: var(--green);
}



/* =========================================================
   BRAND ICON
========================================================= */

.brand-mark {
    width: 39px;
    height: 39px;

    border-radius: 12px;

    display: grid;
    place-items: center;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            var(--green),
            #20ae55
        );

    box-shadow:
        0 8px 18px rgba(7, 136, 63, .20);
}

.brand-mark i {
    font-size: 19px;
}



/* =========================================================
   NAVIGATION
========================================================= */

.navbar-nav {
    gap: 2px;
}

.navbar-nav .nav-link {
    position: relative;

    color: #010101;

    font-weight: 500;
    font-size: 15px;

    padding: 9px 12px !important;

    transition:
        color .25s ease,
        background .25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--green);
}



/* =========================================================
   SERVICES TOGGLE
========================================================= */

.services-dropdown {
    position: relative;
}

.services-dropdown > .nav-link {
    display: flex;
    align-items: center;
    gap: 3px;
}

.services-dropdown .dropdown-toggle::after {
    margin-left: 5px;

    vertical-align: middle;

    border-top-width: 5px;
    border-right-width: 4px;
    border-left-width: 4px;

    transition: transform .25s ease;
}

.services-dropdown.show > .dropdown-toggle {
    color: var(--green);
}

.services-dropdown.show > .dropdown-toggle::after {
    transform: rotate(180deg);
}



/* =========================================================
   SERVICES DROPDOWN
========================================================= */

.services-menu {
    width: 340px;

    padding: 9px;

    margin-top: 8px !important;

    border: 1px solid rgba(7, 136, 63, .12);

    border-radius: 16px;

    background: #fff;

    box-shadow:
        0 18px 45px rgba(15, 23, 42, .12),
        0 5px 15px rgba(15, 23, 42, .06);

    overflow: hidden;

    transform-origin: top center;
}



/* =========================================================
   DROPDOWN SHOW ANIMATION
========================================================= */

.services-menu.show {
    animation: serviceMenuShow .18s ease forwards;
}

@keyframes serviceMenuShow {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}



/* =========================================================
   SERVICE ITEM
========================================================= */

.services-menu .service-item {

    display: flex;

    align-items: center;

    gap: 12px;

    width: 100%;

    padding: 11px 10px;

    border-radius: 12px;

    color: #12372a;

    background: transparent;

    text-decoration: none;

    white-space: normal;

    transition:
        background .2s ease,
        transform .2s ease;
}



/* Hover */

.services-menu .service-item:hover {

    background: #f0f9f3;

    transform: translateX(2px);

}



/* =========================================================
   SERVICE ICON
========================================================= */

.service-icon {

    width: 42px;
    height: 42px;

    min-width: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #eaf8e9;

    color: #07883f;

    font-size: 18px;

    transition:
        background .2s ease,
        color .2s ease;
}



/* Icon Hover */

.service-item:hover .service-icon {

    background: #07883f;

    color: #fff;

}



/* =========================================================
   SERVICE CONTENT
========================================================= */

.service-content {

    display: flex;

    flex-direction: column;

    min-width: 0;

    flex: 1;
}



/* Title */

.service-content strong {

    display: block;

    color: #12372a;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.3;
}



/* Description */

.service-content small {

    display: block;

    margin-top: 3px;

    color: #718096;

    font-size: 11px;

    line-height: 1.35;
}



/* =========================================================
   ARROW
========================================================= */

.service-arrow {

    margin-left: auto;

    flex-shrink: 0;

    color: #07883f;

    font-size: 14px;

    opacity: .55;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.service-item:hover .service-arrow {

    opacity: 1;

    transform: translate(2px, -2px);

}



/* =========================================================
   CTA
========================================================= */

.nav-cta {
    margin-left: 8px;
}

.btn {
    border-radius: 8px;

    font-weight: 600;

    font-size: 12px;

    padding: 11px 20px;
}

.btn-solar {

    color: #fff !important;

    background: var(--green);

    border: 1px solid var(--green);

    box-shadow:
        0 10px 22px rgba(7, 136, 63, .18);

    transition:
        background .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.btn-solar:hover {

    color: #fff !important;

    background: var(--green-dark);

    border-color: var(--green-dark);

    transform: translateY(-1px);

}



/* =========================================================
   MOBILE TOGGLER
========================================================= */

.navbar-toggler {

    color: var(--green) !important;

    padding: 4px 6px;

}

.navbar-toggler i {

    font-size: 30px;

}



/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 992px) {

    /*
       IMPORTANT:
       No hover dropdown here.
       Bootstrap click controls the dropdown.
    */

    .services-menu {
        left: 50% !important;

        transform: translateX(-50%);

        margin-top: 8px !important;
    }

    .services-menu.show {
        transform: translateX(-50%);
        animation: serviceDesktopShow .18s ease forwards;
    }

    @keyframes serviceDesktopShow {

        from {
            opacity: 0;
            transform: translateX(-50%) translateY(5px);
        }

        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

    }

}



/* =========================================================
   TABLET + MOBILE
========================================================= */

@media (max-width: 991.98px) {

    .main-nav {
        min-height: 68px;
    }


    .navbar-collapse {

        margin-top: 12px;

        padding: 10px 0 14px;

        border-top: 1px solid #edf2ef;
    }


    .navbar-nav {

        gap: 0;

        width: 100%;

        align-items: stretch !important;
    }


    .navbar-nav .nav-item {

        width: 100%;
    }


    .navbar-nav .nav-link {

        width: 100%;

        padding: 11px 8px !important;

        border-radius: 8px;
    }


    .navbar-nav .nav-link:hover {

        background: #f3faf5;
    }


    /* Services dropdown */

    .services-menu {

        position: static !important;

        width: 100%;

        margin: 4px 0 7px !important;

        padding: 6px;

        border-radius: 13px;

        box-shadow: none;

        border: 1px solid #e1eee6;

        transform: none !important;

    }


    .services-menu.show {

        animation: serviceMobileShow .18s ease forwards;
    }


    @keyframes serviceMobileShow {

        from {
            opacity: 0;
            transform: translateY(-3px) !important;
        }

        to {
            opacity: 1;
            transform: translateY(0) !important;
        }

    }


    .services-menu .service-item {

        padding: 10px 8px;

        gap: 10px;
    }


    .service-icon {

        width: 38px;
        height: 38px;

        min-width: 38px;

        font-size: 16px;
    }


    .service-content strong {

        font-size: 13px;
    }


    .service-content small {

        font-size: 10px;
    }


    .service-arrow {

        opacity: .8;
    }


    /* CTA */

    .nav-cta {

        margin: 8px 0 0;
    }


    .nav-cta .btn {

        width: 100%;

        text-align: center;
    }

}



/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .brand strong {

        font-size: 18px;
    }


    .brand small {

        font-size: 6px;

        letter-spacing: 1.4px;
    }


    .brand-mark {

        width: 37px;
        height: 37px;

        border-radius: 10px;
    }


    .navbar-toggler i {

        font-size: 28px;
    }


    .services-menu .service-item {

        padding: 9px 7px;

        gap: 9px;
    }


    .service-icon {

        width: 36px;
        height: 36px;

        min-width: 36px;
    }


    .service-content strong {

        font-size: 12.5px;
    }


    .service-content small {

        font-size: 9.5px;
    }

}



/* =====================================================
   WEBSITE LOGO
===================================================== */

.site-logo {
    display: block;

    width: 175px;
    height: auto;

    max-height: 58px;

    object-fit: contain;
}


/* Navbar brand */
.main-nav .navbar-brand {
    padding: 0;
    margin: 0;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991.98px) {

    .site-logo {
        width: 155px;
        max-height: 52px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .site-logo {
        width: 140px;
        max-height: 48px;
    }

}