/*
Theme Name: hello-elementor-child
Template:   hello-elementor
*/

:root {
    --color-bg-dark: #322620;
    --color-red: #FF3B23;
    --color-black: #000200;
}

/* Offset anchor scrolls by the mobile fixed header height */
@media (max-width: 767px) {
    html {
        scroll-padding-top: 95px;
    }
}

@font-face {
    font-family: 'RagSans';
    src: url('assets/fonts/RagSans-1.4-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'RagSans';
    src: url('assets/fonts/RagSans-1.4-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avgard';
    src: url('assets/fonts/AVGARDD_2.TTF') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'RagSans', sans-serif;
    line-height: 1;
}

/* ---------- Announcement bar (reusable) ---------- */

.announcement-bar {
    background-color: var(--color-bg-dark);
    color: #fff;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

/* ---------- Hero ---------- */

.hero__visual {
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.hero__video,
.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    z-index: 0;
}

.hero__video {
    display: block;
}

.hero__image {
    display: none;
}

@media (min-width: 768px) {
    .hero__video {
        display: none;
    }

    .hero__image {
        display: block;
    }
}

.hero__overlay {
    display: none;
}

@media (max-width: 767px) {
    .hero__visual {
        min-height: calc(100vh - 181.4px);
    }

    .hero__overlay {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 33.33%;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
        z-index: 1;
        pointer-events: none;
    }
}

.hero__content {
    position: relative;
    z-index: 2;
    /* min-height: inherit; */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-top: 80px;
    text-align: center;
}

@media (max-width: 767px) {
    .hero__content {
        padding-top: 30px;
        margin-bottom: 1.5rem;
    }
}

.hero__title {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    color: #fff;
}

.hero__lead {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
}

.hero__price {
    font-family: 'Avgard', sans-serif;
    font-size: clamp(4rem, 14vw, 12rem);
    line-height: 1;
    letter-spacing: -0.025em;
}

.hero__currency {
    font-size: 0.5em;
}

/* Hero messages (under the price) */
.hero__messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 40rem;
}

.hero__message {
    margin: 0;
    padding: .5rem 1rem;
    color: #fff;
    border-radius: 10px;
}

.hero__message--alert {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(-1deg);
    font-size: clamp(1.4rem, 3vw, 2.25rem);
    font-weight: 600;
    line-height: 1;
}

.hero__message--info {
    background: var(--color-red);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
}

.hero__message--highlight {
    background: var(--color-red);
    font-weight: 600;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
}

@media (max-width: 767px) {
    .hero__message--info {
        display: none;
    }
}

/* Hero features (numbered cards) */
.hero__features {
    position: relative;
    z-index: 2;
    padding: 0 1.5rem 2rem;
}

.hero__features--mobile {
    margin-top: auto;
}

.hero__features--desktop {
    display: none;
}

.hero__features::before {
    display: none;
}

.features {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
}

.feature {
    text-align: center;
}

.feature__num {
    display: block;
    width: 90px;
    height: auto;
    margin: 0 auto .3rem;
}

.feature__text {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    padding: 0 0.5rem;
}

@media (max-width: 767px) {
    .feature__num {
        width: 70px;
    }

    .feature__text {
        font-weight: 600;
    }

    .hero__features--mobile::before {
        display: block;
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.77), transparent);
        z-index: -1;
        pointer-events: none;
    }
}

@media (min-width: 768px) {
    .hero__features--mobile {
        display: none;
    }

    .hero__features--desktop {
        display: block;
        background: #fff;
    }

    .features {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .hero__features--desktop .feature__num {
        margin-top: -45px;
    }

    .feature__text {
        color: var(--color-black);
        margin-inline: auto;
        font-size: 1.1rem;
    }
}

.hero__arrow {
    display: none;
}

@media (min-width: 768px) {
    .hero__arrow {
        display: block;
        text-align: center;
        width: fit-content;
        margin-inline: auto;
    }

    .hero__arrow img {
        width: 46px;
        height: 46px;
    }
}

/* ---------- Site Nav (desktop sidebar + mobile drawer) ---------- */

.site-nav {
    background: var(--color-red);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 50;
}

.site-nav__logo {
    display: block;
}

.site-nav__logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-nav__menu {
    flex: 1;
}

.menu,
.submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu__link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    transition: opacity 0.2s;
}

