/* Roboto (variable, 400–700), self-hosted – see fonts/OFL.txt */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/roboto-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

: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 {
    height: 5rem;
    max-width: 100%;
    object-fit: contain;
}

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;
    }
}