/* El-Badawi Group — helper styles for Elementor output.
   Colours, typography, spacing and layout are set in Elementor so they stay editable;
   this file only covers what Elementor Free cannot do natively. */

html, body { overflow-x: clip; }

/* Header contact heading: links inherit the heading colour */
.eb-hotline .elementor-heading-title a { color: inherit; font: inherit; }
.eb-hotline .elementor-heading-title a:hover { color: #FBB040; }

/* Sticky orange menu bar (desktop + tablet), as on the original site.
   site.js sets --eb-topbar-h so only the orange bar remains visible when scrolling. */
@media (min-width: 768px) {
	body.ehf-header #masthead { position: sticky; top: calc(-1 * var(--eb-topbar-h, 0px)); z-index: 99; }
	body.admin-bar.ehf-header #masthead { top: calc(32px - var(--eb-topbar-h, 0px)); }
}

/* Rotating word in the hero headline: <span class="eb-rotate" data-words="A|B|C"> */
.eb-rotate { display: inline-grid; vertical-align: bottom; overflow: hidden; white-space: nowrap; text-align: center; transition: width .4s; }
.eb-rotate__word { grid-area: 1 / 1; transform: translateY(100%); opacity: 0; transition: transform .5s, opacity .5s; }
.eb-rotate__word.is-active { transform: translateY(0); opacity: 1; }
.eb-rotate__word.is-leaving { transform: translateY(-100%); opacity: 0; }

/* Footer contact list: Arabic address renders correctly inside an LTR list */
.eb-contact-list .elementor-icon-list-text { unicode-bidi: plaintext; }

/* Header/footer navigation: no underline pointers, keep labels on one line on desktop */
.eb-main-nav .hfe-nav-menu > li > a { white-space: nowrap; }

/* Accessibility: visible keyboard focus */
.elementor a:focus-visible, .elementor button:focus-visible { outline: 2px solid #FBB040; outline-offset: 2px; }

/* Header columns may shrink below their content width (keeps the hotline inside the viewport on phones) */
.eb-topbar > .e-con-inner > .e-con, .eb-topbar > .e-con { min-width: 0; }
.eb-hotline .elementor-heading-title a { white-space: nowrap; }

/* Business-domain image boxes: equal image sizes (B7/B22 survive only as 300px files) */
.eb-domain .elementor-image-box-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
