/*
 * MenuRestaurant public shell
 * GeneratePress header, navigation and footer only.
 */

#masthead.site-header {
    position: relative;
    z-index: 900;
    width: 100%;
    min-height: 88px;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(10, 91, 63, .09);
    background: rgba(255, 255, 255, .97);
}

#masthead .inside-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, calc(100% - 64px));
    min-height: 88px;
    margin-inline: auto;
    padding: 0;
    box-sizing: border-box;
}

#masthead .site-logo,
#masthead .site-branding-container {
    position: relative;
    z-index: 930;
    flex: 0 0 auto;
    margin: 0;
}

#masthead .site-logo img,
#masthead .site-branding-container img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 58px;
}

#masthead .header-widget {
    position: relative;
    z-index: 940;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

#masthead .header-widget .widget,
#masthead .header-widget p {
    margin: 0;
}

@media (min-width: 1025px) {
    #site-navigation.main-navigation {
        position: absolute;
        top: 0;
        left: 50%;
        z-index: 920;
        min-height: 88px;
        margin: 0;
        background: transparent;
        transform: translateX(-50%);
    }

    .admin-bar #site-navigation.main-navigation {
        top: 32px;
    }

    #site-navigation .inside-navigation {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 88px;
        padding: 0;
    }

    #site-navigation .menu-toggle {
        display: none !important;
    }

    #site-navigation .main-nav,
    #site-navigation .main-nav > ul {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    #site-navigation .main-nav > ul {
        gap: 0;
        margin: 0;
        padding: 0;
    }

    #site-navigation .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 10px;
        color: #31443d;
        font-size: 14px;
        font-weight: 700;
        line-height: 1.4;
        white-space: nowrap;
    }

    #site-navigation .main-nav > ul > li:hover > a,
    #site-navigation .main-nav > ul > li:focus-within > a,
    #site-navigation .main-nav > ul > li.current-menu-item > a,
    #site-navigation .main-nav > ul > li.current-menu-ancestor > a {
        background: transparent;
        color: var(--mr-shell-green, #0a5b3f);
    }
}

@media (min-width: 1025px) and (max-width: 1220px) {
    #masthead .inside-header {
        width: calc(100% - 40px);
    }

    #masthead .site-logo img,
    #masthead .site-branding-container img {
        max-width: 175px;
        max-height: 52px;
    }

    #site-navigation .main-nav > ul > li > a {
        padding-inline: 7px;
        font-size: 13px;
    }

    .mr-auth-header-login,
    .mr-auth-header-register,
    .mr-auth-user-trigger {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    #masthead.site-header,
    #masthead .inside-header {
        min-height: 82px;
    }

    #masthead .inside-header {
        display: block;
        width: 100%;
        padding: 0;
    }

    #masthead .site-logo,
    #masthead .site-branding-container {
        position: absolute;
        top: 50%;
        left: 50%;
        margin: 0;
        transform: translate(-50%, -50%);
    }

    #masthead .site-logo img,
    #masthead .site-branding-container img {
        max-width: 135px;
        max-height: 50px;
    }

    #masthead .header-widget {
        position: absolute;
        top: 50%;
        left: 16px;
        max-width: 38%;
        transform: translateY(-50%);
    }

    /* Keep GeneratePress' inline control anchored to the header itself. */
    #masthead .mobile-menu-control-wrapper {
        position: absolute;
        top: 50%;
        right: 16px;
        left: auto;
        z-index: 950;
        display: flex !important;
        align-items: center;
        margin: 0;
        transform: translateY(-50%);
    }

    /* The navigation remains at its natural position directly below header. */
    #site-navigation.main-navigation {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        z-index: 949;
        width: 100%;
        height: 0;
        min-height: 0;
        margin: 0;
        overflow: visible;
        background: transparent;
        transform: none;
    }

    #site-navigation .inside-navigation {
        position: relative;
        display: block;
        height: 0;
        min-height: 0;
        padding: 0;
        overflow: visible;
    }

    /* Hide only the redundant toggle emitted inside the navigation. */
    #site-navigation .menu-toggle {
        display: none !important;
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border: 1px solid #d5e8df;
        border-radius: 13px;
        background: var(--mr-shell-green-soft, #eef9f4);
        color: var(--mr-shell-green, #0a5b3f);
        line-height: 1;
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle:hover,
    #masthead .mobile-menu-control-wrapper .menu-toggle:focus-visible,
    #masthead .mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] {
        border-color: #b8d5c7;
        background: #e3f4ec;
        color: var(--mr-shell-green-dark, #083e2f);
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle:focus-visible {
        outline: 3px solid rgba(10, 91, 63, .2);
        outline-offset: 2px;
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle .mobile-menu {
        display: none !important;
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle .gp-icon,
    #masthead .mobile-menu-control-wrapper .menu-toggle .gp-icon svg {
        width: 24px;
        height: 24px;
    }

    /* GeneratePress stores the open and close icons in the same wrapper. */
    #masthead .mobile-menu-control-wrapper .menu-toggle .icon-menu-bars svg:first-child {
        display: block;
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle .icon-menu-bars svg:nth-child(2) {
        display: none;
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .icon-menu-bars svg:first-child {
        display: none;
    }

    #masthead .mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .icon-menu-bars svg:nth-child(2) {
        display: block;
    }

    #site-navigation .main-nav {
        display: none;
    }

    #site-navigation.toggled .main-nav {
        position: absolute;
        top: 8px;
        right: 16px;
        display: block;
        width: min(320px, calc(100vw - 32px));
        max-height: calc(100vh - 120px);
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        border: 1px solid var(--mr-shell-line, #dce8e2);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 18px 46px rgba(22, 42, 55, .17);
    }

    #site-navigation .main-nav > ul,
    #site-navigation.toggled .main-nav > ul {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 8px;
        box-sizing: border-box;
    }

    /* Reserve the top of the open panel for the anchored close control. */
    #site-navigation.toggled .main-nav > ul {
        padding-top: 60px;
    }

    #site-navigation .main-nav > ul > li {
        display: block;
        width: 100%;
        float: none;
    }

    #site-navigation .main-nav > ul > li > a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 46px;
        padding: 0 14px;
        box-sizing: border-box;
        border-radius: 10px;
        background: transparent;
        color: #263d34;
        font-size: 14px;
        font-weight: 700;
        text-align: right;
    }

    #site-navigation .main-nav > ul > li:hover > a,
    #site-navigation .main-nav > ul > li:focus-within > a,
    #site-navigation .main-nav > ul > li.current-menu-item > a {
        background: var(--mr-shell-green-soft, #eef9f4);
        color: var(--mr-shell-green, #0a5b3f);
    }
}

