/*
 Theme Name:   Waterleaks-Polygongroup
 Description:  Divi Child Theme for Waterleaks Polygongroup
 Template:     Divi
 Version:      1.0.0
 Text Domain:  waterleaks-polygongroup
*/
@import url('assets/fonts/BrandonText.css');
@import url('assets/fonts/calibri.css');

:root {
    /* Brand Colors (Inferred from Polygon Group Brand & User History) */
    --color-brand-red: #6f131f;
    --color-brand-red-hover: #bd121a;
    --color-brand-blue: #005a8c;
    --color-brand-cyan-blue: #009FE3;
    /* Standard Polygon/Water industry blue */

    /* UI Colors */
    --color-text-dark: #1a1a1a;
    --color-text-light: #ffffff;
    --color-bg-light: #f9f9f9;

    /* Typography */
    --font-heading: 'Brandon Text', Helvetica, Arial, sans-serif;
    --font-body: 'Brandon Text', Helvetica, Arial, sans-serif;

    font-size: 17px;
}

/* =Global Typography
------------------------------------------------------- */
body,
p,
.et_pb_text {
    font-family: var(--font-body);
    /* color: var(--color-text-dark);*/
}

html body {
    font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    /* color: var(--color-text-dark);*/
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-decoration: inherit;
    text-align: inherit;
    text-shadow: inherit;
    text-wrap: inherit;
    padding: 0;
    margin: 0;
    color: inherit;
}

#et-main-area {
    transition: opacity 0.3s ease-in-out;
    max-width: 100vw;
    overflow: hidden;
}

#et-main-area:not(.ready) {
    opacity: 0;
}

/* =Global Button Styles (Matching Figma CTA)
------------------------------------------------------- */
a.et_pb_button,
li.et_pb_button>a {
    background-color: var(--color-brand-cyan-blue);
    border-color: var(--color-brand-cyan-blue);
    color: var(--color-text-light);
    border-radius: 15px;

    font-weight: 600;
    padding: 0.6588em 1.0869565217391304em;
    text-transform: uppercase;
    transition: all 0.3s ease-in-out;
    display: inline-flex !important;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    column-gap: 0.75em;
    line-height: 1.2 !important;
    border-width: 1.5px !important;
    position: relative;
}

li.et_pb_button {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: none !important;
    color: var(--color-text-light);
    font-weight: 600;
    font-family: 'Calibri';
    font-size: 1.3529411764705883rem;

}

#top-menu li.et_pb_button>a {
    font-size: 1.3529411764705883rem;
    line-height: 1em !important;
}

body #page-container #et-main-area .et_pb_section a.et_pb_button:hover,
body #page-container #main-header .container li.et_pb_button>a:hover {
    padding: 0.6588em 1.0869565217391304em;
    border-color: var(--color-brand-cyan-blue);
}

body #page-container #et-main-area .et_pb_section a.et_pb_button::after,
body #page-container #main-header .container li.et_pb_button>a::after {
    /*  width: 0.5em;
    height: 0.5em;*/
    margin: 0 !important;
    /* content: "";*/
    /*  background: url(/wp-content/themes/waterleaks-polygongroup/assets/images/btn-default-icon.svg) no-repeat center center;
    background-size: contain;*/
    display: inline-block;
    opacity: 1;
    position: relative;
    transform: none;
    z-index: 1;
    content: '';
    font-family: ETmodules !important;
    line-height: 1em !important;
    transition: all 0.3s ease-in-out;
}

body #top-menu li.current-menu-ancestor>a,
body #top-menu li.current-menu-item>a {
    color: #ffffff;
}

body #page-container #main-header .container li.et_pb_button:after {
    display: none !important;
}

body #page-container #main-header .container li.et_pb_button>a::before {
    background: #000000;
    content: '';
    height: 0.75em;
    width: 0.75em;
    position: absolute;
    display: block !important;
    right: 1.2em;
    font-size: 1em !important;
    top: 50%;
    transform: translateY(-44%);
    z-index: 0;
    border-radius: 100%;
    opacity: 1;
    left: auto;
    transition: all 0.3s ease-in-out;
}