/* Global override — keep links their own color on hover (theme reset.css turns them blue) */
a:hover,
a:focus {
    color: #ffffffc4 !important;
}


.submenu a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 0.35rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
}

.menu__item:first-child>.menu__link {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu a {
    padding-inline-start: 2.75rem;
    font-size: 0.95em;
    opacity: 0.85;
    border-bottom: 0;
}

.site-nav__cta {
    display: block;
    margin: 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-dark);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
}

/* Submenu collapsed by default; smoothly slides open top-to-bottom */
.menu__item--has-submenu>.submenu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.menu__item--has-submenu.is-expanded>.submenu {
    max-height: 300px;
}

/* Hamburger button */
.menu-toggle {
    display: none;
    background: var(--color-red);
    border: 0;
    border-radius: 6px;
    padding: 9px 7px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    direction: ltr;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
    background: var(--color-red);
    color: inherit;
    outline: none;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.35s ease;
}

.menu-toggle span:nth-child(1) {
    width: 55%;
    align-self: flex-start;
}

.menu-toggle span:nth-child(2) {
    width: 100%;
    align-self: center;
}

.menu-toggle span:nth-child(3) {
    width: 55%;
    align-self: flex-end;
}

/* Open state — top slides right, bottom slides left */
.site-nav.is-open .menu-toggle span:nth-child(1) {
    transform: translateX(81.82%);
}

.site-nav.is-open .menu-toggle span:nth-child(3) {
    transform: translateX(-81.82%);
}

body.is-menu-open {
    overflow: hidden;
}

/* ---------- Mobile sticky bottom CTA ---------- */

.mobile-cta {
    display: none;
}

@media (max-width: 767px) {
    .mobile-cta {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--color-red);
        padding: .5rem 0;
        z-index: 40;
    }

    .mobile-cta__button {
        display: block;
        background: var(--color-bg-dark);
        color: #fff;
        text-align: center;
        text-decoration: none;
        padding: .5rem 1.5rem;
        border-radius: 999px;
        font-size: 1.05rem;
        width: fit-content;
        margin: 0 auto;
    }
}

/* ----- Desktop: fixed right sidebar ----- */
@media (min-width: 768px) {
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 14rem;
    }

    .site-nav__menu {
        overflow-y: auto;
        padding-bottom: 5rem;
    }

    .site-nav__cta {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
    }

    body {
        padding-right: 14rem;
    }

    .site-nav__logo {
        width: 90px;
        margin: 40px auto;
        padding: 0;
    }

    .menu__item--has-submenu>.menu__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu__item--has-submenu>.menu__link::after {
        content: '>';
        opacity: 0.7;
        transition: transform 0.2s ease;
    }

    .menu__item--has-submenu.is-expanded>.menu__link::after {
        transform: rotate(-90deg);
    }
}

/* ----- Mobile: top header bar + full-screen drawer ----- */
@media (max-width: 767px) {
    .announcement-bar {
        font-size: 0.85rem;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        box-sizing: border-box;
        max-height: 95px;
        padding-top: 95px;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    body {
        padding-top: 95px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 1.65rem;
        right: 1rem;
        z-index: 2;
    }

    .site-nav__logo {
        position: absolute;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
        max-width: 70px;
        padding: 0;
    }

    /* CTA is hidden inside the mobile drawer (lives in the sticky bottom bar) */
    .site-nav__cta {
        display: none;
    }

    /* Menu fades in as the drawer slides open */
    .site-nav__menu {
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .site-nav.is-open .site-nav__menu {
        opacity: 1;
    }

    /* Open state — drawer slides down from the header bar */
    .site-nav.is-open {
        max-height: 100vh;
        overflow-y: auto;
    }

    /* Submenu always visible on mobile when drawer is open */
    .site-nav.is-open .menu__item--has-submenu>.submenu {
        max-height: 300px;
    }
}

/* ==========================================================================
   Approved section
   ========================================================================== */

.approved {
    background: var(--color-red);
    color: #fff;
}

.approved__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.approved__media {
    position: relative;
    margin-bottom: 1.5rem;
}

.approved__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 30px;
}

.approved__badge {
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 50%;
    max-width: 200px;
    height: auto;
}

.approved__title {
    display: none;
}

.approved__body {
    margin: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .approved__inner {
        display: flex;
        align-items: center;
        gap: 4rem;
        padding: 5rem 3rem;
    }

    .approved__media {
        flex: 1 1 55%;
        margin-bottom: 0;
    }

    .approved__text {
        flex: 1 1 45%;
    }

    .approved__title {
        display: block;
        margin: 0 0 1.5rem;
        font-size: clamp(2.5rem, 4.5vw, 4rem);
        font-weight: 400;
        letter-spacing: -0.025em;
        line-height: 1;
    }

    .approved__body {
        text-align: start;
        font-size: 1.125rem;
    }

    .approved__badge {
        top: auto;
        bottom: -3rem;
        left: -5rem;
        width: 200px;
    }
}

/* ==========================================================================
   Apartments section
   ========================================================================== */

.apartments {
    background: #F7F5F5;
    color: var(--color-black);
}

.apartments__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.apartments__banner {
    display: block;
    position: absolute;
    width: 100%;
}

.apartments__banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 10%;
}

