:root {
    --amc-red-primary: #d52c2f;
    --amc-black: #150f0e;
}

html,
body,
header,
main,
footer {
    font-family: 'Inter';
    margin: 0px;
}

a {
    color: #FFF;
    font-weight: 600;
    font-size: 20px;
    text-decoration: none;
}

textarea {
    font-family: inherit;
}

#dropDownMenu {
    width: 100%;
    display: none;
    transition: 0.5s ease;
    background-color: var(--amc-black);
    padding-bottom: 5px;
}

/* Page section */
header {
    background-color: var(--amc-black);
    background-image: url("../images/imgHeroCorrected.png");
    background-position: bottom right;
    background-repeat: no-repeat;

    .navBar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0px 50px;
    }

    #btnMenu {
        display: none;
        cursor: pointer;
    }



    a {
        font-weight: 700;
        font-size: 25px;
        padding: 10px 0px;
    }

    .hero {
        box-shadow: 0px 8px 5.5px rgba(0, 0, 0, 0.25);
        color: #FFF;
        padding: 100px 30px 150px 100px;

        h1 {
            font-size: 45px;
            line-height: 48px;
            font-weight: 1000;
            margin-bottom: 0;
        }

        p {
            font-size: 25px;
            font-weight: 500;
            margin-top: 0;
        }
    }

    .logo {
        padding: 20px 0px;
    }

}

main {

    padding: 20px 10%;

    p {
        text-align: center;
        font-size: 18px;
        line-height: 1.5em;
    }

    section {
        width: 100%;

        h1 {
            width: 100%;
            text-align: center;
            font-size: 40px;
            font-weight: 800;
            margin-bottom: 10px;
        }
    }

    hr {
        border: 3px solid var(--amc-red-primary);
        width: 90%;
    }



    #servicesIntroduction {
        width: 100%;
        max-width: 1200px;
        margin-bottom: 10px;

        p {
            font-size: 20px;
        }
    }

    .serviceContainer {
        display: grid;
        grid-template-columns: auto auto auto;
        gap: 20px;
        row-gap: 20px;
    }

    .serviceBox {
        width: 400px;
        height: 310px;
        position: relative;

        img {
            border-radius: 10px 10px 0px 0px;
            display: block;
            object-fit: fill;
            width: 100%;
        }

        .serviceOverlay {
            position: absolute;
            bottom: 0px;
            left: 0;
            right: 0;
            overflow: hidden;
            width: 100%;
            height: 70px;
            transition: .5s ease;
            background-color: var(--amc-red-primary);
            border-radius: 0px 0px 10px 10px;
            color: white;

            .serviceContents {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-end;

                .serviceTitle {
                    font-size: 30px;
                    text-align: center;
                    margin-top: 17px;
                    transition: .5s ease;
                    margin-bottom: 12px;
                }

                p {
                    font-size: 18px;
                    margin-left: 8px;
                    margin-right: 8px;
                    padding: 0 10px;
                    margin-top: 0;
                }

                .serviceCTA {
                    display: block;
                    background-color: white;
                    border-radius: 10px;
                    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.40);
                    color: var(--amc-black);
                    font-size: 25px;
                    text-align: center;
                    padding: 10px;
                    width: 80%;
                    font-weight: 900;
                    transition: 0.3s;
                    transform-origin: 0;
                }

                .serviceCTA:hover {
                    transform: translateY(4px);
                    box-shadow: none;
                }
            }
        }
    }

    .serviceBox:hover .serviceOverlay {
        height: 100%;
        border-radius: 10px;
    }

    .serviceBox:hover img {
        border-radius: 10px;
    }

    .serviceBox:hover .serviceContents .serviceTitle {
        margin-top: 30px;
    }

    #about {
        font-weight: 600;
        font-size: 20px;
    }

    .redContainer {
        p {
            text-align: left;
        }

        img {
            margin: 10px;
        }

        display: flex;
        align-items: center;
        background-color: var(--amc-red-primary);
        color: white;
        border-radius: 10px;
        padding: 20px 30px;
        width: 80%;
        margin: 30px;

    }

    #contact {
        padding-bottom: 30px;

        h2 {
            font-size: 30px;
            font-weight: 700;
        }

        a {
            color: black;
            font-size: 25px;
            margin: 5px 0;
        }

        p {
            font-size: 20px;
            text-align: left;
            margin: 0;
            margin-bottom: 10px;
            margin-right: 10px;
        }


        form {

            input[type="submit"] {
                background-color: var(--amc-red-primary);
                color: #FFF;
                border: none;
                border-radius: 10px;
                padding: 10px 0px;
                font-weight: 900;
                font-size: 25px;
                cursor: pointer;
            }

            input,
            textarea {
                padding: 10px 5px;
                font-size: 20px;
                margin-top: 10px;
            }

            textarea {
                resize: vertical;
                min-height: 100px;
                height: 100px;
            }

        }

        form,
        #formControls {

            width: 600px;
            display: flex;
            flex-direction: column;

        }

        #formControls {
            margin-left: 50px;
            justify-content: flex-end;
        }

    }
}

