/** Mobile menu styles (design: "Nav menu - mobile") **/
.mobile-menu,
.mobile-menu__panel {
    /* Figma font Eros → Elsie Swash Caps, ITC New Baskerville → Libre Baskerville */
    --mobile-menu-font-display: 'Elsie Swash Caps', serif;
    --mobile-menu-font: 'Libre Baskerville', serif;
    --mobile-menu-gold: #cc9e5b;
    --mobile-menu-paper: #eae5d4;
    --mobile-menu-teal: #0b4a5a;
}

/* Desktop: the normal navigation menu is used instead */
.mobile-menu {
    display: none;
}

@media (max-width: 991px) {
    .mobile-menu {
        display: block;
    }

    /* Replaces The Plus navigation widget's own hamburger and dropdown */
    .plus-navigation-wrap .plus-mobile-nav-toggle.mobile-toggle,
    .plus-navigation-wrap .plus-mobile-menu-content {
        display: none !important;
    }
}

/* Hamburger: two white lines, like the original toggle */
.mobile-menu .mobile-menu__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.mobile-menu__toggle-line {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
}

/* Full-screen panel (moved to <body> by mobile-menu.js) */
.mobile-menu__panel {
    position: fixed;
    inset: 0;
    z-index: 100000;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: var(--mobile-menu-teal);
    background-image: var(--mobile-menu-bg);
    background-repeat: repeat;
    color: var(--mobile-menu-paper);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu__panel[hidden] {
    display: none;
}

.mobile-menu__panel.is-open {
    opacity: 1;
}

/* Page behind the open menu doesn't scroll */
html.mobile-menu-open,
html.mobile-menu-open body {
    overflow: hidden;
}

.mobile-menu__panel .mobile-menu__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--mobile-menu-gold);
    cursor: pointer;
}

.mobile-menu__inner {
    /* Fits one phone screen: spacing and logo scale with the screen height */
    --mobile-menu-space: clamp(8px, 2.4dvh, 28px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--mobile-menu-space);
    min-height: 100%;
    padding: clamp(28px, 5dvh, 44px) 22px clamp(20px, 4dvh, 40px);
    text-align: center;
}

/* Line — ornament — line */
.mobile-menu__divider {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
}

.mobile-menu__divider::before,
.mobile-menu__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--mobile-menu-gold);
}

.mobile-menu__panel .mobile-menu__divider img {
    flex-shrink: 0;
    width: 115px;
    max-width: none;
    height: auto;
}

.mobile-menu__panel .mobile-menu__logo img {
    display: block;
    width: clamp(80px, 13dvh, 120px);
    height: auto;
}

/* Menu links */
.mobile-menu__panel .mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: clamp(0px, 0.6dvh, 6px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu__panel .mobile-menu__list li {
    margin: 0;
    padding: 0;
}

.mobile-menu__panel .mobile-menu__list a {
    display: block;
    color: var(--mobile-menu-paper);
    font-family: var(--mobile-menu-font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    text-transform: none;
    transition: color 0.3s ease;
}

.mobile-menu__panel .mobile-menu__list a:hover,
.mobile-menu__panel .mobile-menu__list a:focus-visible,
.mobile-menu__panel .mobile-menu__list .current-menu-item > a {
    color: var(--mobile-menu-gold);
}

/* Location, opening hours, phone, email */
.mobile-menu__details {
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1.4dvh, 14px);
    max-width: 300px;
}

.mobile-menu__panel .mobile-menu__label,
.mobile-menu__panel .mobile-menu__value {
    margin: 0;
    padding: 0;
    font-family: var(--mobile-menu-font);
}

.mobile-menu__panel .mobile-menu__label {
    margin-bottom: 2px;
    color: var(--mobile-menu-gold);
    font-size: 12px;
    line-height: 1.4;
}

.mobile-menu__panel .mobile-menu__value,
.mobile-menu__panel .mobile-menu__value a,
.mobile-menu__panel .mobile-menu__directions {
    color: #fff;
    font-size: 11px;
    line-height: 1.6;
    text-decoration: none;
}

.mobile-menu__panel .mobile-menu__directions svg {
    width: 12px;
    height: 12px;
}

.mobile-menu__panel .mobile-menu__directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-family: var(--mobile-menu-font);
}

/* Social icons: white instead of the footer's gold */
.mobile-menu__panel .social-icons-list {
    display: flex;
    justify-content: center;
    gap: 0; /* links are 40px tap areas (social-media-icons.css) */
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu__panel .social-icons-list svg {
    width: 18px;
    height: 18px;
}

.mobile-menu__panel .social-icons-list svg [fill]:not([fill="none"]) {
    fill: #fff;
}

.mobile-menu__panel .social-icons-list svg [stroke] {
    stroke: #fff;
}


/* Short phones (iPhone SE, small Android): tighter menu so it still fits without scrolling */
@media (max-height: 720px) {
    .mobile-menu__panel .mobile-menu__list a {
        font-size: 21px;
        line-height: 1.3;
    }

    .mobile-menu__panel .mobile-menu__value,
    .mobile-menu__panel .mobile-menu__value a,
    .mobile-menu__panel .mobile-menu__directions {
        line-height: 1.45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-menu__panel {
        transition: none;
    }
}