@media (max-width: 767px) {
    #masthead.site-header,
    #masthead .inside-header {
        min-height: 72px;
    }

    #masthead .site-logo img,
    #masthead .site-branding-container img {
        max-width: 118px;
        max-height: 44px;
    }

    #masthead .header-widget {
        left: 8px;
        max-width: 39%;
    }

    #masthead .mobile-menu-control-wrapper {
        right: 8px;
    }

    #site-navigation.toggled .main-nav {
        right: 8px;
        width: min(310px, calc(100vw - 16px));
    }
}

@media (max-width: 380px) {
    #masthead .site-logo img,
    #masthead .site-branding-container img {
        max-width: 96px;
    }

    #masthead .header-widget {
        left: 6px;
        max-width: 41%;
    }

    #masthead .mobile-menu-control-wrapper {
        right: 6px;
    }

    #site-navigation.toggled .main-nav {
        right: 6px;
        width: calc(100vw - 12px);
    }
}

/* GeneratePress footer. */
.site-footer {
    background: #f6f9f7;
    color: #55675f;
}

.site-footer .footer-widgets {
    border-top: 1px solid #e1ebe6;
    background: transparent;
}

.site-footer .footer-widgets-container {
    max-width: 1200px;
    padding: 64px 32px 50px;
}

.site-footer .inside-footer-widgets {
    display: grid !important;
    grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 56px;
    align-items: start;
}

.site-footer .inside-footer-widgets > div {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.site-footer .widget,
.site-footer .widget:last-child,
.site-footer p:last-child,
.site-footer ul:last-child {
    margin-bottom: 0;
}

.site-footer .widget-title {
    margin: 0 0 18px;
    color: #173e31;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget a {
    font-size: 13px;
    line-height: 2;
}

.site-footer .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .widget a {
    color: #405b50;
    text-decoration: none;
}

.site-footer .widget a:hover,
.site-footer .widget a:focus-visible {
    color: var(--mr-shell-green, #0a5b3f);
}

.site-footer .footer-widget-1 img,
.site-footer .wp-block-image img {
    width: auto;
    max-width: 220px;
    height: auto;
}

.site-footer .site-info {
    border-top: 1px solid #e1ebe6;
    background: #f6f9f7;
    color: #718078;
}

.site-footer .inside-site-info {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 12px 24px;
    box-sizing: border-box;
}

.site-footer .copyright-bar,
.site-footer .mr-site-credit {
    font-size: 11px;
    line-height: 1.8;
    text-align: center;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .site-footer .footer-widgets-container {
        padding-inline: 28px;
    }

    .site-footer .inside-footer-widgets {
        grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(0, 1fr));
        gap: 30px;
    }
}

@media (max-width: 767px) {
    .site-footer .footer-widgets-container {
        padding: 44px 20px 32px;
    }

    .site-footer .inside-footer-widgets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px 24px;
    }

    .site-footer .footer-widget-1,
    .site-footer .footer-widget-4 {
        grid-column: 1 / -1;
    }

    .site-footer .footer-widget-1 img,
    .site-footer .wp-block-image img {
        max-width: 190px;
    }

    .site-footer .widget-title {
        margin-bottom: 13px;
        font-size: 14px;
    }

    .site-footer .widget,
    .site-footer .widget p,
    .site-footer .widget li,
    .site-footer .widget a {
        font-size: 12.5px;
        line-height: 1.9;
    }

    .site-footer .inside-site-info {
        min-height: 58px;
        padding: 12px 16px;
    }
}
