/*
Theme Name: Beaver Builder Child Theme
Theme URI: http://www.wpbeaverbuilder.com
Version: 1.0
Description: An example child theme that can be used as a starting point for custom development.
Author: The Beaver Builder Team
Author URI: http://www.fastlinemedia.com
template: bb-theme
*/

/** Global */
html {
    scroll-behavior: smooth;

}
.gform-theme--framework {
    --gf-color-danger: #ff2121 !important;
    --gf-form-validation-bg-color: rgba(var(--gf-color-danger-rgb), 0.2) !important;
}

body.home {
    background: rgb(52, 29, 49);
    background: linear-gradient(283deg, rgba(52, 29, 49, 1) 0%, rgba(32, 53, 54, 1) 100%);
}

body.home .fl-page-content {
    background-color: transparent !important;
    position: relative;
    /*z-index: 1;*/
}

body.home .fl-page {
    position: relative;
}

body.home .home-background {
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow: hidden;
}
body.home .home-background img {
    top: 0;
    left: 0;
    width: 100%;
    position: absolute;
    object-fit: cover;
    animation: fadeIn 2s ease;
}

@media screen and (max-width: 1400px) {
    .home-background img {
        object-fit: unset !important;
        min-height: 100% !important;
        min-width: 150% !important;
        margin-left: -25% !important;
    }
}

/** Header */
header {
    z-index: 10;
}
header .fl-row-content-wrap {
    transition: all 350ms;
}

header .header-nav a {
    transition: 350ms;
    color: white !important;
}

header .header-nav a:hover {
    color: #C4EEDF !important;
}

/** Contact Us */
.contact-us-button a.fl-button {
    background: none !important;
}

.contact-us-button a.fl-button:hover {
    background: none !important;
}

.contact-us-button .fl-button {
    position: relative;
    overflow: hidden;
}

.contact-us-button .fl-button span {
    position: relative;
    z-index: 1;
}

.contact-us-button .fl-button::before,
.contact-us-button .fl-button::after {
    content: ' ';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    transition: all 250ms;
    background: linear-gradient(83.66deg, rgba(196, 238, 223, 0.5) 2.64%, rgba(0, 197, 128, 0.5) 97.69%);
    left: -100%;
}

.contact-us-button .fl-button:after {
    left: 0;
    background: rgba(255, 255, 255, 0.1);
}

.contact-us-button .fl-button:hover:before {
    background: linear-gradient(83.66deg, rgba(196, 238, 223, 0.5) 2.64%, rgba(0, 197, 128, 0.5) 97.69%);
    opacity: 1;
    left: 0;
}

.contact-us-button .fl-button:hover:after {
    left: 100%;
}

/** Hero Graphics */

/** Set the node container to relative positioning to help to orientation. */
.fl-node-7alfobu50dxj {
    position: relative;
}

#about-us {
    overflow: hidden;
}

.hero-graphics {
    /*position: relative;*/
}

.hero-graphics .primary-graphic,
.hero-graphics .secondary-graphic {
    position: absolute;
    width: 494px;
    height: 822px;
    user-select: none;
    transition: all 250ms;
}

.hero-graphics .primary-graphic {
    top: -137px;
    right: 32px;
    transform: scale(0.9);
    animation: pulse 3s ease alternate-reverse infinite;
}

.hero-graphics .secondary-graphic {
    position: absolute;
    right: 615px;
    top: 585px;
    animation: pulse 3s ease-in alternate-reverse infinite;
}

.hero-graphics .primary-graphic img,
.hero-graphics .secondary-graphic img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 300ms;
}

.hero-graphics .stroke {
    transform: rotate(20deg);
    z-index: 0;
}

.hero-graphics .secondary-graphic .stroke {
    transform: rotate(0);
    z-index: 0;
    margin-left: -50px;
    margin-top: 50px;
}

.hero-graphics .secondary-graphic img.mask {
    object-position: 0 -175px;
}

.hero-graphics .secondary-graphic {
    position: absolute;
}

.hero-graphics .scroll-graphic {
    position: absolute;
    right: 0;
    bottom: -120px;
    z-index: 1;
    user-select: none;
    transition: all 420ms;
}

.hero-graphics .scroll-graphic .wrap {
    position: relative;
}

.hero-graphics .scroll-graphic .arrow {
    position: absolute;
    left: 106px;
    top: 85px;
}

.mask {
    z-index: 1;
    mask: url(/wp-content/plugins/tb-guide-fire-safety/assets/img/mask.svg);
    mask-type: alpha;
    mask-repeat: no-repeat;
}

