/* Help4Injured Languages — switcher, fonts and right-to-left (Arabic) */

/* ---------- Switcher (top bar) ---------- */
.h4il-switch{position:relative;display:inline-block;font-size:.86rem;line-height:1}
.h4il-switch summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;color:#fff;font-weight:700;padding:.2rem .55rem;border:1px solid rgba(255,255,255,.28);border-radius:999px;white-space:nowrap}
.h4il-switch summary::-webkit-details-marker{display:none}
.h4il-switch summary:hover,.h4il-switch[open] summary{background:rgba(255,255,255,.12)}
.h4il-switch summary .car{opacity:.8;transition:transform .15s}
.h4il-switch[open] summary .car{transform:rotate(180deg)}
.h4il-switch ul{position:absolute;inset-inline-end:0;top:calc(100% + 8px);margin:0;padding:.4rem;list-style:none;background:#fff;border:1px solid #E2E8F1;border-radius:14px;box-shadow:0 18px 40px rgba(10,47,102,.18);min-width:170px;z-index:1000}
.h4il-switch li{margin:0}
.h4il-switch a{display:block;padding:.6rem .8rem;border-radius:9px;color:#0F1E3A!important;font-weight:600;text-decoration:none!important;font-size:.95rem;line-height:1.3}
.h4il-switch a:hover{background:#EAF3FD}
.h4il-switch a.on{background:#EAF3FD;color:#0A2F66!important}
.h4il-switch a.on::after{content:"✓";float:inline-end;color:#1F7FD4;margin-inline-start:.6rem}

/* ---------- Switcher (mobile menu: list) ---------- */
.h4il-list{display:flex;align-items:flex-start;gap:.5rem;border-top:1px solid #E2E8F1;margin-top:.35rem;padding:.7rem .6rem .3rem;color:#5B6B85}
.h4il-list svg{flex:0 0 auto;margin-top:.45rem}
.h4il-list ul{display:flex;flex-wrap:wrap;gap:.35rem;margin:0;padding:0;list-style:none}
.h4il-list a{display:inline-block;padding:.4rem .7rem!important;border:1px solid #CFD9E7;border-radius:999px;font-size:.9rem;font-weight:600;color:#0F1E3A!important;text-decoration:none}
.h4il-list a.on{background:#0A2F66;border-color:#0A2F66;color:#fff!important}

/* ---------- Floating switcher (pages without the Help4Injured header) ---------- */
.h4il-float{position:fixed;inset-inline-start:16px;bottom:16px;z-index:900}
.h4il-float .h4il-switch summary{background:#0A2F66;border-color:#0A2F66;padding:.5rem .8rem;box-shadow:0 8px 24px rgba(10,47,102,.25)}
.h4il-float .h4il-switch ul{top:auto;bottom:calc(100% + 8px);inset-inline-end:auto;inset-inline-start:0}
@media (max-width:1024px){.h4il-float{bottom:84px}}

/* ---------- Fonts for each script ---------- */
body.h4il-lang-ar,body.h4il-lang-ar :is(h1,h2,h3,h4,h5,h6,p,a,span,li,label,button,input,select,textarea,div,dt,dd,strong,b,em,small,summary,legend,th,td,.elementor-heading-title,.elementor-button){font-family:"Plus Jakarta Sans","Noto Sans Arabic","Segoe UI",Tahoma,system-ui,sans-serif!important}
body.h4il-lang-hy,body.h4il-lang-hy :is(h1,h2,h3,h4,h5,h6,p,a,span,li,label,button,input,select,textarea,div,dt,dd,strong,b,em,small,summary,legend,th,td,.elementor-heading-title,.elementor-button){font-family:"Plus Jakarta Sans","Noto Sans Armenian","Segoe UI",system-ui,sans-serif!important}
body.h4il-lang-hi,body.h4il-lang-hi :is(h1,h2,h3,h4,h5,h6,p,a,span,li,label,button,input,select,textarea,div,dt,dd,strong,b,em,small,summary,legend,th,td,.elementor-heading-title,.elementor-button){font-family:"Plus Jakarta Sans","Noto Sans Devanagari","Nirmala UI",system-ui,sans-serif!important}
body.h4il-lang-ru,body.h4il-lang-ru :is(h1,h2,h3,h4,h5,h6,p,a,span,li,label,button,input,select,textarea,div,dt,dd,strong,b,em,small,summary,legend,th,td,.elementor-heading-title,.elementor-button){font-family:"Plus Jakarta Sans","Noto Sans","Segoe UI",system-ui,sans-serif!important}
/* Joined scripts must not be letter-spaced; tall scripts need more line height */
body:is(.h4il-lang-ar,.h4il-lang-hi) *{letter-spacing:0!important}
body:is(.h4il-lang-ar,.h4il-lang-hi,.h4il-lang-hy) .elementor-heading-title{line-height:1.35!important}
body:is(.h4il-lang-ar,.h4il-lang-hi) p,body:is(.h4il-lang-ar,.h4il-lang-hi) li{line-height:1.8}
/* Longer words (Russian, Armenian): allow headings and buttons to wrap */
body:is(.h4il-lang-ru,.h4il-lang-hy,.h4il-lang-es) .elementor-heading-title{overflow-wrap:break-word;hyphens:auto}
body:not(.h4il-lang-en) .h4i-nav a{padding-inline:.6rem;font-size:.92rem}
body:not(.h4il-lang-en) .elementor-button,body:not(.h4il-lang-en) .h4i-pick{white-space:normal;text-align:center}
body:not(.h4il-lang-en) .h4i-site-header .elementor-button{white-space:nowrap}
/* Longer menus: switch to the Menu button a little earlier than in English */
@media (max-width:1279px){body:not(.h4il-lang-en) .h4i-nav{display:none}body:not(.h4il-lang-en) .h4i-nav-mobile{display:block}}
/* Top bar stays on one line on computers */
@media (min-width:761px){body:not(.h4il-lang-en) .h4i-topbar .in{flex-wrap:nowrap}body:not(.h4il-lang-en) .h4i-topbar-l{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body:not(.h4il-lang-en) .h4i-topbar-r{flex:0 0 auto}}

/* ---------- Right-to-left (Arabic) ---------- */
html[dir=rtl] body{direction:rtl;text-align:right}
html[dir=rtl] .h4i-topbar .dot{margin-right:0;margin-left:.45rem}
html[dir=rtl] .h4i-nav-mobile nav{right:auto;left:0}
html[dir=rtl] .h4i-kicker .elementor-heading-title::before{order:0}
html[dir=rtl] .h4i-mission,html[dir=rtl] .h4i-promise{border-left-width:1px!important;border-right:4px solid var(--h4i-blue)!important}
html[dir=rtl] .h4i-promise{border-right-color:var(--h4i-red)!important}
html[dir=rtl] .h4i-summary,html[dir=rtl] .h4i-review{border-left-width:1px;border-right:4px solid var(--h4i-blue)}
html[dir=rtl] .h4i-lp-hero.h4i-bg-crash,html[dir=rtl] .h4i-lp-hero.h4i-bg-braces,html[dir=rtl] .h4i-lp-hero.h4i-bg-forklift{background:linear-gradient(260deg,rgba(6,29,66,.97) 0%,rgba(6,29,66,.88) 45%,rgba(6,29,66,.6) 100%),var(--h4i-bg) var(--h4i-pos)/cover no-repeat #061D42!important}
html[dir=rtl] .h4i-lp-hero.h4i-bg-workhero{background:radial-gradient(900px 500px at 15% 20%,rgba(31,127,212,.45),transparent 60%),linear-gradient(245deg,#061D42 0%,#0A2F66 55%,#0E4C96 100%)!important}
html[dir=rtl] .h4i-alert::after,html[dir=rtl] .h4i-cta::after{right:auto;left:-180px}
html[dir=rtl] .h4i-cta::before{left:auto;right:-140px}
html[dir=rtl] .elementor-icon-list-icon{margin-right:0;margin-left:.6rem}
html[dir=rtl] .h4i-checks .elementor-icon-list-icon,html[dir=rtl] .h4i-chips .elementor-icon-list-icon{margin-left:.5rem;margin-right:0}
html[dir=rtl] .elementor-accordion .elementor-tab-title,html[dir=rtl] .h4i-faq .elementor-tab-title{text-align:right}
html[dir=rtl] .elementor-accordion .elementor-accordion-icon.elementor-accordion-icon-left{float:right;margin-left:.6rem;margin-right:0}
html[dir=rtl] .h4i-float.f1{left:auto}
html[dir=rtl] input[type=tel],html[dir=rtl] input[type=email],html[dir=rtl] input[type=date]{direction:ltr;text-align:right}
html[dir=rtl] .h4i-progress-label,html[dir=rtl] .h4i-step-nav{direction:rtl}
html[dir=rtl] .wpcf7-list-item{margin:0 0 0 1em}
html[dir=rtl] a[href^="tel:"]{unicode-bidi:plaintext}
html[dir=rtl] .h4i-mobile-bar,html[dir=rtl] .h4i-consent{direction:rtl}

/* ---------- Long words (Russian, Armenian, Hindi): smaller big headings so words never split ---------- */
body:is(.h4il-lang-ru,.h4il-lang-hy) .h4i-h1 .elementor-heading-title{font-size:clamp(1.9rem,3.6vw,2.9rem)!important;line-height:1.15!important;overflow-wrap:normal;hyphens:manual}
body:is(.h4il-lang-hi,.h4il-lang-es,.h4il-lang-ar) .h4i-h1 .elementor-heading-title{font-size:clamp(2rem,4.2vw,3.3rem)!important}
body:is(.h4il-lang-ru,.h4il-lang-hy) .h4i-h2 .elementor-heading-title,body:is(.h4il-lang-ru,.h4il-lang-hy) h2.elementor-heading-title{font-size:clamp(1.55rem,2.6vw,2.2rem)!important;overflow-wrap:normal}
body:is(.h4il-lang-ru,.h4il-lang-hy,.h4il-lang-hi) .e-con.h4i-photo-card h3.elementor-heading-title{font-size:1.3rem!important;line-height:1.25!important}
body:is(.h4il-lang-ru,.h4il-lang-hy) .h4i-photo-card p{font-size:.93rem}
body:is(.h4il-lang-ru,.h4il-lang-hy,.h4il-lang-hi) .h4i-photo-tag p{font-size:.74rem}
/* Keep the phone number on one line in the mobile menu */
.h4i-nav-mobile a[href^="tel:"]{white-space:nowrap}
html[dir=rtl] .h4i-nav-mobile a[href^="tel:"]{unicode-bidi:isolate}
/* 1.5.0 modern design: Arabic (right to left) */
html[dir=rtl] .e-con.h4i-lp-hero.h4i-lp-light{background:linear-gradient(180deg,#F3F8FE 0,#fff 100%)!important}
html[dir=rtl] .e-con.h4i-lp-light::after{right:auto;left:0;border-bottom-left-radius:0;border-bottom-right-radius:56px;background:linear-gradient(270deg,rgba(6,29,66,.35) 0,rgba(6,29,66,0) 45%),var(--h4i-bg) var(--h4i-pos)/cover no-repeat #DCE8F6}
@media (max-width:1024px){html[dir=rtl] .e-con.h4i-lp-light::after{left:0;right:0;border-radius:0 0 32px 32px}}
html[dir=rtl] .h4i-trust-i + .h4i-trust-i{border-left:0;border-right:1px solid var(--h4i-line)}
@media (max-width:1024px){html[dir=rtl] .h4i-trust-i:nth-child(3){border-right:0}}
@media (max-width:560px){html[dir=rtl] .h4i-trust-i + .h4i-trust-i{border-right:0}}
html[dir=rtl] .h4i-kicker .elementor-heading-title{letter-spacing:0!important}
html[dir=rtl] .h4i-footer h4{letter-spacing:0}
html[dir=rtl] .h4i-mission,html[dir=rtl] .h4i-promise{border-right-width:1px!important;border-left-width:1px!important;border-color:var(--h4i-line)!important}
html[dir=rtl] .e-con.h4i-lp-hero.h4i-lp-split{background:radial-gradient(800px 420px at 10% -10%,#D9E9FB 0,rgba(217,233,251,0) 62%),linear-gradient(180deg,#F3F8FE 0,#fff 100%)!important}
html[dir=rtl] .h4i-form-wide .wpcf7-spinner{right:auto;left:0}
