.home-hero {
    width: 100%;
    padding: 100px 0 120px 0;
    background-image: linear-gradient( rgba(0, 0, 0, .6) 0%), url(/imageserver/UserMedia/princeroofing/house-row.jpeg);
    background-color: #353535;
    background-size: cover;
    background-position: 70% center;
    position: relative;
    min-height: 600px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.home-hero-overlay {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0 10%;
    box-sizing: border-box;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 80px;
}

.home-hero-overlay-content {
    width: 800px;
    color: white;
}

.home-hero-overlay-content h2 {
    margin: 0 0 12px 0;
    font-size: 36px;
    color: var(--main-color-200);
}

.home-hero-overlay-content h1 {
    margin: 0 0 12px 0;
    font-size: 48px;
    line-height: 48px;
}

.home-hero-overlay-content p {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 0px 0;
}

.home-hero-overlay-form form {
    width: 400px;
    background-color: #f9f9f9af;
    color: black;
    border-radius: 5px;
}

.home-hero-accent {
    position: absolute;
    width: 100%;
    height: 80px;
    background-color: var(--main-color-500);
    bottom: -40px;
    clip-path: polygon(0 0, 50% 40px, 100% 0, 100% 40px, 50% 100%, 0 40px);
}

/* FORM */
.form-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 500px;
    max-width: 90vw;
    row-gap: 10px;
    padding: 20px 0px;
    background-color: var(--form-default-background);
    position: relative;
}

.form-main h3 {
    margin: 0px;
    font-size: 24px;
    color: var(--main-color-600);
}

/* FORM OVERLAY */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--form-overlay);
    backdrop-filter: blur(0.5px);
    display: none;
}

/* FORM ROW */
.form-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FORM LABEL */
.form-row label {
    font-weight: 600;
    text-align: left;
    width: 80%;
    font-size: 16px;
}

.form-row:has(input[required]) label::after, .form-row:has(textarea[required]) label::after  {
    content: " - Required";
    color: var(--form-alert);
    font-size: 12px;
    display: inline;
}

/* FORM INPUT, SELECT & TEXTAREA */
.form-row input, .form-row select, .form-row textarea {
    border: solid 2px gray;
    background-color: transparent;
    padding: 5px;
    font-family: inherit;
    width: 80%;
    border-radius: 5px;
    outline: none;
    transition: all 0.2s linear;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--main-color-500);
    background-color: rgba(255, 255, 255, 0.871);
}

/* FORM CHECKBOX */
.form-row .checkbox-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin-top: 4px;
}

.form-row .checkbox-row label {
    font-weight: normal;
    user-select: none;
}

.form-row .checkbox-row input[type="checkbox"] {
    width: 30px;
    height: 30px;
}

/* FORM TEXTAREA */
.form-row textarea {
    resize: none;
    height: 75px;
}

/* FORM #ERRORLABEL */
#error-label {
    color: var(--form-alert);
    margin: 0 0 -30px 0;
    visibility: hidden;
    min-height: 1.5rem;
}

