/* =========================================================
   eventsAVP · Navigation bar
   Loaded last on every page. Nasalization for the menu, sizes that
   scale with the screen so nothing collides, and the links truly centred
   between the logo and the right-hand group on wide screens.
   Arabic pages keep Cairo for the menu words.
   ========================================================= */

/* layout: logo | links | language + contact */
html .nav .nav__in{grid-template-columns:auto 1fr auto;gap:clamp(20px,2.4vw,48px);padding:0 clamp(24px,5.6vw,108px)}
@media (min-width:1281px){
  html .nav .nav__in{grid-template-columns:1fr auto 1fr}
  html .nav .brand{justify-self:start}
  html .nav .nav__r{justify-self:end}
}

/* logo lock-up scales with the screen (it was a fixed 50px, which pushed into the links on laptops) */
html .nav .brand{gap:clamp(12px,1.1vw,20px)}
html .nav .brand__word{font-size:clamp(28px,2.35vw,46px)!important}
html .nav .brand__div{height:clamp(26px,2.2vw,42px)!important}
html .nav .brand__prjx{height:clamp(24px,1.95vw,38px)!important}

/* menu links in Nasalization */
html .nav .nav__links{gap:clamp(20px,2.2vw,44px)!important;align-items:center}
html:not([lang=ar]) .nav .nav__links a{font-family:"Nasalization",sans-serif!important;font-weight:400!important;
  font-size:clamp(12px,.8vw,15px)!important;letter-spacing:.16em!important;line-height:1;padding:10px 0!important;
  color:rgba(255,255,255,.74);transition:color .25s ease}
html[lang=ar] .nav .nav__links a{font-size:clamp(14px,1vw,17px)!important;padding:10px 0!important;color:rgba(255,255,255,.78)}
html .nav .nav__links a:hover,html .nav .nav__links a.is-active{color:#fff}
html .nav .nav__links a:after{bottom:0;height:2px;border-radius:2px}
html .nav .nav__links a.is-active:after{background:var(--rp,linear-gradient(100deg,#C4142C,#E2433C 52%,#F6A487))!important}

/* right-hand group */
html .nav .nav__r{gap:clamp(12px,1.2vw,22px)}
html .nav .lang{height:40px;padding:0 13px;gap:9px;border:1px solid rgba(255,255,255,.22);border-radius:10px;
  font-family:"Nasalization",sans-serif;font-weight:400;font-size:12px;letter-spacing:.14em;transition:border-color .25s ease}
html .nav .lang:hover{border-color:rgba(255,255,255,.5)}
html .nav .lang b{font-weight:400}
html .nav .lang__sep{color:rgba(255,255,255,.3)}
html .nav .lang .lang__ar{font-size:15px;letter-spacing:0;line-height:1;transform:translateY(-1px)}
html .nav .nav__r .btn{font-family:"Nasalization",sans-serif!important;font-weight:400!important;font-size:12.5px!important;
  letter-spacing:.16em!important;padding:0 22px!important;height:40px;border-radius:10px!important;align-items:center}
html[lang=ar] .nav .nav__r .btn{font-family:var(--ar,Cairo),sans-serif!important;letter-spacing:0!important;font-size:14px!important}

/* below 1180px the links move into the menu button, so the bar never gets crowded */
@media (max-width:1180px){
  html .nav .nav__links,html .nav .nav__r .btn{display:none!important}
  html .nav .burger{display:block!important}
  html .nav .nav__in{grid-template-columns:auto 1fr auto}
  html .nav .nav__r{grid-column:3}
}

/* =========================================================
   Footer wordmark (the big "eventsAVP" at the end of every page)
   The blue of the buttons' hover state, as a live gradient that drifts slowly
   across the letters. Still when the visitor has asked for reduced motion.
   ========================================================= */
html body :is(#footer,.ft2) .ft2__wm{
  background:linear-gradient(100deg,#2A4DFF 0%,#7C8BFF 22%,#4656FF 48%,#9DB4FF 74%,#2A4DFF 100%)!important;
  background-size:200% 100%!important;background-repeat:repeat-x!important;
  -webkit-background-clip:text!important;background-clip:text!important;
  -webkit-text-fill-color:transparent!important;color:transparent!important;-webkit-text-stroke:0!important;
  animation:ftWmFlow 7s linear infinite}
html body :is(#footer,.ft2) .ft2__wm b{background:none!important;-webkit-text-fill-color:transparent!important}
@keyframes ftWmFlow{from{background-position:0% 50%}to{background-position:200% 50%}}
@media (prefers-reduced-motion:reduce){html body :is(#footer,.ft2) .ft2__wm{animation:none}}