.apartments__model {
    position: relative;
    bottom: -10px;
    pointer-events: none;
    width: 100%;
    max-width: 420px;
}

.apartments__model img {
    display: block;
    width: 100%;
    height: auto;
}

.apartments__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('assets/images/apartments-mobile-bg.webp') center / cover no-repeat;
    padding-bottom: 1.5rem;
}

.apartments__badge {
    position: relative;
    z-index: 2;
    padding: 0.85rem 2rem;
    background: var(--color-red);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.7rem;
    font-weight: 600;
    transform: rotate(-1deg);
}

.apartments__tagline {
    margin-block-start: 15px;
    text-align: center;
    font-size: 1.3rem;
}

.apartments__tagline-strong {
    display: block;
    font-weight: 600;
    font-size: 2rem;
}

.apartments__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.apartment {
    text-align: center;
    padding: .7rem 0;
}

.apartment__rooms {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 600;
}

.apartment__rooms-break {
    display: none;
}

.apartment__price {
    margin: 0 0 .5rem;
    font-size: 1.5rem;
}

.apartment__button {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    background: var(--color-black);
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

@media (min-width: 1024px) {
    .apartments {
        position: relative;
    }

    .apartments__visual {
        position: static;
    }

    .apartment__price {
        font-size: 1.3rem;
    }

    .apartments__banner {
        height: auto;
        position: static;
    }

    .apartments__banner img {
        height: auto;
        object-fit: contain;
    }

    .apartments__inner {
        max-width: 950px;
        width: 70%;
        padding-bottom: 2rem;
        background: none;
    }

    .apartments__badge {
        margin-top: -1.75rem;
        padding: 0.7rem 1.5rem;
        font-size: 1.5rem;
    }

    .apartments__tagline-break {
        display: none;
    }

    .apartment__rooms-break {
        display: revert;
    }

    .apartments__list {
        order: 1;
        flex-direction: row;
        gap: 0;
        margin-top: 2.5rem;
        padding: 0;
        /* width: auto; */
    }

    .apartment {
        flex: 1;
        padding: 0;
    }

    .apartment__rooms {
        font-size: 1.6rem;
    }

    .apartments__tagline {
        order: 2;
        margin: 2.5rem 0 0;
        font-size: 1.5rem;
    }

    .apartments__tagline-strong {
        font-size: 2.3rem;
    }

    .apartments__model {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 350px;
    }

    .apartments__model img {
        height: auto;
    }
}

@media (min-width: 1400px) {
    .apartments__model {
        width: 30%;
    }

    .apartments__inner {
        margin-right: 5%;
    }
}

@media (min-width: 1600px) {
    .apartments__inner {
        margin-right: 10%;
    }
}

@media (min-width: 1800px) {
    .apartments__inner {
        margin-right: 15%;
    }
}

/* ==========================================================================
   Lev Details section
   ========================================================================== */

.lev-details {
    background: #fff;
    color: var(--color-black);
}

.lev-details__banner {
    display: block;
}

.lev-details__banner img {
    display: block;
    width: 100%;
    height: auto;
}

.lev-details__content {
    padding: 0 1rem 3rem;
}

.lev-details__heading {
    position: relative;
    z-index: 2;
    margin: -2.4rem auto 2rem;
    max-width: 90%;
    color: #fff;
    border-radius: 12px;
    text-align: right;
    font-weight: 400;
    line-height: 1.2;
}

.lev-details__heading-main {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--color-red);
    width: fit-content;
    padding: 0.7rem 0.7rem 0;
    border-radius: 10px 10px 0 0;
}

