:root {
    --main-color: #1d3e8e;
    --secondary-color: #1d598e;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
}

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: .75rem;
}

h1 {
    padding-bottom: 1rem;
}

.logo-wrapper {
    flex-basis: 50%;
    flex-grow: 1;
    flex-shrink: 0;
}

.logo {
    max-height: 5rem;
}

nav {
    flex-basis: 20%;
    flex-grow: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 5rem;
    justify-content: flex-end;
}

.nav-list:last-child {
    margin-right: 5rem;
}

.nav-list a {
    text-decoration: none;
    font-size: 1.25rem;
    color: black;
}

.nav-list a:hover {
    color: var(--main-color);
}

.hero-background {
    width: 100%;
}

p {
    line-height: 2rem;
    padding-top: .25rem;
    padding-bottom: 1rem;
}

a {
    color: black;
}

a:hover {
    color: var(--main-color);
}
.main-title {
    grid-area: main-title;
}

footer {
    min-height: 35vh;
    padding-top: 5rem;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: top;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.2);
    gap: 5rem;
}

.footer-wrapper {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.footer-wrapper a,
.footer-wrapper h3 {
    padding-block: .25em;
    color: white
}

.footer-wrapper a:link {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.mobile-nav {
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    opacity: 0;
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 999;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
    margin-left: 2rem;
    margin-block: 50%;
    gap: 2rem;
}

.mobile-nav-links a {
    font-size: 3rem;
    text-decoration: none;
    color: black;
}

.mobile-nav-links a:hover {
    color: var(--main-color);
}

#burger-menu-button {
    display: none;
}

#burger-menu-button a{
    color: var(--main-color);
}

@media (max-width: 53rem) {
    footer {
        gap: 0rem;
    }

    #burger-menu-button {
        display: flex;
        flex-direction: row;
        align-items:  center;
        border: .1rem solid var(--main-color);
        border-radius: .25rem;
    }

    #burger-menu-button a{
        font-size: 1rem;
        padding-right: .25rem;
    }

    .hide-on-mobile {
        display: none;
    }

    .nav-list:last-child {
        margin-right: 0;
    }

    #burger-menu-button .close-icon {
        display: none;
    }

    #burger-menu-button.active .menu-icon {
        display: none;
    }
    
    #burger-menu-button.active .close-icon {
        display: block;
    }

    .mobile-nav.active {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease;
    }
}

@media (max-width: 44rem) {
    footer {
        flex-direction: column;
        gap: 0rem;
    }

    main {
        margin: 1rem 1rem;
    }

    .footer-wrapper {
        padding: 1rem;
    }
}