/* 2026-09-26 v5: polished mobile header + working menu + WhatsApp float */
.header-cta.header-cta-1x{
  background:#003DA5!important;
  background-image:none!important;
  color:#fff!important;
  border:1px solid #4F8DFF!important;
  box-shadow:0 7px 20px rgba(0,61,165,.30)!important;
  text-shadow:none!important;
  white-space:nowrap!important;
  direction:rtl!important;
  unicode-bidi:isolate!important;
  text-align:center!important;
  line-height:1.15!important;
}
.header-cta.header-cta-1x:hover{background:#002C7A!important;filter:none!important}
.brand{display:inline-flex!important;align-items:center!important;gap:1px!important;direction:ltr!important;white-space:nowrap!important}
.brand .egypt-flag{margin:0!important;line-height:1!important}
.hero-image-wrap{min-height:0!important;width:100%!important;overflow:visible!important}
.hero-image-frame{width:100%!important;max-width:660px!important;height:auto!important;aspect-ratio:16/9!important;overflow:hidden!important;transform:none!important;background:#0d1117!important}
.hero-image-frame img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;display:block!important;background:#0d1117!important}
.whatsapp-agent-float{
  position:fixed!important;right:12px!important;bottom:calc(14px + env(safe-area-inset-bottom,0px))!important;
  z-index:2147483000!important;display:inline-flex!important;visibility:visible!important;opacity:1!important;
  pointer-events:auto!important;align-items:center!important;gap:7px!important;direction:rtl!important;
  background:#20b858!important;color:#fff!important;border:2px solid #7BE39E!important;border-radius:999px!important;
  padding:9px 13px!important;min-height:44px!important;max-width:calc(100vw - 24px)!important;
  box-shadow:0 10px 30px rgba(0,0,0,.42),0 0 0 2px rgba(32,184,88,.14)!important;
  font-family:Tahoma,Arial,sans-serif!important;font-weight:900!important;font-size:12px!important;line-height:1.1!important;
  white-space:nowrap!important;transform:none!important;
}
.whatsapp-agent-float img{width:26px!important;height:26px!important;display:block!important;flex:0 0 26px!important}
.whatsapp-agent-float span{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important}

@media(max-width:900px){
  .site-header{overflow:visible!important}
  .header-inner{
    position:relative!important;
    direction:ltr!important;
    display:grid!important;
    grid-template-columns:auto auto minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:7px!important;
    width:calc(100% - 16px)!important;
    height:74px!important;
    padding:0!important;
    margin:0 auto!important;
  }
  .menu-btn{
    display:grid!important;place-items:center!important;
    grid-column:1!important;grid-row:1!important;
    margin:0!important;flex:0 0 auto!important;
    width:48px!important;height:48px!important;padding:0!important;
    font-size:24px!important;line-height:1!important;
    cursor:pointer!important;position:relative!important;z-index:53!important;
  }
  .header-cta.header-cta-1x{
    grid-column:2!important;grid-row:1!important;
    margin:0!important;justify-self:start!important;
    width:auto!important;min-width:142px!important;max-width:150px!important;
    padding:8px 8px!important;font-size:10.5px!important;border-radius:10px!important;
    overflow:hidden!important;text-overflow:clip!important;
    position:relative!important;z-index:53!important;
  }
  .brand{
    grid-column:4!important;grid-row:1!important;
    justify-self:end!important;margin:0!important;padding:0!important;
    gap:0!important;min-width:0!important;position:relative!important;z-index:53!important;
  }
  .brand img{width:116px!important;max-width:116px!important;height:auto!important;display:block!important}
  .brand .egypt-flag{font-size:17px!important;width:21px!important;height:20px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 21px!important}
  .nav{display:none!important}
  .nav.open{
    display:flex!important;position:absolute!important;
    top:66px!important;left:0!important;right:0!important;
    width:100%!important;z-index:52!important;
    flex-direction:column!important;align-items:stretch!important;gap:0!important;
    margin:0!important;padding:10px!important;
    background:#111619!important;border:1px solid #2b3135!important;border-radius:0 0 14px 14px!important;
    box-shadow:0 18px 40px rgba(0,0,0,.45)!important;
    direction:rtl!important;
  }
  .nav.open a{display:block!important;padding:11px 12px!important;border-bottom:1px solid rgba(255,255,255,.06)!important;text-align:right!important;color:#f7f8f8!important;font-size:13px!important}
  .nav.open a:last-child{border-bottom:0!important}
}

@media(max-width:520px){
  .header-inner{gap:5px!important;width:calc(100% - 12px)!important}
  .menu-btn{width:46px!important;height:46px!important;font-size:23px!important}
  .header-cta.header-cta-1x{min-width:134px!important;max-width:138px!important;font-size:9.8px!important;padding:7px 5px!important}
  .brand img{width:102px!important;max-width:102px!important}
  .brand .egypt-flag{font-size:15px!important;width:18px!important;height:18px!important;flex-basis:18px!important}
  .whatsapp-agent-float{right:8px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;padding:8px 10px!important;font-size:11px!important;min-height:42px!important}
  .whatsapp-agent-float img{width:24px!important;height:24px!important;flex-basis:24px!important}
}

@media(max-width:360px){
  .header-inner{gap:4px!important;width:calc(100% - 8px)!important}
  .menu-btn{width:42px!important;height:44px!important}
  .header-cta.header-cta-1x{min-width:126px!important;max-width:128px!important;font-size:9.2px!important;padding:7px 4px!important}
  .brand img{width:94px!important;max-width:94px!important}
  .brand .egypt-flag{width:17px!important;flex-basis:17px!important;font-size:14px!important}
}