/** Footer */
footer {
    z-index: 1;
    position: relative;
}

.footer-menu .current_page_item {
    font-weight: 500;
}


/** Contact Form */
.contact-form label,
.contact-form legend {
    font-size: 24px !important;
}

.contact-form .ginput_container_name label {
    display: none !important;
}

.contact-form .widgettitle {
    display: none;
}

.contact-form textarea {
    border: 1px solid #C2C2C2 !important;
    background-color: rgba(255, 255, 255, 0.025) !important;
    border-radius: 10px;
    color: white !important;
    font-size: 18px !important;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"] {
    height: 50px !important;
    border: 1px solid #C2C2C2 !important;
    transition: all 350ms;
    background-color: rgba(255, 255, 255, 0.025) !important;
    color: white !important;
    font-size: 18px !important;
}


.contact-form textarea:focus,
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="checkbox"]:focus,
.contact-form input[type="submit"]:focus {
    box-shadow: 0 0 10px #009F68 !important;
}

.contact-form .gfield_error input[type="text"],
.contact-form .gfield_error input[type="email"],
.contact-form .gfield_error input[type="tel"],
.contact-form .gfield_error textarea {
    border: 1px solid #ff00009c !important
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="tel"]::placeholder,
.contact-form textarea::placeholder {
    color: #A6A6A6 !important;
    font-size: 20px;
}

.contact-form .gchoice {
    align-items: center;
}

.contact-form .gchoice label {
    color: rgba(255, 255, 255, 0.8) !important;
}

.contact-form .ginput_container_checkbox {
    color: rgba(255, 255, 255, 0.8) !important;
    position: relative;
    margin-top: -8px;
}

.contact-form input[type="submit"] {
    background-color: #00C580 !important;
    display: block !important;
    padding: 24px !important;
    width: 100% !important;
    font-size: 24px !important;
    border-radius: 10px !important;
    transition: all 250ms;
}

.contact-form input[type="submit"]:hover {
    background-color: #00da8d !important;
}

.contact-form .gfield_checkbox {
    cursor: pointer;
}

/** Our Sectors */
.our-sectors h2.title {
    font-size: 88px;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.8) !important;
    /*position: sticky;*/
    position: absolute;
    left: -100px;
    top: -29px;
    font-weight: 700;
    letter-spacing: 5px;
    transform: rotate(180deg);
    writing-mode: vertical-lr;
}

.our-sectors {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.our-sectors .sectors-wrap {
    display: flex;
    position: relative;
}

.our-sectors .sectors-wrap .image {
    width: 489px;
    max-width: 489px;
    height: 686px;
    max-height: 686px;
    aspect-ratio: 489 / 686;
    overflow: hidden;
    margin-right: 120px;
    position: -webkit-sticky;
    position: sticky;
    top: 200px;
}

.our-sectors .sectors-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
}

.our-sectors .sectors-wrap img.top-left {
    object-position: top left;
}

.our-sectors .sectors-wrap img.top-center {
    object-position: top center;
}

.our-sectors .sectors-wrap img.top-right {
    object-position: top right;
}

.our-sectors .sectors-wrap img.center-left {
    object-position: center left;
}

.our-sectors .sectors-wrap img.center-center {
    object-position: center;
}

.our-sectors .sectors-wrap img.center-right {
    object-position: center right;
}

.our-sectors .sectors-wrap img.bottom-left {
    object-position: bottom left;
}

.our-sectors .sectors-wrap img.bottom-center {
    object-position: bottom center;
}

.our-sectors .sectors-wrap img.bottom-right {
    object-position: bottom right;
}

.our-sectors .sectors-wrap img.base-image {
    z-index: 0;
}

.our-sectors .sectors-wrap img.top-image {
    z-index: 1;
}

.our-sectors .sectors {
    width: 582px;
    max-width: 582px;
    color: white !important;
}

.our-sectors .sector-item {
    padding: 26px 0;
    border-bottom: 1px solid white;
}

.our-sectors .sector-item:first-of-type {
    padding-top: 0;
}

.our-sectors .toggle-sector-visibility {
    display: flex;
    justify-content: space-between;
    font-size: 32px;
    color: white !important;
    transition: 250ms;
    scroll-margin-top: 150px;
}

.our-sectors .toggle-state {
    position: relative;
}

.our-sectors .toggle-state span {
    position: absolute;
    font-size: 48px;
    margin-top: -8px;
    margin-left: -20px;
}

