/* Buttons */
.wp-block-button.is-style-fill .wp-block-button__link {
    background-color: var(--yellow-color);
    color: var(--black-color);
    border: var(--black-color) solid 1px;
    padding: 15px 40px;
    font-weight: var(--font-weight-medium);
    font-style: italic;
    letter-spacing: 0.05px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--black-color);
    color: var(--white-color);
}
.wp-block-button.is-style-fill .wp-block-button__link:hover img {
    filter: invert(1);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    position: relative;
    border: none;
    overflow: hidden;
    border-radius: 0;
    background-color: transparent;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05px;
    padding: 0 0 22px 0;
}
.wp-block-button.is-style-outline .wp-block-button__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 37px;
    height: 7px;
    background-color: var(--black-color);
    transition: left 0.15s ease-in-out;
}
.wp-block-button.is-style-outline.white .wp-block-button__link::after {
    background-color: var(--white-color);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover::after {
    left: calc(100% - 37px);
}

/* Fixed lateral cta */
.single main:has(.fixed-lateral-cta),
.entry-content:has(.fixed-lateral-cta) {
    position: relative;
}
.fixed-lateral-cta {
    position: sticky;
    height: 0;
    opacity: 0;
    transition: opacity 0.1s ease-in;
    margin-left: 0;
    margin-right: 0;
}
.scrolled-half-viewport .fixed-lateral-cta {
    opacity: 1;
    height: auto;
    z-index: 500;
    margin-top: 15px;
    margin-bottom: 15px;
}

/* Text block */
.text-block {
    overflow: hidden;
}
@keyframes textGrow {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.to-animate:not(.to-divide).text-visible {
    animation: textGrow 0.7s ease-out forwards;
}
.to-animate.to-divide span:empty {
    width: 20px;
    height: auto;
}
.to-animate.to-divide {
    position: relative;
    display: flex;
    flex-wrap: wrap;
}
.to-animate.to-divide .mask span {
    transform: translateY(100px);
    display: inline-block;
}
.to-animate.to-divide.text-visible .mask span {
    animation: textGrow 0.35s ease-out forwards;
    animation-delay: calc(0.01s * var(--i));
}
.to-animate.to-divide .mask {
    overflow: hidden;
    display: inline-block;
}

/* Contact block, newsletter block */
.contact-block .mailpoet_form p:empty,
.contact-block .mailpoet_form br {
    display: none;
}
.wpcf7-form {
    justify-content: end;
    display: flex;
    flex-direction: column;
}
.wpcf7-form p {
    margin: 0;
}
.wpcf7-form input:not(.wpcf7-submit, [type="checkbox"]),
.wpcf7-form textarea {
    width: 100%;
}
.wpcf7-form-control-wrap {
    margin-bottom: 15px;
    display: block;
}
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea,
input.mailpoet_text {
    padding: 15px 30px;
    background-color: transparent;
    border: var(--white-color) 1px solid;
    border-radius: 0;
    color: var(--white-color);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-roboto);
}
.wpcf7-form-control-wrap input:hover,
.wpcf7-form-control-wrap textarea:hover,
input.mailpoet_text:hover {
    background-color: var(--yellow-color);
    color: var(--black-color);
}
.wpcf7-form-control-wrap input:hover::placeholder,
.wpcf7-form-control-wrap textarea:hover::placeholder,
input.mailpoet_text::placeholder {
    color: var(--black-color);
}
.wpcf7-form-control-wrap input:focus-visible,
.wpcf7-form-control-wrap textarea:focus-visible,
input.mailpoet_text:focus-visible {
    outline: none;
    border-radius: 0;
}
.wpcf7-form-control-wrap input::placeholder,
.wpcf7-form-control-wrap textarea::placeholder {
    color: var(--white-color);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--font-weight-medium);
}
.wpcf7-form .privacy-checkbox {
    color: var(--white-color);
}
.wpcf7-form input[type="checkbox"] {
    border: 1px solid var(--white-color);
}
.wpcf7-form input[type="checkbox"]:checked {
    background-color: var(--white-color);
}
.wpcf7-form input[type="checkbox"]:checked:after {
    background-color: var(--black-color);
}
.wpcf7-list-item > label,
.privacy-checkbox label {
    display: flex;
    align-items: center;
}
.wpcf7-list-item {
    margin: 0;
}
.privacy-checkbox a {
    text-decoration: underline;
    text-underline-offset: 4px;
}
.privacy-checkbox * {
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    text-align: left;
}
input[type="checkbox"]:hover {
    background-color: var(--yellow-color);
}
input[type="checkbox"]:checked {
    background-color: var(--black-color);
}
input[type="checkbox"] {
    height: 20px;
    width: 20px;
    margin: 0 10px 0 0;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--black-color);
    padding: 0;
    position: relative;
}
input[type="checkbox"]:checked:after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: var(--white-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.wpcf7-submit,
.mailpoet_submit {
    font-family: var(--font-family-roboto-condensed);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: var(--font-weight-semibold);
    color: var(--white-color);
    background-color: transparent;
    border: none;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.05px;
    padding: 0 0 15px 0;
}
.submit-wrapper {
    position: relative;
    display: inline-block;
    margin-left: auto;
    overflow: hidden;
    margin-top: 30px;
}
.submit-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 37px;
    height: 7px;
    background-color: var(--white-color);
    transition: left 0.15s ease-in-out;
}
.submit-wrapper:hover::after {
    left: calc(100% - 37px);
}
.wpcf7-spinner {
    display: block;
    margin-left: auto;
    position: absolute;
    bottom: -30px;
}
.wpcf7-response-output {
    color: var(--white-color);
}
.wpcf7-not-valid-tip,
.parsley-required {
    color: var(--error-color);
}
.maps-wrapper iframe {
    display:block;
}

