:root {
    --rem: 10px;
    --content-width: 1200px;
    --theme-color-main: #800000;
    --theme-color-second: #3e4a82;
    --font-size: 1.6rem;
    --letter-spacing: 0.01px;
    --line-height: calc(var(--font-size) * 1.5);
    --h-font: "Outfit", sans-serif;
    --page-font: "Outfit", sans-serif;
    --focus-outline: 1px currentColor solid;
    --focus-outline-offset: 2px;
    --focus-outline-border-radius: 3px;
    /* This will be updated dynamically via JS */
    /* --header-height: 80px; */
}
*, *::before, *::after {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
html {
    font-size: var(--rem);
    scroll-behavior: smooth;
}
body {
    /* Prevent horizontal scroll while menu is hidden */
    overflow-x: hidden; 
    font-family: var(--page-font);
    & p {
        line-height: var(--line-height);
        font-size: var(--font-size);
        max-width: 100rem;
        margin: 0 1rem 3rem 1rem;
    }
    & h6 {
        font-size: calc(var(--font-size) * 1.25);
    }
    & h5 {
        font-size: calc(var(--font-size) * 1.5);
    }
    & h4 {
        font-size: calc(var(--font-size) * 1.75);
    }
    & h3 {
        font-size: calc(var(--font-size) * 2);
    }
    & h2 {
        font-size: calc(var(--font-size) * 2.25);
    }
    & h1 {
        font-size: calc(var(--font-size) * 2.50);
    }
    & h1, & h2, & h3, & h4, & h5, & h6 {
        font-weight: 200;
        text-wrap: balance;
    }
    & ol, & ul {
        margin: 0 2.5rem 3.2rem 2.5rem;
        & > li {
            font-size: var(--font-size);
            color: var(--page-font-color);
        }
    } 
}
#container {
    display: grid;
    grid-template-columns: 1fr min(90dvw, var(--content-width)) 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100dvh;
    row-gap: 2rem;
    & header {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 1;
        background-color: rgba(255, 255, 255, 0.95);
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 2rem 0;
        overflow: hidden;
        & img {
            grid-column: 1;
            max-width: clamp(6rem, 8vw, 12rem);
            margin-left: 2rem;
        }
        & h1 {
            font-size: clamp(3rem, 8vw, 5.5rem);
            grid-column: 2;
            opacity: 0.7;
            grid-row: 1;
        }
        & #menu-button {
            grid-column: 3;
            position: relative;
            justify-self: end;
            outline: none;
            border: none;
            padding: 0;
            margin: 0;
            margin-right: 2rem;
            background-color: rgba(255, 255, 255, 0.1);
            width: 4rem;
            height: 4rem;
            &::before {
                content: "\f142";
                font-family: 'Font Awesome 5 Free';
                font-weight: 900;
                -webkit-font-smoothing: antialiased;
                color: #848484;
                font-size: 3rem;
                cursor: pointer;
            }
        }
    }
    & #nav-menu {
        position: fixed;
        top: 0px;
        right: 0px;
        width: max-content;
        /* Calculate remaining height so footer/bottom isn't cut off */
        height: 100dvh;
        transform: translateX(100%);
        /* transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
        overflow-y: auto;
        margin: 0;
        padding: 3rem 2rem 0 2rem;
        background-color: rgb(59, 59, 59);
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        z-index: 2;
        transition: transform 0.5s ease;
        & #close-menu-btn {
            display: block;
            outline: none;
            border: none;
            padding: 0;
            margin: 0;
            margin-left: auto;
            margin-right: 1rem;
            width: 4rem;
            height: 4rem;
            background-color: transparent;
            &::before {
                content: "\f00d";
                font-family: 'Font Awesome 5 Free';
                font-weight: 900;
                -webkit-font-smoothing: antialiased;
                color: #fff;
                font-size: 3rem;
                cursor: pointer;
                transition: color 0.5s ease;
            }
            &:hover {
                &::before {
                    color: red;
                }
            }
        }
        &.open {
            transform: translateX(0);
        }
        & a.nav-link {
            text-decoration: none;
            font-size: 2.2rem;
            color: #bababa;
            border-bottom: 1px rgb(165, 165, 165) solid;
            padding: 2rem 8rem 2rem 2rem;
            display: block;
            transition: color 200ms;
            &:hover {
                color: #fff;
            }
        }
    }
    & footer {
        grid-column: 1 / -1;
        grid-row: 3;
        display: grid;
        & #contact-wrapper {
            justify-self: center;
            align-self: end;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.8rem;
            & #contact-email {
                display: flex;
                align-items: center;
                column-gap: 0.8rem;
                text-decoration: none;
                font-size: 1.8rem;
                color: rgb(107, 107, 107);
                transition: color 0.3s ease-out;
                &:hover {
                    color: rgb(91, 61, 148);
                    /* transform: scale(1.1); */
                    &::before {
                        transform: scale(1.3);
                        color: rgb(91, 61, 148); 
                    }
                }
                &::before {
                    content: "\f0e0";
                    font-family: 'Font Awesome 5 Free';
                    font-weight: 900;
                    -webkit-font-smoothing: antialiased;
                    color: currentColor;
                    transition: color 300ms, transform 0.5s ease;
                }
            }
            & #cell-number {
                margin: 0;
                display: flex;
                align-items: center;
                column-gap: 0.8rem;
                font-size: 1.8rem;
                color: rgb(107, 107, 107);
            }
        }
        & p.copyright {
            margin: 0;
            padding: 2rem 0;
            font-size: 1.4rem;
            color: rgb(107, 107, 107);
            justify-self: center;
        }
    }
    & header, & footer {
        & h1 {
            margin: 0;
        }
    } 
}