/*
 * Footer effects (every page): a flowing gold and blue line along the top edge, two soft glows floating behind the content, links that slide towards a small
 * gold chevron on hover (instead of the underline), a heading accent that widens with its column, a glow that breathes behind the POS slider, legal links with
 * an underline that grows, and a "Back to top" button. js/footer.js adds the reveal and the smooth scroll. transform / opacity only; under reduced motion
 * nothing moves and the footer is shown at once. RTL: logical properties, the chevron and the slide turn round.
 */
.site-footer { position: relative; overflow: hidden; isolation: isolate; border-block-start: 0; }
.site-footer::before { content: ""; position: absolute; inset-inline: 0; inset-block-start: 0; block-size: 3px; z-index: 1; background: linear-gradient(90deg, rgba(201, 163, 73, .15), var(--gold), var(--blue), var(--gold), rgba(201, 163, 73, .15)); background-size: 220% 100%; animation: foot-line 9s linear infinite; }
@keyframes foot-line { to { background-position: -220% 0; } }
.site-footer::after { content: ""; position: absolute; z-index: -1; inline-size: 520px; block-size: 520px; inset-block-start: -220px; inset-inline-end: -140px; border-radius: 50%; background: rgba(22, 119, 255, .16); filter: blur(80px); pointer-events: none; animation: foot-float 20s ease-in-out infinite alternate; }
.site-footer > .container::before { content: ""; position: absolute; z-index: -1; inline-size: 420px; block-size: 420px; inset-block-end: -200px; inset-inline-start: -160px; border-radius: 50%; background: rgba(201, 163, 73, .1); filter: blur(80px); pointer-events: none; animation: foot-float 24s ease-in-out infinite alternate-reverse; }
.site-footer > .container { position: relative; }
@keyframes foot-float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-46px, 30px, 0) scale(1.16); } }

/* links: slide towards a gold chevron */
.site-footer .foot-col li a, .site-footer .foot-legal li a { position: relative; text-decoration: none; transition: color .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1); }
.site-footer .foot-col li a::before { content: "\203A"; position: absolute; inset-inline-start: -14px; inset-block-start: 50%; margin-block-start: -.62em; color: var(--gold); font-weight: 800; opacity: 0; transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1); transform: translateX(-4px); }
[dir="rtl"] .site-footer .foot-col li a::before { content: "\2039"; transform: translateX(4px); }
.site-footer .foot-col li a:hover, .site-footer .foot-col li a:focus-visible { color: #fff; text-decoration: none; transform: translateX(10px); }
[dir="rtl"] .site-footer .foot-col li a:hover, [dir="rtl"] .site-footer .foot-col li a:focus-visible { transform: translateX(-10px); }
.site-footer .foot-col li a:hover::before, .site-footer .foot-col li a:focus-visible::before { opacity: 1; transform: translateX(0); }
.site-footer .foot-col .contact-list li a:hover { transform: none; }
.site-footer .foot-col .contact-list li a::before { display: none; }
/* legal links: the underline grows from the start */
.site-footer .foot-legal li > a { background: linear-gradient(var(--gold), var(--gold)) no-repeat; background-size: 0 2px; background-position: 0 calc(100% - 8px); transition: background-size .3s ease, color .2s ease; }
[dir="rtl"] .site-footer .foot-legal li > a { background-position: 100% calc(100% - 8px); }
.site-footer .foot-legal li > a:hover, .site-footer .foot-legal li > a:focus-visible { background-size: 100% 2px; text-decoration: none; color: #fff; }
/* column headings: a gold accent that widens */
.foot-col h2 { position: relative; padding-block-end: .6em; }
.foot-col h2::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: 26px; block-size: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--sky)); transition: inline-size .35s cubic-bezier(.2, .7, .2, 1); }
.foot-col:hover h2::after, .foot-col:focus-within h2::after { inline-size: 64px; }
/* the logo and the slider */
.foot-logo img { transition: transform .3s cubic-bezier(.2, .7, .2, 1), filter .3s ease; transform-origin: left center; }
[dir="rtl"] .foot-logo img { transform-origin: right center; }
.foot-logo:hover img { transform: scale(1.05); filter: drop-shadow(0 6px 18px rgba(22, 119, 255, .5)); }
.fslider { position: relative; isolation: isolate; }
.fslider::before { content: ""; position: absolute; inset: 6px 8px 22px; z-index: -1; border-radius: 18px; background: linear-gradient(135deg, rgba(22, 119, 255, .55), rgba(201, 163, 73, .4)); filter: blur(24px); opacity: .35; animation: foot-breathe 5s ease-in-out infinite; }
@keyframes foot-breathe { 0%, 100% { opacity: .25; transform: scale(.98); } 50% { opacity: .6; transform: scale(1.03); } }
.fslider .fs-track { transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { .fslider:hover .fs-track { transform: translateY(-3px); } }
/* back to top */
.foot-legal .to-top { display: inline-flex; align-items: center; gap: .5em; min-block-size: 40px; padding: 0 1.1em 0 .8em; border: 1px solid rgba(201, 163, 73, .55); border-radius: 99px; color: #fff; font-weight: 700; text-decoration: none; transition: background .25s ease, transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease; }
.foot-legal .to-top .ico { inline-size: 1.1em; block-size: 1.1em; color: var(--gold); transform: rotate(-90deg); transition: transform .25s ease; }
[dir="rtl"] .foot-legal .to-top .ico { transform: rotate(-90deg); }
.foot-legal .to-top:hover, .foot-legal .to-top:focus-visible { background: rgba(201, 163, 73, .18); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); text-decoration: none; }
.foot-legal .to-top:hover .ico { animation: foot-up .7s ease infinite; }
@keyframes foot-up { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
/* the reveal: js/footer.js adds .foot-armed when the footer is still below the fold, then .is-in */
@media (prefers-reduced-motion: no-preference) {
  .foot-armed .foot-grid > *, .foot-armed .foot-legal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .foot-armed .foot-grid > :nth-child(2) { transition-delay: .1s; } .foot-armed .foot-grid > :nth-child(3) { transition-delay: .2s; } .foot-armed .foot-grid > :nth-child(4) { transition-delay: .3s; } .foot-armed .foot-legal { transition-delay: .4s; }
  .foot-armed.is-in .foot-grid > *, .foot-armed.is-in .foot-legal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-footer::before, .site-footer::after, .site-footer > .container::before, .fslider::before, .foot-legal .to-top:hover .ico { animation: none; }
  .site-footer .foot-col li a, .site-footer .foot-col li a::before, .foot-logo img, .fslider .fs-track, .foot-legal .to-top, .foot-col h2::after, .site-footer .foot-legal li > a { transition: none; }
  .site-footer .foot-col li a:hover, .foot-logo:hover img, .fslider:hover .fs-track, .foot-legal .to-top:hover { transform: none; }
}
@media print { .to-top { display: none; } }
