:root {
    --primary-color: #7a1317;
    --secondary-color: #1E2640;
}
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Poppins&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* Menu */
nav.header-main,
nav.header-main a {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.column-gap--md .innerblocks-wrap {
    gap: 30px;
}

/* Page template */
.page-template-default .nv-single-page-wrap.col .nv-page-title-wrap.nv-big-title {
    display: none;
}
/* End Page template */

/* Sticky CTA on the right side */
.page .book-call-sticky-cta {
    position: fixed;
    top: calc(98% - 80px);
    right: 20px;
    transform-origin: center;
    width: 80px;
    height: 80px;
    background: #7a1317;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 999;
    animation: pulse 2s infinite;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.page .book-call-sticky-cta div,
.page .book-call-sticky-cta span,
.page .book-call-sticky-cta a {
    width: 100% !important;
    height: 100% !important;
}

.page .book-call-sticky-cta .wp-block-themeisle-blocks-font-awesome-icons-container {
    margin: 0 !important;
}

.page .book-call-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.page .book-call-sticky-cta:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.page .book-call-sticky-cta:hover,
.page .book-call-sticky-cta.active {
    right: 20px;
}

.page .book-call-sticky-cta:hover a,
.page .book-call-sticky-cta.active a {
    animation: none;
}

@-webkit-keyframes pulse {
    0% {
        -webkit-box-shadow: 0 0 0 0 rgba(122, 19, 23, 0.4);
    }

    70% {
        -webkit-box-shadow: 0 0 0 20px rgba(122, 19, 23, 0);
    }

    100% {
        -webkit-box-shadow: 0 0 0 0 rgba(122, 19, 23, 0);
    }
}
@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(122, 19, 23, 0.4);
        box-shadow: 0 0 0 0 rgba(122, 19, 23, 0.4);
    }

    70% {
        -moz-box-shadow: 0 0 0 20px rgba(122, 19, 23, 0);
        box-shadow: 0 0 0 20px rgba(122, 19, 23, 0);
    }

    100% {
        -moz-box-shadow: 0 0 0 0 rgba(122, 19, 23, 0);
        box-shadow: 0 0 0 0 rgba(122, 19, 23, 0);
    }
}

.img-center img {
    display: block;
    margin: 0 auto;
}

.wp-block-columns:has(.no-margin) {
    margin-bottom: 0;
}

.text-center {
    text-align: center;
}

/* What we do */
.what-we-do-columns > .innerblocks-wrap > div:hover > div {
    transform: translateY(-15px);
    -webkit-transform: translateY(-15px);
    -moz-transform: translateY(-15px);
    -ms-transform: translateY(-15px);
    -o-transform: translateY(-15px);
    box-shadow: rgba(30, 39, 64, 0.1) 0px 20px 15px -3px, rgba(30, 39, 64, 0.1) 0px 4px 50px -2px !important;
}

.what-we-do-columns > .innerblocks-wrap > div,
.what-we-do-columns > .innerblocks-wrap > div > div {
    height: 100%;
}

.what-we-do-columns > .innerblocks-wrap > div > div img {
    width:100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.what-we-do-columns > .innerblocks-wrap > div > div .wp-bootstrap-blocks-button {
    position: absolute;
    bottom:0;
    left: 0;
    width: 100%;
}
.what-we-do-columns > .innerblocks-wrap > div > div .wp-bootstrap-blocks-button > a {
    display: block;
}

/* Latest Posts */
.o-posts-grid-post-blog > div {
    height: 100%
}

.o-posts-grid-post-blog .o-posts-grid-post-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.latest-posts-wrapper .wp-bootstrap-blocks-button {
    text-align:center;
}

.latest-posts-wrapper .wp-bootstrap-blocks-button a {
    display:inline-block;
}

/* Testimonials */
.testimonial-cards > .innerblocks-wrap h2,
.testimonial-cards > .innerblocks-wrap p:not(.grid-single-testimonial) {
    margin-left: 30px;
}

.testimonial-cards > .innerblocks-wrap .grid-single-testimonial {
    position: relative;
    height: calc(100% - 160px);
    padding: 30px;
    background: rgba(30, 38, 64, 0.15);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    transition: all 0.5s ease-in-out;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
}

.testimonial-cards > .innerblocks-wrap > div:hover .grid-single-testimonial {
    background-color: transparent;
    color: #fff;
}

.testimonial-cards > .innerblocks-wrap > div .grid-single-testimonial::before {
    content: "";
    position:absolute;
    top: 0;
    left: 0;
    width:100%;
    height:100%;
    background-color: #1E2640;
    clip-path: circle(0% at 0% 100%);
    transition: clip-path 0.5s ease-in-out;
    z-index: -1;
    border-radius: 20px;
}

.testimonial-cards > .innerblocks-wrap > div:hover .grid-single-testimonial::before {
    clip-path: circle(150% at 0% 100%);
}

.testimonial-cards > .innerblocks-wrap > div .grid-single-testimonial::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 40px;
    border-top: 15px solid rgba(30, 38, 64, 0.15);
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid transparent;
    transition: all .5s ease-in;
    -webkit-transition: all .5s ease-in;
    -moz-transition: all .5s ease-in;
    -ms-transition: all .5s ease-in;
    -o-transition: all .5s ease-in;
}