.lev-details__heading-sub {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    background: var(--color-red);
    padding: 0.7rem;
    border-radius: 10px 0 10px 10px;
    width: fit-content;
}

.lev-details__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lev-detail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lev-detail__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.lev-detail__body {
    margin: 0;
    font-size: 1rem;
}

.lev-detail__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .lev-details__main {
        display: flex;
        align-items: center;
    }

    .lev-details__banner {
        flex: 1;
    }

    .lev-details__banner img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .lev-details__content {
        flex: 1 1 30%;
        /* padding: 4rem 3rem 4rem 10rem; */
    }

    .lev-details__heading {
        margin: 0;
        max-width: none;
    }

    .lev-details__items {
        gap: 2.5rem;
    }

    .lev-detail {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }

    .lev-detail__image {
        flex: 0 0 30%;
        width: 40%;
        aspect-ratio: unset;
    }

    .lev-detail:nth-child(2) .lev-detail__image {
        margin-left: 70px;
    }

    .lev-detail:nth-child(2) {
        gap: 5rem
    }

    .lev-detail__text {
        flex: 1;
    }

    /* Scroll-in slide animation — alternating direction per image */
    .lev-detail__image {
        transition: transform 1s ease-out;
    }

    .lev-detail:nth-child(1) .lev-detail__image {
        transform: translateX(-60px);
    }

    .lev-detail:nth-child(2) .lev-detail__image {
        transform: translateX(60px);
    }

    .lev-detail:nth-child(3) .lev-detail__image {
        transform: translateX(-60px);
    }

    .lev-details.is-visible .lev-detail__image {
        transform: translateX(0);
    }
}

@media (min-width: 1400px) {
    .lev-detail__image {
        width: 40%;
    }

    .lev-detail {
        gap: 10rem;
    }

    .lev-details__content {
        padding: 4rem 6rem;
    }

    .lev-detail:nth-child(1) .lev-detail__text {
        margin-top: 110px;
    }

    .lev-detail__text {
        max-width: 300px;
    }

    .lev-details__heading {
        margin-bottom: -6rem;
    }
}

@media (min-width: 1600px) {
    .lev-detail {
        gap: 14rem;
    }

    .lev-detail__title {
        font-size: 1.5rem;
    }

    .lev-details__heading-sub,
    .lev-details__heading-main {
        font-size: 2rem;
    }

    .lev-detail__body {
        font-size: 1.3rem;
    }

    .lev-details__content {
        padding: 4rem 6rem 4rem 10rem;
    }
}

/* ==========================================================================
   Why Rehovot section
   ========================================================================== */

.why-rehovot {
    position: relative;
    background: #D9D3D3;
    color: var(--color-black);
    padding: 2rem 0 0;
    overflow: hidden;
}

.why-rehovot__inner {
    /* position: relative; */
    max-width: 1100px;
    margin-inline: auto;
}

.why-rehovot__title {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    padding: 0 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
}

.why-rehovot__model {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
    margin: 0 auto;
}

.why-rehovot__model img {
    display: block;
    width: 100%;
    height: auto;
}

