/*****    HOME - HERO    *****/

.home-hero {
    width: 100%;
    height: 750px;
    position: relative;
}

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

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

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

    .home-hero-overlay  {
        flex-direction: column;
        justify-content: center;
    }

    .home-hero-overlay .form-wrapper, .home-hero-overlay .home-hero-content {
        width: 90%;
    }

    .home-hero-overlay .home-hero-content {
        text-align: center;
        justify-content: center;
        align-items: center;
    }
}

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

.home-hero-content h1 {
    margin: 0 0 10px 0;
    font-size: 5rem;
}

.home-hero-content .purple-line {
    margin: 0;
    border: none;
    background-color: var(--accent-color);
    border-radius: 5px;
    height: 5px;
    width: 200px;
    max-width: 50vw;
}

.home-hero-content p {
    font-size: 2.5rem;
    max-width: 80%;
}




.home-hero-banner {
    padding: 60px 0;
    width: 100%;
    background-color: var(--main-color);
    text-align: center;
    color: white;
    user-select: none;
}

.home-hero-banner h2 {
    font-weight: 500;
    margin: 0;
    font-size: 3.5rem;
}

.home-hero-banner h2 span {
    color: gold;;
    font-style: italic;
    position: relative;
}

.home-hero-banner h2 span::after {
    position: absolute;
    left: 10%;
    bottom: -1px;
    width: 80%;
    background-color: gold;
    content: "";
    height: 2px;
    border-radius: 5px;
}

/*****    HOME - INTRO    *****/

.home-intro-wrap {
    width: 100%;
    padding: 100px 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap-reverse;
    column-gap: 80px;
    border-bottom: solid 8px var(--main-color);
    position: relative;
    overflow: hidden;
}

.home-intro-wrap-accent {
    position: absolute;
    width: 800px;
    height: 40%;
    top: 20%;
    border-top: dotted 10px #f1f1f1;
    border-radius: 50%;
    transform: rotate(-30deg);
    left: -100px;
    z-index: -1;
    
}

.home-intro-content {
    width: 600px;
    max-width: 90vw;
}

.home-intro-wrap .home-intro-image-wrap {
    width: 500px;
    max-width: 90vw;
    height: auto;
    position: relative;
}

.home-intro-image-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.home-intro-image-wrap::before {
    content: "";
    width: 60%;
    z-index: -1;
    height: 40%;
    background-color: transparent;
    border-radius: 16px;
    border: dotted 8px var(--accent-color);
    display: block;
    position: absolute;
    top: -10px;
    left: -10px;
}

.home-intro-image-wrap::after {
    content: "";
    width: 60%;
    z-index: -1;
    height: 40%;
    background-color: transparent;
    border-radius: 16px;
    border: dotted 8px var(--main-color);
    display: block;
    position: absolute;
    bottom: -10px;
    right: -10px;
}

.home-intro-content ul {
    list-style-type: none;
    padding: 0;
    font-size: 1.1em;
    text-align: left;
    flex: 1;
}

.home-intro-content ul li {
    margin: 10px 0;
    display: flex;
    align-items: center;
}

/* Checkmark styling */
.home-intro-content ul li img {
    width: 30px;
    margin-right: 15px;
}

.home-intro-content p {
    font-size: 2em;
    line-height: 1.6;
    margin-top: 20px;
}

/*****    HOME - ADVANTAGE SECTION    *****/

.section-advantage {
    background: linear-gradient(#f9f9f9, #d8d8d8 ,#f9f9f9);
    padding: 50px 0px;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.section-advantage-accent {
    position: absolute;
    background-color: var(--main-color);
    width: 800px;
    height: 200px;
    transform: rotate(45deg);    
    top: 50px;
    right: -300px;
}

.section-advantage-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 50px;
    margin: 50px 0px;
}

.section-advantage-row:last-of-type {
    flex-wrap: wrap-reverse;
}

.section-advantage-img-wrap {
    border-radius: 10px;
    width: 700px;
    max-width: 90vw;
    height: 400px;
    position: relative;
    background-color: white;
    z-index: 2;
}

.section-advantage-img-wrap::before {
    width: 100%;
    height: 100%;
    background-color: var(--main-color);
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(4deg);
    content: "";
    z-index: 0;
    border-radius: 10px;
}

.section-advantage-img-wrap::after {
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(2deg);
    content: "";
    z-index: 0;
    border-radius: 10px;
}

.section-advantage-img-overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    color: white;
    display: flex;
    align-items: end;
    justify-content: center;
    opacity: 0;
    transition: backdrop-filter 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
    z-index: 2;
    border-radius: 10px;
    overflow: hidden;
}

.section-advantage-purple-line {
    height: 6px;
    width: 0%;
    background-color: gold;
    position: absolute;
    bottom: 0px;
    left: 0;
    transition: width 0.3s ease-in-out;
    z-index: 2;
}

.section-advantage-img-wrap:hover .section-advantage-purple-line{
    width: 100%;
}

.section-advantage-img-overlay:hover {
    backdrop-filter: brightness(50%);
    opacity: 1;
}

.section-advantage-img-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 1;
    position: relative;
    background-color: white;
}

.section-advantage-text-wrapper {
    width: 600px;
    max-width: 90vw;
    position: relative;
}

.section-advantage-text-wrapper h1{
    font-size: 4rem;
    margin: 0 0 10px 0;
}

.section-advantage-text-wrapper h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    color: goldenrod;
}

