/******************************************************
    MAIN MENU OVERLAY
******************************************************/

.menu {
    width: 100%;
    display: flex;
    position: relative;
    background-color: rgb(40, 40, 40);
    color: white;
    min-height: 100vh;
    overflow: hidden;
    direction: ltr; /* Override inherited RTL so .menu__left sits LEFT and .menu__right sits RIGHT */
}

/* Left (main content) panel */
.menu__left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: end;
    padding: clamp(20px, 4vw, 35px) clamp(20px, 5vw, 90px);
    min-width: 0;
}

/* Close button – align-self: flex-end puts it at the RIGHT edge in LTR column flex */
.menu__close {
    font-size: clamp(10px, 1.2vw, 12px);
    display: flex;
    align-items: center;
    gap: clamp(5px, 1vw, 10px);
    text-transform: uppercase;
    color: #ffffff;
    font-family: inherit;
    cursor: pointer;
    transition: 0.3s;
    align-self: flex-end;
}

.menu__close:hover {
    opacity: 0.7;
}

.menu__close-icon {
    width: clamp(24px, 2.5vw, 32px);
    height: auto;
}

/* Title – align-self: flex-start puts it at the LEFT edge in LTR column flex */
.menu__title {
    font-size: clamp(20px, 2.5vw, 29px);
    text-transform: uppercase;
    color: #ffffff;
    font-weight: bold;
    font-family: inherit;
    width: 100%;
    max-width: min(60%, 400px);
    text-align: left;
    align-self: flex-start;
    margin: clamp(20px, 3vw, 30px) 0 clamp(20px, 3vw, 30px) 0;
    line-height: 1.3;
}

/* Image + links block – LTR so image is on the LEFT, links wrapper on the RIGHT */
.menu__link-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.menu__image {
    width: clamp(250px, 33vw, 487px);
    height: auto;
    aspect-ratio: 487/435;
    object-fit: cover;
    margin-top: 18px;
    flex-shrink: 0;
}

.menu__image_mobile {
    display: none;
}

.menu__links-wrapper {
    display: block;
    width: fit-content;
    min-width: 200px;
    flex: 1;
}

/* "MENU" label above the link columns */
.menu__links-title {
    font-size: clamp(8px, 1vw, 10px);
    text-transform: uppercase;
    display: block;
    width: 100%;
    text-align: right;
    border-bottom: 1px solid rgb(108, 108, 108);
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.menu__links-row {
    direction: rtl;;
    display: flex;
    gap: clamp(15px, 2vw, 30px);
    justify-content: space-between;
    flex-wrap: wrap;
}

.menu__links-col {
    width: 46%;
    min-width: 150px;
}

/* ── Menu list items ─────────────────────────────── */
.menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu__list li {
    border-bottom: 1px solid rgba(108, 108, 108, 0.5);
}

/* Each link is a RTL flex row: text on the RIGHT, + icon on the LEFT */
.menu__list li a {
    display: flex;
    direction: rtl;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    text-decoration: none;
    padding: clamp(10px, 1.3vw, 16px) 0;
    font-size: clamp(13px, 1.4vw, 18px);
    font-family: inherit;
    transition: opacity 0.3s;
    gap: 12px;
}

/* + icon appears at the inline-end (visual LEFT in RTL) */
.menu__list li a::after {
    content: '+';
    font-size: 1.1em;
    font-weight: 300;
    flex-shrink: 0;
    line-height: 1;
    opacity: 0.7;
}

.menu__list li a:hover {
    opacity: 0.7;
}

/* First item in the main-menu column is styled larger / bolder */
#menu-main-menu > li:first-child > a {
    font-size: clamp(16px, 1.8vw, 22px);
    font-weight: bold;
}

/* ── Contact bar ─────────────────────────────────── */
.menu__contact {
    display: flex;
    width: 100%;
    border-top: 1px solid rgb(108, 108, 108);
    margin-top: clamp(40px, 6vw, 70px);
    padding: clamp(20px, 3vw, 30px) 0;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-end;
}

.menu__socials {
      align-self: flex-start;
    display: flex;
    gap: clamp(5px, 1vw, 10px);
    flex-wrap: wrap;
    align-items: center;
}

.menu__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: 0.3s;
    text-decoration: none;
}

.menu__social-link:hover {
    border-color: #ffffff;
}

.menu__social-icon {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: 0.3s;
    display: block;
}

/* Contact items are RTL so they read right-to-left (Hebrew natural order) */
.menu__contact-info {
    display: flex;
    direction: rtl;
    gap: clamp(30px, 5vw, 90px);
    flex-wrap: wrap;
    justify-content: flex-start;
}

.menu__contact-item {
    min-width: 120px;
}

.menu__contact-title {
    opacity: 0.322;
    margin-bottom: clamp(8px, 1vw, 14px);
    font-size: clamp(12px, 1.2vw, 16px);
    text-transform: uppercase;
    color: #f3f3f3;
    font-family: inherit;
    text-align: right;;
}

.menu__contact-text {
    font-size: clamp(11px, 1vw, 14px);
    text-align: right;
    color: #f3f3f3;
    font-family: inherit;
    line-height: 1.6;
}

/* ── Right logo panel ────────────────────────────── */
.menu__right {
    width: 169px;
    flex-shrink: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 0px;
}

.menu__logo {
    width: 72px;
    height: auto;
    margin-bottom:10px;
}

.menu__right-title {
    color: #ffffff;
    font-size: clamp(11px, 1vw, 18px);
    font-weight: bold;
    text-align: center;
    font-family: inherit;
    line-height: 1.4;
    direction: rtl;
}

.menu__right-subtitle {
    color: #ffffff;
    font-size: clamp(10px, 0.9vw, 13px);
    font-weight: normal;
    text-align: center;
    font-family: inherit;
    line-height: 1.4;
    direction: rtl;
}

/* ── Tablet / Mobile (≤ 1099px) ─────────────────── */
@media (max-width: 1099px) {
    .menu {
        flex-direction: column;
    }

    .menu__image,
    .menu__image_mobile {
        display: none;
    }

    .menu__right {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        width: auto;
        border-left: none;
        padding-top: 20px;
        align-items: center;
        justify-content: center;
    }

    .menu__left {
        width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
    }

    .menu__title {
        opacity:0;
        padding-bottom:20px;
        max-width: 100%;
        text-align: left;
        align-self: flex-start;
    }

    .menu__link-container {
        flex-direction: column;
        align-items: flex-start;
    }


    .menu__links-wrapper {
        width: 100%;
    }

    .menu__links-row {
        justify-content: flex-start;
    }

    .menu__contact {
        flex-direction: column;
        align-items: flex-end;
    }

    .menu__contact-info {
        justify-content: flex-start;
    }

    .menu__socials {
        align-self: flex-end;
    }
}

/* ── Small mobile (≤ 600px) ─────────────────────── */
@media (max-width: 600px) {
    .menu__left {
        padding: 20px 15px;
    }

    .menu__title {
        font-size: 20px;
    }

    .menu__links-col {
        width: 100%;
        min-width: auto;
    }

    .menu__links-row {
        flex-direction: column;
        gap: 20px;
    }

    .menu__contact-info {
        flex-direction: column;
        gap: 25px;
    }

    .menu__contact-item {
        min-width: auto;
    }
}