body #page-container #et-main-area .et_pb_section a.et_pb_button::before {
    /*   background: #000000;
    content: '';
    height: 0.6em;
    width: 0.6em;
    position: absolute;
    display: block !important;
    right: 0.9em;
    top: 50%;
    transform: scale(0.8) translateX(3px) translateY(-48%);
    z-index: 0;
    border-radius: 100%;
    opacity: 1;
    left: auto;*/
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

body #page-container #main-header .container li.et_pb_button>a::after {
    /*   height: 0.75em;
    width: 0.75em;*/
}

body #page-container #et-main-area .et_pb_section a.et_pb_button {
    text-align: center;
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-content: center;
    right: auto;
    top: auto;
    left: auto;
    bottom: auto;
    transform-origin: center center;

}

body #page-container #et-main-area .et_pb_section a.et_pb_button:after {
    position: static !important;
    content: '';
    background: url(/wp-content/themes/waterleaks-polygongroup/assets/images/btn-default-icon.svg) no-repeat;
    height: 1em;
    aspect-ratio: 1 / 1;
    width: auto;
    background-size: contain;
}

body #page-container #et-main-area .et_pb_section a.et_pb_button:hover:after,
body #page-container #main-header .container li.et_pb_button>a:hover:after {
    transform: rotate(135deg) translateX(2px);
    transform-origin: center center;
}



/*
.et_pb_button:hover {
    background-color: var(--color-brand-red-hover);
    border-color: var(--color-brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 19, 31, 0.2);
}
*/
/* =Hero Section Helpers
------------------------------------------------------- */
/* Class to apply to the Hero Section in Divi */
.wl-hero-section h1 {
    color: var(--color-text-light) !important;
    font-size: 3.5rem;
    /* Large Hero Text */
    line-height: 1.2;
    margin-bottom: 20px;
}

.wl-hero-section p.lead {
    color: var(--color-text-light) !important;
    font-size: 1.2rem;
    max-width: 600px;
}

/* =Header Adjustments (If using Default Divi Header)
------------------------------------------------------- */
#main-header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.et_transparent_nav #main-header,
.et_transparent_nav #top-header {
    background-repeat: repeat-x !important;
    background: url(/wp-content/themes/waterleaks-polygongroup/assets/images/Nav-gradient.png);
    background-size: auto 100% !important;
    background-position-y: top;
}

.container.clearfix.et_menu_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    flex-wrap: nowrap;
    margin: 1.6470588235294117rem 0;
}

.et_header_style_left .logo_container {
    position: static;
    height: 58px;
    width: 235px;
}

span.logo_helper {
    display: none;
}

#main-header .logo_container #logo {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
}

#et-top-navigation {

    flex-grow: 1;
    padding: 0 !important;
    text-align: center;
}

#top-menu-nav,
#top-menu {
    width: 100%;
    float: none;
    display: flex;
    align-items: center;
    justify-content: center;

}

nav#top-menu-nav>#top-menu {
    width: 100%;
    column-gap: 7vw;
}

#top-menu li {
    padding: 0 !important;
}

.et_header_style_left #et-top-navigation nav>ul>li>a {
    padding: 0 !important;
}

.container.clearfix.et_menu_container:after,
.container.clearfix.et_menu_container:before {
    display: none;
}

#top-menu li a {
    /* color: var(--color-text-dark) !important;*/
    font-weight: 500;
    font-size: 1.411764705882353rem;
    white-space: nowrap;
}

#et_top_search {
    display: none;
    /* Often hidden in landing pages */
}

/* Forms */

body .gform-theme--foundation .gform_fields {
    row-gap: 1.411764705882353rem;
    display: flex;
    flex-direction: column;
}

