@layer components {

    /* Logo */
    .logo-container {
        padding-top: min(2rem, 5vw);
        padding-bottom: min(2rem, 5vw);
        display: flex;
        justify-content: center;
    }

    .logo-image {
        max-width: 20rem;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        border: 1px dashed #c4a12d;
        padding: 1rem;
        background-color: #1d1309;
    }

    /* Navigation */
    .public-nav {
        background-color: rgba(0, 0, 0, 0.4);
    }

    .nav-link {
        height: 40px;
        line-height: 40px;
        text-align: center;
        padding-right: 22px;
        padding-left: 22px;
    }

    .nav-link:hover {
        color: #fffbcf;
        background: url("header/nav-hvr.png") center/contain;
        background-size: 100% 40px;
    }

    .nav-link-mobile {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1rem;
        font-family: var(--font-nav);
        font-weight: 400;
        color: #806a58;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        border-radius: 0.25rem;
        transition: all 0.15s;
        border-left: 2px solid transparent;

        &:hover {
            background-color: rgba(196, 161, 45, 0.1);
            color: #fffbcf;
            border-left-color: #c4a12d;
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
    }

    .nav-logo-with-shadow {
        display: none;
        z-index: 50;
        padding: 0.5rem;
        border: 1px solid #bba42961;
        background-color: black;
        box-shadow: 1px 1px 12px 0 #ffc30047;
    }

    @media (min-width: 768px) {
        .nav-logo-with-shadow {
            display: block;
            position: absolute;
            left: 1rem;
            top: 2.5rem;
            height: 6.5rem;
        }
    }

    @media (min-width: 1024px) {
        .nav-logo-with-shadow {
            top: 1rem;
            left: 2rem;
        }
    }

    .nav-logo {
        position: absolute;
        left: 1rem;
        top: 1rem;
        height: 6.5rem;
        z-index: 50;
        padding: 0.5rem;
        border: 1px dashed #c4a12d;
        background-color: #1d1309;
    }

    @media (min-width: 640px)  { .nav-logo { left: 1.5rem; } }
    @media (min-width: 1024px) { .nav-logo { left: 2rem; } }

    /* Navigation detail */
    .nav-container {
        max-width: 64rem;
        margin-left: auto;
        margin-right: auto;
        padding-left: 1rem;
        padding-right: 1rem;
        position: relative;
    }

    @media (min-width: 640px)  { .nav-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
    @media (min-width: 1024px) { .nav-container { padding-left: 2rem;   padding-right: 2rem; } }

    .nav-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 2.5rem;
    }

    .nav-mobile-toggle {
        display: flex;
        align-items: center;
    }

    @media (min-width: 768px) { .nav-mobile-toggle { display: none; } }

    .nav-hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        border-radius: 0.375rem;
        background: transparent;
        border: none;
        color: inherit;
        cursor: pointer;
    }

    .nav-hamburger:focus-visible {
        outline: 2px solid rgba(196, 161, 45, 0.4);
        outline-offset: 2px;
    }

    .nav-hamburger svg { width: 1.5rem; height: 1.5rem; }

    .nav-desktop { display: none; }

    @media (min-width: 768px) {
        .nav-desktop { display: flex; align-items: center; }
        .nav-desktop--centered { margin: 0 auto; }
        .nav-desktop--end { margin-left: auto; }
    }

    .nav-mobile-menu {
        position: fixed;
        left: 1rem;
        top: 3rem;
        z-index: 40;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(12px);
        border-radius: 0.75rem;
        border: 1px solid #594b3e;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }

    @media (min-width: 768px) { .nav-mobile-menu { display: none; } }

    .nav-mobile-menu-inner {
        padding: 1rem 1.5rem;
        min-width: 160px;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
}
