/* Navigation bar styles */
/* Navigation */

nav {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 83px;

    background-color: var(--background-grey);
    z-index: 1000;
}

.nav-content {
    width: calc(100% - 72px);
    max-width: 1160px;
    height: 100%;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    display: block;
    width: auto;
    height: 60px;
    max-width: 100%;
}

.burger {
    margin: 0;
    padding: 0;
    border: none;
    background: none;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 0;
    cursor: pointer;
}

.burger img {
    display: block;
    width: auto;
    height: 14px;
    max-width: 100%;

    transition: transform 0.2s ease;
}

.burger[aria-expanded="true"] img {
    transform: rotate(-90deg);
}

/* Dropdown menu */

.off-screen-menu {
    position: fixed;

    top: 83px;
    left: 0;

    width: 100%;
    background-color: var(--deep-teal);

    z-index: 999;

    /* Hide the menu directly behind the nav */
    transform: translateY(-100%);

    transition: transform 0.2s ease;
}

.off-screen-menu.active {
    transform: translateY(0);
}

.menu-overlay {
    position: fixed;

    top: 83px;
    left: 0;

    width: 100%;
    height: calc(100vh - 83px);

    background-color: rgba(255, 255, 255, 0.3);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;

    z-index: 998;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/*
removed for demo purposes

body.menu-open {
    overflow: hidden;
}
*/

.off-screen-menu ul {
    width: calc(100% - 72px);
    max-width: 1160px;

    margin: 0 auto;
    padding: 30px 0;

    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 17px;
}

.off-screen-menu a {
    color: var(--background-grey);
    font-size: 14.6px;
    font-weight: 600;
    transition: color 0.1s ease;
}

.off-screen-menu a:hover {
    color: var(--soft-stone);
}

/* Footer */

footer {
    background-color: var(--deep-teal);
}

.footer-content {
    width: calc(100% - 72px);
    max-width: 1160px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "logo contact"
        "links-left links-right"
        "copyright copyright";

    column-gap: 30px;
    row-gap: 20px;

    padding: 20px 0 24px;
}

.footer-logo {
    grid-area: logo;
}

.footer-logo img {
    display: block;
    width: auto;
    height: 60px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-left {
    grid-area: links-left;
}

.footer-links-right {
    grid-area: links-right;
}

.footer-links a {
    color: #fff;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.7px;
    transition: color 0.1s ease;
}

.footer-links a:hover {
    color: var(--soft-stone);
}

.footer-contact {
    grid-area: contact;
    justify-self: start;
    align-self: center;

    margin: 8px 0 0 0;
    padding: 10px 20px;

    background-color: var(--muted-water);
    border-radius: 4px;

    color: #fff;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.7px;

    text-decoration: none;

    transition: background-color 0.15s ease;
}

.footer-contact:hover {
    background-color: var(--soft-moss);
}

.footer-copyright {
    grid-area: copyright;

    margin: 8px 0px 0px 0px;

    color: #fff;
    font-size: 6px;
    font-weight: 200;
    letter-spacing: 0.7px;
}

@media screen and (min-width: 620px) {

    /* Navigation Bar */

    nav {
        height: 120px;
    }

    .nav-logo img {
        height: 85px;
    }

    .burger img {
        height: 30px
    }

    /* Off-Screen Menu */

    .off-screen-menu {
        top: 120px;
    }

    .menu-overlay {
        top: 120px;
        height: calc(100vh - 120px);
    }

    .off-screen-menu ul {
        padding: 70px 0;
        gap: 20px;
    }

    .off-screen-menu a {
        font-size: 24px;
    }

    /* Footer */

    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;

        grid-template-areas:
            "logo . ."
            "links-left links-right contact"
            "copyright copyright .";

        column-gap: 40px;
        padding: 48px 0 40px;
        row-gap: 44px;
    }

    .footer-contact {
        align-self: start;
        justify-self: end;
        margin: 0px;
        border-radius: 7px;
        font-weight: 500;
    }

    .footer-logo img {
        height: 85px;
    }

    .footer-links {
        gap: 20px;
    }

    .footer-links a {
        font-size: 16px;
        font-weight: 500;
    }

    .footer-contact {
        padding: 15px 30px;
        font-size: 18px;
    }

    .footer-copyright {
        font-size: 14px;
        margin: 20px 0px 0px 0px;
    }
}