/* HOME - HERO */
.home-hero {
    width: 100%;
    height: 900px;
    position: relative;
    user-select: none;
}

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

.home-hero-overlay {
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.514) 15% 30%, transparent);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

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

.home-hero-content .site-button {
    border: solid 4px var(--main-blue);
    color: var(--main-blue);
}

.home-hero-content .site-button:hover {
    background-color: var(--main-blue);
    color: white;
}

.home-hero-content > img {
    width: 300px;
}

.home-hero-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    column-gap: 5px;
    align-items: center;
    justify-content: center;
}

.home-hero-content ul svg {
    width: 8px;
    vertical-align: middle;
}

.home-hero-content h3 {
    color: rgb(106, 187, 245);
    font-size: 35px;
    font-weight: 300;
}

@media (max-width: 800px) {
    .home-hero-content h3 {
        font-size: 25px;
    }

    .home-hero-content ul svg{
        width: 5px;
    }
}

/* HOME - ABOUT */
.home-about {
    border-top: solid 8px var(--main-blue-dark);
    padding: 50px 0 100px 0;
    display: grid;
    grid-template-columns: repeat(2, 45%);
    background-color: #f9f9f9;
    justify-content: center;
    align-items: center;
    row-gap: 30px;
}

@media (max-width: 1100px) {
    .home-about {
        grid-template-columns: 80%;
        padding: 20px 0 100px 0;
    }
}

.home-about-content {
    width: 100%;
    justify-self: center;
    box-sizing: border-box;
    padding: 40px;
}

.home-about-content h2 {
    text-transform: uppercase;
    margin: 0 0 30px 0;
    font-size: 50px;
    color: var(--main-blue-dark);
    line-height: 50px;
}

.home-about-content h3 {
    font-size: 22px;
    margin: 0;
    font-weight: 600;
    color: black;
}

.home-about-content p {
    color: rgb(75, 75, 75);
    font-size: 18px;
    margin: 8px 0px 24px 0px;
    position: relative;
}

.home-about-content p::before {
    height: 110%;
    content: '';
    position: absolute;
    left: -20px;
    top: -5%;
    border-left: double 8px var(--main-blue);
}

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

.home-about-image-wrap {
    width: 80%;
    max-height: 500px;
    justify-self: center;
    position: relative;
}

.home-about-image-wrap::before {
    width: 110%;
    box-sizing: border-box;
    height: 40%;
    content: '';
    z-index: 0;
    position: absolute;
    left: -5%;
    top: -5%;
    border-top: double 12px var(--main-blue-dark);
    border-left: double 12px var(--main-blue-dark);
    border-right: double 12px var(--main-blue-dark);
}

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



/* HOME - SERVICES */
.home-services-wrap {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.831) url(/imageserver/UserMedia/kyrobuilders/background.jpeg);
    background-blend-mode: overlay;
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.home-services-accent {
    background-color: var(--main-blue-dark);
    position: absolute;
    top: -50px;
    left: 0;
    content: "";
    width: 100%;
    height: 200px;
}

.home-services {
    display: grid;
    grid-template-columns: repeat(2, 30%);
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 0px 0 40px 0;
    column-gap: 20px;
    row-gap: 30px;
    width: 100%;
}

.home-services-title-card {
    grid-column: 1 / 3;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-sizing: border-box;
    padding: 10px 30px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    z-index: 3;
    background-color: #f9f9f9;
    box-shadow: 0px 0px 4px -1px black;
    border-radius: 50px;
}

.home-services-title-card h3 {
    font-size: 40px;
    margin: 0;
    color: var(--main-blue-dark);
}

.home-services-card {
    width: 100%;
    box-sizing: border-box;
    height: 350px;
    background-color: #f9f9f98d;
    backdrop-filter: blur(5px);
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.home-services-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
}

