@font-face {
    font-family: Quarion;
    src: url("fonts/quarion/Quarion-Book.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Quarion;
    src: url("fonts/quarion/Quarion-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Quarion;
    src: url("fonts/quarion/Quarion-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Quarion;
    src: url("fonts/quarion/Quarion-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: Quarion;
    src: url("fonts/quarion/Quarion-SemiBold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.fireproof-landing,
.processing-landing,
.cutting-landing {
    font-family: var(--font-family);
}

/* Keep the typography used by the previous product template. */
.page-template-page-editable-landing .fireproof-landing h1 {
    font-size: 28px !important;
}

.page-template-page-editable-landing .fireproof-landing h2 {
    font-size: 26px !important;
}

.page-template-page-editable-landing .fireproof-landing h3 {
    font-size: 24px !important;
}

.gc-form > div,
.pg-form > div,
.gc-form .wpcf7-form-control-wrap,
.pg-form .wpcf7-form-control-wrap {
    min-width: 0;
}

.gc-form input[type="file"],
.pg-form input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Keep portrait service photos from defining the height of the entire hero. */
:is(.postid-800, .postid-801, .postid-802, .postid-816) .pg-hero__media {
    position: relative;
    min-width: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
}

:is(.postid-800, .postid-801, .postid-802, .postid-816) .pg-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.fireproof-landing .fp-applications--cards {
    gap: 20px;
    align-items: stretch;
}

.fireproof-landing .fp-application-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    background: #fff;
}

.fireproof-landing .fp-application-card h3 {
    min-height: 2.28em;
    margin: 0;
    line-height: 1.14;
}

.fireproof-landing .fp-application-card__media {
    margin: 20px 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.fireproof-landing .fp-application-card__image {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
}

.fireproof-landing .fp-application-card__text {
    min-width: 0;
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.fireproof-landing .fp-application-card__text p {
    margin: 0;
    line-height: inherit;
}

.fireproof-landing .fp-application-card__text p + p {
    margin-top: 16px;
}

@supports (grid-template-rows: subgrid) {
    .fireproof-landing .fp-application-card {
        display: grid;
        grid-template-rows: subgrid;
        grid-row: span 3;
        row-gap: 20px;
    }

    .fireproof-landing .fp-application-card h3 {
        min-height: 0;
    }

    .fireproof-landing .fp-application-card__media {
        margin: 0;
    }
}

@media (max-width: 860px) {
    .fireproof-landing .fp-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .fireproof-landing .fp-hero__content,
    .fireproof-landing .fp-hero__media {
        min-width: 0;
    }

    .fireproof-landing .fp-hero h1 {
        overflow-wrap: anywhere;
    }

    .fireproof-landing .fp-application-card {
        padding: 24px;
    }

    .fireproof-landing .fp-application-card h3 {
        min-height: 0;
    }
}

.gc-form textarea,
.pg-form textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    font: inherit;
}

@media (max-width: 860px) {
    .gc-form,
    .pg-form {
        grid-template-columns: minmax(0, 1fr);
    }
}