.our-sectors .toggle-sector-visibility:hover,
.our-sectors .toggle-sector-visibility:active,
.our-sectors .toggle-sector-visibility:focus {
    text-decoration: none;
    color: #C4EEDF !important;
}

.our-sectors .sector-content {
    display: none;
    color: white !important;
    font-size: 20px;
    padding-top: 24px;
}

/* Our Process */
#our-process svg {
    max-width: 100%;
}

/* Our Services */
.services-carousel {
    display: flex;
    gap: 25px;
    overflow: hidden;
}

.services-carousel.slick-initialized {
    display: block;
    overflow: initial;
}

.services-carousel .slick-dots {
    bottom: -75px;
}

.services-carousel .slick-dots li button::before {
    font-size: 18px;
}
.services-carousel .slick-arrow {
    border: none !important;
}
.services-carousel .slick-dots li.slick-active button::before {
    color: #00C580 !important;
    outline: none !important;

}
@supports (-webkit-touch-callout: none) {
    .services-carousel .slick-dots li.slick-active button::before {
        top: 1px;
        left: 0.2px;
    }
}
.slick-dots button {
    outline: none !important;
    position: relative !important;
}
.slick-prev, .slick-next {
    display: none !important;
}

.services-carousel .service-item {
    display: flex;
    margin: 0 12px;
    height: 100%;
    min-height: 525px;
}

.services-carousel .service-item a {
    /*min-width: 600px;*/
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services-carousel .service-thumbnail {
    max-width: 612px;
    display: flex;
    aspect-ratio: 612 / 430;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    margin-bottom: 40px;
}

.services-carousel .service-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    transition: 250ms all;
}

.services-carousel .service-thumbnail:hover img {
    transform: scale(1.05);
}

.services-carousel a .service-title {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    margin-bottom: 40px;
}

.services-carousel a:hover {
    text-decoration: none !important;
}

.services-carousel span.button {
    width: 244px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 76px;
    font-size: 20px;
    display: inline-block;
    padding: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    transition: all 250ms;
}

.services-carousel span.button:hover {
    color: #00C580;
    border-color: #00C580;
    background: rgba(0, 197, 128, 0.02);
}

/** Services modal */
.services-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 101;
    align-items: center;
    justify-content: center;
    display: flex;
    color: #3E3E3E;
}

.services-modal .modal-wrap {
    background-color: white;
    border-radius: 10px;
    max-height: 90%;
    max-width: 90%;
    box-shadow: rgba(57, 57, 64, 0.3) 0px 7px 29px 0px;
    display: flex;
    overflow: hidden;
}

.services-modal .modal-content {
    padding: 75px;
    max-width: 600px;
    overflow-y: auto;
    scrollbar-width: thin;
    position: relative;
}

.services-modal .modal-content h4 {
    font-size: 24px;
}

.services-modal .image-content {
    width: 527px;
    position: relative;
    flex-grow: 1;
}

.services-modal .close-modal {
    position: absolute;
    top: 50px;
    right: 50px;
    transition: all 250ms;
}
.services-modal .modal-content .close-modal {
    display: none;
}
.services-modal .close-modal:hover {
    transform: scale(1.1);
}

