/* ==========================================================================
   Aldaher Group — custom spacing + responsive tweaks
   Applies to both English (LTR) and Arabic (RTL) pages.
   ========================================================================== */

/* ---------- Arabic-only spacing polish ---------- */
html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] span {
    word-spacing: 0.08em;
    letter-spacing: 0.01em;
}
html[dir="rtl"] .elementskit-infobox .box-body h3.elementskit-info-box-title {
    margin-bottom: 16px;
    line-height: 1.5;
}
html[dir="rtl"] .elementskit-infobox .box-body p {
    margin-top: 8px;
    line-height: 1.85;
}
html[dir="rtl"] .elementskit-info-box-icon {
    margin-bottom: 14px;
}
html[dir="rtl"] .elementor-widget-text-editor p {
    line-height: 2;
    margin-bottom: 14px;
    word-spacing: 0.1em;
}
html[dir="rtl"] .elementor-widget-text-editor p strong {
    margin-inline-end: 6px;
}
html[dir="rtl"] .elementor-heading-title {
    line-height: 1.6;
    word-spacing: 0.06em;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6 {
    line-height: 1.55;
}
html[dir="rtl"] .elementskit-infobox {
    padding: 10px 8px;
}
html[dir="rtl"] .elementor-icon-list-text {
    line-height: 1.8;
    padding-inline-start: 6px;
}
html[dir="rtl"] .elementor-widget-button .elementor-button {
    letter-spacing: 0.02em;
}

/* ---------- Global responsive baseline ---------- */
img, video {
    max-width: 100%;
    height: auto;
}
.elementor-section .elementor-container {
    flex-wrap: wrap;
}

/* Tablet */
@media (max-width: 1024px) {
    .elementor-column.elementor-col-33,
    .elementor-column.elementor-col-25 {
        width: 50% !important;
    }
    .elementor-heading-title {
        font-size: 28px !important;
        line-height: 1.4 !important;
    }
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .elementor-column.elementor-col-50,
    .elementor-column.elementor-col-33,
    .elementor-column.elementor-col-25,
    .elementor-column.elementor-col-66 {
        width: 100% !important;
    }
    .elementor-section .elementor-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .elementor-widget-wrap > .elementor-element {
        margin-bottom: 18px;
    }
    .elementor-heading-title {
        font-size: 24px !important;
        line-height: 1.4 !important;
    }
    .elementskit-info-box-title {
        font-size: 20px !important;
    }
    .elementskit-infobox .box-body p,
    .elementor-widget-text-editor p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    /* Stack hero images & text */
    .elementor-top-section .elementor-top-column {
        width: 100% !important;
    }
    /* Footer contact items wrap nicely */
    .elementor-icon-list-items {
        flex-direction: column;
    }
    /* Nav menu full-width on mobile */
    .hfe-nav-menu__toggle {
        margin-left: auto;
    }
    .hfe-nav-menu .sub-menu {
        width: 100% !important;
    }
    /* Keep images from overflowing */
    .elementor-widget-image img {
        width: 100% !important;
        height: auto !important;
    }
    /* Center-align headings on mobile for both directions */
    .elementor-widget-heading {
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }
    .elementor-heading-title {
        font-size: 22px !important;
    }
    .elementskit-info-box-title {
        font-size: 18px !important;
    }
    .elementor-section .elementor-container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .elementor-button {
        padding: 10px 18px !important;
        font-size: 14px !important;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