.section-advantage-text-wrapper p{
    font-size: 1.75rem;
}

.section-advantage-text-wrapper hr {
    left: 0;
    margin: 0px 0px 10px 0px;
}

.section-advantage-text-wrapper span > a {
    text-decoration: none;
    color: var(--accent-color);
}

.section-advantage-text-wrapper a:hover {
    cursor: pointer;
}

/*****    HOME - AWARDS    *****/

.home-awards-wrap {
    background-image: url("/imageserver/UserMedia/tmcexteriors/background.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    border-top: solid 8px var(--main-color);
    border-bottom: solid 8px var(--main-color);
    position: relative;
    overflow: hidden;
}

.home-awards {
    padding: 50px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(126, 69, 201, 0.579);
    position: relative;
    overflow: hidden;
}

.home-awards-accent {
    position: absolute;
    background-color: transparent;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 0;
    border-radius: 50%;
    border-top: dotted 20px white;
    border-bottom: dotted 20px white;
    box-sizing: border-box;
    transform: rotate(-45deg);
}

.home-gaf-cert {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    width: 100%;
    position: relative;
}

.home-gaf-cert h3 span {
    color: gold;
    font-style: italic;
    position: relative;
}

.home-gaf-cert h3 span::after {
    display: block;
    content: "";
    position: absolute;
    border-radius: 5px;
    bottom: -3px;
    height: 4px;
    width: 80%;
    left: 13%;
    background-color: gold;
}

.home-gaf-cert h3 {
    margin: 20px 0 10px 0;
    font-size: 3rem;
    font-weight: 500;
}

.home-gaf-cert p {
    width: 800px;
    max-width: 90vw;
    font-size: 1.75rem;
    line-height: 2.25rem;
    margin: 20px 0 40px 0;
}

.home-gaf-cert img {
    width: 200px;
    max-width: 80%;
}

.home-awards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
}

.home-awards-row img {
    z-index: 2;
}

/*****    HOME - MIL    *****/
.home-mil {
    padding: 80px 0;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap-reverse;
}

.home-mil-main {
    width: 800px;
    max-width: 90vw;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.home-mil-main h3 {
    font-weight: 500;
    font-size: 3.5rem;
    margin: 0 0 10px 0;
    position: relative;
    text-align: center;
    width: fit-content;
}

.home-mil-main h3::after {
    width: 80%;
    height: 5px;
    content: "";
    position: absolute;
    left: 10%;
    bottom: -10px;
    border-radius: 10px;
    background: linear-gradient(to right, #B31942, #0A3161);
    display: block;
}

.home-mil-main h3 .home-mil-main-first {
    color: #B31942;
    font-weight: 700;
}

.home-mil-main h3 .home-mil-main-second {
    color: #0A3161;
    font-weight: 700;
}

.home-mil-main p {
    margin: 20px 0 10px 0;
    font-size: 1.75rem;
    width: 600px;
    max-width: 90vw;
    line-height: 2.25rem;
}

.home-mil-main .button {
    color: white;
}

.home-mil-main .button:hover, .home-mil-main .button:focus {
    text-decoration: none;
    cursor: pointer;
}

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

.home-mil-img-wrap::before {
    width: 60%;
    height: 40%;
    content: "";
    display: inline-block;
    position: absolute;
    border-top: dotted 6px #B31942;
    border-left: dotted 6px #B31942;
    top: -8px;
    left: -8px;
    border-radius: 20px;
    z-index: 0;
}

.home-mil-img-wrap::after {
    width: 60%;
    height: 40%;
    content: "";
    display: inline-block;
    position: absolute;
    border-bottom: dotted 6px #0A3161;
    border-right: dotted 6px #0A3161;
    bottom: -8px;
    right: -8px;
    border-radius: 0 20px 20px 20px;
    z-index: 0;
}

.home-mil-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}


/*****    HOME - MEDIA QUERIES    *****/
@media (max-width: 768px) {
    .intro > div {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro > div > img {
        width: 100%;
        margin-top: 20px;
    }

    .intro ul {
        flex: none;
    }

    .intro p {
        font-size: 1.2rem;
    }

    .section-advantage-row img{
        object-position: 25%;
    }
}


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

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

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

/* 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;
    border-radius: 30px;
    background-color: rgba(128, 128, 128, 0.67);
    position: relative;
}

/* 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: 82%;
    font-size: 1.5rem;
}

.form-row:has(input[required]) label::after {
    content: " - Required";
    color: var(--main-color);
    font-size: 1rem;
    display: inline;
}

/* FORM INPUT, SELECT & TEXTAREA */
.form-row input, .form-row select, .form-row textarea {
    border: solid 2px transparent;
    padding: 5px;
    font-family: inherit;
    width: 80%;
    outline: none;
    transition: border 0.3s ease-in-out;
    color: white;
    font-size: 1.5rem;
    background-color: rgba(255, 255, 255, 0.41);
}

.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border: solid 2px 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: 50px;
}

/* FORM #ERRORLABEL */
#error-label {
    color: rgb(60, 0, 112);
    margin: 0 0 -30px 0;
    visibility: hidden;
    min-height: 1.5rem;
}

/* FORM SUBMIT */
.form-main input[type="submit"] {
    font-family: inherit;
    padding: 10px 20px;
    transition: all 0.2s linear;
    background-color: var(--main-color);
    border-radius: 30px;
    color: white;
    border: solid 2px var(--main-color);
    font-size: 1.5rem;
}

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