body .gform-theme--foundation .gform_fields input[type="text"],
body .gform-theme--foundation .gform_fields input[type="email"],
body .gform-theme--foundation .gform_fields input[type="tel"],
body .gform-theme--foundation .gform_fields input[type="number"],
body .gform-theme--foundation .gform_fields input[type="password"],
body .gform-theme--foundation .gform_fields input[type="search"],
body .gform-theme--foundation .gform_fields input[type="url"],
body .gform-theme--foundation .gform_fields textarea {
    padding: 1.1764705882352942rem 2rem;
    height: auto;
    font-size: 1.411764705882353rem;
    line-height: 1.5416666666666667em;
    border-radius: 15px;
    color: #3C3C3C;
    width: 100%;
}



body .cky-notice-btn-wrapper .cky-btn,
body .cky-prefrence-btn-wrapper .cky-btn {
    border-radius: 15px;
}

body .gform-theme--foundation .hidden_label .gfield_label.gform-field-label,
body .cky-btn-revisit-wrapper {
    display: none;
}

body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer {
    margin-top: 3.6470588235294117rem;
}

div#gform_1_validation_container {
    width: 100%;
    background: #f6cdcd;
    border-radius: 15px;
    margin-top: -3em;
    margin-bottom: 1.411764705882353rem;
}

.gform-theme--framework .gform_validation_errors .gform_submission_error {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
}

.gfield_description.validation_message.gfield_validation_message {
    position: absolute;
    bottom: 5px;
    left: 2rem;
}

.gform-theme--foundation .gfield {
    position: relative;
}

body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer .gform_button.button {

    font-size: 1.588235294117647rem;
    padding: 1.1764705882352942rem;
    border-radius: 15px;
    background-color: #009FE3;
    line-height: 1.3703703703703705em;
    text-align: center;
    color: #ffffff;
}

body .gform-theme--foundation .gform_fields textarea {
    height: 11rem;
}

.gform_button.button.gform-button--width-full {
    width: 100%;
}

.et_pb_section {
    padding-left: 2.9411764705882355rem;
    padding-right: 2.9411764705882355rem;
}

body .et_pb_button:after {
    content: '';
    font-size: 1em !important;
}

body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer .gform_button.button {
    font-size: 1.588235294117647rem;
    padding: 1.1764705882352942rem;
    border-radius: 15px;
    background-color: #009FE3;
    line-height: 1.3703703703703705em;
    text-align: center;
    color: #ffffff;
}

body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer .gform_button.button.gform-button--width-full {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    column-gap: 0.35em;
    flex-direction: row;
    transition: 0.3s;
}

body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer .gform_button.button.gform-button--width-full:after {
    content: '';
    display: flex;
    width: 1.1em;

    background: url(/wp-content/themes/waterleaks-polygongroup/assets/images/Arrow-right.svg) no-repeat;
    background-size: contain;
    align-items: center;
    flex-direction: row;
    align-content: center;
    background-position: center;
    aspect-ratio: 25 / 20;
    transition: 0.3s;
}

body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer .gform_button.button.gform-button--width-full:hover:after {
    transform: translateX(0.35em);
}

/* Get in Touch floating button */
a.get-in-touch {
    color: #ffffff;
    background: #009FE3;
    border-radius: 50%;
    font-family: Calibri, sans-serif;
    width: 7.352941176470588rem;
    height: 7.352941176470588rem;
    display: flex;
    flex-direction: column;
    font-size: 1.1176470588235294rem;
    text-transform: uppercase;
    text-align: center;
    justify-content: center;
    align-items: center;
    row-gap: 0.25em;
    line-height: 1.2em;
    font-weight: 700;
    z-index: 9999;
    text-decoration: none;
    transition: 0.3s ease;
    right: 32px;
}

a[data-hover-section="benefits"].get-in-touch {
    background: #001e46;
}

a.get-in-touch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 159, 227, 0.4);
}

.get-in-touch span {
    display: block;
    max-width: 75%;
}

body.lang-fr a.get-in-touch {
    font-size: 1rem;
}

