/*
 Theme Name:     apienterprisesny Theme
 Theme URI:      https://www.elegantthemes.com/gallery/divi/
 Description:    apienterprisesny Theme
 Author:         Jay Johnson
 Author URI:     https://www.jayjohnson.io
 Template:       Divi
 Version:        1.0.0
*/

/* ---------------------------------------------------------------------
Theme Variables & Base Styles
------------------------------------------------------------------------ */

:root {
    --HEADER_HEIGHT: 42px;

    /* Colors */
    --COLOR_BLACK: #1b1b1c;
    --COLOR_WHITE: #ffffff;
    --COLOR_OFFWHITE: #ffeacb;
    --COLOR_TEAL: #50a8a8;
    --COLOR_BLUE: #04003a;
    --COLOR_TEAL_LITE: #d1ecf5;
    --COLOR_ORANGE: #f05a28;
    --COLOR_YELLOW: #fdc060;
    --COLOR_ORANGE_LITE: #f6921e;
    --COLOR_GREY_DRK: #333434;
    --COLOR_GREY: #58595b;
    --COLOR_GREY_MED: #a4a5a8;
    --COLOR_GREY_LITE: #e2e3e4;
    --COLOR_RED: #c02b0a;
    --COLOR_RED_TINT: rgb(192 43 10 / 80%);

    /* Fonts */
    --FONT_SIZE_LARGE: 16px;
    --FONT_SIZE_DEFAULT: 14px;
    --FONT_SIZE_MEDIUM: 12px;
    --FONT_SIZE_SMALL: 10px;
    --FONT_DEFAULT: "Source Sans Pro", sans-serif;
    --FONT_DISPLAY: "Oswald", sans-serif;

    /* Specific font weights */
    --FONT_WEIGHT_NORMAL: 400;
    --FONT_WEIGHT_MED: 500;
    --FONT_WEIGHT_BOLD: 600;
    --COLOR_HEADER_BG: rgb(3 75 123 / 80%);
    --COLOR_HEADER_STICKY_BG: rgb(3 75 123 / 66%);

    /* Primary Colors */
    --COLOR_CHARCOAL: #303b44;
    --COLOR_STEEL_BLUE: #4778a8;
    --COLOR_DEEP_NAVY: #172d43;

    /* Accent */
    --COLOR_LIME_GREEN: #8dc21f;

    /* Backgrounds */
    --COLOR_SOFT_BLUE: #e6eff7;
    --COLOR_OFF_WHITE: #f7f8f6;

    /* Supporting */
    --COLOR_SLATE: #53616d;

    /* Media Queries */

    /* Mobile screen widths only */
    @custom-media --BREAKPOINT_XSM screen and (width <= 400px);

    /* Small screen widths only */
    @custom-media --BREAKPOINT_SM screen and (width < 768px);

    /* Medium screen widths */
    @custom-media --BREAKPOINT_MD screen and (width >= 768px);

    /* Medium screen widths and print */
    @custom-media --BREAKPOINT_MD_AND_PRINT all and (width >= 768px);

    /* Large screen widths */
    @custom-media --BREAKPOINT_LG screen and (width >= 900px);

    /* iphone */
    @custom-media --BREAKPOINT_IPHONE_SM screen and (width < 768px) and (-webkit-min-device-pixel-ratio: 2);

    /* Measurements */
    --GLOBAL_WIDTH: 1024px;
    --btnReset: {
        display: inline-block;
        border: none;
        appearance: none;
        text-decoration: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: all 0.2s ease-in-out;
        };
    --btnPrimary: {
        display: inline-block;
        border: none;
        appearance: none;
        text-decoration: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: all 0.2s ease-in-out;
        background: var(--COLOR_ORANGE) ;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.7em;
        font-family: inherit;
        color: var(--COLOR_WHITE) ;
        margin: 25px 0 0;
        padding: 6px 40px;
        border-radius: 3px;
        };
    --btnPrimaryHover: {
        background: var(--COLOR_RED) ;
        cursor: pointer;
        };
    --btnSecondary: {
        display: inline-block;
        border: none;
        appearance: none;
        text-decoration: none;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        transition: all 0.2s ease-in-out;
        background: transparent;
        padding: 4px 12px;
        text-transform: uppercase;
        color: var(--COLOR_ORANGE) ;
        border: 1px solid var(--COLOR_ORANGE) ;
        border-radius: 2px;
        };
    --btnSecondaryHover: {
        background: var(--COLOR_ORANGE) ;
        color: white;
        };
    --btnSmall: {
        font-size: 12px;
        text-transform: uppercase;
        };
}

@media only screen and (min-width:981px){

    .et-fixed-header #logo {
        max-height: 131%;
        margin-top: 10px;
    }
}

.isVisuallyHidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* body #main-header, body #main-header .nav li ul, body .et-search-form, body #main-header .et_mobile_menu {
    background-color: var(--COLOR_HEADER_BG);
} */