@media (max-width: 1525px) {
    .home-hero-overlay {
        flex-direction: column;
    }

    .home-hero-overlay-content {
        text-align: center;
        width: 100%;
    }

    .home-hero-overlay-form {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .home-hero-overlay-form form {
        width: 800px;
        max-width: 90vw;
        box-sizing: border-box;
    }
}

@media (max-width: 900px) {
    .home-hero-overlay-content h2 {
        font-size: 28px;
    }

    .home-hero-overlay-content h1 {
        font-size: 36px;
        line-height: 40px;
    }

    .home-hero-overlay-content p {
        font-size: 16px;
    }
}

/* HOME - INTRO */
.home-intro {
    padding: 160px 0 120px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-self: center;
    column-gap: 100px;
    row-gap: 40px;
    flex-wrap: wrap;
}

.home-intro-image-wrap {
    width: 600px;
    height: 400px;
    max-width: 80vw;
    max-height: calc(0.67 * 80vw);

    position: relative;
}

.home-intro-image-wrap::before {
    height: 106%;
    border-left: double 8px var(--main-color-500);
    border-bottom: double 8px var(--main-color-500);
    border-top: double 8px var(--main-color-500);
    width: 20%;
    content: '';
    top: calc(-1% - 8px);
    left: -12px;
    border-radius: 10px 0 0 10px;
    position: absolute;
}

.home-intro-image-wrap::after {
    height: 106%;
    border-right: double 8px var(--main-color-500);
    border-bottom: double 8px var(--main-color-500);
    border-top: double 8px var(--main-color-500);
    width: 20%;
    content: '';
    top: calc(-1% - 8px);
    right: -12px;
    border-radius: 0 10px 10px 0;
    position: absolute;
}

.home-intro-image-wrap img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.home-intro-content {
    width: 700px;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
}

.home-intro-content p {
    font-size: 20px;
    margin: 0 0 12px 0;
}

.home-intro-content h2 {
    color: var(--main-color-500);
    font-size: 36px;
    line-height: 36px;
    margin: 0 0 12px 0;
}

.home-intro-content h2 span {
    font-weight: 800;
    color: var(--main-color-700);
}

.home-intro-content ul {
    list-style: none;
    padding: 0;
    width: fit-content;
    align-self: center;
    
}

.home-intro-content ul li {
    position: relative;
    margin-bottom: 8px;
    font-size: 20px;
    margin-left: 8px;
}

.home-intro-content ul li::before {
    content: '';
    background-image: url(/imageserver/UserMedia/princeroofing/check.svg);
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* HOME - RESIDENTIAL */
.home-res {
    padding: 80px 10%;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-res h2 {
    margin: 0 0 16px 0;
    font-size: 36px;
    color: var(--main-color-700);
    line-height: 36px;
    text-align: center;
}

.home-res > p {
    color: black;
    font-size: 20px;
    width: 800px;
    max-width: 80vw;
    text-align: center;
    position: relative;
}

.home-res > p::before {
    left: -5%;
    height: 50%;
    top: 25%;
    content: '';
    position: absolute;
    width: 5px;
    border-left: double 8px var(--main-color-500);
}

.home-res > p::after {
    right: -5%;
    height: 50%;
    top: 25%;
    content: '';
    position: absolute;
    width: 5px;
    border-left: double 8px var(--main-color-500);
}

.home-res-row {
    padding: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items:start;
    column-gap: 30px;
    row-gap: 20px;
}

.home-res-card {
    width: 350px;
    height: fit-content;
    background: linear-gradient(110deg, var(--main-color-500), var(--main-color-700));
    border-radius: 8px;
    overflow: hidden;
    transition: height 0.2s linear;
    box-shadow: 0px 0px 12px -4px black;
}

.home-res .site-button {
    align-self: center;
}

.home-res-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    transition: all 0.2s linear;
}

.home-res-card-content {
    height: fit-content;
    min-height: 100px;
    padding: 50px 10%;
    box-sizing: border-box;
    color: white;
    overflow: hidden;
    transition: all 0.2s linear;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-res-card-content h4 {
    margin: 0 0 10px 0;
    font-size: 24px;
    position: relative;
    width: fit-content;
}

.home-res-card-content h4::before {
    position: absolute;
    display: inline-block;
    width: 0px;
    height: 4px;
    background-color: white;
    content: '';
    vertical-align: middle;
    margin: 0 10px 0 0;
    transition: all 0.2s linear;
    top: calc(50% - 2px);
    right: 100%;
}

.home-res-card-content h4::after {
    position: absolute;
    display: inline-block;
    width: 0px;
    height: 4px;
    background-color: white;
    content: '';
    vertical-align: middle;
    margin: 0 10px 0 0;
    transition: all 0.2s linear;
    top: calc(50% - 2px);
    left: 105%;
}

.home-res-card:hover h4::before, .home-res-card:hover h4::after {
    width: 35px;
}


/* HOME - CERT */
.home-cert {
    padding: 80px 10%;
    background: linear-gradient(rgba(20, 60, 113, 0.861), rgb(20, 60, 113)), 
                url(/imageserver/UserMedia/princeroofing/background.jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    user-select: none;
    position: relative;
    box-sizing: border-box;
}

.home-cert-circle {
    position: absolute;
    height: 50px;
    width: 50px;
    left: calc(50% - 25px);
    top: -25px;
    border-radius: 50%;
    padding: 10px;
    background-color: #f9f9f9;

}

.home-cert-circle img {
    width: 100%;
    height: 100%;
}

.home-cert > img {
    height: 250px;
    width: 250px;
    max-width: 70vw;
    object-fit: contain;
}

.home-cert h2 {
    color: white;
    font-size: 36px;
    margin: 48px 0 16px 0;
    text-align: center;
}

.home-cert h2 span {
    font-weight: 800;
    color: white;
    background-color: red;
    padding: 2px 8px;
    border-radius: 4px;
}

.home-cert p {
    text-align: center;
    color: white;
    font-size: 20px;
    max-width: 1000px;
    margin: 0;
}



/* HOME - COMMERCIAL */
.home-com {
    padding: 80px 10%;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-com h2 {
    margin: 0 0 16px 0;
    font-size: 36px;
    color: var(--main-color-700);
    line-height: 36px;
    text-align: center;
}

.home-com > p {
    color: black;
    font-size: 20px;
    width: 800px;
    max-width: 80vw;
    text-align: center;
    justify-self: end;
    position: relative;
}

.home-com > p::before {
    left: -5%;
    height: 50%;
    top: 25%;
    content: '';
    position: absolute;
    width: 5px;
    border-left: double 8px var(--main-color-500);
}

.home-com > p::after {
    right: -5%;
    height: 50%;
    top: 25%;
    content: '';
    position: absolute;
    width: 5px;
    border-left: double 8px var(--main-color-500);
}

.home-com > .site-button {
    align-self: center;
}

.home-com-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 30px;
    row-gap: 30px;
    padding: 20px 0;
}

.home-com-card {
    width: 350px;
    height: fit-content;
    background: linear-gradient(110deg, var(--main-color-500), var(--main-color-700));
    border-radius: 8px;
    overflow: hidden;
    transition: height 0.2s linear;
    box-shadow: 0px 0px 12px -4px black;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-com-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
    transition: all 0.2s linear;
}

.home-com-card h4 {
    color: black;
    box-sizing: border-box;
    color: white;
    font-size: 24px;
    text-align: center;
    position: relative;
    width: fit-content;
    padding: 40px 0;
}

.home-com-card h4::before {
    position: absolute;
    display: inline-block;
    width: 0px;
    height: 4px;
    background-color: white;
    content: '';
    vertical-align: middle;
    transition: all 0.2s linear;
    top: calc(50% - 2px);
    right: 105%;
}

.home-com-card h4::after {
    position: absolute;
    display: inline-block;
    width: 0px;
    height: 4px;
    background-color: white;
    content: '';
    vertical-align: middle;
    transition: all 0.2s linear;
    top: calc(50% - 2px);
    left: 105%;
}

.home-com-card:hover h4::before, .home-com-card:hover h4::after {
    width: 35px;
}

/* HOME - CTA */
.home-cta {
    display: flex;
    flex-direction: row;
    position: relative;
}

.home-cta-circle {
    width: 50px;
    height: 50px;
    padding: 10px;
    position: absolute;
    top: calc(50% - 25px);
    left: calc(50% - 25px);
    background-color: white;
    border-radius: 50%;
}

.home-cta-circle img {
    width: 100%;
    height: 100%;
}

.home-cta-content {
    width: 50%;
    background-color: var(--main-color-700);
    padding: 50px 5%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-cta-content h2 {
    font-size: 32px;
    color: white;
    line-height: 32px;
}

.home-cta-content h2 span {
    color: var(--main-color-200);
    margin: 0 0 12px 0;
}

.home-cta-content p {
    color: white;
    margin: 0 0 36px 0;
    font-size: 20px;
}

.home-cta > img {
    width: 50%;
    height: 500px;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .home-cta {
        flex-direction: column;
    }

    .home-cta > img {
        width: 100%;
        height: 300px;
    }

    .home-cta-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .home-cta-circle {
        bottom: calc(300px - 35px);
        top: unset;
    }
}


@media (max-width: 800px) {
    .home-com > p, .home-res > p, .home-cert p, .home-intro-content p, .home-intro-content ul li, .home-cta-content p{
        font-size: 16px;
    }

    .home-com h2, .home-res h2, .home-intro-content h2, .home-cert h2, .home-cta-content h2 {
        font-size: 28px;
        text-align: center;
    }
}