/* HOME HERO */
section.home-hero {
    background-image: url(/imageserver/UserMedia/jfroofing/jf-banner-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: fit-content;
    width: 100%;
    user-select: none;
}

.home-hero .home-hero-grid {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.633);
    backdrop-filter: blur(2px);
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10%;
    box-sizing: border-box;
    padding: 0 5%;
    align-items: center;
    justify-content: center;
}

.home-hero .home-hero-grid-title {
    margin: 100px 0;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    justify-content: center;
}

.home-hero-grid-title h1 {
    font-size: 32px;
    line-height: 32px;
    color: white;
    margin: 0;
}

.home-hero-grid-title h2 {
    color: var(--main-color-500);
    font-size: 52px;
    line-height: 72px;
    margin: 8px 0 0 0;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.home-hero-grid-title h2 span {
    position: relative;
    z-index: 1;
    background: white;
    padding: 8px 32px 8px 8px;
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
}

.home-hero-grid-title p {
    color: white;
    margin: 16px 0 0 0;
    font-size: 24px;
}

.home-hero-grid-title .site-button {
    margin: 16px 0 0 0;
}

.home-hero .home-hero-grid-form {
    height: 500px;
    margin: 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 1080px) {
    .home-hero {
        height: fit-content;
    }

    .home-hero .home-hero-grid {
        grid-template-columns: 1fr;
    }
    
    .home-hero .home-hero-grid-title {
        margin: 50px 0;
    }

    .home-hero .home-hero-grid-form {
        margin: 25px 0;
    }
}

/* FORM TEMPLATE */

/* INITIAL COLOURING OF FORM */
:root {    
    --form-overlay: #f1f1f1aa;
    --form-alert: #9c5656;    
}

/* OUTSIDE FORM */
.form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.form-wrapper h2 {
    margin: 4px 0px;
    color: var(--main-color-700);
    font-weight: 800;
    text-align: center;
}

.form-wrapper h4 {
    margin: 4px 0px;
    color: white;
}

/* FORM */
.form-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: self-start;
    box-sizing: border-box;
    width: 500px;
    max-width: 90vw;
    row-gap: 8px;
    padding: 20px 10%;
    background-color: rgba(242, 242, 242, 0.801);
    position: relative;
    border-radius: 8px;
}

/* 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: self-start;
}

/* FORM LABEL */
.form-row label {
    font-weight: 600;
    text-align: left;
    width: 100%;
    color: var(--main-color-500);
}

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

/* FORM INPUT, SELECT & TEXTAREA */
.form-row input[type]:not([type="submit"]), .form-row select, .form-row textarea {
    padding: 5px;
    font-family: inherit;
    width: 100%;
    outline: none;
    transition: all 0.3s ease-in-out;
    border: solid 2px var(--main-color-500);
    background-color: transparent;
    border-radius: 4px;
}

.form-row input[type]:not([type="submit"]):focus, .form-row select:focus, .form-row textarea:focus {
    border: solid 2px var(--main-color-700);
    background-color: white;
}

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

.form-main .site-button {
    align-self: center;
    margin: 12px 0 0 0;
}

/* HOME INTRO */
section.home-intro {
    width: 100%;
    box-sizing: border-box;
    padding: 75px 10%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 100px;
    flex-wrap: wrap;
    row-gap: 32px;
    background: radial-gradient(circle at 100% -150%, var(--main-color-500) -50%, transparent 60%);
}

.home-intro-image-wrap {
    width: 600px;
    height: 400px;
    position: relative;
    max-width: 70vw;
    max-height: calc(.667 * 70vw);
}

.home-intro-image-wrap::before {
    height: 50%;
    width: 30%;
    position: absolute;
    border: solid 4px var(--main-color-500);
    content: '';
    top: -5%;
    z-index: 0;
    left: -5%;
}

.home-intro-image-wrap::after {
    height: 60%;
    width: 30%;
    position: absolute;
    border: solid 4px var(--main-color-600);
    content: '';
    bottom: -5%;
    z-index: 0;
    right: -5%;
}

.home-intro-image-wrap img {
    height: 100%;
    width: 100%;
    position: relative;
    object-fit: cover;
    z-index: 1;
}

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

