/* HOME - HERO */
.home-hero {
    width: 100%;
    height: 700px;
    position: relative;
}

@media (max-width: 1300px) {
    .home-hero {
        height: 1000px;
    }
}

.home-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.home-hero-overlay {
    z-index: 1;
    width: 100%;
    height: 100%;
    background-color: rgba(58, 58, 58, 0.684);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    column-gap: 200px;
    row-gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    color: white;
}

.home-hero-content-left p {
    font-size: 20px;
    width: 600px;
    max-width: 90vw;
    margin: 20px 0 0 0;
}

.home-hero-content-left p span {
    color: gold;
    font-style: italic;
}

.home-hero-overlay h1, .home-hero-overlay h2 {
    position: relative;
    width: fit-content;
}

.home-hero-overlay > h1 {
    font-size: 40px;
}

.home-hero-overlay h1::after {
    width: 80%;
    left: 0%;
    height: 5px;
    background-color: white;
    position: absolute;
    bottom: -14px;
    content: "";
    border-radius: 5px;
}

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

.form-wrapper h2 {
    margin: 0px;
}

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

/* FORM */
.form-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 500px;
    max-width: 90vw;
    row-gap: 15px;
    padding: 20px 0px 0px 0;
    background-color: rgba(29, 29, 29, 0.747);
    position: relative;
    border-radius: 5px;
}

/* 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;
    padding: 20px 0;
}

/* 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: 14px;
}

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

/* FORM INPUT, SELECT & TEXTAREA */
.form-row input, .form-row select, .form-row textarea {
    border: solid 3px var(--main-color-light);
    padding: 5px;
    font-family: inherit;
    width: 80%;
    outline: none;
    transition: border 0.3s ease-in-out;
    background-color: rgba(37, 37, 37, 0.694);
    color: white;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border: solid 3px var(--main-color);
}

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

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

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

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

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

/* FORM SUBMIT */
.form-main input[type="submit"] {
    border: solid 3px var(--main-color-light);
    font-family: inherit;
    background-color: transparent;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    transition: background-color 0.2s ease-in-out;
}

.form-main input[type="submit"]:hover {
    cursor: pointer;
    background-color: var(--main-color);
}

/* HOME INTRO BANNER */
.home-intro-banner {
    width: 100%;
    padding: 50px 0;
    background-color: var(--main-color);
    color: white;
    text-align: center;
    font-size: 1.5rem;
}

.home-intro-banner h2 {
    margin: 0;
}


/* HOME - ABOUT */
.home-about-wrap {
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
}

.home-about {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.392), rgba(255, 255, 255, 0.694));
    padding: 100px 0;
    border-bottom: solid 10px var(--main-color);
    column-gap: 200px;
    row-gap: 40px;
}

.home-about-content {
    width: 800px;
    max-width: 90vw;
}

.home-about-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.home-about-content h3 {
    margin: 0 0 30px 0;
    font-size: 25px;
    font-weight: 500;
    color: var(--main-color-light);
    position: relative;
}

.home-about-content h3::after {
    position: absolute;
    left: 0;
    content: "";
    height: 4px;
    width: 70px;
    background-color: var(--main-color-light);
    bottom: -10px;
}

.home-about-content p {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.home-about-content p span {
    color: var(--main-color-light);
    font-weight: 600;
}

.home-about-content p:last-of-type {
    margin: 0 0 30px 0;
}

.home-about-img-wrap {
    width: 600px;
    height: 300px;
    max-width: 90vw;
    position: relative;
}

.home-about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    border-radius: 20px 40px 20px 40px;
}

.home-about-img-wrap::before {
    width: 40%;
    height: 60%;
    border-radius: 30px 10px 0 10px;
    position: absolute;
    left: -10px;
    top: -10px;
    border-top: double 8px var(--main-color);
    border-left: double 8px var(--main-color);
    content: "";
}

