/* =====================================================================
   ARSIARE v3.6 SLIDE ANIMATIONS  (animation only: no layout/colour changes)
   One block. Delete this file + its enqueue in functions.php to remove.
   Classes: .slide (section) .on (active, set by JS) .rise (headline)
            .sub (subtitle) .k (kicker) .rule (divider)
   ===================================================================== */
:root{--accent:var(--gold);--ease:cubic-bezier(.2,.75,.2,1)}
.hero-v2.slide,.closing-cta.slide{--accent:var(--gold-lt)} /* dark sections: lighter accent */

/* ---- 2) headline word reveal ---- */
.w{display:inline-block;overflow:hidden;vertical-align:top;padding:.08em 0 .16em;margin:-.08em .26em -.16em 0}
.w:last-child{margin-right:0}
.wi{display:inline-block}
.rise .wi{transform:translateY(112%);transition:transform .9s var(--ease)}
.on .rise .wi{transform:none;transition-delay:calc(var(--d) + .15s)}

/* ---- 3) subtitle block wipe ---- */
.sub .w{position:relative}
.sub .wi{opacity:0;transition:opacity .01s linear}
.on .sub .wi{opacity:1;transition-delay:calc(var(--d) + .375s)}
.sub .w::after{content:"";position:absolute;inset:.1em 0 .18em;background:var(--accent);transform:scaleX(0);transform-origin:0 50%}
.on .sub .w::after{animation:blk .75s cubic-bezier(.65,0,.35,1) var(--d) both}
@keyframes blk{0%{transform:scaleX(0);transform-origin:0 50%}50%{transform:scaleX(1);transform-origin:0 50%}50.1%{transform:scaleX(1);transform-origin:100% 50%}100%{transform:scaleX(0);transform-origin:100% 50%}}
.sl-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* the old entrance / scroll-reveal would double up with the new headline motion */
.hero-v2 h1.rise,.hero-v2 .lead.sub{animation:none!important}
.has-slides .section-topline.rv,.has-slides .partners-layout>.rv,.has-slides .closing-inner>.rv{opacity:1!important;translate:none!important;transition:none!important}

/* ---- 4) small elements (hidden only once JS is running) ---- */
html.sl-js .slide .k{opacity:0;transform:translateY(.6em);transition:opacity .8s var(--ease),transform .8s var(--ease)}
html.sl-js .slide.on .k{opacity:1;transform:none}
html.sl-js .slide .rule{transform:scaleX(0);transform-origin:left;transition:transform .9s var(--ease) .1s}
html.sl-js .slide.on .rule{transform:scaleX(1)}

/* ---- 1) navigation dots ---- */
.sl-dots{position:fixed;right:14px;top:50%;transform:translateY(-50%);z-index:40;display:flex;flex-direction:column;gap:2px}
.sl-dots button{width:28px;height:28px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center;border-radius:50%}
.sl-dots button::before{content:"";width:10px;height:10px;border-radius:50%;border:2px solid var(--gold);background:rgba(20,53,36,.55);transition:transform .4s var(--ease),background .4s var(--ease)}
.sl-dots button[aria-current=true]::before{background:var(--gold);transform:scale(1.35)}
.sl-dots button:focus-visible{outline:2px solid var(--gold-dk);outline-offset:1px}
@media (max-width:680px){.sl-dots{right:4px}}

/* ---- 5) header nav: slot roll + underline ---- */
.nav a{position:relative}
.nav .nv{display:inline-grid;overflow:hidden;justify-items:center}
.nav .nv .a,.nav .nv .b{grid-area:1/1;display:inline-block;white-space:nowrap}
.nav .nv .a{transition:transform .55s var(--ease),opacity .45s var(--ease)}
.nav .nv .b{font-weight:700;letter-spacing:.01em;transform:translateY(115%);opacity:0;transition:transform .55s var(--ease),opacity .45s var(--ease)}
.nav a:hover .nv .a,.nav a:focus-visible .nv .a{transform:translateY(-115%);opacity:0}
.nav a:hover .nv .b,.nav a:focus-visible .nv .b{transform:none;opacity:1}
html body .nav a:not(.nav-contact){--accent:var(--gold-dk)}
html body .nav a:not(.nav-contact):hover,html body .nav a:not(.nav-contact)[aria-current=page]{background:transparent!important}
.nav a:not(.nav-contact)::after{content:"";position:absolute;left:16px;right:16px;bottom:9px;height:1px;background:var(--accent);transform:scaleX(0);transform-origin:right;transition:transform .5s var(--ease)}
.nav a:not(.nav-contact):hover::after,.nav a:not(.nav-contact):focus-visible::after,.nav a:not(.nav-contact)[aria-current=page]::after{transform:scaleX(1);transform-origin:left}

/* ---- 5) mobile / tablet: full-screen overlay menu ---- */
@media (max-width:1099px){
  html body .menu-btn{display:block!important;position:relative;z-index:2}
  html body .nav{display:flex!important;position:fixed;inset:0;top:0;left:0;right:0;bottom:0;z-index:1;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:80px 24px;background:rgba(12,38,25,.97)!important;-webkit-backdrop-filter:none;backdrop-filter:none;border:0!important;opacity:0;visibility:hidden;transition:opacity .4s var(--ease),visibility .4s}
  html body .nav.open{opacity:1;visibility:visible}
  html body .nav a{color:var(--cream)!important;font-size:1.5rem;justify-content:center}
  html body .nav a:not(.nav-contact){--accent:var(--gold-lt)}
  html body .nav a[aria-current=page]:not(.nav-contact){color:var(--gold-lt)!important}
  html body .nav .lang{margin-top:18px;align-self:center}
  body:has(.nav.open) .sl-dots{display:none}
  .site-header:has(.nav.open){-webkit-backdrop-filter:none!important;backdrop-filter:none!important} /* lets the fixed overlay cover the screen */
  .site-header:has(.nav.open) .menu-btn{color:var(--cream)!important;background:rgba(251,244,220,.14)!important}
  body:has(.nav.open){overflow:hidden}
}

/* ---- 7) reduced motion: everything final, instantly ---- */
@media (prefers-reduced-motion:reduce){
  .w{overflow:visible}
  .rise .wi,.on .rise .wi{transform:none!important;transition:none!important}
  .sub .wi{opacity:1!important;transition:none!important}
  .sub .w::after{display:none!important}
  html.sl-js .slide .k,html.sl-js .slide .rule{opacity:1!important;transform:none!important;transition:none!important}
  .nav .nv .a,.nav .nv .b,.nav a::after,.sl-dots button::before,.nav{transition:none!important}
  html{scroll-behavior:auto!important}
}