.home-intro-content h3 {
    font-size: 24px;
    line-height: 20px;
    margin: 0;
    width: 100%;
    padding: 0 0 0 10%;
    box-sizing: border-box;
    font-style: italic;
    font-weight: 700;
    color: var(--main-color-500);
}

.home-intro-content h3 span {
    color: var(--main-color-600);
}

.home-intro-content h2 {
    line-height: 32px;
    font-size: 28px;
    margin: 16px 0 0 0;
    background: linear-gradient(to right, transparent, var(--main-color-500) 10%);
    padding: 12px 8px 12px 10%;
    border-radius: 0 50px 50px 0;
    box-sizing: border-box;
    width: 100%;
    font-weight: 600;
}

.home-intro-content h2 span {
    color: white;
}

.home-intro-content p {
    font-size: 16px;
    padding: 16px 0;
}

@media (max-width: 850px) {
    section.home-intro {
        flex-direction: column;
        row-gap: 75px;
    }
}

/* HOME CTA */
section.home-services {
    width: 100%;
    background-image: 
        linear-gradient(white, transparent),
        url(/imageserver/UserMedia/jfroofing/background.jpeg);
    background-size: cover;
    background-position: center;
    padding: 75px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.home-services > h1 {
    margin: 0 0 8px 0;
    font-size: 40px;
    text-align: center;
    position: relative;
    color: var(--main-color-500);
    width: 300px;
    font-weight: 700;
}

.home-services > h1::before {
    width: 100%;
    position: absolute;
    right: 120%;
    height: 4px;
    background-color: var(--main-color-500);
    content: '';
    top: calc(50% - 2px);
}

.home-services > h1::after {
    width: 100%;
    position: absolute;
    left: 120%;
    height: 4px;
    background-color: var(--main-color-500);
    content: '';
    top: calc(50% - 2px);
}

.home-services > p {
    width: 800px;
    max-width: 85vw;
    text-align: center;
    font-size: 20px;
    line-height: 28px;
    padding: 16px 0;
}

.home-services-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 0 0 32px 0;
}

.home-services-card {
    position: relative;
    width: 500px;
    max-width: 90vw;
    height: 300px;
    overflow: hidden;
}

.home-services-card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.home-services-card-content {
    width: 200%;
    position: absolute;
    height: 100%;
    right: 0;
    z-index: 1;
    user-select: none;
    transition: right 0.4s ease-in-out;
}

.home-services-card:hover .home-services-card-content {
    right: -100%;
}

.home-services-card-hover {
    width: 50%;
    height: 100%;
    position: absolute;
    background-color: rgba(41, 41, 41, 0.526);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 0;
    left: 0;
    box-sizing: border-box;
    padding: 0 16px;
}

.home-services-card-hover h3 {
    margin: 0;
    font-size: 24px;
    color: var(--main-color-500);
}

.home-services-card-hover p {
    font-size: 16px;
    color: white;
    margin: 16px 0;
}

.home-services-card-default {
    position: absolute;
    top: 0;
    height: 100%;
    width: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: end;
    align-items: center;
    text-align: center;
}

.home-services-card-default > h3 {
    background-color: rgba(41, 41, 41, 0.526);
    color: var(--main-color-500);
    width: 100%;
    margin: 0;
    padding: 12px 0;
    font-size: 24px;
    position: relative;
}

.home-services-card-default > h3::after {
    display: inline-block;
    vertical-align: middle;
    content: "";
    background-color: var(--main-color-500);
    width: 20px;
    height: 20px;
    margin: 0 0 0 16px;
    clip-path: polygon(0 10%, 50% 50%, 0 90%);
}

