/* ============================================================================
   responsive-fix.css — site-wide mobile responsiveness for the Vercel static
   static site (WordPress + Elementor 3.26.5).

   This sheet loads LAST (after every Elementor per-page post-*.css), so it wins
   ties on source order. Elementor scopes most properties via per-element
   selectors (.elementor-element-XXXX ...) that out-specify plain tag selectors,
   so overrides here still need !important to take effect — but we drop the old
   `html body` belt-and-suspenders prefixes for readability and confine surgical,
   per-element hacks to the clearly-marked SECTION 13 at the bottom.

   Breakpoints follow Elementor's own config:
     <=1024px  tablet  — column stacking, hamburger menu
     <=767px   phone   — typography, container clamps, media, forms
     <=480px   small   — thin deltas only

   Section map:
     1.  Global reset / no horizontal scroll
     2.  Google-Translate / GTranslate suppression
     3.  Container + CSS-var neutralization (phone)
     4.  Fluid typography scale (phone)
     5.  Layout / column stacking (tablet + phone)
     6.  Header + hamburger menu (tablet)
     7.  Hero + header vertical-gap collapse (phone, generic)
     8.  Images / media (phone)
     9.  Forms (phone)
     10. Footer (phone)
     11. Floating widgets / language switcher (phone)
     12. RTL vs LTR direction handling
     13. Surgical per-element fixes (homepage 621 / header 1639)
   ============================================================================ */


/* ============================================================================
   1. GLOBAL — no horizontal scroll, fluid media defaults (all viewports)
   ============================================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Media never forces the page wider than the viewport. Note: width is NOT
   forced to 100% here — that would upscale small logos/icons. height:auto
   overrides any hardcoded height="" attribute so aspect ratio is preserved. */
img, video, iframe, picture, svg {
  max-width: 100%;
  height: auto;
}

/* Hide genuinely broken images (no/empty src) so they don't leave gaps. */
img:not([src]), img[src=""], img[src="#"] { display: none !important; }


/* ============================================================================
   2. Google-Translate / GTranslate widget suppression (load-bearing, all sizes)
   The mirror ships a custom language switcher; kill the old gtranslate UI and
   the Google banner that shoves <body> down by ~40px.
   ============================================================================ */
[id^="gt-wrapper-"],
.gtranslate_wrapper,
.gt_floater,
.gt_float_switcher,
.gt_options,
.gt-current-lang,
.gt-lang-code,
.skiptranslate,
.goog-te-banner-frame,
.goog-te-gadget,
iframe.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
body { top: 0 !important; position: static !important; }
.goog-te-balloon-frame, .goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[face="arial"] { font-family: inherit !important; }


/* ============================================================================
   3. CONTAINER + CSS-VAR NEUTRALIZATION (phone)
   Elementor's kit sets --container-max-width:767px which is wider than a phone.
   These custom properties are emitted inline per element, so !important is
   required to beat them. Single source of truth — declared once.
   ============================================================================ */
