@import url('https://fonts.googleapis.com/css2?family=Averia+Serif+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --font-main: 'Averia Serif Libre', Tahoma;
    --font-body: 'Open Sans', Tahoma;
    --color-main: rgb(255, 242, 202);
    --color-body: rgb(255, 255, 255);
    --color-theme-one: rgb(61, 93, 91);
    --color-theme-two: rgb(193, 127, 92);
    --color-theme-three: rgb(255, 255, 255);
    --color-focused: rgba(0, 0, 0, 1);
    --color-unfocused: rgba(31, 32, 34, 0.75);
    --color-overlay: rgba(62, 54, 48, 0.6);
    --nav-height: 10rem;
    --color-dim: rgb(240, 243, 242);
}

html, body, p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

.content-container {
    width: 100%;
    max-width: 86rem;
    padding-left: 2rem;
    padding-right: 2rem;
    margin: 0 auto;
    box-sizing: border-box;
}

/* NAV BAR */
nav {
    display: flex;
    justify-content: center;
    z-index: 10;
}

#navbar {
    background-color: var(--color-theme-three);
    height: var(--nav-height);
    width: 100%;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    position: relative;
}

#nav-x {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#nav-x > a {
    height: 100%;
    display: flex;
    align-items: center;

    flex-shrink: 1;
}

#homelogo {
    height: 100%;
    width: auto;
    object-fit: contain;
    padding: 1rem;
    box-sizing: border-box;
}

.navbar-links {
    padding-right: 1rem;
    display: flex;
    gap: 1.5rem;
    list-style: none;

    flex-shrink: 0;
    transition: color 0.3s ease;
}

.navbar-links a {
    position: relative;
    color: var(--color-unfocused);
    text-decoration: none;
    letter-spacing: 0.05rem;
    padding-bottom: 0.2rem;
    transition: color 0.3s ease;
}

.navbar-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0.1875rem;
    background-color: var(--color-focused);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.navbar-links a.focused {
    color: var(--color-focused);
}

.navbar-links a.focused::after {
    transform: scaleX(1);
}

.navbar-links a:not(.focused):hover::after {
    transform: scaleX(1);
}

.navbar-links:has(a:not(.focused):hover) a.focused::after {
    transform: scaleX(0);
}

.navbar-links a:not(.focused):hover {
    color: var(--color-focused);
}

.navbar-links:hover a.focused:not(:hover) {
    color: var(--color-unfocused);
}

.menu-btn {
    display: none;
}

@media (max-width: 900px) {
    .menu-btn {
        display: flex;
        width: 3rem;
        height: 3rem;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .menu-btn img {
        width: 2rem;
        height: 2rem;
        display: block;
    }

    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        margin: 0;
        padding: 0;

        display: flex;
        flex-direction: column;
        gap: 0.75rem;

        background-color: var(--color-body);

        clip-path: inset(0 0 100% 0);

        pointer-events: none;

        transition: clip-path 0.45s ease;

        z-index: 1000;
    }

    .navbar-links.open {
        clip-path: inset(0 0 0 0);
        pointer-events: auto;
    }

    .navbar-links li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .navbar-links a {
        display: inline-block;
        width: auto;
        padding: 1rem 0 0.6rem;
        text-align: center;

        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .navbar-links.open a {
        opacity: 1;
        transition-delay: 0.12s;
    }

    .navbar-links a::after {
        left: 0;
        width: 100%;
        bottom: 0.1rem;
    }

    .navbar-links li:last-child {
        padding-bottom: 2rem;
    }
}



/* FOOTER */
footer {
    background-color: var(--color-theme-one);
    display: flex;
    position: relative;
    overflow: hidden;
}

#footer-x {
    display: flex;
    flex-direction: column;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

#footer-box {
    max-height: 16rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8rem;
}

#footer-img, #footer-list, .footer-item {
    height: 100%;
}

#footer-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding-right: 2rem;
    margin: 0;
    list-style: none;
}

.footer-item img {
    height: 100%;
    max-height: 12rem;
    object-fit: contain;
    display: block;
}

#footer-text h1 {
    font-size: clamp(1.521rem, 1.104vw + 1.3rem, 2.197rem);
    font-family: var(--font-main);
    font-weight: 900;
    color: var(--color-main);
    text-transform: uppercase;
}

#footer-text h2 {
    font-size: clamp(1.25rem, 0vw + 1.25rem, 1.25rem);
    font-family: var(--font-main);
    font-weight: 900;
    color: var(--color-dim);
    text-transform: uppercase;
    letter-spacing: -1px;
}

#footer-promo {
    display: flex;
    flex-direction: column;
    text-align: center;
}

#footer-promo p {
    text-transform: uppercase;
    font-family: var(--font-body);
    color: var(--color-dim);
    transform: skewX(-12deg) scaleX(1.05);
    transform-origin: center center;
}

#media-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    margin-top: 2rem;
    list-style: none;
}

#media-icons img {
    height: 1.5rem;
    max-height: 1.5rem;
}

@media (max-width: 900px) {
    #footer-box {
        flex-direction: column;
        max-height: none;
    }

    #footer-list {
        flex-direction: column;
    }

    #footer-text {
        margin-bottom: 4rem;
    }
}



