:root {
    --inter: "Inter", serif;
    --roboto: "Roboto Condensed", serif;
    --logo-height: 4rem;
    --form-text-color: #3b3b3b;
    --body-text-color: #171717;
    --phone-size: 1.5rem;
    font-family: var(--roboto);
}

html {
    scroll-behavior: smooth;
}

#wrapper {
    width: 100%;

    .roboto-condensed-h2 {
        font-optical-sizing: auto;
        font-weight: bold;
        font-style: normal;
    }

    header,
    footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
    
        ul {
            li {
                flex: 0 1 auto;
                margin: 0 1rem 0 0;
            }
        }
    }
    header {
        background: #333;
        color: #fff;

        a[href^="tel"] {
            color: inherit;
            text-decoration: none;
        }

        #logo {
            #header-logo {
                fill: #fff;
                width: 12.25rem;
            }
        }
        nav,
        #right-nav {
            justify-self: end;
            align-self: center;
            font-size: 1.2rem;
            text-align: right;
        }
        nav {
            ul {
                display: inline-flex;
            }
        }
    }
    main {
        position: relative;
    }
    footer {
        background: #f27b00;
        margin: 2rem 0 0 0;

        #footer-logo {
            #footer-hs-logo {
                fill: #333;
                width: 12.25rem;
            }
        }

        #footer-links {
            justify-self: end;
            text-align: right;
            align-self: center;
        }
    }
    #hero {
        background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0)), url('assets/hshs_hero.jpeg');
        background-repeat: no-repeat;
        background-size: cover;
        color: #fbf7f7;
        text-shadow: #333 0.125rem;

        .hero-content-wrapper {
            .hero-copy {
                padding: 2rem;
                h1 { font-size: 2.5rem; }
                p { font-size: 1.5rem; line-height: 2.5rem; }
            }
        }
    }
    #logo,
    #footer-logo {
        grid-column: 1 / span 1;
    }
    nav,
    #footer-links {
        grid-column: 2 / span 3;
    }
    #contact-form {
        position: relative;

        #form-overlay {
            display: none;
            position: absolute;
            background: #333;
            height: 100%;
            padding-top: 50%;
            text-align: center;
            width: 100%;
            z-index: 2;

            .submission {
                h3 {
                    font-size: 1.5rem;
                    color: #fbf4f4
                }
            }
        }
        #form-overlay.active {
            display: block;
            transition: opacity 0.5s;
            opacity: 0.9;
        }
        form {
            fieldset {
                background: rgb(255, 217, 2);
                border: 0;
                color: var(--form-text-color);
                padding: 2rem;

                h2 {
                    font-size: 2rem;
                    margin-bottom: 1rem;
                }

                .error {
                    color: rgb(255 0 0);
                }

                label {
                    font-size: 1.4rem;
                }

                input, textarea {
                    border-radius: 0.5rem;
                }

                input, textarea {
                    border: 0;
                    margin: 0.5rem 0 1rem 0;
                    padding: 1rem 1rem 1rem 0.5rem;
                    width: 100%;
                }

                input {
                    font-size: 1.2rem;
                }

                button {
                    background: #f27b00;
                    border: 0;
                    border-radius: 1rem;
                    color: var(--form-text-color);
                    font-size: 1.8rem;
                    font-weight: bold;
                    width: 100%;
                    padding: 1.3rem;
                }

                .sending {
                    display: none;
                }
                .sending.active {
                    display: block;
                }
            }
        }
    }
    #whatWeDo {
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 1280px;
        
        h2 {
            font-size: 2rem;
            padding: 2rem 0 2rem;
        }
    
        #services {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
            gap: 0.9rem;
        
            .service-card {
                position: relative;
                overflow: hidden;
                z-index: 1;
                max-width: 31.25rem;
                margin-left: auto;
                margin-right: auto;

                .card-wrapper {
                    position: absolute;
                    bottom: 0;
                    right: 0;
                    z-index: 1;
                    height: 100%;
                    width: 100%;
                    display: flex;
                    flex-flow: column;
                    justify-content: flex-end;
                    padding: 0.5rem;
                    
                    .card-wrapper-int {
                        display: flex;
                        flex-direction: column;
                        justify-content: flex-end;
                        height: 100%;
                        text-align: center;
                        margin: 0 auto;

                        h3, ul {
                            color: #fff;
                        }

                        h3 {
                            font-size: 1.3rem;
                            margin-bottom: 0;
                            transition: transform .75s;
                        }
    
                        ul {
                            text-align: left;
                            flex: 0 1;
                            opacity: 0;
                            height: auto;
                            overflow: hidden;
                            transition: all .75s;
    
                            li {
                                margin: 0 0 1rem 0;
                            }
                        }
                    }
                }
            }
            .service-card::before {
                content: "";
                position: absolute;
                z-index: 0;
                bottom: 0;
                right: 0;
                width: 100%;
                height: 20%;
                background: rgba(19, 19, 19, .7);
                transition: height .75s, background .5s .125s;
            }

            .service-card:focus::before,
            .service-card:hover::before {
                height: 100%;
                background: rgba(217, 55, 66, .9);
            }

            .service-card:hover .card-wrapper .card-wrapper-int ul,
            .service-card:focus .card-wrapper .card-wrapper-int ul {
                list-style-type: disc;
                flex: 1 1;
                opacity: 1;
                padding: 1rem;
            }
        }
    }
    /* CLASSES */
    .mx-auto {
        margin-left: auto;
        margin-right: auto;
    }
    .my-auto {
        margin-top: auto;
        margin-bottom: auto;
    }
    .mx-bold {
        font-weight: bold;
    }
    .mx-line-break {
        content: ' ';
    }
    .hide {
        display: none;
    }
}

/* MEDIA QUERIES */
@media (min-width: 600px) {
    #wrapper {
        header {
            #right-nav {
                font-size: var(--phone-size);
            }
        }
        #hero {
            width: 100%;

            .hero-content-wrapper {
                display: flex;
                justify-content: space-between;
                flex-direction: row;
                max-width: 80rem;
                margin: 0 auto;
                padding: 3rem;

                .hero-copy {
                    h1 {
                        font-size: 5rem;
                    }
                    p {
                        font-size: 1.5rem;
                    }
                    padding: 0 2rem 0 0;
                }

                #contact-form {
                    border: 1px solid;
                    border-radius: 1rem;
                    max-width: 30rem;

                    form {
                        fieldset {
                            h2 {
                                font-size: 2.5rem;
                            }
                        }
                    }
                }
            }
        }

        #contact-form {
            #form-overlay {
                border: 0;
                border-radius: 1rem;
            }

            fieldset {
                border-radius: 1rem;
            }
        }

        footer {
            .footer-phone {
                font-size: var(--phone-size);
            }
            ul {
                display: inline-flex;
            }
        }
    }
}