footer {
    color: #FFF;
    background-color: var(--amc-black);
    padding: 30px 30px 0px 30px;
    font-size: 20px;
    box-shadow: 8px 0px 5.5px rgba(0, 0, 0, 0.25);

    hr {
        border: 1px solid #FFF;
        margin-bottom: 0;
    }

    #iconAndSummary {
        display: flex;
        align-items: center;
        max-width: 1000px;

        p {
            margin: 0;
            margin-left: 30px;
        }
    }

    #footerContactDetails {
        display: flex;
        align-items: flex-start;
        margin-top: 10px;
        flex-direction: column;

        a {
            padding: 10px 0px;
        }
    }



    #quickLinks {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        width: 450px;

        text-align: right;

        a {
            padding: 10px;
        }
    }

    #bottomBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0px;
        font-size: 15px;

        a {
            font-size: 15px;

            font-weight: initial;
        }
    }
}

/* Custom classes */
.mobile-break {
    display: none;
}
.loader {
    display: none;
    width: 100%;
    text-align: center;

    font-size: 40px;
    font-family: monospace;
    font-weight: bold;
    text-transform: uppercase;
    color: #0000;
    -webkit-text-stroke: 1px var(--amc-red-primary);
    background: conic-gradient(var(--amc-red-primary) 0 0) 0/0 100% no-repeat text;
    animation: l11 2s steps(8, jump-none) infinite;
}

.loader:before {
    content: "Sending";
}

@keyframes l11 {
    to {
        background-size: 100% 100%
    }
}

.actionBtn {
    background-color: var(--amc-red-primary);
    color: #FFF;
    padding: 12px 60px;
    text-decoration: none;
    border-radius: 15px;
    width: 200px;
    font-size: 30px;
    font-weight: 800;
    opacity: 1;
    transition: 0.3s;
    margin-top: 20px;
    display: block;
    text-align: center;
}

.actionBtn:hover {
    opacity: 0.8;
}

.push-button {
    transition: 0.3s;
    transform-origin: 0;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.40);
}

.push-button:hover {
    transform: translateY(4px);
    box-shadow: none;
}

.flex-evenly {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.flex {
    display: flex;
    align-items: center;
}

.col {
    flex-direction: column;
}

.flex-between {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.hover-underline-animation {
    /* display: inline-block; */
    position: relative;
    transform: translateY(0);
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover {
    transform: translateY(-2px);
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -4px;
    transform: scaleX(0);
    left: 0;
    background-color: var(--amc-red-primary);
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1)
}

.hover-underline-animation.center::after {
    transform-origin: bottom center;
}

.hover-underline-animation.center:hover::after {
    transform-origin: bottom center;
}

/* Media Queries */

@media only screen and (max-width: 1260px) {
    main .serviceContainer {
        grid-template-columns: auto auto;
    }

    main .redContainer {
        flex-direction: column-reverse;

        p {
            text-align: center;
        }

        img {
            width: 100%;
            aspect-ratio: 1;
        }
    }
}

@media only screen and (max-width: 1000px) {
    main #contact {
        text-align: center;

        p {
            text-align: center;
            margin-right: 0px;
        }

        form,
        #formControls {
            margin: 0;
            width: 100%;
        }
    }

    .flex-between {
        flex-direction: column;
        align-items: center;
    }

    footer {
        #iconAndSummary {
            p {
                text-align: center;
                margin: 0;
                margin-top: 20px;

            }
        }

        #iconAndSummary,
        #footerContactDetails,
        #quickLinks,
        #bottomBar {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
    }

}



@media only screen and (max-width: 900px) {
    header .hero {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 45px;
    }

    header .hero h1 {
        font-size: 40px;
    }

    header .navBar {
        padding: 0 20px;
        a {
            display: none;
        }
    }

    header .hero {
        background-color: rgba(0, 0, 0, 0.5);
        background-blend-mode: lighten;
    }

    .hero * {
        text-align: center;
    }

    header #btnMenu {
        display: block;
        float: right;
    }

}


@media only screen and (max-width: 860px) {
    main .serviceContainer {
        grid-template-columns: auto;
    }

    main {
        padding: 20px 5%;
    }
}

@media only screen and (max-width: 550px) {
    .mobile-break {
        display: block;
    }
}

@media only screen and (max-width: 450px) {
    footer #quickLinks {
        width: 100%;
    }
}