:root {
    --mrg-btm: 70px;
}


/* ----- IMAGING ----- */
img#nav-site-title {
    max-width: 270px;
}
img.social-icon {
    height: 40px;
    width: auto;
}


/* top nav */
nav#nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;

    background-color: var(--white);
    width: 100%;
    height: 175px;
    /* border: 2px solid black; */

    padding: 0 50px;
    margin-bottom: var(--mrg-btm);
}
div#nav-btns {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    column-gap: 50px;
}
button#nav-btn {
    width: 75px;
    height: 75px;
    background-color: var(--fd-white);
    > i#nav-icon {
        color: var(--fd-black);
    }
    &:hover {
        background-color: var(--lt-yellow);
        > i#nav-icon {
            color: var(--white);
        }
    }
}
button#cta-nav-btn {
    width: 401px;
    height: 75px;
    font-size: var(--lg-btn-txt);
    font-weight: bold;
}
@media only screen and (max-width: 980px) and (min-width: 800px) {
    nav#nav {
        > div#nav-btns {
            column-gap: 25px;
            align-items: center;
            justify-content: flex-end;
            height: min-content;
            button, form {
                min-height: 100%;
                height: auto;
                width: auto;
            }
            button#nav-btn {
                padding: 8px;
            }
            button#cta-nav-btn {
                padding: 15px 50px;
            }
        }
    }
}
@media only screen and (max-width: 800px) {
    nav#nav {
        padding: 25px;
        height: auto;
        img#nav-site-title {
            max-width: 180px;
        }
        > div#nav-btns {
            column-gap: 25px;
            align-items: center;
            justify-content: flex-end;
            height: 60px;
            button, form {
                min-height: 100%;
                height: 100%;
                width: auto;
                margin: 0;
            }
            button#nav-btn {
                padding: 0px 8px;
                > i#nav-icon {
                    font-size: 2em;
                }
            }
            button#cta-nav-btn {
                padding: 10px 20px;
            }
        }
    }
}
@media only screen and (max-width: 580px) {
    nav#nav {
        div#nav-btns {
            column-gap: 10px;
            button#cta-nav-btn {
                font-size: var(--btn-txt);
                padding: 10px;
            }
        }
    
    }
}
@media only screen and (max-width: 425px) {
    nav#nav {
        div#nav-btns {
            button#cta-nav-btn {
                display: none;
            }
        }
    }
}

/* footer */
footer#footer {
    width: 100%;
    background-color: var(--dk-orange);
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 50px 30px;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    text-transform: capitalize;
    row-gap: 35px;
}
div#footer-links {
    display: flex;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 10px;
    justify-content: center;
    align-content: flex-start;
}
a.footer-link {
    text-decoration: none;
    text-decoration-skip-ink: none;
    text-underline-offset: 5px;
    font-size: var(--footer-txt);
    font-weight: 500;
    &:hover {
        text-decoration: underline var(--lt-orange) 5px;
    }
}
div#footer-btns {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    column-gap: 50px;
    justify-items: stretch;
    align-items: center;
    button {
        width: 100%;
        text-wrap: nowrap;
    }
}
@media only screen and (max-width: 575px) {
    footer#footer {
        padding: 40px 20px;
    }
    div#footer-btns {
        display: flex;
        flex-direction: column;
        row-gap: 25px;
        max-width: min-content;
        > form {
            width: 100%;
        }
    }
}
div#socials {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    column-gap: 30px;
    margin-bottom: 10px;
}
div#footer-bottom p {
    font-size: var(--footer-txt);
}


/* popup menu */
div#popup-overlay {
    /* display: none; */
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    pointer-events: auto; /* blocks clicks */
    visibility: hidden;
    opacity: 0;

    transition: opacity 0.5s ease;
}
div#popup-overlay.open {
    opacity: 1;
    visibility: visible;
}

aside#popup-menu {
    /* display: none; */
    position: fixed;
    top: 0;
    right: 0;
    min-height: 100vh;
    background-color: var(--white);
    width: fit-content;
    max-width: 95%;
    z-index: 1001;
    overflow-y: scroll;

    transform: translateX(100%);
    opacity: 0;
    transition: transform .75s ease .25s, opacity .25s ease;
    /* transition-delay: 0s; */
}
aside#popup-menu.open {
    transform: translateX(0);
    opacity: 1;
    /* transition-delay: .5s; */
}
div#menu-container {
    position: relative;
    top: 0;
    right: 0;
    /* min-height: 100vh; */
    padding: 25px 50px 40px 25px;
}
div#menu-container > i#menu-x {
    position: relative;
    left: -10px;
    color: var(--orange);
    display: block;
    margin-bottom: 20px;
    cursor: pointer;
    &:hover {
        color: var(--dk-orange);
    }
}
img#menu-site-title {
    max-width: 100%;
}
div#menu-links {
    text-transform: capitalize;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 25px 0px;
    > a {
        display: block;
        color: var(--black);
        font-size: var(--heading-txt);
        font-weight: 600;
        text-decoration: none;
        text-wrap: nowrap;
            &:hover {
                color: var(--orange);
            }
    }
}
div#menu-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    column-gap: 10px;
    width: fit-content;
    margin-top: 15px;
}
div#menu-socials > a {
    border-radius: 50%;
    padding: 5px;
    background-color: var(--dk-green);
    aspect-ratio: 1/1;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    &:hover {
        background-color: var(--fd-green);
    }
}