.home-services-card a {
    position: absolute;
    bottom: 10%;
    color: white;
    background-color: var(--main-blue-dark);
    font-size: 20px;
    padding: 20px 40px;
    user-select: none;
    text-decoration: none;
    border-radius: 0 50px 50px 0;
    transition: all 0.2s linear;
}

.home-services-card:hover a {
    padding: 20px 80px;   
}

.home-services-card a:hover {
    text-decoration: none;
    color: gray;
}

.home-services-wide-card {
    position: relative;
    grid-column: 1 / 3;
    height: 300px;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.home-services-wide-card-right {
    width: 60%;
    height: 100%;
    position: absolute;
    right: 0;
    z-index: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 30% 0);
}

.home-services-wide-card-right img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    transition: transform 0.2s ease-out;
}

.home-services-wide-card-right a {
    position: absolute;
    bottom: 10%;
    color: white;
    background-color: var(--main-blue-dark);
    font-size: 20px;
    padding: 20px 40px;
    user-select: none;
    text-decoration: none;
    border-radius: 50px 0 0 50px;
    transition: all 0.2s linear;
    z-index: 2;
    right: 0;
}

.home-services-wide-card-left {
    width: 60%;
    height: 100%;
    position: absolute;
    left: 0;
    z-index: 1;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 0 100%);
}

.home-services-wide-card-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease-out;
}

.home-services-wide-card-left a {
    position: absolute;
    top: 10%;
    color: white;
    background-color: var(--main-blue-dark);
    font-size: 20px;
    padding: 20px 40px;
    user-select: none;
    text-decoration: none;
    border-radius: 0 50px 50px 0;
    transition: all 0.2s linear;
    z-index: 2;
    left: 0;
}

.home-services-wide-card-left:hover a, .home-services-wide-card-right:hover a {
    padding: 20px 80px;
}

.home-services-wide-card-left a:hover, .home-services-wide-card-right a:hover {
    color: gray;
    text-decoration: none;
}

.home-services-card:hover img, .home-services-wide-card-left:hover img, .home-services-wide-card-right:hover img {
    transform: scale(1.05);
}

@media (max-width: 1300px) {
    .home-services-wide-card {
        width: 100%;
        height: 600px;
    }

    .home-services-wide-card-left {
        width: 100%;
        height: 60%;
        clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
    }

    .home-services-wide-card-right {
        width: 100%;
        height: 60%;
        clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
        bottom: 0;
    }
}

@media (max-width: 800px) {

    .home-services-title-card {
        grid-column: unset;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .home-services-wide-card {
        grid-column: unset;
    }

    .home-services {
        grid-template-columns: 80%;
        display: grid;
        justify-content: center;
    }

    .home-services-wide-card-left a, .home-services-wide-card-right a, .home-services-card a {
        font-size: 18px;
        padding: 20px 10px;
    }

    .home-services-wide-card-left:hover a, .home-services-wide-card-right:hover a, .home-services-card:hover a {
        padding: 20px 20px;
    }
}

/* HOME - CERT */
.home-cert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: solid 8px var(--main-blue-dark);
    padding: 40px 0;
}

.home-cert > h2 {
    color: var(--main-blue-dark);
    font-size: 40px;
    margin: 0px 0 10px 0;
    font-weight: 700;
    text-align: center;
}

.home-cert > p {
    font-size: 18px;
    width: 900px;
    max-width: 80vw;
    text-align: center;
    margin: 0 0 20px 0;
    position: relative;
}

.home-cert > p::before {
    width: 30px;
    height: 110%;
    top: -8%;
    box-sizing: border-box;
    content: '';
    position: absolute;
    border-left: double 6px var(--main-blue-dark);
    left: -3%;
    border-top: double 6px var(--main-blue-dark);
    border-bottom: double 6px var(--main-blue-dark);
}

.home-cert > p::after {
    width: 30px;
    height: 110%;
    top: -8%;
    box-sizing: border-box;
    content: '';
    position: absolute;
    border-right: double 6px var(--main-blue-dark);
    right: -3%;
    border-top: double 6px var(--main-blue-dark);
    border-bottom: double 6px var(--main-blue-dark);
}