.home-about-img-wrap::after {
    width: 40%;
    height: 60%;
    border-radius: 20px 10px 30px 10px;
    position: absolute;
    right: -10px;
    bottom: -10px;
    border-bottom: double 8px var(--main-color-light);
    border-right: double 8px var(--main-color-light);
    content: "";
}



/* HOME - SERVICES */
.home-services-wrap {
    background: url("/imageserver/UserMedia/bestroofingandgutters/background.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.home-services {
    padding: 60px 0 30px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.915), #d5d5d566 90%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-services-cert {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
}

.home-services-cert-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-services-cert-image-wrap::before {
    width: 20%;
    height: 20%;
    content: "";
    /* background-color: red; */
    position: absolute;
    transform: rotate(45deg);
    top: 0px;
    z-index: 0;
    left: 40%;
    border-left: 15px solid var(--main-color);
    border-top: 15px solid var(--main-color);
    box-sizing: border-box;
}

.home-services-cert-image-wrap::after {
    width: 20%;
    height: 20%;
    content: "";
    /* background-color: red; */
    position: absolute;
    transform: rotate(45deg);
    bottom: 0px;
    left: 40%;
    box-sizing: border-box;
    border-right: 15px solid var(--main-color);
    border-bottom: 15px solid var(--main-color);
}

.home-services-cert img {
    width: 200px;
    height: auto;
    max-width: 60vw;
    margin: 0;
    z-index: 1;
}

.home-services-cert .home-services-cert-line {
    content: "";
    height: 4px;
    width: 10vw;
    display: block;
    background-color: var(--main-color);
}

.home-services h2 {
    font-size: 40px;
    margin: 40px 0 20px 0;
    font-weight: 600;
    max-width: 90vw;
    text-align: center;
}

.home-services h2 span {
    color: var(--main-color-light);
}

.home-services > p {
    text-align: center;
    width: 1100px;
    max-width: 90vw;
    font-size: 20px;
    margin: 10px 0;
}

.home-services .home-services-gaf span {
    color: var(--main-color-light);
    font-weight: 600;
}

.home-services-row {
    padding: 50px 0 20px 0;
    display: grid;
    grid-template-columns: repeat(3, 28%);
    flex-direction: row;
    justify-content: center;
    column-gap: 30px;
    row-gap: 30px;
    align-items: top;
    flex-wrap: wrap;
    width: 100%;
}

.home-services-card {
    min-height: 200px;
    width: 100%;
    max-width: 90vw;
    box-shadow: 0px 0px 8px -2px black;
    border-radius: 10px;
    transition: box-shadow 0.2s linear;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 10px;
    box-sizing: border-box;
    background-color: white;
    border-top: solid 6px var(--main-color);
    border-bottom: solid 6px var(--main-color);
    justify-self: center;
}

@media (max-width: 1100px) {
    .home-services-row {
        grid-template-columns: 100%;
    }

    .home-services-card {
        flex-direction: row;
        justify-content: space-evenly;
    }
}

@media (max-width: 700px) {
    .home-services-card {
        flex-direction: column;
    }
}

.home-services-card:hover {
    box-shadow:  0px 0px 8px 0px black;
}

.home-services-svg-wrap {
    position: relative;
    width: 75px;
    height: 75px;
}

.home-services-svg-wrap svg {
    width: 100%;
    height: 100%;
    transition: all 0.2s linear;
    position: relative;
    fill: white;
}

.home-services-svg-wrap::before {
    position: absolute;
    bottom: -20%;
    right: -20%;
    border-radius: 50%;
    width: 140%;
    height: 140%;
    background-color: var(--main-color);
    content: "";
    display: block;
    transition: all 0.2s linear;
}

.home-services-card:hover .home-services-svg-wrap::before {
    transform: scale(0);
    background-color: transparent;
}

.home-services-card:hover svg {
    transform: scale(1.15);
    fill: var(--main-color-light);
}

.home-services-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-services-card .site-button {
    text-decoration: none;
    padding: 5px 10px;
    color: var(--main-color);
    border: solid 3px var(--main-color);
    border-radius: 10px;
    font-size: 20px;
    transition: all 0.2s linear;
}