/* Hero */
.hero-wrapper,
.video-block-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero-wrapper video,
.video-block-wrapper video{
    object-fit: cover;
    height: 100%;
}
.hero-wrapper figure,
.video-block-wrapper figure {
    position: absolute;
    inset: 0;
    min-width: 100%;
}
.video-block-wrapper p {
    margin-bottom: 30px;
}

/* Text grid */
.text-grid-block .description {
    margin-bottom: 45px;
}
.text-grid-block .text-grid-container {
    border-top: 1px solid var(--black-color);
}
.text-grid-item {
    box-shadow: inset -1px -1px 0 var(--black-color);
    margin-top: 0;
}
.text-grid-item .wp-block-heading {
    font-size: 30px;
    font-weight: var(--font-weight-bold);
}

/* Animated images */
.images-box figure,
.images-box img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}
.images-box figure {
    /* ios bug fix */
    position: relative;
    width: 100%;
    padding-top: 62.5%;
    margin: 0;
}
.images-box figure > * {
    /* ios bug fix */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hover-zoom img {
    transition: transform 0.75s ease;
}
.hover-zoom:hover img {
    transform: scale(1.05);
}
.img-with-background {
    background-color: var(--black-color);
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-button {
    cursor: pointer;
    display: flex;
    gap: 5px;
    align-items: center;
    border: none;
    background: transparent;
}
.dropdown-button:after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url("../images/icons/arrow-down.svg");
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white-color);
    color: var(--black-color);
    padding: 20px;
}
.dropdown-button,
.dropdown-content a {
    font-weight: var(--font-weight-semibold);
    font-family: var(--font-family-roboto-condensed);
    font-size: var(--wp--preset--font-size--medium);
    text-transform: uppercase;
}
.dropdown-content a {
    text-decoration: none;
    display: block;
    white-space: nowrap;
}
.dropdown-content a:hover {
    opacity: 0.35;
}
.dropdown.expanded .dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Image show up animation */
.image-show-up-animation img {
    opacity: 0;
    transform: translateY(200px);
    transition: opacity 1s, transform 1.5s;
}
.image-show-up-animation img.show-image {
    opacity: 1;
    transform: translateY(0);
}

/* Related services */
.related-services img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.related-services .title {
    text-transform: uppercase;
}

/* Fade-in text */
.fade-in-text {
    opacity: 0;
}

/* Cards component */
.cards-box .wp-block-heading {
    font-size: 50px;
}
.cards-box .cards-container {
    display: grid;
    grid-gap: 0;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
}
.cards-box .header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.cards-box .header .wp-block-heading,
.cards-box .header figure {
    margin: 0 !important;
}
.cards-box .header figure {
    width: 40px;
    height: 40px;
    display: contents;
}
.cards-box .header .wp-block-heading {
    font-size: 30px;
    text-transform: uppercase;
}

