/* Masar WhatsApp & Bilingual Switcher v1.1.0 (StriGrow Technologies) */

/* ============ Floating WhatsApp button ============ */
.masar-wa-fab{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom,0px));right:22px;left:auto;z-index:9999;display:inline-flex;align-items:center;gap:10px;height:56px;padding:0 22px 0 16px;border-radius:999px;background:#25D366;color:#fff!important;font:600 16px/1 Inter,"Segoe UI",Roboto,Arial,sans-serif;letter-spacing:.1px;text-decoration:none!important;box-shadow:0 12px 28px -8px rgba(7,29,66,.45),0 4px 12px -4px rgba(37,211,102,.6);transition:background-color .18s,transform .18s,box-shadow .18s;-webkit-tap-highlight-color:transparent}
.masar-wa-fab:hover{background:#1EBE5D;transform:translateY(-2px);box-shadow:0 16px 32px -10px rgba(7,29,66,.5),0 6px 14px -4px rgba(37,211,102,.65)}
.masar-wa-fab:focus-visible{outline:3px solid #fff;outline-offset:2px;box-shadow:0 0 0 6px rgba(37,211,102,.55)}
.masar-wa-fab .masar-wa-icon{width:28px;height:28px;flex:none;fill:#fff;display:block}
.masar-wa-fab .masar-wa-label{white-space:nowrap}
html[dir="rtl"] .masar-wa-fab{right:auto;left:22px;padding:0 16px 0 22px;font-family:"Cairo",sans-serif;font-weight:700}
@media (max-width:767px){
 .masar-wa-fab{width:54px;height:54px;padding:0!important;justify-content:center;gap:0}
 .masar-wa-fab .masar-wa-icon{width:30px;height:30px}
 .masar-wa-fab .masar-wa-label{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
@media print{.masar-wa-fab,.masar-lang{display:none!important}}

/* ============ Language switcher (EN | العربية) ============ */
.masar-lang{display:inline-flex;align-items:center;gap:2px;padding:3px 4px 3px 9px;border-radius:999px;line-height:1;direction:ltr;flex:none;font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif}
.masar-lang .masar-lang-globe{width:15px;height:15px;flex:none;margin-right:3px}
.masar-lang .masar-lang-btn{appearance:none;-webkit-appearance:none;margin:0!important;min-height:0!important;border:0!important;border-radius:999px!important;background:transparent!important;box-shadow:none!important;cursor:pointer;padding:5px 10px!important;font:600 12.5px/1.2 Inter,"Segoe UI",Roboto,Arial,sans-serif!important;letter-spacing:.3px!important;text-transform:none!important;transition:background-color .15s,color .15s}
.masar-lang .masar-lang-btn[lang="ar"]{font-family:"Cairo","Noto Sans Arabic",Tahoma,sans-serif!important;font-size:13px!important;letter-spacing:0!important}
.masar-lang .masar-lang-btn.is-active{background:#2E9E4A!important;color:#fff!important;cursor:default}
.masar-lang .masar-lang-sep{font-size:12px;opacity:.45;padding:0 1px}
/* top bar (navy) */
.masar-lang--bar{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.2);color:#CFDBEF}
.masar-lang--bar .masar-lang-globe{fill:#3FBF5F}
.masar-lang--bar .masar-lang-btn{color:#E4ECF8!important}
.masar-lang--bar .masar-lang-btn:not(.is-active):hover{background:rgba(255,255,255,.12)!important;color:#fff!important}
.masar-lang--bar .masar-lang-btn:focus-visible{outline:2px solid #3FBF5F;outline-offset:1px}
.masar-topbar>.e-con-inner,.masar-topbar{column-gap:16px}
.masar-topbar .elementor-widget-heading{margin-inline-start:auto}
@media (max-width:767px){
 .masar-topbar>.e-con-inner,.masar-topbar{flex-wrap:nowrap!important;justify-content:space-between!important;column-gap:10px}
 .masar-topbar .elementor-widget-heading{margin-inline-start:0;min-width:0}
 .masar-topbar .elementor-widget-heading .elementor-heading-title{font-size:12.5px!important;white-space:nowrap}
 .masar-lang--bar .masar-lang-btn{padding:6px 10px!important}
}
/* mobile menu panel (white) */
.masar-lang-row{display:flex;align-items:center;justify-content:center;margin-top:14px;padding-top:14px;border-top:1px solid #EEF2F7}
.masar-lang--panel{background:#F4F7FB;border:1px solid #E3E9F2;color:#0B2A5B;padding:4px 5px 4px 12px}
.masar-lang--panel .masar-lang-globe{fill:#2E9E4A;width:17px;height:17px}
.masar-lang--panel .masar-lang-btn{color:#0B2A5B!important;font-size:14px!important;padding:8px 16px!important}
.masar-lang--panel .masar-lang-btn[lang="ar"]{font-size:15px!important}
/* fallback when no top bar exists */
.masar-lang--float{position:fixed;top:12px;right:12px;z-index:9998;background:#0B2A5B;color:#fff;box-shadow:0 8px 20px -8px rgba(0,0,0,.4)}
.masar-lang--float .masar-lang-globe{fill:#3FBF5F}.masar-lang--float .masar-lang-btn{color:#fff!important}
html[dir="rtl"] .masar-lang--float{right:auto;left:12px}

/* ============ LTR islands inside Arabic ============ */
.masar-ltr{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .masar-ltr-input{direction:ltr;text-align:right}
html[dir="rtl"] .masar-ltr-input::placeholder{text-align:right}

/* ============ Arabic typography ============ */
html[dir="rtl"] body,
html[dir="rtl"] body :not(i):not([class*="fa-"]):not([class*="eicon"]):not(.masar-lang-btn[lang="en"]){font-family:"Cairo","Noto Sans Arabic",Tahoma,sans-serif!important;letter-spacing:0!important}
html[dir="rtl"] body{text-align:right}
html[dir="rtl"] .elementor-heading-title{text-transform:none!important}
html[dir="rtl"] h1.elementor-heading-title{line-height:1.3!important}
html[dir="rtl"] h2.elementor-heading-title{line-height:1.35!important}

/* ============ RTL layout polish ============ */
/* hero: Riyadh skyline on the left, Arabic text over solid navy on the right (unmirrored RTL photo set inline by PHP) */
html[dir="rtl"] .masar-hero{background-position-x:0%!important}
@media (max-width:1024px){html[dir="rtl"] .masar-hero{background-position-x:32%!important}}
@media (max-width:767px){html[dir="rtl"] .masar-hero{background-position-x:34%!important}}
html[dir="rtl"] .masar-hero::before,html[dir="rtl"] .masar-hero::after,html[dir="rtl"] .masar-cta::before{transform:scaleX(-1)}
/* directional icons */
html[dir="rtl"] svg[class*="arrow-right"],html[dir="rtl"] svg[class*="arrow-left"],html[dir="rtl"] svg[class*="chevron-right"],html[dir="rtl"] svg[class*="angle-right"],html[dir="rtl"] svg[class*="long-arrow"],html[dir="rtl"] .mf-btn svg{transform:scaleX(-1)}
/* decorative bullets / lines that used margin-right */
html[dir="rtl"] .masar-kicker .elementor-heading-title:before{margin-right:0;margin-left:10px}
html[dir="rtl"] .masar-eyebrow .elementor-heading-title:before{margin-right:0;margin-left:10px}
html[dir="rtl"] .masar-mpanel>a.is-active:before{margin-right:0;margin-left:10px}
html[dir="rtl"] .masar-step .elementor-button-text:before{margin-right:0;margin-left:8px}
html[dir="rtl"] .masar-card:before{background:linear-gradient(270deg,#0B2A5B,#2E9E4A)}
html[dir="rtl"] .masar-card.is-highlight:before{background:linear-gradient(270deg,#2E9E4A,#3FBF5F)}
html[dir="rtl"] .masar-docbox:after{right:auto;left:-120px}
/* documents search */
html[dir="rtl"] .masar-search svg{left:auto;right:14px}
html[dir="rtl"] .masar-search input{padding:12px 42px 12px 16px!important}
/* forms & payment */
html[dir="rtl"] .mf-done,html[dir="rtl"] .mp-done{text-align:right}
html[dir="rtl"] .masar-form select,html[dir="rtl"] .masar-pay select{background-position:left 14px center!important}

/* keep the footer's last line (copyright / CR / VAT) clear of the floating WhatsApp button */
body .masar-footer{--padding-bottom:78px!important}
@media (max-width:767px){body .masar-footer{--padding-bottom:84px!important}}
