:root {
    font-size: 16px;
    --desktop-margins: 198px;
    --desktop-width: 84%;
    --mobile-width: 80%;
}

@font-face {
    font-family: "InstRegular";
    src: url("../fonts/Instrument_Sans/static/InstrumentSans-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "InstSemiBold";
    src: url("../fonts/Instrument_Sans/static/InstrumentSans-SemiBold.ttf");
    font-weight: 600;
}

@font-face {
    font-family: "InstBold";
    src: url("../fonts/Instrument_Sans/static/InstrumentSans-Bold.ttf");
    font-weight: 700;
}

@font-face {
    font-family: "MontRegular";
    src: url("../fonts/Montserrat/static/Montserrat-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "MontMedium";
    src: url("../fonts/Montserrat/static/Montserrat-Medium.ttf");
    font-weight: 500;
}

@font-face {
    font-family: "MontSemiBold";
    src: url("../fonts/Montserrat/static/Montserrat-SemiBold.ttf");
    font-weight: 600;
}

@font-face {
    font-family: "MontBold";
    src: url("../fonts/Montserrat/static/Montserrat-Bold.ttf");
    font-weight: 700;
}

html, body {
    overflow-x: hidden;
    font-family: MontRegular;
}

a {
    text-decoration: none;
}

h1, h2, h3, h4, h5 {
    margin: 0;
}

h2.wp-block-heading {
    font-family: MontMedium;
    font-size: 1.375rem;
    line-height: 135%;
    text-align: center;
    color: var(--wp--preset--color--blue);

    @media (min-width: 768px) {
        font-size: 2.5rem;
    }
}

h2.wp-block-heading + p {
    width: 80%;
    margin: 8px auto 0 auto;
    font-family: InstRegular;
    font-size: 1.125rem;
    line-height: 135%;

    @media (min-width: 768px) {
        width: 60%;
        font-size: 1.625rem;
    }
}

h2.wp-block-heading + .wp-block-casa-image-copy {
    margin-top: 64px;
}

button,
.wp-block-button__link {
    padding: 10px 40px;
    border: 2px solid var(--wp--preset--color--light-yellow);
    border-radius: 8px;
    background-color: var(--wp--preset--color--light-yellow);
    font-family: MontRegular;
    font-size: 1.125rem;
    font-style: normal;
    font-weight: 700;
    line-height: 164%;
    text-align: center;
    color: var(--wp--preset--color--grey25);
    cursor: pointer;
    transition: all 200ms ease-in;

    &:hover {
        background-color: transparent;
    }
}

.link-buttons-on-grey {

    .wp-block-button__link {
        border-color: var(--wp--preset--color--blue);

        &:hover {
            background-color: transparent;
        }
    }
}

.casa-inner-container {
    width: var(--mobile-width);
    margin: 0 auto;

    @media (min-width: 768px) {
        width: var(--desktop-width);
        max-width: 1530px;
    }
}

.light-grey-bg {
    background-color: var(--wp--preset--color--light-grey);
}

.single-post {

    .wp-block-post-featured-image {

        img {
            aspect-ratio: 0.93;

            @media (min-width: 768px) {
                aspect-ratio: 3.25;
            }
        }
    }

    .post-content {
        width: 84%;
        margin: 0 auto;
        font-size: 1rem;
        font-style: normal;
        font-weight: 500;
        line-height: 164%;
        color: var(--wp--preset--color--grey);

        @media (min-width: 768px) {
            width: 63%;
        }

        .wp-block-post-title {
            margin: 0 0 12px 0;
            font-size: 2.25rem;
            font-style: normal;
            font-weight: 600;
            line-height: 133%;
            color: var(--wp--preset--color--blue);
        }

        .wp-block-cover {
            margin-top: 60px;
            margin-bottom: 60px;
        }
    }
} /* single-post */

.wpcf7-form {
    width: 80%;
    max-width: 928px;
    margin: 0 auto;
    padding-bottom: 64px;

    @media (min-width: 1024px) {
        width: 54%;
        padding-bottom: 140px;
    }

    .row {
        padding-top: 46px;

        @media (min-width: 1024px) {
            display: flex;
            justify-content: space-between;
        }

        .field-group {
            padding-top: 46px;

            &:first-child {
                padding-top: 0;
            }

            @media (min-width: 1024px) {
                padding-top: 0;
            }
        }
    }

    p {
        width: 100%;
        margin: 0;
    }

    label {
        font-family: InstSemiBold;
        font-size: 1.25rem;
        font-style: normal;
        line-height: 164%;
        color: var(--wp--preset--color--grey);
    }

    input[type="email"],
    input[type="text"],
    select,
    textarea {
        width: calc(100% - 20px);
        padding: 10px;
        border-radius: 8px;
        border: 2px solid var(--wp--preset--color--yellow);
        background: #FFF;
        font-family: InstRegular;
        font-size: 1.125rem;
        font-style: normal;
        line-height: 164%;
    }

    input[type="email"],
    input[type="text"] {
        width: calc(94% - 20px);
    }

    input[type="submit"] {
        width: 100%;
        padding: 10px 40px;
        border: 2px solid var(--wp--preset--color--blue);
        border-radius: 8px;
        background-color: var(--wp--preset--color--blue);
        font-size: 1.125rem;
        font-style: normal;
        font-weight: 700;
        line-height: 164%;
        text-align: center;
        color: #fff;
        cursor: pointer;
        transition: all 200ms ease-in;

        &:hover {
            background-color: transparent;
            color: var(--wp--preset--color--blue);
        }
    }

    textarea {
        width: 95%;
    }

    .wpcf7-checkbox label {
        font-family: MontMedium;
        font-size: 1rem;
    }

    .wpcf7-checkbox .wpcf7-list-item {
        display: block;
        margin: 21px 0 0 0;
    }
}