.home-services-card .site-button:hover {
    background-color: var(--main-color);
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.home-services-card p {
    text-align: center;
    margin: 0 0 15px 0;
    font-size: 20px;
}




/* HOME - REVIEWS */
.home-reviews-wrap {
    background: url("/imageserver/UserMedia/bestroofingandgutters/background-2.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.home-reviews-accent-one {
    position: absolute;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    /* background-color: var(--main-color); */
    /* transform: rotate(-60deg); */
    /* left: -10vw; */
    /* top: -20vw; */
    border-left: double 20px var(--main-color);
    border-right: double 20px var(--main-color);
}

.home-reviews-accent-two {
    position: absolute;
    height: 50px;
    width: 200px;
    box-sizing: border-box;
    background-color: var(--main-color);
    transform: rotate(-45deg);
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%);
    left: -30px;
    /* top: -20vw; */
    border-left: double 20px var(--main-color);
    border-right: double 20px var(--main-color);
}

.home-reviews-accent-three {
    position: absolute;
    height: 50px;
    width: 200px;
    box-sizing: border-box;
    background-color: var(--main-color);
    transform: rotate(45deg);
    clip-path: polygon(0 0, calc(100% - 50px) 0, 100% 100%, 0 100%);
    right: -30px;
    /* top: -20vw; */
    border-left: double 20px var(--main-color);
    border-right: double 20px var(--main-color);
}

.home-reviews {
    width: 100%;
    background-color: #1e278cb0;
    border-top: solid 8px var(--main-color);
    border-bottom: solid 8px var(--main-color);
    padding: 50px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-reviews > p {
    text-align: center;
    font-size: 20px;
    margin: 0 0 30px 0;
    color: white;
    max-width: 90vw;
}

.home-reviews h2 {
    text-align: center;
    font-size: 40px;
    color: white;
    margin: 0 0 10px 0;
    max-width: 90vw;
    text-align: center;
}

.home-reviews ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 35% 35%;
    column-gap: 50px;
    row-gap: 30px;
    justify-content: center;
}

@media (max-width: 1100px) {
    .home-reviews ul {
        grid-template-columns: 70%;
    }
}

.home-reviews li {
    margin: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    background-color: #f9f9f934;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px;
}

.home-reviews li img {
    height: 60px;
    width: 60px;
}

.home-reviews-content p {
    margin: 0;
    color: white;
}

.home-reviews-content .home-reviews-author {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.home-reviews-content .home-reviews-text {
    font-size: 18px;
}

.home-reviews h5 {
    color: white;
    font-size: 30px;
    margin: 50px 0 30px 0;
    font-weight: 600;
    text-align: center;
    max-width: 90vw;
}

.home-reviews .site-button {
    color: white;
    border: solid 3px white;
}

/* HOME - CTA */
.home-cta {
    width: 100%;
    height: 500px;
    position: relative;
}

.home-cta-image-row {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 30% 30% 40%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.home-cta-image-wrap {
    height: 100%;
    width: 150%;
    overflow: hidden;    
}

.home-cta-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-cta-image-one {
    z-index: 0;
}

.home-cta-image-two {
    z-index: 1;
    clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
    position: relative;
}

.home-cta-image-three {
    z-index: 0;
}

.home-cta-overlay {
    position: relative;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(246, 246, 246, 0.794);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 50px;
}

.home-cta-overlay h2 {
    font-size: 40px;
    margin: 0;
    color: var(--main-color);
    text-align: center;
}

.home-cta-overlay h4 {
    color: white;
    /* background-color: var(--main-color-light); */
    background: linear-gradient(to right, var(--main-color) 10%, transparent 100%);
    font-size: 25px;
    border-radius: 50px 0 0 50px;
    padding: 10px 50px 10px 50px;
    margin: 0;
    text-align: center;
    max-width: 80vw;
    box-sizing: border-box;
}