.testimonial-cards > .innerblocks-wrap > div:hover .grid-single-testimonial::after {
    border-top: 15px solid var(--secondary-color);
}

.testimonial-cards > .innerblocks-wrap .testimonial-initials {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}
/* End testimonials */

/* Team Grid */
.team-grid .wp-block-themeisle-blocks-advanced-column {
    padding: 40px 0 0;
    overflow: hidden;
    border-radius: 20px !important;
    -webkit-border-radius: 20px !important;
    -moz-border-radius: 20px !important;
    -ms-border-radius: 20px !important;
    -o-border-radius: 20px !important;
}

.team-grid .wp-block-themeisle-blocks-advanced-column .wp-block-image {
    text-align: center;
    position: relative;
    z-index: -1;
}

.team-grid .wp-block-themeisle-blocks-advanced-column img {
    display: block;
    margin: 0 auto 20px;
    width: 180px;
    height: 180px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    transition: box-shadow 0.8s ease-in-out,  transform 0.4s ease-in-out;
    -webkit-transition: box-shadow 0.8s ease-in-out,  transform 0.4s ease-in-out;
    -moz-transition: box-shadow 0.8s ease-in-out,  transform 0.4s ease-in-out;
    -ms-transition: box-shadow 0.8s ease-in-out,  transform 0.4s ease-in-out;
    -o-transition: box-shadow 0.8s ease-in-out,  transform 0.4s ease-in-out;
}

.team-grid .wp-block-themeisle-blocks-advanced-column:hover div,
.team-grid .wp-block-themeisle-blocks-advanced-column:hover h5,
.team-grid .wp-block-themeisle-blocks-advanced-column:hover p,
.team-grid .wp-block-themeisle-blocks-advanced-column:hover a,
.team-grid .wp-block-themeisle-blocks-advanced-column:hover i {
    color: #fff !important;
}

.team-grid .wp-block-themeisle-blocks-advanced-column:hover svg {
    fill: var(--primary-color) !important;
}

.team-grid .wp-block-themeisle-blocks-advanced-column:hover img {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1), 0 0 0 400px var(--primary-color);
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}
/* End team grid */

/* Team page testimonials */
.testimonials-preview-card > p:nth-child(1) {
    position: relative;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    transition: background-color 0.4s ease-in-out;
    -webkit-transition: background-color 0.4s ease-in-out;
    -moz-transition: background-color 0.4s ease-in-out;
    -ms-transition: background-color 0.4s ease-in-out;
    -o-transition: background-color 0.4s ease-in-out;
}

.testimonials-preview-card > p:nth-child(1)::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    border-top: 15px solid rgba(255, 255, 255, 0.1);
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid transparent;
}

.testimonials-preview-card:hover > p:nth-child(1) {
    color: #000 !important;
    background-color: #fff;
}

.testimonials-preview-card:hover > p:nth-child(1)::after {
    border-top: 15px solid rgba(255, 255, 255, 1);
    animation: speech-bubble-bounce 1s ease-out infinite;
    -webkit-animation: speech-bubble-bounce 1s ease-out infinite;
}

@keyframes speech-bubble-bounce {
    0% {
        transform: translate(-50%, 0);
        -webkit-transform: translate(-50%, 0);
        -moz-transform: translate(-50%, 0);
        -ms-transform: translate(-50%, 0);
        -o-transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
        -webkit-transform: translate(-50%, 10px);
        -moz-transform: translate(-50%, 10px);
        -ms-transform: translate(-50%, 10px);
        -o-transform: translate(-50%, 10px);
    }
    100% {
        transform: translate(-50%, 0px);
        -webkit-transform: translate(-50%, 0px);
        -moz-transform: translate(-50%, 0px);
        -ms-transform: translate(-50%, 0px);
        -o-transform: translate(-50%, 0px);
    }
}

.testimonials-preview-card > p:nth-child(2) {
    margin: 0;
}
/* End Team page testimonials */

/* Single team member */
.single-team-member img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1), 0 0 0 10px rgba(122, 19, 23, 0.5);
    transition: box-shadow 0.6s ease-in-out;
    -webkit-transition: box-shadow 0.6s ease-in-out;
    -moz-transition: box-shadow 0.6s ease-in-out;
    -ms-transition: box-shadow 0.6s ease-in-out;
    -o-transition: box-shadow 0.6s ease-in-out;
}

.single-team-member:hover img {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 1), 0 0 0 15px rgba(122, 19, 23, 0.8);
}
/* End Single team member */

/* Contact form */
#wpforms-form-2039 input,
#wpforms-form-2039 textarea{
    color: #000;
}

@media(max-width: 768px) {
    .hide-mobile {
        display: none;
    }
    
    .single-team-member img {
        width: 200px;
        height: 200px;
    }
}