/*
 Theme Name:   NYS Energy Audits
 Theme URI:    https://www.energycircle.com
 Description:  NYS Energy Audits
 Author:       Energy Circle
 Author URI:   https://www.energycircle.com
 Template:     generatepress
 Version:      0.1
*/

/* ------------------- Desktop navigation & sticky styles -------------------- */
#site-navigation .current-menu-item a,
site-navigation .current-menu-parent a {
    border-bottom: 1px solid var(--primary-color-3);
}

#sticky-navigation,
#mobile-header.is_stuck {
    box-shadow: 0 5px 2px -2px rgb(0 0 0 / 20%);
}

.main-navigation.sticky-navigation-transition .main-nav > ul > li > a {
    font-size: 16px;
}

/* -------------------- Header buttons -------------------- */
header .header-buttons {
    width: 100%;
    margin-top: -50px;
}

/* -------------------- Auxiliary menu styles -------------------- */
.secondary-navigation .menu-toggle {
    display: none;
}

@media (max-width: 1024px) {
    #secondary-navigation {
        display: none;
    }
}

@media (max-width: 992px) {
    .secondary-navigation ul,
    .secondary-navigation:not(.toggled) .main-nav > ul {
        display: none;
    }
}

@media (max-width: 768px) {
    .secondary-navigation {
        text-align: center !important;
    }
    .secondary-navigation ul {
        display: block;
    }
    .secondary-navigation .sf-menu > li {
        float: none;
        display: inline-block !important;
    }
}

/* -------------------- Mobile header and hamburger menu styles -------------------- */
#mobile-header {
    background-color: var(--base-1);
}

.mobile-header-navigation {
    box-sizing: border-box;
    padding: 10px;
}

#generate-slideout-menu .gb-button-wrapper .gb-button,
.slideout-navigation.do-overlay .inside-navigation .main-nav,
.slideout-navigation.do-overlay .inside-navigation .slideout-widget {
    width: 100%;
}

#generate-slideout-menu .phone > a {
    color: var(--base-1);
}

.main-navigation.slideout-navigation .main-nav > ul > li > a {
    line-height: 30px;
}

.menu-toggle .gp-icon svg {
    fill: var(--primary-color-2);
}

.slideout-exit .gp-icon svg {
    fill: var(--primary-color-2);
}

@media (max-width: 1024px) {
    #generate-slideout-menu #menu-aux-menu-2 {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .slideout-navigation.do-overlay .slideout-exit {
        position: fixed !important;
    }

    .slideout-navigation.main-navigation .main-nav ul li a {
        font-size: 19px;
        color: white;
        background: var(--primary-color-2);
        width: 100%;
        margin-left: -15px;
        padding: 18px 30px 18px 30px;
    }
}

/* -------------------- Testimonials -------------------- */
.strong-view.wpmtst-modern .wpmtst-testimonial-field {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--primary-color-2);
}

.strong-view.wpmtst-modern .wpmtst-testimonial {
    border: 0;
}

.strong-view.wpmtst-modern .wpmtst-testimonial:last-child {
    border-right: 0;
}

.strong-view.wpmtst-modern .wpmtst-testimonial .testimonial-content {
    padding: 10px;
}

.strong-view.wpmtst-modern .wpmtst-testimonial-content:before,
.strong-view.wpmtst-modern .wpmtst-testimonial-content:after {
    color: var(--primary-color-3) !important;
    background: var(--primary-color-3) !important;
}

/* -------------------- Distinctions -------------------- */
.distinctions.wp-block-getwid-post-carousel .slick-track {
    align-items: center;
}

.distinctions .slick-slide img {
    margin: 0 auto;
}

/* -------------------- Footer styles -------------------- */
.footer > .gb-inside-container {
    border-bottom: solid 1px #ffffff;
}

.ec_menu_ul {
    margin-left: 0em;
    list-style-type: none;
}

.ec_menu_ul ul.sub-menu {
    list-style-type: none;
}

.ec_menu_ul li {
    font-size: 17px;
    line-height: 27px;
}

.footer .ec_menu_ul li a {
    color: var(--primary-color-4);
}

.footer .ec_menu_ul li a:hover {
    color: var(--base-1);
}

.copyright-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 768px) {
    .footer {
        text-align: center;
    }
}