/* HOME - PROCESS */
section.home-process {
    padding: 75px 0;
    background-color: rgb(54, 54, 54);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.home-process h2 {
    text-align: center;
    color: var(--main-color-500);
    font-weight: 700;
    font-size: 32px;
    margin: 0;
    width: 400px;
    position: relative;
    font-weight: 700;
}

.home-process > h2::before {
    width: 80%;
    position: absolute;
    right: 110%;
    height: 4px;
    background-color: var(--main-color-500);
    content: '';
    top: calc(50% - 2px);
}

.home-process > h2::after {
    width: 80%;
    position: absolute;
    left: 110%;
    height: 4px;
    background-color: var(--main-color-500);
    content: '';
    top: calc(50% - 2px);
}

.home-process-row {
    width: 100%;
    padding: 50px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.home-process-card {
    width: 300px;
    height: 200px;
    background: radial-gradient(circle at 150%, white 0%, #fff 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 32px;
    user-select: none;
    border-bottom: solid 8px var(--main-color-500);
}

.home-process-card h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 400;
}

.home-process-card h4 span {
    margin: 0 0 16px 0;
    color: var(--main-color-500);
    font-size: 40px;
    margin-right: 16px;
    line-height: 20px;
    font-weight: 600;
}

/* HOME REVIEWS */
section.home-reviews {
    padding: 75px 5%;
    width: 100%;
    box-sizing: border-box;
    background: radial-gradient(circle at -50% 180%, var(--main-color-500) -50%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.home-reviews-review {
    width: 1000px;
    max-width: 75vw;
    align-self: center;
    margin: 16px 0 32px 0;
    position: relative;
}

.home-reviews-review::after {
    width: 60%;
    height: 2px;
    position: absolute;
    bottom: -16px;
    content: "";
    background-color: #f1f1f1;
    left: 20%;
}

.home-reviews-review:last-of-type:after{
    width: 0%;
}

.home-reviews h2 {
    color: var(--main-color-500);
    font-weight: 700;
    font-size: 32px;
    text-align: center;
    position: relative;
    width: 400px;
}

.home-reviews h2::before {
    right: 105%;
    content: "";
    background-color: var(--main-color-500);
    height: 4px;
    width: 50%;
    position: absolute;
    top: calc(50% - 2px);
}

.home-reviews h2::after {
    left: 105%;
    content: "";
    background-color: var(--main-color-500);
    height: 4px;
    width: 50%;
    position: absolute;
    top: calc(50% - 2px);
}

.home-reviews .home-reviews-author {
    color: var(--main-color-500);
    font-weight: 600;
    text-align: right;
    font-size: 24px;
    line-height: 24px;
    margin: 0;
}

.home-reviews .home-reviews-text {
    font-size: 16px;
    position: relative;
    color: black;
}

.home-reviews .home-reviews-rating {
    color: var(--main-color-500);
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    gap: 4px;
}

.home-reviews .home-reviews-text span {
    font-size: 40px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color-500);
}

.home-reviews .home-reviews-text span:first-of-type {
    left: -36px;
}

.home-reviews .home-reviews-text span:last-of-type {
    right: -32px;
}



/* HOME CTA */
section.home-cta {
    background-color: rgb(54, 54, 54);
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 650px;
}

.home-cta-content {
    position: relative;
    box-sizing: border-box;
    width: 60%;
    padding: 75px 5%;
}

.home-cta-content h2 {
    font-size: 32px;
    color: var(--main-color-500);
    font-weight: 600;
    margin: 0;
    line-height: 32px;
    background-color: white;
    width: fit-content;
    padding: 8px 48px 8px 8px;
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
}

.home-cta-content > p {
    color: white;
    font-size: 18px;
    margin: 24px 0;
    font-weight: 400;
}

.home-cta-content ul {
    list-style: none;
    padding: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 16px;
}

.home-cta-content ul li {
    color: white;
    font-weight: 300;
    display: flex;
    align-items: center;
}

.home-cta-content ul li p {
    margin: 0;
}

.home-cta-content ul li span {
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    background-color: var(--main-color-500);
    padding: 4px 24px 4px 4px;
    margin: 0 8px 8px 0;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
}

.home-cta-image-wrap {
    width: 40%;
    position: relative;
    height: 100%;
}

.home-cta-image-wrap::before {
    content: "";
    border: solid 4px var(--main-color-500);
    position: absolute;
    height: 70%;
    width: 20%;
    top: 15%;
    left: -5%;
    z-index: 0;
}

.home-cta-image-wrap img {
    width: 100%;
    height: 100%;
    position: relative;
    object-fit: cover;
    z-index: 1;
}

@media (max-width: 1080px) {
    section.home-cta {
        flex-direction: column-reverse;
        height: fit-content;
        background-color: transparent;
    }

    .home-cta-content {
        width: 100%;
        background-color: rgb(54, 54, 54);
    }

    .home-cta-image-wrap {
        width: 100%;
        height: 250px;
    }

    .home-cta-image-wrap img {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    .home-cta-image-wrap::before {
        width: 80%;
        top: 85%;
        height: 20%;
        left: 10%;
    }
}