/* Andalus customer-first header V22 — neutral, benefit-led, mobile-first. */
:root{
  --an-h15-ink:#211f25;
  --an-h15-deep:#151419;
  --an-h15-muted:#6f6a73;
  --an-h15-soft:#f4f2ef;
  --an-h15-paper:#fff;
  --an-h15-line:#e4e0db;
  --an-h15-accent:#a89f96;
  --an-h15-shadow:0 18px 46px rgba(24,22,29,.14);
}
.an-site-header{
  direction:rtl;
  background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid rgba(33,31,37,.10)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.65);
  transition:box-shadow .22s ease,background .22s ease;
  isolation:isolate;
}
.an-site-header.is-scrolled{box-shadow:0 12px 34px rgba(24,22,29,.11)!important;background:rgba(255,255,255,.985)!important}
.an-site-header svg{display:block;fill:currentColor}

/* Customer benefits strip */
.an-site-quick{background:var(--an-h15-deep)!important;color:#fff!important;border:0!important}
.an-site-quick__row{min-height:38px!important;justify-content:center!important;gap:0!important;overflow:visible!important;padding:0!important}
.an-site-benefit{position:relative;min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 22px;color:#fff!important;font-size:.76rem;font-weight:850;white-space:nowrap;opacity:.96}
.an-site-benefit+ .an-site-benefit:before{content:"";position:absolute;inset-block:10px;right:0;width:1px;background:rgba(255,255,255,.18)}
.an-site-benefit svg{width:17px;height:17px;opacity:.86;flex:0 0 auto}
a.an-site-benefit{transition:background .18s ease,opacity .18s ease}
a.an-site-benefit:hover,a.an-site-benefit:focus-visible{background:rgba(255,255,255,.08);opacity:1;outline:none!important}

/* Main header row and brand */
.an-site-header__row{position:relative;min-height:78px!important;gap:18px!important}
.an-site-brand{min-width:270px!important;gap:13px!important;color:var(--an-h15-ink)!important;flex:0 0 auto}
.an-site-brand img{width:132px!important;height:58px!important;max-width:none!important;object-fit:contain!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
.an-site-brand__text{padding-inline-start:13px;border-inline-start:1px solid var(--an-h15-line);line-height:1.28!important}
.an-site-brand__text strong{font-size:1rem!important;color:var(--an-h15-ink)!important;letter-spacing:-.01em}
.an-site-brand__text small{font-size:.68rem!important;color:var(--an-h15-muted)!important;font-weight:800!important;margin-top:3px}

/* Desktop navigation */
.an-site-nav{gap:2px!important;min-width:0}
.an-site-nav>a,.an-site-nav__trigger{min-height:42px!important;padding-inline:11px!important;color:var(--an-h15-ink)!important;border-radius:11px!important;font-size:.84rem!important;transition:background .18s ease,color .18s ease,transform .18s ease}
.an-site-nav>a:hover,.an-site-nav>a[aria-current="page"],.an-site-nav__group:hover .an-site-nav__trigger,.an-site-nav__group:focus-within .an-site-nav__trigger,.an-site-nav__group.is-open .an-site-nav__trigger{background:var(--an-h15-soft)!important;color:var(--an-h15-deep)!important;box-shadow:none!important}
.an-site-nav>a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--an-h15-accent)!important}
.an-site-nav__trigger:after{content:""!important;width:7px;height:7px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(-45deg) translateY(-1px)!important;margin-inline-start:3px;transition:transform .18s ease!important}
.an-site-nav__group:hover .an-site-nav__trigger:after,.an-site-nav__group:focus-within .an-site-nav__trigger:after,.an-site-nav__group.is-open .an-site-nav__trigger:after{transform:rotate(135deg) translate(-1px,-1px)!important}
.an-site-nav__menu{top:calc(100% + 11px)!important;width:250px!important;padding:9px!important;border-color:var(--an-h15-line)!important;border-radius:17px!important;box-shadow:var(--an-h15-shadow)!important}
.an-site-nav__menu a{color:var(--an-h15-ink)!important;border-radius:11px!important}
.an-site-nav__menu a:hover,.an-site-nav__menu a:focus-visible{background:var(--an-h15-soft)!important;color:var(--an-h15-deep)!important}
.an-site-nav__intro,.an-site-nav__footer{display:none}

/* High-value actions */
.an-site-header__actions{gap:8px!important;flex:0 0 auto}
.an-site-header__action{min-height:43px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;border-radius:12px;font-size:.82rem;font-weight:900;white-space:nowrap;transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease}
.an-site-header__action svg{width:18px;height:18px;flex:0 0 auto}
.an-site-header__action--calc{background:#fff;color:var(--an-h15-ink)!important;border:1px solid #ccc6c0;box-shadow:0 5px 14px rgba(24,22,29,.06)}
.an-site-header__action--wa{background:var(--an-h15-deep)!important;color:#fff!important;border:1px solid var(--an-h15-deep);box-shadow:0 9px 22px rgba(21,20,25,.17)!important}
.an-site-header__action:hover{transform:translateY(-1px)}
.an-site-header__action--calc:hover{background:var(--an-h15-soft);border-color:#afa79f}
.an-site-header__action--wa:hover{background:#302d35!important;box-shadow:0 12px 26px rgba(21,20,25,.22)!important}

/* Professional mobile menu control */
.an-site-menu-btn{display:none;align-items:center;justify-content:center;gap:9px;width:auto!important;min-width:83px;height:42px!important;padding:0 12px!important;border:1px solid var(--an-h15-deep)!important;border-radius:12px!important;background:var(--an-h15-deep)!important;color:#fff!important;box-shadow:0 8px 19px rgba(21,20,25,.15);font-family:'Tajawal',Arial,sans-serif!important;font-size:.78rem!important;font-weight:900!important;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}
.an-site-menu-btn:hover{background:#302d35!important;transform:translateY(-1px)}
.an-site-menu-btn__icon{position:relative;width:19px;height:15px;display:block;flex:0 0 auto}
.an-site-menu-btn__icon i{position:absolute;right:0;width:19px;height:2px;border-radius:99px;background:currentColor;transition:transform .22s ease,top .22s ease,opacity .16s ease,width .2s ease}
.an-site-menu-btn__icon i:nth-child(1){top:0}
.an-site-menu-btn__icon i:nth-child(2){top:6.5px;width:14px}
.an-site-menu-btn__icon i:nth-child(3){top:13px}
.an-site-menu-btn.is-open .an-site-menu-btn__icon i:nth-child(1){top:6.5px;transform:rotate(45deg)}
.an-site-menu-btn.is-open .an-site-menu-btn__icon i:nth-child(2){opacity:0;width:0}
.an-site-menu-btn.is-open .an-site-menu-btn__icon i:nth-child(3){top:6.5px;transform:rotate(-45deg)}
.an-site-menu-btn.is-open{background:#fff!important;color:var(--an-h15-deep)!important;box-shadow:none!important}

/* Mobile quick actions are hidden on desktop. */
.an-site-mobile-actions{display:none}
.an-site-nav-backdrop{display:none;border:0;padding:0;margin:0;background:rgba(15,14,18,.48);backdrop-filter:blur(2px);cursor:pointer}

@media(max-width:1320px) and (min-width:1025px){
  .an-site-brand{min-width:150px!important}
  .an-site-brand img{width:112px!important;height:50px!important}
  .an-site-brand__text{display:none!important}
  .an-site-nav>a,.an-site-nav__trigger{padding-inline:8px!important;font-size:.79rem!important}
  .an-site-header__action{padding-inline:11px}
}

@media(max-width:1024px){
  body.an-site-menu-open{overflow:hidden}
  .an-site-header{overflow:visible!important}
  .an-site-quick{display:none!important}
  .an-site-header__row{min-height:64px!important;gap:10px!important;justify-content:space-between!important}
  .an-site-brand{min-width:0!important;margin:0!important;gap:0!important}
  .an-site-brand img{width:112px!important;height:46px!important}
  .an-site-brand__text{display:none!important}
  .an-site-menu-btn{display:inline-flex!important;order:3}
  .an-site-header__actions{display:none!important}

  .an-site-nav{position:absolute!important;top:calc(100% + 8px)!important;right:10px!important;left:10px!important;width:auto!important;display:none!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important;margin:0!important;padding:12px!important;background:#fff!important;border:1px solid var(--an-h15-line)!important;border-radius:20px!important;box-shadow:0 24px 70px rgba(15,14,18,.24)!important;max-height:calc(100dvh - 128px)!important;overflow:auto!important;z-index:8!important;overscroll-behavior:contain}
  .an-site-nav.is-open{display:flex!important;animation:anHeaderMenuIn .2s ease both}
  .an-site-nav__intro{display:flex;flex-direction:column;gap:3px;padding:8px 9px 12px;margin-bottom:3px;border-bottom:1px solid var(--an-h15-line)}
  .an-site-nav__intro strong{font-size:.95rem;color:var(--an-h15-deep)}
  .an-site-nav__intro span{font-size:.72rem;line-height:1.5;color:var(--an-h15-muted);font-weight:750}
  .an-site-nav>a,.an-site-nav__trigger{width:100%!important;min-height:46px!important;justify-content:space-between!important;padding-inline:13px!important;border-radius:12px!important;font-size:.88rem!important}
  .an-site-nav>a:hover,.an-site-nav>a[aria-current="page"],.an-site-nav__group.is-open .an-site-nav__trigger{background:var(--an-h15-soft)!important;box-shadow:none!important}
  .an-site-nav__group{width:100%!important}
  .an-site-nav__menu{position:static!important;width:auto!important;margin:3px 7px 8px!important;padding:6px!important;background:#f6f4f1!important;border:1px solid #ebe7e2!important;border-radius:13px!important;box-shadow:none!important}
  .an-site-nav__menu a{min-height:42px!important;padding:8px 11px!important;font-size:.84rem}
  .an-site-nav__footer{display:block;margin-top:5px;padding-top:9px;border-top:1px solid var(--an-h15-line)}
  .an-site-nav__footer a{min-height:46px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:var(--an-h15-deep);color:#fff!important;font-weight:900;font-size:.86rem}

  .an-site-mobile-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));min-height:45px;background:#fff;border-top:1px solid var(--an-h15-line);position:relative;z-index:3}
  .an-site-mobile-actions a{position:relative;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--an-h15-ink)!important;font-size:.72rem;font-weight:900;padding:0 5px;transition:background .18s ease,color .18s ease}
  .an-site-mobile-actions a+a:before{content:"";position:absolute;right:0;inset-block:10px;width:1px;background:var(--an-h15-line)}
  .an-site-mobile-actions a:hover,.an-site-mobile-actions a:focus-visible{background:var(--an-h15-soft);outline:none!important}
  .an-site-mobile-actions svg{width:17px;height:17px;color:#4b4750;flex:0 0 auto}
  .an-site-nav-backdrop{position:fixed;inset:0;z-index:6}
  body.an-site-menu-open .an-site-nav-backdrop{display:block}
  .an-site-header__row,.an-site-mobile-actions{z-index:7}
}

@media(max-width:420px){
  .an-site-wrap{width:calc(100% - 16px)!important}
  .an-site-brand img{width:102px!important;height:43px!important}
  .an-site-menu-btn{min-width:78px!important;height:40px!important;padding-inline:10px!important}
  .an-site-mobile-actions a{gap:4px;font-size:.68rem}
  .an-site-mobile-actions svg{width:16px;height:16px}
}
@media(max-width:350px){
  .an-site-menu-btn{min-width:43px!important;width:43px!important;padding:0!important}
  .an-site-menu-btn__label{display:none}
  .an-site-mobile-actions a{font-size:.64rem}
  .an-site-mobile-actions svg{display:none}
}
@keyframes anHeaderMenuIn{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){
  .an-site-header,.an-site-menu-btn,.an-site-menu-btn__icon i,.an-site-header__action,.an-site-nav.is-open{transition:none!important;animation:none!important}
}

/* ANDALUS_MOBILE_MENU_CLEARANCE_V22_START
 * Keep the mobile/tablet menu fully below the quick-action bar.
 * The actual quick-action height is synchronised by andalus-site.js.
 */
.an-site-header{--an-mobile-actions-height:45px}

@media(max-width:1024px){
  .an-site-header__row{
    position:relative!important;
    z-index:10!important;
  }

  .an-site-mobile-actions{
    position:relative!important;
    z-index:9!important;
    min-height:var(--an-mobile-actions-height,45px)!important;
  }

  .an-site-nav{
    top:calc(100% + var(--an-mobile-actions-height,45px) + 8px)!important;
    max-height:calc(100dvh - 64px - var(--an-mobile-actions-height,45px) - 24px - env(safe-area-inset-bottom,0px))!important;
    padding:14px 12px 16px!important;
    scroll-padding-top:14px!important;
  }

  .an-site-nav__intro{
    display:flex!important;
    flex:0 0 auto!important;
    position:relative!important;
    z-index:2!important;
    min-height:max-content!important;
    overflow:visible!important;
    margin:0 0 7px!important;
    padding:11px 11px 14px!important;
    border:1px solid #ece8e3!important;
    border-radius:14px!important;
    background:#f8f7f5!important;
  }

  .an-site-nav__intro strong{
    display:block!important;
    margin:0!important;
    color:var(--an-h15-deep)!important;
    font-size:1rem!important;
    line-height:1.55!important;
    white-space:normal!important;
    overflow:visible!important;
  }

  .an-site-nav__intro span{
    display:block!important;
    margin-top:2px!important;
    color:var(--an-h15-muted)!important;
    font-size:.75rem!important;
    line-height:1.7!important;
    white-space:normal!important;
    overflow:visible!important;
  }
}

@media(max-width:420px){
  .an-site-nav{
    right:8px!important;
    left:8px!important;
    max-height:calc(100dvh - 64px - var(--an-mobile-actions-height,45px) - 20px - env(safe-area-inset-bottom,0px))!important;
  }

  .an-site-nav__intro{
    padding:10px 10px 13px!important;
  }

  .an-site-nav__intro strong{
    font-size:.94rem!important;
  }
}
/* ANDALUS_MOBILE_MENU_CLEARANCE_V22_END */