a.get-in-touch img {
    width: 0.8em;
    height: auto;
}

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

    #top-menu-nav,
    #top-menu {
        width: 100%;
        float: none;
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    nav#top-menu-nav>#top-menu {
        column-gap: unset;
    }




}

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

    body #page-container #top-menu li a,
    body #page-container #top-menu li.et_pb_button {
        font-size: 1.667vw;

    }

    body #page-container #top-menu li.et_pb_button>a {
        border-radius: 0.6521739130434783em;
    }

    .et_header_style_left .logo_container {
        width: 16.319vw;
        height: auto;
        aspect-ratio: 236/58;
    }


}


@media (max-width: 980px) {


    :root {
        /* font-size: 15px;*/
    }

    /* #main-header #et-top-navigation,*/
    #main-content .hide_on_phone,
    #top-menu-nav>ul#top-menu>li:not(.wpml-ls-item),
    .top-right-search,
    div#et_mobile_nav_menu {
        display: none !important;
    }

    #top-menu-nav {

        justify-content: flex-end;

    }

    #et-top-navigation {
        padding: 0 !important;
    }

    body #page-container #et-main-area .et_pb_section a.et_pb_button::before {
        background: #000000;
        content: '';
        height: 0.35em;
        width: 0.35em;
        position: absolute;
        display: block !important;
        right: 0.22em;
        top: 50%;
        transform: translateY(-43%);
        z-index: 0;
        border-radius: 100%;
        opacity: 1;
        left: auto;
    }

    .et_header_style_left .logo_container {
        position: static;
        height: 30px;
        width: 121px;
    }

    .et_pb_section {
        padding-left: 1.4705882352941178rem;
        padding-right: 1.4705882352941178rem;
    }

    .container.clearfix.et_menu_container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        align-content: center;
        flex-wrap: nowrap;
        margin: 1.6470588235294117rem auto;
        width: 90%;
    }

    #top-menu li a {
        font-size: 12px !important;
        border-radius: 7.5px !important;
    }


    a.get-in-touch {
        height: 5.764705882352941rem;
        width: 5.764705882352941rem;
        font-size: 0.9rem !important;
        right: 25px;
    }

    body.lang-fr a.get-in-touch {
        font-size: 0.85rem !important;
    }

    /* Forms*/

    body .gform-theme--foundation .gform_fields input[type="text"],
    body .gform-theme--foundation .gform_fields input[type="email"],
    body .gform-theme--foundation .gform_fields input[type="tel"],
    body .gform-theme--foundation .gform_fields input[type="number"],
    body .gform-theme--foundation .gform_fields input[type="password"],
    body .gform-theme--foundation .gform_fields input[type="search"],
    body .gform-theme--foundation .gform_fields input[type="url"],
    body .gform-theme--foundation .gform_fields textarea {
        font-size: 1rem;
        padding: 0.8823529411764706rem 1.2705882352941178rem;

    }

    div#gform_1_validation_container {
        position: relative;
        transform: translateY(0%);
        margin-top: -4rem;
    }

    body #et-main-area .et_pb_button {
        font-size: 0.7058823529411765rem;
        padding: 0.75em 0.625em !important;
        border-radius: 7.5px;
    }

    body .gform-theme--foundation .gform_fields {
        row-gap: 1.1176470588235294rem;
        display: flex;
        flex-direction: column;
    }

    body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer {
        margin-top: 2.588235294117647rem;
    }

    body #et-main-area .gform-theme.gform-theme--framework.gform_wrapper .gform_footer .gform_button.button {
        font-size: 1.3529411764705883rem;
        padding: 0.7941176470588235rem 2.4411764705882355rem;
    }

    .gfield_description.validation_message.gfield_validation_message {

        bottom: 2px;
        left: 1.2705882352941178rem;
    }

    div.gform_validation_errors {
        padding: 0.8823529411764706rem 1.2705882352941178rem;
        line-height: 1.1em;
        margin-top: -1rem !important;
    }

    div.gform_validation_errors h2 {
        line-height: 1.25em !important;

    }


}