/* -------------------- WP Forms styles -------------------- */
/* Submit button style */
div.wpforms-container-full .wpforms-form input[type='submit'],
div.wpforms-container-full .wpforms-form button[type='submit'],
div.wpforms-container-full .wpforms-form .wpforms-page-button {
    color: var(--base-1) !important;
    background-color: var(--primary-color-3) !important;
    padding: 10px 30px !important;
    border: solid 1px transparent !important;
    transition: all 0.5s ease 0s !important;
}

/* Submit button hover style */
div.wpforms-container-full .wpforms-form input[type='submit']:hover,
div.wpforms-container-full .wpforms-form input[type='submit']:focus,
div.wpforms-container-full .wpforms-form input[type='submit']:active,
div.wpforms-container-full .wpforms-form button[type='submit']:hover,
div.wpforms-container-full .wpforms-form button[type='submit']:focus,
div.wpforms-container-full .wpforms-form button[type='submit']:active,
div.wpforms-container-full .wpforms-form .wpforms-page-button:hover,
div.wpforms-container-full .wpforms-form .wpforms-page-button:active,
div.wpforms-container-full .wpforms-form .wpforms-page-button:focus {
    color: var(--base-1);
    background-color: var(--primary-color-1) !important;
    border: solid 1px var(--primary-color-1) !important;
}

/* Multi page form - mobile responsiveness for progress indicator */
div.wpforms-container-full .wpforms-form .wpforms-page-indicator {
    overflow-x: scroll !important;
    display: flex;
}

div.wpforms-container-full
    .wpforms-form
    .wpforms-page-indicator
    > .wpforms-page-indicator-page {
    width: 25% !important;
}

/* Multi page form - image choices */
div.wpforms-container-full .wpforms-form ul.wpforms-image-choices-modern img {
    max-width: 250px;
}

/* Multi-page form - attic dummy image */
.long-form-attic-images li.wpforms-image-choices-item:last-child img {
    width: 250px !important;
    height: 250px;
}

/* Multi page form - income table */
div.income-table .income-p {
    margin-bottom: 20px;
}

table.multi-form-income {
    border-collapse: collapse;
    margin-bottom: 20px;
}

table.multi-form-income,
table.multi-form-income td,
table.multi-form-income th {
    border: 1px solid #717f81 !important;
    padding: 3px !important;
}

table.multi-form-income tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

@media (min-width: 1024px) {
    table.multi-form-income th,
    table.multi-form-income td {
        padding: 7px 8px 7px 8px !important;
    }
}

/* Multi page form contact button */
div.wpforms-container-full .wpforms-form .multi-form-contact {
    margin-bottom: 40px;
}

div.wpforms-container-full .wpforms-form .multi-form-contact p {
    margin-bottom: 10px;
}

div.wpforms-container-full .wpforms-form .multi-form-contact a {
    background-color: var(--primary-color-1);
    color: var(--base-1);
    padding: 10px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

div.wpforms-container-full .wpforms-form .multi-form-contact a:hover {
    background-color: var(--primary-color-4);
    color: var(--base-1);
}

/* -------------------- Slider styles -------------------- */
/* Move text to the left of container */
.n2-ss-slider .n2-ss-layer-row-inner {
    justify-content: flex-end;
}

/* Full height images */
.home-hero-image {
    height: 100%;
}

.home-hero-image .n2-ss-item-image-content.n2-ss-item-content.n2-ow-all {
    height: 100%;
}

.n2-ss-slider .home-hero-image .n2-ow-all > img {
    height: 100%;
    object-fit: cover;
}

/* -------------------- General styles -------------------- */
.left-align-container > .gb-inside-container {
    margin-left: 0 !important;
}

/* drop shadow */
.object-shadow {
    box-shadow: 0px 0px 10px rgba(20, 20, 20, 0.1);
}

/* Align flex items to center of container */
.align-center {
    align-items: center;
}

/* Setting popup trigger (contact us) to same text color settings as links */
.popup-trigger {
    color: var(--primary-color-3);
}

.popup-trigger:hover {
    color: var(--primary-color-1);
}

/* Override rule above if button */
.popup-button .popup-trigger {
    color: var(--base-1);
}

/* -------------------- Home page styles -------------------- */
/* Feature blocks */
.features > .gb-inside-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
