/* Viberiam Modern Mobile Menu | scoped to the responsive menu only */
.nav-responsive-content-wrapper {
    --vbr-pink: #e82662;
    --vbr-pink-dark: #c1184e;
    --vbr-ink: #27232a;
    --vbr-muted: #77727a;
    --vbr-chip: #fff5f8;
    --vbr-line: #f2e6eb;
    direction: rtl;
    box-sizing: border-box;
    color: var(--vbr-ink);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    max-height: 100vh;
    max-height: 100dvh;
}

/* The overlay is the scroll container; keep the page behind it locked. */
.nav-responsive-content-wrapper {
    overscroll-behavior: contain;
}
.nav-responsive-content-wrapper *,
.nav-responsive-content-wrapper *::before,
.nav-responsive-content-wrapper *::after {
    box-sizing: border-box;
}

.nav-responsive-content-wrapper .nav-responsive-content-menu,
.nav-responsive-content-wrapper .nav-responsive-content-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li {
    position: relative;
    margin: 0;
    border-bottom: 1px solid var(--vbr-line);
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li > a {
    position: relative;
    display: flex !important;
    align-items: center;
    min-height: 52px;
    padding: 13px 16px;
    border-radius: 12px !important;
    color: var(--vbr-ink);
    font: inherit;
    font-weight: 600;
    line-height: 1.65;
    text-align: right;
    text-decoration: none;
    transition: color .22s ease, background-color .22s ease;
    touch-action: manipulation;
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li > a:hover,
.nav-responsive-content-wrapper .nav-responsive-content-menu > li > a:focus-visible {
    color: var(--vbr-pink-dark);
    background: #fff7fa;
    outline: none;
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.vbr-open > a {
    color: var(--vbr-pink-dark);
    background: var(--vbr-chip);
}

/* Support the site's .has-child markup and standard WordPress menu classes. */
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.has-child > a,
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.menu-item-has-children > a {
    padding-left: 48px;
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.has-child > a > .icon-angle-left,
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.menu-item-has-children > a > .icon-angle-left {
    position: absolute !important;
    inset-inline-start: 17px;
    top: 50% !important;
    margin: 0 !important;
    color: var(--vbr-pink);
    transform: translateY(-50%) rotate(0deg);
    transition: transform .25s ease, color .2s ease;
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.vbr-open > a > .icon-angle-left {
    color: var(--vbr-pink-dark);
    transform: translateY(-50%) rotate(-90deg);
}
/* Fallback chevron for normal WordPress menus without an icon element. */
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.menu-item-has-children:not(.has-child) > a::after {
    content: "";
    position: absolute;
    inset-inline-start: 20px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--vbr-pink);
    border-bottom: 2px solid var(--vbr-pink);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .25s ease;
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.menu-item-has-children.vbr-open:not(.has-child) > a::after {
    transform: translateY(2px) rotate(225deg);
}

/* Site-specific drill-down panel: override position-fixed/100%-height utility classes. */
.nav-responsive-content-wrapper .nav-responsive-content-menu > li > .children,
.nav-responsive-content-wrapper .nav-responsive-content-menu > li > ul.sub-menu {
    position: static !important;
    inset: auto !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: auto !important;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    transition: max-height .3s ease, opacity .2s ease, visibility .3s;
    will-change: max-height;
}
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.vbr-open > .children,
.nav-responsive-content-wrapper .nav-responsive-content-menu > li.vbr-open > ul.sub-menu {
    max-height: 0; /* JS sets the measured height for smooth, complete transitions. */
    padding: 8px 12px 14px;
    opacity: 1;
    visibility: visible;
}
.nav-responsive-content-wrapper .children > .heading {
    display: none !important;
}
.nav-responsive-content-wrapper .children > ul,
.nav-responsive-content-wrapper ul.sub-menu {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
}
.nav-responsive-content-wrapper .children > ul > li,
.nav-responsive-content-wrapper ul.sub-menu > li {
    min-width: 0;
    margin: 0;
}
.nav-responsive-content-wrapper .children > ul > li > a,
.nav-responsive-content-wrapper ul.sub-menu > li > a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #f7dce5;
    border-radius: 12px !important;
    background: var(--vbr-chip);
    color: #51464c;
    font: inherit;
    font-size: .92em;
    font-weight: 500;
    line-height: 1.55;
    text-align: right;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
    touch-action: manipulation;
}
.nav-responsive-content-wrapper .children > ul > li > a:hover,
.nav-responsive-content-wrapper .children > ul > li > a:focus-visible,
.nav-responsive-content-wrapper ul.sub-menu > li > a:hover,
.nav-responsive-content-wrapper ul.sub-menu > li > a:focus-visible {
    color: var(--vbr-pink-dark);
    background: #ffeaf1;
    border-color: #f3b8cb;
    box-shadow: 0 3px 10px rgba(193, 24, 78, .08);
    outline: none;
}
.nav-responsive-content-wrapper .children > ul > li > a:active,
.nav-responsive-content-wrapper ul.sub-menu > li > a:active {
    transform: scale(.98);
}
.nav-responsive-content-wrapper a:focus-visible {
    outline: 2px solid var(--vbr-pink) !important;
    outline-offset: 2px;
}

@media (max-width: 360px) {
    .nav-responsive-content-wrapper .children > ul,
    .nav-responsive-content-wrapper ul.sub-menu { gap: 7px; }
    .nav-responsive-content-wrapper .children > ul > li > a,
    .nav-responsive-content-wrapper ul.sub-menu > li > a { padding-inline: 9px; font-size: .87em; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-responsive-content-wrapper *,
    .nav-responsive-content-wrapper *::before,
    .nav-responsive-content-wrapper *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Contact action is intentionally independent of menu item markup. */
.nav-responsive-contact {
    display: flex; align-items: center; gap: 12px; margin: 14px 16px 18px; padding: 14px 16px;
    border: 1px solid #f3c5d3; border-radius: 14px; background: #fff5f8; color: var(--vbr-ink);
    text-decoration: none;
}
.nav-responsive-contact-icon {
    display: inline-flex; flex: 0 0 42px; width: 42px; height: 42px; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--vbr-pink); color: #fff; font-size: 20px;
}
.nav-responsive-contact-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.nav-responsive-contact-label { color: var(--vbr-muted); font-size: .85em; }
.nav-responsive-contact-number { direction: ltr; unicode-bidi: isolate; font-weight: 700; }