@media (max-width: 767px) {
  :root, body, .e-con, .e-con-inner, .e-con-full,
  .elementor-kit-300, [class*="elementor-kit-"] {
    --container-max-width: 100% !important;
    --content-width: 100% !important;
    --width: 100% !important;
    --stretch-width: 100% !important;
  }

  /* Every Elementor box respects the viewport width. */
  .elementor-section,
  .elementor-section-boxed > .elementor-container,
  .elementor-container,
  .elementor-row,
  .e-con, .e-con-inner, .e-con-full, .e-con-boxed,
  .elementor-widget-wrap,
  .elementor-widget,
  .elementor-widget-container,
  .elementor-column, .elementor-top-column, .elementor-inner-column,
  main, header, footer,
  .elementor-location-header, .elementor-location-footer {
    max-width: 100vw !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Kill empty min-heights that reserve dark blank sections on phones. */
  .e-con, .elementor-section { min-height: 0 !important; }

  /* Comfortable side padding for section content. */
  section.elementor-section > .elementor-container,
  .e-con-full > .e-con-inner,
  .e-con-boxed > .e-con-inner,
  .elementor-section .elementor-container,
  .e-con-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Vertical rhythm between sections. */
  section.elementor-section, .e-con, .e-con-full {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }

  /* Shrink oversized desktop spacer widgets. */
  .elementor-widget-spacer .elementor-spacer-inner { height: 20px !important; }
}


/* ============================================================================
   4. FLUID TYPOGRAPHY SCALE (phone) — single source of truth.
   Elementor's per-element font-size selectors out-specify tags, so !important
   is required. Values chosen so headings fit a 360px viewport without ragged
   mid-word breaks.
   ============================================================================ */
@media (max-width: 767px) {
  h1, h2, h3, h4,
  .elementor-heading-title,
  p, .elementor-widget-text-editor p {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  h1, h1.elementor-heading-title {
    font-size: clamp(22px, 6.5vw, 30px) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 12px !important;
  }
  h2, h2.elementor-heading-title {
    font-size: clamp(19px, 5.5vw, 26px) !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }
  h3, h3.elementor-heading-title {
    font-size: clamp(17px, 4.5vw, 22px) !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
  }
  h4, h4.elementor-heading-title {
    font-size: clamp(16px, 4vw, 19px) !important;
    line-height: 1.4 !important;
  }

  /* Uppercase tracked headings ("OVER 10,000 LEADING COMPANIES…") would be
     wider than the viewport with their desktop letter-spacing. Drop it. */
  .elementor-heading-title { letter-spacing: 0 !important; }

  /* Body copy: comfortable 15px / airy line-height. */
  p,
  .elementor-widget-text-editor p,
  .elementor-widget-text-editor,
  .elementor-widget-text-editor li,
  .elementor-text-editor p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    letter-spacing: 0 !important;
  }
  .elementor-icon-list-text { font-size: 14px !important; }
}


/* ============================================================================
   5. LAYOUT / COLUMN STACKING
   ============================================================================ */
@media (max-width: 1024px) {
  /* Legacy Elementor sections: columns without an explicit .elementor-sm-100
     keep their desktop fractional width. Force every fraction to full width. */
  .elementor-row { flex-wrap: wrap !important; }
  .elementor-column.elementor-col-10,
  .elementor-column.elementor-col-11,
  .elementor-column.elementor-col-12,
  .elementor-column.elementor-col-14,
  .elementor-column.elementor-col-16,
  .elementor-column.elementor-col-20,
  .elementor-column.elementor-col-25,
  .elementor-column.elementor-col-30,
  .elementor-column.elementor-col-33,
  .elementor-column.elementor-col-40,
  .elementor-column.elementor-col-50,
  .elementor-column.elementor-col-60,
  .elementor-column.elementor-col-66,
  .elementor-column.elementor-col-70,
  .elementor-column.elementor-col-75,
  .elementor-column.elementor-col-80,
  .elementor-column.elementor-col-83,
  .elementor-column.elementor-col-90 {
    width: 100% !important;
    margin-bottom: 16px;
  }
}

@media (max-width: 767px) {
  /* Modern flex containers Elementor explicitly set to a row → stack to column.
     --flex-direction is an inline custom property, so !important is required. */
  .e-con.e-flex {
    --flex-direction: column !important;
    flex-direction: column !important;
  }
  .e-con.e-flex > .e-con,
  .e-con.e-flex > .elementor-widget {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    --width: 100% !important;
  }

  /* Buttons: center regardless of saved per-button alignment; stack vertically
     when two are adjacent. */
  .elementor-widget-button,
  .elementor-widget-button.elementor-align-right,
  .elementor-widget-button.elementor-align-left,
  .elementor-widget-button.elementor-align-center {
    text-align: center !important;
  }
  .elementor-widget-button .elementor-button-wrapper {
    display: flex !important;
    justify-content: center !important;
  }
  .elementor-button { margin-inline: auto !important; }
  .elementor-widget-button + .elementor-widget-button { margin-top: 12px !important; }

  /* Tables scroll inside their own box instead of widening the page. */
  table { display: block; overflow-x: auto; max-width: 100%; }

  /* Tab / toggle panels: Elementor's tabs JS doesn't run in the static mirror,
     so collapsed panels would stay hidden. Reveal all stacked. */
  .elementor-tab-content,
  .elementor-toggle-content,
  .e-n-tab-content,
  [role="tabpanel"] {
    display: block !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
}


/* ============================================================================
   6. HEADER + HAMBURGER MENU (tablet & below)
   The Elementor mega-menu widget switches to .e-n-menu-tablet at <=1024.
   Its real JS isn't present, so mobile-menu.js toggles .respond-menu-open on
   the wrapper and we style a full-width slide-down panel here.
   ============================================================================ */
@media (max-width: 1024px) {
  /* Toggle button */
  .e-n-menu-toggle {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    background: rgba(255, 255, 255, .10) !important;
    border: none !important;
    border-radius: 8px !important;
    z-index: 100001 !important;
    position: relative !important;
  }
  .e-n-menu-toggle i { color: #fff !important; font-size: 20px !important; }

  /* Stray Elementor close button — never show it. */
  .e-n-menu-close, button.e-n-menu-close { display: none !important; }

  /* Closed wrapper must reserve no vertical space. */
  .e-n-menu-wrapper:not(.respond-menu-open) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  /* Open: full-width panel sliding down below the 56px sticky header. */
  .e-n-menu-wrapper.respond-menu-open {
    display: block !important;
    position: fixed !important;
    top: 56px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: calc(100dvh - 56px) !important;
    overflow-y: auto !important;
    background: #1a2433 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    z-index: 100000 !important;
    padding: 0 !important;
    animation: respondMenuSlide .2s cubic-bezier(.16, .84, .4, 1);
  }
  @keyframes respondMenuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .e-n-menu-wrapper.respond-menu-open .e-n-menu-heading {
    display: flex !important;
    flex-direction: column !important;
    list-style: none !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-item {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-item:last-child { border-bottom: none !important; }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-title { padding: 0 !important; width: 100% !important; }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-title-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    width: 100% !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: background .15s ease !important;
    box-sizing: border-box !important;
  }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-title-container:active { background: rgba(255, 255, 255, 0.06) !important; }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-title-text {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
  }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-title.e-current .e-n-menu-title-text { color: #7aa6ff !important; }
  .e-n-menu-wrapper.respond-menu-open .e-n-menu-dropdown-icon {
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px !important;
    margin-inline-start: 8px !important;
  }

  /* Scroll-lock the page while the menu is open (toggled by mobile-menu.js). */
  body.respond-menu-locked { overflow: hidden !important; }
}


/* ============================================================================
   7. HERO + HEADER VERTICAL-GAP COLLAPSE (phone, generic)
   Generic rules that keep the sticky header compact and stop hidden header
   containers from reserving blank vertical space. Homepage-specific element
   IDs that caused the big dark gap live in SECTION 13.
   ============================================================================ */
@media (max-width: 767px) {
  /* Sticky header stays ~56px tall (matches the .respond-menu-open top:56px). */
  .elementor-location-header > .e-con {
    min-height: 56px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }
  .elementor-location-header .e-n-menu,
  .elementor-location-header .e-n-menu-toggle {
    min-height: 0 !important;
    height: auto !important;
  }
  /* Containers hidden on mobile must not reserve height. */
  .elementor-location-header .elementor-hidden-mobile,
  .elementor-location-header .elementor-hidden-tablet {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }
}


/* ============================================================================
   8. IMAGES / MEDIA (phone)
   IMPORTANT: do NOT force width:100% on all images — that blows up custom logo
   marquees (.carousel img has its own height:30px) into giant shapes. Only fix
   the overflow case: cap width, auto height (overrides hardcoded dimensions).
   The hero product screenshot needs width:100% and is handled surgically (§13).
   ============================================================================ */
@media (max-width: 767px) {
  /* Elementor image widgets: cap to container, drop hardcoded height. */
  .elementor-widget-image img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Hide empty space from broken Elementor image widgets. */
  .elementor-widget-image:not(:has(img[src])) { display: none !important; }

  /* Horizontal carousels / sliders clip to the viewport, never push the page. */
  .elementor-widget-image-carousel,
  .elementor-image-carousel-wrapper,
  .swiper, .swiper-container,
  .premium-blog-slider,
  .carousel-container,
  .trusted-companies {
    max-width: 100vw !important;
    overflow: hidden !important;
  }
}


/* ============================================================================
   9. FORMS (phone)
   ============================================================================ */
@media (max-width: 767px) {
  /* 16px prevents iOS auto-zoom on focus; full-width fields. */
  .elementor-form .elementor-field,
  .elementor-form input,
  .elementor-form textarea,
  .elementor-form select {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .elementor-field-group { width: 100% !important; margin-bottom: 10px !important; }
  .elementor-form button[type="submit"] {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
  }
}


/* ============================================================================
   10. FOOTER (phone) — currently handled by the generic column stacking in §5.
   Add explicit rules here only if a footer-specific issue appears.
   ============================================================================ */


/* ============================================================================
   11. FLOATING WIDGETS / LANGUAGE SWITCHER (phone)
   Language pill bottom-LEFT, WhatsApp bottom-RIGHT — kept on opposite corners
   per explicit prior request. Accessibility widget hidden (it injected a tall
   icon block that pushed the hero down on LTR pages).
   ============================================================================ */
@media (max-width: 767px) {
  #respond-lang-switcher {
    position: fixed !important;
    bottom: 14px !important;
    left: 14px !important;
    right: auto !important;
    top: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    z-index: 999999 !important;
  }
  #respond-lang-switcher .rls-trigger { padding: 7px 10px !important; font-size: 12px !important; }
  #respond-lang-switcher .rls-label { display: none !important; }

  .ht-ctc-style-1, .ht-ctc-chat-style { bottom: 14px !important; right: 14px !important; }

  #acwp-toolbar-btn-wrap,
  #acwp-toolbar-btn,
  .acwp-toolbar-btn-wrap,
  .userway_buttons_wrapper { display: none !important; }
}


/* ============================================================================
   12. RTL vs LTR DIRECTION HANDLING
   Hebrew (default) + Arabic are RTL and centre the hero rhythm naturally.
   English + French are LTR — reproduce the same centred look, flipped.
   AR is intentionally NOT in these [lang] blocks: it inherits the RTL design.
   ============================================================================ */
html[lang="en"] .elementor-widget-button.elementor-align-right,
html[lang="en"] .elementor-widget-button.elementor-align-left,
html[lang="fr"] .elementor-widget-button.elementor-align-right,
html[lang="fr"] .elementor-widget-button.elementor-align-left,
html[lang="ar"] .elementor-widget-button.elementor-align-right,
html[lang="ar"] .elementor-widget-button.elementor-align-left {
  text-align: center !important;
}

/* Centre hero/section headings + body text on LTR pages to match Hebrew. */
html[lang="en"] main .elementor-heading-title,
html[lang="en"] main .elementor-widget-heading,
html[lang="en"] main .elementor-widget-text-editor,
html[lang="en"] main .elementor-widget-text-editor p,
html[lang="fr"] main .elementor-heading-title,
html[lang="fr"] main .elementor-widget-heading,
html[lang="fr"] main .elementor-widget-text-editor,
html[lang="fr"] main .elementor-widget-text-editor p {
  text-align: center !important;
  direction: ltr !important;
}
html[lang="en"] main .elementor-widget-button,
html[lang="fr"] main .elementor-widget-button { text-align: center !important; }
html[lang="en"] main .elementor-widget-button .elementor-button-wrapper,
html[lang="fr"] main .elementor-widget-button .elementor-button-wrapper {
  display: flex !important;
  justify-content: center !important;
}

/* When two CTAs sit side-by-side in a flex row, hug them centred (was pushed
   to the edges by space-between). */
html[lang="en"] main .e-con.e-flex.e-flex-row,
html[lang="fr"] main .e-con.e-flex.e-flex-row,
html[lang="en"] main .elementor-row,
html[lang="fr"] main .elementor-row {
  justify-content: center !important;
  gap: 14px;
}

/* Generic class added by center-button-pairs.js for subpages. */
.respond-button-pair-centered > .elementor-container {
  justify-content: center !important;
  gap: 14px;
}
.respond-button-pair-centered .elementor-top-column {
  width: auto !important;
  flex: 0 0 auto !important;
}


/* ============================================================================
   13. SURGICAL PER-ELEMENT FIXES — homepage body (post-621) + header (1639).
   Each rule targets ONE element by data-id to undo a specific desktop geometry
   that Elementor bakes in inline. Kept narrow on purpose.
   ============================================================================ */
@media (max-width: 767px) {
  /* --- Header 1639: kill the empty 75%-width sibling that reserved ~300px of
     dark space below the hamburger, and force the bar to a tight row. --- */
  .elementor-1639 .elementor-element.elementor-element-edfadd3 {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .elementor-1639 .elementor-element.elementor-element-5239c7d7 {
    flex-direction: row !important;
    align-items: center !important;
    --padding-top: 6px !important;
    --padding-bottom: 6px !important;
    min-height: 0 !important;
  }
  .elementor-1639 .elementor-element.elementor-element-45bbcff {
    --width: 100% !important;
    --padding-top: 4px !important;
    --padding-bottom: 4px !important;
    min-height: 0 !important;
  }

  /* --- Homepage 621: kill phantom top gap above the hero. --- */
  main.site-main,
  .page-content,
  .elementor.elementor-621 { margin-top: 0 !important; padding-top: 0 !important; }
  .elementor-621 .elementor-element.elementor-element-a7297f2 {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
  }

  /* --- Homepage 621: hero product screenshot (4d61945).
     Elementor sets container max-width:188px + top:-199px overlay and a fixed
     679x334 image — all wrong on mobile. Reset to a normal full-width image. --- */
  .elementor-621 .elementor-element.elementor-element-4d61945 {
    position: relative !important;
    top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    --container-widget-width: 100% !important;
    z-index: 1 !important;
    margin-top: 20px !important;
  }
  .elementor-621 .elementor-element.elementor-element-4d61945 img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px !important;
  }
}

/* --- Homepage 621 (EN/FR): centre the 4 standalone button-pair sections.
   Each section = two 50% top-columns with align-left/right buttons. --- */
html[lang="en"] .elementor-element-ee98c45 > .elementor-container,
html[lang="en"] .elementor-element-0ef5d8b > .elementor-container,
html[lang="en"] .elementor-element-cae3621 > .elementor-container,
html[lang="en"] .elementor-element-2c062f2 > .elementor-container,
html[lang="fr"] .elementor-element-ee98c45 > .elementor-container,
html[lang="fr"] .elementor-element-0ef5d8b > .elementor-container,
html[lang="fr"] .elementor-element-cae3621 > .elementor-container,
html[lang="fr"] .elementor-element-2c062f2 > .elementor-container {
  justify-content: center !important;
  gap: 14px;
}
html[lang="en"] .elementor-element-ee98c45 .elementor-top-column,
html[lang="en"] .elementor-element-0ef5d8b .elementor-top-column,
html[lang="en"] .elementor-element-cae3621 .elementor-top-column,
html[lang="en"] .elementor-element-2c062f2 .elementor-top-column,
html[lang="fr"] .elementor-element-ee98c45 .elementor-top-column,
html[lang="fr"] .elementor-element-0ef5d8b .elementor-top-column,
html[lang="fr"] .elementor-element-cae3621 .elementor-top-column,
html[lang="fr"] .elementor-element-2c062f2 .elementor-top-column {
  width: auto !important;
  flex: 0 0 auto !important;
}