.services-modal .image-content img {
    position: absolute;
    object-fit: cover;
    object-position: center;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.services-modal .service-heading {
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.services-modal .service-title {
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.services-modal .service-content {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 30px;
}

.services-modal .service-content ul {
    padding-left: 20px;
}


/** Animations */

@-webkit-keyframes rotating /* Safari and Chrome */
{
    from {
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotating {
    from {
        -ms-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -ms-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.rotating {
    -webkit-animation: rotating 45s linear infinite;
    -moz-animation: rotating 45s linear infinite;
    -ms-animation: rotating 45s linear infinite;
    -o-animation: rotating 45s linear infinite;
    animation: rotating 45s linear infinite;
}

.up-down {
    animation: up-down ease-in 3s;
    animation-iteration-count: infinite;
    transform-origin: 50% 50%;
}

@keyframes up-down {
    0% {
        transform: translate(1px, 0px);
    }
    50% {
        transform: translate(1px, 10px);
    }
    100% {
        transform: translate(1px, 0px);
    }
}


@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.9)
    }
    100% {
        transform: scale(0.92)
    }
}

/** Responsive patches */
@media screen and (max-width: 1360px) {
    .fl-node-x4j1pghb5n8i {
        width: 70%;
    }
    .hero-graphics .primary-graphic {
        right: -26px !important;
    }
    .our-sectors {
        flex-wrap: wrap;
    }
    .our-sectors h2 {
        width: 100%;
        text-align: center;
        font-size: 48px !important;
        transform: unset !important;
        writing-mode: unset !important;
        position: relative !important;
        left: unset !important;
        top: unset !important;
        margin-bottom: 24px;
    }
    .our-sectors .sectors-wrap {
        min-width: 100% !important;
        justify-content: space-between !important;
    }

    .our-sectors .sectors {
        padding-left: 24px;
        width: 70% !important;
        min-width: 70% !important;
    }
    .our-sectors .toggle-state span {
        margin-top: -12px;
        font-size: 32px;
    }
    .our-sectors .toggle-sector-visibility {
        font-size: 18px;
    }
    .our-sectors .sector-content {
        font-size: 16px;
    }
    .our-sectors .sectors-wrap .image {
        margin-right: 12px;
    }
}
@media screen and (max-width: 1200px) {
    .fl-node-x4j1pghb5n8i {
        width: 60%;
    }
    .hero-graphics .primary-graphic img:first-of-type {
        transform: scale(.9);
    }
    .hero-graphics .primary-graphic img:last-of-type {
        transform: scale(.9) rotate(20deg);
    }
    .hero-graphics .secondary-graphic {
        right: 420px !important;
    }
    .hero-graphics .secondary-graphic img {
        transform: scale(0.9) !important;
    }
    .contact-us-button {
        font-size: 18px !important;
    }
    .our-sectors .sectors-wrap .image {
        width: 244px;
        max-width: 244px;
        height: 343px;
        max-height: 343px;
        margin-right: 12px;
    }
}
@media screen and (max-width: 1080px) {
    .fl-node-x4j1pghb5n8i {
        width: 54%;
    }
    .fl-node-x4j1pghb5n8i h1 {
        font-size: 42px !important;
        line-height: 54px !important;
    }
    .hero-graphics .primary-graphic img:first-of-type {
        transform: scale(.8);
    }
    .hero-graphics .primary-graphic img:last-of-type {
        transform: scale(.8) rotate(20deg);
    }
    .hero-graphics .secondary-graphic {
        right: 360px !important;
    }
    .contact-us-button a.fl-button span {
        font-size: 16px !important;
    }
    /** Header Cols */
    /* Logo Col. */
    .fl-node-uej1cig3vxdf {
        width: 15%;
    }
    /* Contact us col */
    .fl-node-vndbt9rf2g0x {
        width: 19%;
    }
    #menu-header-navigation li {
        font-size: 14px !important;
    }

}
@media screen and (max-width: 1000px) {
    .fl-node-x4j1pghb5n8i {
        width: 60%;
    }
    .hero-graphics .primary-graphic {
        right: -60px !important;
    }
    .hero-graphics .secondary-graphic {
        right: 260px !important;
    }
    .hero-graphics .secondary-graphic img {
        transform: scale(0.8) !important;
    }
    .hero-graphics .scroll-graphic {
        right: -19px !important;
        bottom: -49px !important;
    }
    header .fl-node-6m5j24cdvq3o {
        display: none!important;;
    }
    .services-carousel span.button {
        width: auto;
        font-size: 16px;
        padding: 8px 16px;
    }
    .home-background img {
        object-fit: unset !important;
        min-height: 100% !important;
        min-width: 150% !important;
        margin-left: -25% !important;
    }
    .services-modal .modal-content {
        padding: 32px !important;
        max-width: 420px !important;
    }
    .services-modal .service-title {
        font-size: 20px;
    }
    .services-modal .service-content {
        font-size: 14px;
        margin-bottom: 0px;
        line-height: 22px;
    }
    .services-modal .modal-content h4 {
        font-size: 22px;
    }
}
@media screen and (max-width: 950px) {
    .fl-node-x4j1pghb5n8i {
        width: 64%;
    }
    .hero-graphics .primary-graphic {
        top: -170px !important;
        right: -125px !important;
    }

    .services-carousel a .service-title {
        font-size: 20px;
        line-height: 28px;
        min-height: 84px !important;
    }

    .services-carousel .service-item {
        min-height: 320px;
    }

}
@media screen and (max-width: 875px) {
    .fl-node-x4j1pghb5n8i {
        width: 70%;
    }
    .hero-graphics .primary-graphic {
        top: -197px !important;
        right: -165px !important;
    }
    .hero-graphics .primary-graphic img:first-of-type {
        transform: scale(.7);
    }
    .hero-graphics .primary-graphic img:last-of-type {
        transform: scale(.7) rotate(20deg);
    }
    .hero-graphics .secondary-graphic {
        transform: scale(0.75);
        right: 160px !important;
        top: 515px;
    }
    .hero-graphics .secondary-graphic img {
        transform: scale(0.7) !important;
    }
    .hero-graphics .scroll-graphic {
        right: -19px !important;
        bottom: 24px !important;
    }
    #about-us .fl-row-content-wrap {
        min-height: 1000px !important;
    }
    .home-background img {
        object-fit: unset !important;
        min-height: 100% !important;
        min-width: 200% !important;
        margin-left: -50% !important;
    }
}
@media screen and (max-width: 780px) {
    .fl-node-x4j1pghb5n8i h1 {
        font-size: 38px !important;
        line-height: 50px !important;
    }
    body.home .fl-page {
        overflow-x: hidden;
    }
    #about-us .fl-row-content-wrap {
        margin-top: 240px;
        min-height: auto !important;
    }
}
@media screen and (max-width: 768px) {
    .fl-node-x4j1pghb5n8i {
        width: 70% !important;
        margin-left: 0;
    }
    /* Hero description text */
    .fl-node-01qja4n7xko6 {
        padding-right: 100px;
    }
    .fl-node-82vyc7mgrupk {
        display: flex;
        flex-wrap: nowrap !important;
        justify-content: space-between;
    }
    .fl-node-82vyc7mgrupk > div {
        width: 50% !important;
    }
    .mobile-process-graphic .fl-html {
        display: flex;
        justify-content: center;
    }
    /** Our Process grid */
    .fl-node-7j8ekfldryt1 {
        max-width: 320px;
        margin: 0 auto !important;
        grid-template-rows: unset !important;
    }
}
@media screen and (max-width: 740px) {
    .fl-node-x4j1pghb5n8i {
        width: 70% !important;
        margin-left: 0;
    }
    /* Hero description text */
    .fl-node-01qja4n7xko6 {
        padding-right: 100px;
    }
    #about-us .fl-row-content-wrap {
        margin-top: 100px;
        margin-bottom: 160px;
        min-height: auto !important;
    }
    .fl-node-x4j1pghb5n8i {
        width: 100% !important;
    }
    .hero-graphics .primary-graphic {
        top: 460px !important;
        right: -96px !important;
    }
    .hero-graphics .primary-graphic img:first-of-type {
        transform: scale(1);
    }

    .scroll-graphic {
        display: none;
    }
    .secondary-graphic {
        display: none;
    }
    .fl-node-x4j1pghb5n8i h1 {
        font-size: 30px !important;
        letter-spacing: 2px !important;
        line-height: 37px !important;
    }
    .fl-node-01qja4n7xko6 {
        padding-right: 0;
    }
    .contact-form label,
    .contact-form legend {
        font-size: 16px !important;
    }
    .contact-form input[type="text"]::placeholder,
    .contact-form input[type="email"]::placeholder,
    .contact-form input[type="tel"]::placeholder,
    .contact-form textarea::placeholder {
        font-size: 14px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"] {
        height: 36px !important;
    }

    .gform_fields {
        row-gap: 16px!important;
    }

    .contact-form input[type="submit"] {
        padding: 12px !important;
        font-size: 16px !important;
    }

    .our-sectors .title {
        font-size: 24px !important;
    }

    .our-sectors .sectors-wrap .image {
        display: none !important;
    }
    .our-sectors .sectors {
        padding-left: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
    }
    .our-sectors .sector-content {
        font-size: 14px;
    }
    .our-sectors .sector-item {
        padding: 16px 0;
        border-bottom: 1px solid white;
    }
    .services-carousel a .service-title {
        margin-bottom: 4px !important
    }
    .services-modal .image-content {
        display: none;
    }
    .services-modal .modal-content .close-modal {
        display: block;
        top: 20px;
        right: 20px;
    }
}
@media screen and (max-width: 540px) {
    header img {
        max-width: 100% !important;
    }
    .fl-node-82vyc7mgrupk > div:first-of-type {
        width: 40% !important;
    }
    .contact-us-button a.fl-button {
        font-size: 16px !important;
        padding: 4px 8px !important;
    }
    .mobile-process-graphic .fl-html {
        margin-top: -50px;
        margin-bottom: -50px;
    }
}
