.branding .branding-top {
    align-items: center;
    transition: all 0.3s ease;
    max-height: 100px;
    /* overflow: visible; */
}

.branding .branding-top.hide {
    max-height: 0;
    opacity: 0;
    /* visibility: hidden;
    overflow: hidden; */
}

.brand-left .search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-left .search-box input[type="search"] {
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0.45rem 0.75rem;
    min-width: 200px;
}

.brand-left .search-box button {
    background: transparent;
    border: none;
    margin-left: -2.4rem;
    color: inherit;
}

.brand-center .brand-logo {
    text-decoration: none;
    color: inherit;
}

.brand-center .logo-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px;
    line-height: 1;
    color: #9b7d5c;
    font-weight: 700;
}

.brand-center .logo-caption {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
    color: #9b7d5c;
}

.brand-right .social-links a {
    color: inherit;
    margin-left: 0.8rem;
    font-size: 1.05rem;
}

.branding-nav .navmenu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branding-nav .navmenu .active {
    font-weight: 700;
}

@media (max-width: 991px) {
    .brand-left .search-box input[type="search"] {
        min-width: 140px;
    }

    .brand-center .logo-mark {
        font-size: 46px;
    }
}

@media (max-width: 576px) {
    .branding .branding-top {
        gap: 0.5rem;
    }

    .brand-right {
        text-align: center;
    }

    .brand-left .search-box {
        order: 1;
    }

    .brand-center {
        order: 2;
    }

    .brand-right {
        order: 3;
    }

    .branding-nav .navmenu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
}

@media (max-width: 992px) {}

@media (max-width: 576px) {}

/* Mobile menu styles */
.branding-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
}

.branding-mobile-menu .mobile-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.branding-mobile-menu .mobile-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 80vw;
    background: #fff;
    transform: translateX(-100%);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.28s ease;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
}

.branding-mobile-menu .mobile-close {
    align-self: flex-end;
    background: transparent;
    border: none;
    font-size: 1.25rem;
}

.branding-mobile-menu .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.branding-mobile-menu .mobile-nav li {
    margin: 0.5rem 0;
}

.branding-mobile-menu .mobile-nav a {
    color: #3b2118;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.branding-mobile-menu.open {
    pointer-events: auto;
}

.branding-mobile-menu.open .mobile-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.branding-mobile-menu.open .mobile-panel {
    transform: translateX(0);
}

/* ensure mobile header buttons visible */
.brand-hamburger,
.brand-search-toggle {
    display: inline-flex;
}

@media (min-width: 992px) {

    .branding-mobile-menu,
    .brand-hamburger,
    .brand-search-toggle {
        display: none !important;
    }
}

.bi-x-top {
    top: -20px !important;
}