/* ══════════════════════════════════════════════════════════
   Hero slider — matches WordPress RevSlider (post-18565)
   Fixed 400px stage, one slide visible via opacity
   ══════════════════════════════════════════════════════════ */

.elementor-18565 .elementor-element-1b70abc {
    min-height: 520px;
    overflow: visible;
}

.elementor-18565 .elementor-element-1b70abc > .elementor-container {
    align-items: stretch;
    min-height: 480px;
}

.elementor-18565 .elementor-element-0996be1 > .elementor-element-populated,
.elementor-18565 .elementor-element-93cffea > .elementor-element-populated {
    min-height: 440px;
}

.elementor-18565 .elementor-element-0996be1 > .elementor-element-populated {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 26px 36px 26px 26px;
}

.elementor-18565 .elementor-element-93cffea > .elementor-element-populated {
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-18565 .elementor-element-122b755 {
    width: 100%;
    max-width: 600px;
    min-height: 400px;
}

/* ── Slider container (RevSlider: 600×400) ── */
.jat-hero-slider {
    width: 100%;
    max-width: 600px;
    min-height: 400px;
    margin-inline-start: auto;
}

.jat-hero-stage {
    position: relative;
    width: 100%;
    height: 400px;
    min-height: 400px;
    overflow: hidden;
    contain: layout size;
}

/* One slide visible — beats Elementor forcing display:block on children */
.elementor-18565 .elementor-element-122b755 .jat-hero-stage > .jat-hero-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.45s ease;
    z-index: 1;
}

.elementor-18565 .elementor-element-122b755 .jat-hero-stage > .jat-hero-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
}

.elementor-18565 .elementor-element-122b755 .sr7-module,
.elementor-18565 .elementor-element-122b755 .sr7-txt {
    display: none !important;
    visibility: hidden !important;
}

.jat-hero-stage .jat-hero-image {
    display: block;
    max-width: 581px;
    max-height: 388px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

/* Caption — IBM Plex Sans Arabic, gold #dbc498 */
.elementor-18565 .elementor-element-122b755 .jat-hero-caption {
    width: 100%;
    max-width: 560px;
    margin: 0;
    padding: 0 24px;
    text-align: center;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-weight: 500;
    font-size: 36px;
    line-height: 40px;
    letter-spacing: 1px;
    color: #dbc498;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* ── Contact form box ── */
.elementor-18565 .elementor-element-5721fdc {
    width: 100%;
    position: relative;
    z-index: 5;
}

.elementor-18565 .elementor-element-b810b8b {
    position: relative;
    z-index: 5;
}

.elementor-18565 .elementor-element-b810b8b:not(.elementor-motion-effects-element-type-background) > .elementor-widget-wrap,
.elementor-18565 .elementor-element-b810b8b > .elementor-widget-wrap > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-color: rgba(255, 255, 255, 0.24) !important;
}

.elementor-18565 .elementor-element-b810b8b > .elementor-element-populated {
    border-radius: 5px;
    padding: 36px 16px 42px;
}

.elementor-18565 .elementor-element-b810b8b .houzez_section_title,
.elementor-18565 .elementor-element-b810b8b .houzez_section_subtitle,
.elementor-18565 .elementor-element-b810b8b .elementor-field-label {
    color: #fff;
}

.elementor-18565 .elementor-element-b810b8b .houzez_section_title {
    font-size: 23px;
}

.elementor-18565 .elementor-element-b810b8b .houzez_section_subtitle {
    font-size: 16px;
}

.elementor-18565 .elementor-element-b810b8b .elementor-field-textual {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-radius: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .elementor-18565 .elementor-element-0996be1 > .elementor-element-populated {
        justify-content: center;
        padding: 16px;
    }

    .jat-hero-slider {
        margin-inline: auto;
    }
}

@media (max-width: 767px) {
    .jat-hero-stage {
        height: 320px;
        min-height: 320px;
    }

    .elementor-18565 .elementor-element-122b755,
    .jat-hero-slider {
        min-height: 320px;
    }

    .jat-hero-stage .jat-hero-caption {
        font-size: 28px;
        line-height: 32px;
        letter-spacing: 0;
        padding: 0 16px;
    }

    .jat-hero-stage .jat-hero-image {
        max-height: 280px;
    }
}

@media (max-width: 480px) {
    .jat-hero-stage {
        height: 260px;
        min-height: 260px;
    }

    .elementor-18565 .elementor-element-122b755,
    .jat-hero-slider {
        min-height: 260px;
    }

    .jat-hero-stage .jat-hero-caption {
        font-size: 22px;
        line-height: 28px;
    }
}

/* Homepage header menu — transparent green band behind nav links */
.header-main-wrap.header-transparent-wrap .header-desktop > .container {
    background: rgba(19, 43, 27, 0.55) !important;
    border-radius: 9px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

@media (min-width: 800px) {
    .header-main-wrap.header-transparent-wrap .header-desktop > .container {
        max-width: 92%;
        margin-top: 40px;
        margin-left: 30px;
        margin-right: 50px;
    }
}

/* Mobile slideout menu — ensure toggle + panel appear above hero/content */
@media (max-width: 991.98px) {
    #header-mobile {
        position: relative;
        z-index: 10001;
    }

    .header-mobile .toggle-button-left,
    .header-mobile .toggle-button-right {
        position: relative;
        z-index: 1;
        cursor: pointer;
    }

    .nav-mobile.nav-mobile-js {
        z-index: 10000;
    }

    .slideout-open .slideout-menu-left.open {
        display: block !important;
        z-index: 10000 !important;
    }
}