.home-cert-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    column-gap: 60px;
    row-gap: 30px;
}

.home-cert-row > img {
    width: 150px;
}

/* HOME - REV */
.home-rev {
    padding: 80px 0;
    background: rgb(19, 65, 97) url(/imageserver/UserMedia/kyrobuilders/background-2.jpeg);
    background-blend-mode: overlay;
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    border-bottom: solid 8px var(--main-blue-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.home-rev > .site-button {
    border: solid 3px white;
    
    font-weight: 700;
    font-size: 24px;
    background-color: white;
    color: var(--main-blue-dark);
}

.home-rev > .site-button:hover {
    color: white;
    background-color: transparent;
}

.home-rev-title {
    grid-column: 1 / 5;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 100px;
}

.home-rev-title h2 {
    color: white;
    font-size: 40px;
    margin: 0px 0 20px 0;
    font-weight: 700;
    text-align: left;
}

.home-rev-title p {
    width: 600px;
    background-color: #dedede72;
    box-sizing: border-box;
    padding: 30px 20px;
    color: white;
    font-size: 20px;
    font-weight: 600;
}

.home-rev-row {
    display: grid;
    grid-template-columns: repeat(4, 300px);
    justify-content: center;
    column-gap: 40px;
    row-gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1350px) {
    .home-rev-row {
        grid-template-columns: repeat(2, 300px);
    }

    .home-rev-title {
        grid-column: 1 / 3;
    }
}

@media (max-width: 675px) {
    .home-rev-row {
        grid-template-columns: 300px;
    }

    .home-rev-title {
        grid-column: 1 / 2;
    }
}

.home-rev-card {
    height: 400px;
    width: 100%;
    max-width: 90vw;
    min-height: fit-content;
}

.home-rev-card-rating {
    height: 30%;
    background-color: #dedede;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.home-rev-card-rating svg {
    fill: goldenrod;
    height: 30px;
    width: 30px;
}

.home-rev-card-content {
    background-color: #f9f9f9;
    height: 70%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.home-rev-card-content p {
    margin: 0;
}

.home-rev-text {
    width: 80%;
    position: relative;
    font-size: 18px;
    color: gray;
    text-align: center;
}

.home-rev-text::before {
    content: "\"";
    position: absolute;
    top: -30px;
    left: -10px;
    font-size: 60px;
    color: gray;
}

.home-rev-author {
    font-size: 25px;
    font-weight: 700;
    width: 80%;
    text-align: right;
    color: var(--main-blue-dark);
    font-style: italic;
}

.home-rev-text::after {
    content: "\"";
    position: absolute;
    top: -30px;
    right: -10px;
    font-size: 60px;
    color: gray;
}



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

/* FORM OVERLAY */
.form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #d8d8d8b0;
    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;
    color: white;
}

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

/* FORM INPUT, SELECT & TEXTAREA */
.form-row input, .form-row select, .form-row textarea {
    border: solid 4px var(--main-blue);
    padding: 5px;
    font-family: inherit;
    width: 80%;
    outline: none;
    border-radius: 20px;
    padding: 10px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    background-color: transparent;
    font-size: 14px;
    color: white;
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border: solid 4px gray;
    background-color: rgba(255, 255, 255, 0.667);
    color: black;
}

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

/* 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 4px var(--main-blue-dark);
    font-family: inherit;
    padding: 10px 20px;
    font-size: 22px;
    transition: all 0.2s linear;
    color: var(--main-blue-dark);
    background-color: white;
    border-radius: 20px;
}

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

@media (max-width: 1300px) {
    .home-hero-overlay {
        flex-direction: column;
        row-gap: 50px;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.514) 40% 60%, transparent);
    }

    .home-hero {
        height: 1200px;
    }
}