/* Numerated list with parallax block */
.numerated-list-block .block-title {
    font-size: 50px;
}
.numerated-list-block .number-group {
    display: flex;
    align-items: end;
}
.numerated-list-block .number {
    font-size: 222px;
    line-height: 222px;
    margin-bottom: 22px;
    color: transparent;
    -webkit-text-stroke: 1px var(--black-color);
    z-index: 1;
    white-space: nowrap;
}
.numerated-list-item .wp-block-heading:not(.number) {
    text-transform: uppercase;
    font-size: 30px;
    margin-bottom: 30px;
}

/* Default list */
.wp-block-list {
    padding-inline-start: 15px;
    font-size: var(--wp--preset--font-size--medium);
}

@media screen and (min-width: 768px) and (max-width: 1400px) {
    /* Hero */
    .hero h1.fs-adapt {
        font-size: 82px;
    }
}

@media screen and (min-width: 768px) {
    /* Buttons */
    .wp-block-button.is-style-fill .wp-block-button__link {
        font-size: 30px;
    }

    /* Hero */
    .hero .wp-block-heading + .wp-block-buttons {
        margin-top: 60px;
    }

    /* Fixed lateral cta */
    .fixed-lateral-cta {
        top: calc(100vh - 85px);
        padding-right: var(--wp--style--root--padding-right);
    }

    /* Contact block */
    .contact-block .wp-block-heading + p{
        margin-top: 30px;
    }

    /* Text grid */
    .text-grid-block {
        padding-top: 120px;
    }
    .text-grid-container {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
    }
    .text-grid-item {
        padding: 45px 90px;
    }
    .text-grid-item .wp-block-heading {
        margin-bottom: 30px;
    }
    .text-grid-block .navigation {
        display: none;
    }

    /* Images box */
    .images-box .content {
        padding: 15px 45px 105px 45px;
    }

    /* Related services */
    .related-services .title {
        padding: 15px 30px;
    }

    /* Text block */
    .to-animate.to-divide {
        column-gap: 18px;
    }

    /* Numerated list with parallax block */
    .numerated-list-block .numerated-list-item-wrapper {
        padding-top: 180px;
        padding-bottom: 90px;
    }
    .numerated-list-block .number-group {
        position: sticky;
        top: 80px;
    }
}

@media screen and (max-width: 768px) {
    /* Buttons */
    .wp-block-buttons .wp-block-button.is-style-fill {
        width: 100%;
    }
    .wp-block-button.is-style-fill .wp-block-button__link {
        font-size: var(--wp--preset--font-size--medium);
    }
    .wp-block-buttons>.wp-block-button.is-style-outline.has-custom-font-size .wp-block-button__link {
        font-size: 15px;
    }

    /* Hero */
    .hero .wp-block-heading + .wp-block-buttons {
        margin-top: 45px;
    }

    /* Fixed lateral cta */
    .fixed-lateral-cta {
        top: calc(100% - 80px);
        box-sizing: border-box;
        width: 100%;
    }
    .has-global-padding > .alignfull.fixed-lateral-cta {
        margin-left: auto;
        margin-right: auto;
    }

    /* Contact block */
    .contact-block .wp-block-columns {
        gap: 45px;
    }
    .contact-block .wp-block-heading + p {
        margin-top: 15px;
    }

    /* Text grid */
    .text-grid-block {
        padding-top: 45px;
        padding-bottom: 45px;
    }
    .text-grid-item.swiper-slide {
        height: unset;
    }
    .text-grid-item {
        padding: 30px 15px;
        min-height: 264px;
        border-top: 1px solid var(--black-color);
    }
    .text-grid-item .wp-block-heading {
        margin-bottom: 15px;
    }

    /* Images box */
    .images-box .content {
        padding: 15px 15px 60px 15px;
    }

    /* Related services */
    .related-services .title {
        padding: 15px;
        font-size: 30px;
    }

    /* Text block */
    .to-animate.to-divide {
        column-gap: 10px;
    }

    /* Cards component */
    .cards-box .cards-container {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-auto-rows: unset;
        margin-left: -15px!important;
        margin-right: -15px!important;
    }

    /* Numerated list with parallax block */
    .numerated-list-block {
        overflow: hidden;
    }
    .numerated-list-block .numerated-list-item-wrapper {
        margin-top: 45px;
    }
    .numerated-list-block .numerated-list-item-wrapper:not(:last-child) {
        margin-bottom: 45px;
    }
}