@media only screen and (min-width:981px) {

    #top-menu li li a {
        padding: 6px 10px;
    }

    body.et_header_style_left header:not(.et-fixed-header) #et-top-navigation nav>ul>li>a {
        padding: 10px 0;
        text-shadow: 1px 1px 1px rgb(0 0 0 / 75%);

    }

    header:not(.et-fixed-header) nav#top-menu-nav {
        /* background: rgb(12 113 195 / 66%); */
        border: 1px solid #ffffff;
        border-top: none;
        padding: 4px 35px 8px;
        border-radius: 0 0 22px 22px;

    }

    header:not(.et-fixed-header) #logo {
        max-height: 85px;
    }

    header.et-fixed-header #logo {
        max-height: 65px;
    }

    .et_header_style_left .logo_container {

    }

    body.et_header_style_left #et-top-navigation, body.et_header_style_split #et-top-navigation {
        padding: 0;
    }

    body .et-fixed-header#main-header, body .et-fixed-header#main-header .nav li ul, body.et-fixed-header#main-header .et-search-form {
        background-color: var(--COLOR_HEADER_STICKY_BG);
    }
}

@media only screen and (min-width:981px) {

    .et_header_style_left #main-header:not(.et-fixed-header) .logo_container {
        top: 35px;
    }
}

body #main-header.et-fixed-header {
    box-shadow: 0 2px 8px rgb(0 0 0 / 16%) !important;
}

@media only screen and (max-width:980px) {

    .et_fixed_nav #main-header {
        position: fixed;
        background-color: transparent;
    }

    body .et-fixed-header#main-header,
    body .et-fixed-header#main-header .nav li ul,
    body.et-fixed-header#main-header .et-search-form {
        background-color: var(--COLOR_HEADER_STICKY_BG);
    }

    #main-header.et-fixed-header .mobile_menu_bar::before {
        color: var(--COLOR_WHITE);
    }

    #logo {
        max-height: 60px;
    }

    .et_header_style_left .logo_container {
        top: 10px;
    }

    .et_header_style_left #main-header.et-fixed-header .logo_container {
        top: 0;
    }
}

@media only screen and (max-width:767px) {

    .et_header_style_left #et-top-navigation,
    .et_header_style_left .et-fixed-header #et-top-navigation {
        padding-top: 18px;
    }

    .et_header_style_left #et-top-navigation .mobile_menu_bar {
        padding-bottom: 8px;
    }

    #logo {
        max-height: 40px;
    }

    .et_pb_button_wrapper {
        display: flex;
        justify-content: flex-end;
    }
}

/*
 * Service card background images.
 *
 * Divi keeps Bottom Left in the builder, then prints background-position: center
 * on tablet and phone. Center throws away the offset. These rules put the saved
 * size and corner back. Add the class in the row's Advanced → CSS Class field,
 * after the existing serviceCta class.
 *
 * Site Development:            serviceCta siteDevelopment
 * Excavation & Drainage:       serviceCta excavationDrainage
 * Hardscape Construction:      serviceCta hardscapeConstruction
 * Property Maintenance:        serviceCta propertyMaintenance
 * Snow Removal:                serviceCta snowRemoval
 */

@media only screen and (max-width:980px) {
    /* Site Development. 39% wide, bottom left, 10% past the left edge. */

    .serviceCta.siteDevelopment {
        background-size: 39% auto;
        background-position: left -10% bottom 0;
    }

    /* Excavation & Drainage. Image stays at its own size, 23% past the left edge. */

    .serviceCta.excavationDrainage {
        background-position: left -11% bottom -1px;
    }

    /* Hardscape Construction. 45% wide, bottom left, 20% left and 5% up. */

    .serviceCta.hardscapeConstruction {
        background-size: 45% auto;
        background-position: left -20% bottom 5%;
    }

    /* Property Maintenance. Own size, 11% past the left edge, 26% up from the bottom. */

    .serviceCta.propertyMaintenance {
        background-size: initial;

        /* background-position: left -11% bottom 26%; */
    }

    /* Snow Removal. 49% wide, bottom left, 23% past the left edge. */

    .serviceCta.snowRemoval {
        background-size: 49% auto;
        background-position: left -23% bottom 0;
    }
}

@media only screen and (max-width:767px) {
    /* Site Development. 48% wide. Corner stays at the tablet position. */

    .serviceCta.siteDevelopment {
        background-size: 48% auto;
    }

    /* Excavation & Drainage. 76% wide. Corner stays at the tablet position. */

    .serviceCta.excavationDrainage {

    }

    /* Hardscape Construction. 41% wide, 20% past the left edge, 4% below the bottom. */

    .serviceCta.hardscapeConstruction {
        background-size: 41% auto;
        background-position: left -20% bottom -4%;
    }

    /* Property Maintenance. 52% wide, flush left, 6% below the bottom. */

    .serviceCta.propertyMaintenance {
        background-size: 52% auto;
        background-position: left bottom -6%;
    }

    /* Snow Removal. 63% wide. Corner stays at the tablet position. */

    .serviceCta.snowRemoval {
        background-size: 63% auto;
    }
}