.why-rehovot__container {
    position: absolute;
    bottom: 7rem;
    z-index: 2;
    margin: -3rem 1rem 0;
    padding: 0 0 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.why-rehovot__scroll {
    overflow-x: auto;
    margin-top: -1.25rem;
    padding-top: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.why-rehovot__scroll::-webkit-scrollbar {
    display: none;
}

.why-rehovot__items {
    list-style: none;
    margin: 0;
    padding: 0 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.why-rehovot__item {
    flex: 0 0 75%;
    max-width: 280px;
    text-align: start;
}

.why-rehovot__star {
    display: block;
    width: 36px;
    height: auto;
    margin: 0 0 1rem;
}

.why-rehovot__item-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.why-rehovot__item-text {
    margin: 0;
    line-height: 1;
    font-size: 1.3rem;
}

@media (min-width: 1024px) {
    .why-rehovot {
        padding: 7rem 3rem;
    }

    .why-rehovot__title {
        max-width: none;
        margin-bottom: 5rem;
        margin-right: 17rem;
        font-size: 2.25rem;
    }

    .why-rehovot__item-title {
        font-size: 1.3rem;
    }

    .why-rehovot__item-text {
        font-size: 1rem;
    }

    .why-rehovot__model {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 3;
        height: 80%;
        width: auto;
        max-width: none;
        margin: 0;
        transform: translateX(50vw);
        transition: transform 1s ease-out;
    }

    .why-rehovot__model img {
        height: 100%;
        width: auto;
    }

    .why-rehovot.is-visible .why-rehovot__model {
        transform: translateX(0);
    }

    .why-rehovot__container {
        /* margin: 0 3rem 0 18rem; */
        padding: 0;
        position: static;
    }

    .why-rehovot__scroll {
        overflow: visible;
        margin-top: 0;
        padding-top: 0;
    }

    .why-rehovot__items {
        padding: 2.5rem 13rem 2.5rem 0;
        gap: 1rem;
        justify-content: end;
    }

    .why-rehovot__item {
        flex: 1;
        max-width: 150px;
    }

    .why-rehovot__star {
        width: 30px;
        margin-top: -3rem;
    }
}

@media (min-width: 1200px) {
    .why-rehovot__model {
        height: 550px;
    }

    .why-rehovot__items {
        gap: 2rem;
    }
}

@media (min-width: 1400px) {
    .why-rehovot__model {
        right: 6vw;
    }
}

@media (min-width: 1600px) {
    .why-rehovot__model {
        right: 12vw;
    }
}

@media (min-width: 1800px) {
    .why-rehovot__model {
        right: 16vw;
    }
}

@media (min-width: 2000px) {
    .why-rehovot__model {
        right: 20vw;
    }
}

/* ---------- Lev Vision ---------- */

.lev-vision {
    background: #fff;
    color: var(--color-black);
}

.lev-vision__visual {
    position: relative;
}

.lev-vision__media {
    position: relative;
}

.lev-vision__media::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 33.33%;
    z-index: 1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.lev-vision__map {
    display: block;
    width: 100%;
    height: 330px;
    object-fit: cover;
}

.lev-vision__caption {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    z-index: 2;
    color: white;
    font-size: 0.9rem;
}

.lev-vision__intro {
    position: relative;
    z-index: 2;
    margin: -7.5rem 1rem 0;
}

.lev-vision__badge {
    font-weight: 600;
    display: inline-block;
    margin-bottom: -0.5rem;
    padding: 0.4rem 1rem;
    background: var(--color-bg-dark);
    color: #fff;
    border-radius: 10px;
    font-size: 0.95rem;
    transform: rotate(-1deg);
    margin-right: 0.5rem;
}

.lev-vision__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.lev-vision__title span {
    width: fit-content;
    padding: 0.6rem 1rem;
    background: var(--color-red);
}

.lev-vision__title span:nth-child(1) {
    border-radius: 10px 10px 0 0;
}

.lev-vision__title span:nth-child(2) {
    border-radius: 10px 0 0 10px;
}

.lev-vision__title span:nth-child(3) {
    border-radius: 0 0 10px 10px;
}

.lev-vision__title span:not(:first-child) {
    margin-top: -16px;
}

.lev-vision__description p {
    margin: 0;
    /* line-height: 1.5; */
    font-size: 0.95rem;
}

.lev-vision__features {
    padding: 1rem 3rem;
}

.lev-vision__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.lev-vision__item {
    text-align: center;
}

.lev-vision__icon {
    display: block;
    width: 90px;
    height: auto;
    margin: 0 auto .5rem;
}

.lev-vision__item-title {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.lev-vision__item-text {
    margin: 0 auto;
    line-height: 1;
    font-size: 0.95rem;
    max-width: 320px;
}

@media (min-width: 1024px) {
    .lev-vision__media::before {
        inset: auto 0 0 0;
        height: 20%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    }

    .lev-vision__intro {
        position: absolute;
        top: 50%;
        right: 3rem;
        transform: translateY(-50%);
        max-width: 540px;
        margin: 0;
        z-index: 3;
    }

    .lev-vision__caption {
        top: auto;
        bottom: 1rem;
        right: auto;
        left: 2rem;
        font-size: 0.9rem;
    }

    .lev-vision__title {
        font-size: 2rem;
    }

    .lev-vision__title span {
        padding: 0.1rem 1.25rem;
    }

    .lev-vision__description {
        padding: 1.4rem 1.75rem;
        border-radius: 20px 0 20px 20px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
        max-width: 390px;
        margin-top: -21px;
        margin-right: 10px;
        position: relative;
        z-index: -1;
    }

    .lev-vision__description p {
        font-size: 1.1rem;
    }

    .lev-vision__features {
        padding: 4rem 3rem;
    }

    .lev-vision__items {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 4rem;
    }

    .lev-vision__item {
        flex: 1;
        max-width: 280px;
    }

    .lev-vision__icon {
        width: 110px;
        height: 110px;
    }

    .lev-vision__item-title {
        font-size: 1.35rem;
    }
}

/* ---------- Roof Agreement ---------- */

.roof-agreement {
    background: #D9D3D3;
    color: var(--color-black);
    padding: 3rem 1.5rem;
}

.roof-agreement__inner {
    max-width: 900px;
    margin: 0 auto;
}

.roof-agreement__title {
    margin: 0 1.6rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.roof-agreement__break {
    display: none;
}

.roof-agreement__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
}

.roof-agreement__item {
    text-align: center;
}

.roof-agreement__number {
    display: block;
    width: 80px;
    height: auto;
    margin: 0 auto;
}

.roof-agreement__item-title {
    margin: 0 0 0.3rem;
    color: var(--color-red);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.roof-agreement__item-text {
    margin: 0;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .roof-agreement {
        padding: 5rem 3rem;
    }

    .roof-agreement__title {
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .roof-agreement__break {
        display: revert;
    }

    .roof-agreement__items {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }

    .roof-agreement__number {
        width: 110px;
        margin-bottom: 0;
    }

    .roof-agreement__item-title {
        font-size: 1.35rem;
    }
}

/* ---------- Signature (Boni Hatichon) ---------- */

.signature__main {
    padding: 2rem;
}

.signature {
    background: #fff;
    color: var(--color-black);
}

.signature__media {
    position: relative;
}

.signature__helmets {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
}

.signature__intro {
    position: absolute;
    top: 1.5rem;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.signature__badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background: var(--color-bg-dark);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    transform: rotate(-1deg);
    font-weight: 600;
    margin-right: -0.5rem;
    position: relative;
    top: 5px;
}

.signature__title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.35;
}

.signature__title span {
    width: fit-content;
    padding: 0.5rem 1rem;
    background: var(--color-red);
    border-radius: 10px;
}

.signature__title span:nth-child(2) {
    margin-top: -14px;
}

.signature__content {
    position: relative;
    z-index: 1;
}

.signature__heading {
    /* margin: -2rem 0 1.5rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
    color: var(--color-black);
    line-height: 1.4; */
    font-size: 1.4rem;
    font-weight: 700;
    margin-block: 1rem;
    line-height: 1;
}

.signature__body p {
    margin: 0 0 .5rem;
}

.signature__body p:last-child {
    margin-bottom: 0;
}

.signature__features {
    background: url(assets/images/signature-bg.webp) no-repeat center / cover;
    padding: 0 1.5rem 3rem;
}

.signature__items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.signature__item {
    text-align: center;
    margin-top: -1rem;
}

.signature__number {
    display: block;
    width: 70px;
    height: auto;
    margin: 0 auto 1rem;
}

.signature__item-title {
    margin: 0 0 0.3rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.signature__item-text {
    margin: 0;
    font-size: 1rem;
}

@media (min-width: 1024px) {
    .signature__badge {
        font-size: 1.1rem;
        padding: 0.7rem 1.1rem;
    }

    .signature__main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
        align-items: center;
        max-width: 1000px;
        margin: 0 auto;
        padding: 3rem 3rem 0;
    }

    .signature__media {
        display: contents;
    }

    .signature__helmets {
        grid-column: 1;
        grid-row: 1 / span 2;
        align-self: start;
        border-radius: 24px;
        aspect-ratio: auto;
    }

    .signature__intro {
        position: static;
        grid-column: 2;
        grid-row: 1;
        align-self: end;
        margin-bottom: 1rem;
    }

    .signature__title {
        font-size: 2rem;
    }

    .signature__title span {
        padding: 0.65rem 1.25rem;
        border-radius: 12px;
    }

    .signature__content {
        grid-column: 2;
        grid-row: 2;
        padding: 0;
        align-self: start;
    }

    .signature__heading {
        margin: 0;
        padding: 0;
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .signature__body p {
        font-size: 1rem;
    }

    .signature__features {
        background: none;
        padding: 3rem 3rem 4rem;
    }

    .signature__items {
        flex-direction: row;
        gap: 2rem;
        max-width: 830px;
        margin: 0 auto;
    }

    .signature__item {
        flex: 1;
    }

    .signature__number {
        width: 100px;
    }

    .signature__item-title {
        font-size: 1.35rem;
    }
}

/* ---------- Outro ---------- */

.outro {
    position: relative;
    background: #fff;
    color: var(--color-black);
}

.outro__media {
    position: relative;
    overflow: hidden;
    height: 70vh;
}

.outro__banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transition: object-position 5s ease-out;
}

.outro.is-visible .outro__banner {
    object-position: left center;
}

.outro__logo {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 110px;
    height: auto;
    z-index: 2;
}

.outro__content {
    padding: 0 2rem 2rem;
    text-align: center;
    margin-top: -5rem;
}

.outro__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 1.5rem;
    padding: 0;
    background: none;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 600;
}

.outro__title span {
    width: fit-content;
    padding: 0.6rem 1.2rem;
    background: var(--color-red);
    border-radius: 12px;
    transform: rotate(-1deg);
}

.outro__title span:first-child {
    margin-left: 50px;
}

.outro__title span:nth-child(2) {
    margin-right: 50px;
    margin-top: -8px;
}

.outro__body {
    /* padding: 1.25rem 1.5rem; */
}

.outro__body p {
    margin: 0;
    font-size: 1rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .outro__title span:first-child {
        margin-left: 0;
    }
    
    .outro__title span:nth-child(2) {
        margin-right: 0;
    }

    .outro__media {
        height: auto;
        overflow: visible;
    }

    .outro__banner {
        height: auto;
        object-position: center;
        transition: none;
    }

    .outro__logo {
        top: auto;
        bottom: 2rem;
        right: 2rem;
        width: 200px;
    }

    .outro__content {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 2rem;
    }

    .outro__title {
        display: inline-block;
        margin: 0;
        padding: 0.8rem 1.5rem;
        background: var(--color-red);
        border-radius: 20px;
        font-size: 2.4rem;
        position: relative;
    }

    .outro__title span {
        background: none;
        padding: 0;
        width: auto;
        margin: 0;
    }

    .outro__body {
        max-width: 400px;
        margin: 0 auto;
        padding: 1.5rem 2rem;
        background: white;
        border-radius: 0 0 20px 20px;
        margin-top: -10px;
    }

    .outro__body p {
        font-size: 1rem;
    }
}

/* ---------- Site Footer ---------- */

.site-footer {
    position: relative;
    z-index: 50;
    background: var(--color-bg-dark);
    color: #fff;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    max-width: 100% !important;
}

.site-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.site-footer__disclaimer,
.site-footer__terms,
.site-footer__copyright {
    margin: 0;
    line-height: 1;
}

.site-footer__copyright {
    opacity: .45;
    transition: opacity 0.2s ease;
}
.site-footer__copyright:hover {
    opacity: 1;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer__disclaimer a {
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .site-footer {
        padding: 1rem 2rem;
    }

    .site-footer__inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "disclaimer copyright"
            "terms      copyright";
        column-gap: 2rem;
        row-gap: 0;
        align-items: baseline;
        text-align: start;
    }

    .site-footer__terms {
        grid-area: terms;
        text-align: start;
        min-width: 0;
    }

    .site-footer__disclaimer {
        grid-area: disclaimer;
        min-width: 0;
    }

    .site-footer__copyright {
        grid-area: copyright;
        align-self: end;
    }
}

/* ============================================================
   Plans Gallery (modal)
   ============================================================ */
body.is-plans-open {
	overflow: hidden;
}

/* Override Hello Elementor reset.css button defaults for all gallery buttons */
.plans-gallery button:hover,
.plans-gallery button:focus {
	background-color: transparent;
	color: inherit;
	text-decoration: none;
}

.plans-gallery {
	position: fixed;
	inset: 0;
	z-index: 100;
}

.plans-gallery[hidden] {
	display: none;
}

.plans-gallery__overlay {
	display: none;
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	width: 14rem;
	background: rgba(0, 0, 0, 0.55);
	border: 0;
	padding: 0;
	cursor: pointer;
}


.plans-gallery__panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	background: #f7f5f5;
	overflow: hidden;
	/* padding: 1rem; */
}

.plans-gallery__panel[hidden] {
	display: none;
}

.plans-gallery__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: .5rem 0 1rem;
	flex-shrink: 0;
}

.plans-gallery__title {
	margin: 0;
	padding: 0.6rem 1.5rem;
	background: var(--color-red);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.2;
	border-radius: 12px;
}

.plans-gallery__close {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	background: transparent;
	border: 0;
	color: var(--color-black);
	font-size: 2.75rem;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	width: 3.25rem;
	height: 3.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.plans-gallery__close:hover {
	opacity: 1;
}

.plans-gallery__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.plans-gallery__main {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	min-height: 0;
	background: #f7f5f5;
	overflow: hidden;
	cursor: zoom-in;
}

.plans-gallery__main.is-zoomed {
	cursor: zoom-out;
}

.plans-gallery__main.is-zoomed.is-grabbing {
	cursor: grabbing;
}

.plans-gallery__current {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transform-origin: center center;
	transition: transform 0.2s ease;
	will-change: transform;
	user-select: none;
	-webkit-user-drag: none;
}

.plans-gallery__main.is-grabbing .plans-gallery__current {
	transition: none;
}

.plans-gallery__thumbs {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0;
}

.plans-gallery__thumbs-list {
	flex: 1;
	min-width: 0;
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.plans-gallery__thumbs-list::-webkit-scrollbar {
	display: none;
}

.plans-gallery__thumb {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	padding: 0;
	background: #fff;
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s;
}

.plans-gallery__thumb:hover,
.plans-gallery__thumb:focus {
	border-color: var(--color-red);
	background-color: #fff;
}

.plans-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.plans-gallery__thumb.is-active {
	border-color: var(--color-red);
}

.plans-gallery__scroll-btn {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	background: transparent;
	border: 0;
	color: var(--color-black);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.6;
	transition: opacity 0.2s;
}

.plans-gallery__scroll-btn:hover {
	opacity: 1;
}

.plans-gallery__nav-bar {
	display: flex;
	justify-content: space-between;
	padding: 1rem 0 0;
	flex-shrink: 0;
}

.plans-gallery__nav {
	background: transparent;
	border: 0;
	color: var(--color-black);
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	padding: 0.25rem 0.5rem;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.plans-gallery__nav:hover {
	opacity: 1;
}

/* Tablet+ — sidebar is visible, panel fills only the content area, overlay sits over the nav */
@media (min-width: 768px) {
	.plans-gallery__panel {
		right: 14rem;
	}

	.plans-gallery__overlay {
		display: block;
	}
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
	.plans-gallery__panel {
		padding: 2rem;
	}

	.plans-gallery__header {
		justify-content: flex-start;
		padding: 0 0 1.5rem;
	}

	.plans-gallery__title {
		padding: 0.85rem 2rem;
		font-size: 1.5rem;
		border-radius: 14px;
        padding: 0.85rem 2rem;
        font-size: 1.5rem;
        border-radius: 14px;
        position: relative;
        top: 3rem;
        z-index: 1;
	}

	.plans-gallery__close {
		top: 1.25rem;
		left: 1.25rem;
		font-size: 3.25rem;
		width: 4rem;
		height: 4rem;
	}

	.plans-gallery__body {
		flex-direction: row-reverse;
		gap: 1.5rem;
	}

	.plans-gallery__main {
		flex: 1;
		padding: 0;
	}

	.plans-gallery__thumbs {
		flex-direction: column;
		width: 140px;
		padding: 0;
	}

	.plans-gallery__thumbs-list {
		flex-direction: column;
		overflow-x: hidden;
		overflow-y: auto;
		width: 100%;
	}

	.plans-gallery__thumb {
		width: 100%;
		height: 90px;
	}

	.plans-gallery__nav-bar {
		padding: 1.5rem 0 0;
	}

	.plans-gallery__nav {
		font-size: 1rem;
	}
}
