/* ==========================================================================
   Navbar Core
   ========================================================================== */
.navbar {
    box-sizing: border-box;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    left: 0;
    width: calc(100% - 4rem);
    height: 4rem;
    margin: 2rem;
    padding: 0 2rem;
    border-radius: 0.5rem;
    z-index: 1000;

    backdrop-filter: blur(0rem);
    -webkit-backdrop-filter: blur(0rem);
    border: 1px solid transparent;

    letter-spacing: 0.3em;
    color: var(--soft-grey);
    transition: all 0.2s ease-in-out;

    background-color: rgba(255,255,255, 0);
}

.navbar:hover{
    box-shadow: var(--shadow-m);
    color: var(--black);
    backdrop-filter: blur(2rem);
    -webkit-backdrop-filter: blur(2rem);
    background-color: var(--white);
    border-color: rgba(255,255,255, 0.15);
}

.navbar:hover .menu-toggle,
.navbar:hover .nav-contact-toggle {
    color: var(--black);
}

.navbar-left,
.navbar-right {
    flex: 1;
    display: flex;
}

.navbar-left {
    justify-content: flex-start;
}

.navbar-right {
    justify-content: flex-end;
}

.menu-text,
.menu-toggle,
.nav-contact-toggle,
.navbar-brand {
    color: var(--grey);
    letter-spacing: 0.05em;
    font-size: 1rem;
    font-family: "IBM Plex Serif Bold", var(--plexik);
    text-decoration: none;
    text-transform: lowercase;
    font-variant: small-caps;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* mirrored underline for contact toggle */
.nav-contact-toggle.hover-underline::after {
    left: auto;
    right: 0;
}

/* navbar state when sidebar is open */
.navbar.has-sidebar-open {
    color: var(--white);
    transition: all 0.3s ease-in-out;
}

/* force white on all navbar buttons when sidebar is open */
.navbar.has-sidebar-open .menu-toggle,
.navbar.has-sidebar-open .menu-text,
.navbar.has-sidebar-open .nav-contact-toggle {
    color: var(--white);
}

/* hover still turns black when sidebar is open */
.navbar.has-sidebar-open .hover-underline:hover {
    color: var(--black);
}

.navbar.has-sidebar-open .hover-underline:hover::after {
    background: var(--black);
}

/* active state - show underline by extending hover-underline's ::after */
.menu-toggle.is-active .menu-text.hover-underline::after,
.nav-contact-toggle.is-active.hover-underline::after {
    width: 100%;
    background: currentColor;
}

/* active underline inherits white color when sidebar open */
.navbar.has-sidebar-open .menu-toggle.is-active .menu-text.hover-underline::after,
.navbar.has-sidebar-open .nav-contact-toggle.is-active.hover-underline::after {
    background: var(--white);
}

.navbar-brand {
    text-transform: uppercase;
    font-size: 1.5rem;
    color: var(--super-white);
    text-shadow: 0px 0px 3rem var(--black);
    transition: all 0.3s ease-in-out;
    font-family: var(--garik);
}
.navbar-brand:hover {
    text-shadow: 0px 0px 0.75rem var(--black);
}


/* ==========================================================================
   Sidebar Layout
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 5rem;
    height: calc(100vh - 9rem);
    background-color: var(--white);
    backdrop-filter: blur(2rem);
    -webkit-backdrop-filter: blur(2rem);
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    margin: 2rem;
    border-radius: 0.5rem;
    padding: 2rem;
    box-sizing: border-box;
    width: 33vw;

    box-shadow: var(--shadow-m);
}

.sidebar-left {
    left: 0;
    min-width: 300px;
    transform: translateX(calc(-100% - 2rem));
    border-right: 1px solid #eee;
}

.sidebar-right {
    height: auto;
    right: 0;
    min-width: 300px;
    transform: translateX(calc(100% + 2rem));
    box-shadow: var(--shadow-m);
}

.sidebar.is-open {
    transform: translateX(0);
}

.navbar-overlay {
    backdrop-filter: blur(2rem);
    -webkit-backdrop-filter: blur(2rem);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.navbar-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   Left Sidebar (Navigation)
   ========================================================================== */
.sidebar-column {
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-transform: capitalize;
    font-family: var(--garik);
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 0.25rem;
    margin-left: 0.5rem;
}

.sidebar-link {
    text-decoration: none;
    color: var(--soft-grey);
    transition: color 0.2s;
}

.sidebar-link:hover {
    color: var(--black);
}

/* ==========================================================================
   Right Sidebar (Contact Menu)
   ========================================================================== */

.nav-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nav-contact-section:not(:first-child) {
    /* margin-bottom: 2.5rem; */
    /* border-top: 1px solid var(--soft-grey); */
}

.nav-contact-section:last-child {
    margin-bottom: 0;
}

.nav-contact-header h2 {
    margin: 0;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    width: 100%;
}

/* Primary Info (Phone/Email) */
.nav-contact-primary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-contact-phone {
    color: var(--grey);
    font-size: 2rem;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}

.nav-contact-phone:hover {
    color: var(--black);
}

.nav-contact-email {
    color: var(--soft-grey);
    margin: 0;
}

/* Messengers */
.nav-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    position: relative;
    width: fit-content;
    transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-contact-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-contact-link:hover {
    color: #000;
}

.nav-contact-link:hover::after {
    width: 100%;
}

.nav-contact-link img {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    box-shadow: none !important;
}

/* Details (Address/Hours) */
.nav-contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-contact-address p,
.nav-contact-hours p {
    margin: 0;
    line-height: 1.5;
    color: var(--black);
}

/* Maps */
.map-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map-item {
    overflow: hidden;
}

.map-item-btn {
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
    font: inherit;
}

.map-item-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1), 
                opacity 0.3s ease,
                margin 0.3s ease;
    position: relative;
}

.map-item.is-active .map-item-content {
    max-height: 450px;
    opacity: 1;
    margin-top: 1rem;
}

.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--soft-grey);
    font-size: 0.875rem;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.map-item-content.is-loaded .map-loading {
    opacity: 0;
}

.map-item-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Socials */
.social-links {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.social-link svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .navbar {
        width: calc(100vw - 2rem);
        height: 3.5rem;
        margin: 1rem;
        padding: 0 1rem;
        border-radius: 0.75rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .menu-text,
    .menu-toggle,
    .nav-contact-toggle {
        font-size: 0.85rem;
    }

    .sidebar {
        top: 4.5rem;
        height: auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem;
        padding: 1.5rem;
        width: calc(100vw - 2rem);
        min-width: unset;
    }

    .sidebar-left {
        height: 80vh;
        transform: translateX(calc(-100% - 1rem));
    }

    .sidebar-right {
        transform: translateX(calc(100% + 1rem));
    }

    .sidebar-title {
        font-size: 1.25rem;
    }

    .nav-contact-info {
        gap: 2rem;
    }

    .nav-contact-header h2 {
        font-size: 1.25rem;
    }

    .nav-contact-phone {
        font-size: 1.5rem;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}




