/* Home hero: the logo GIF, cross-fading to the IFRS banner on click/tap/Enter,
   or on its own once the logo animation has played.
   Replaces the Elementor image carousel that used to auto-slide between the two
   (widget 9b928fb on index.html). Behaviour lives in hero-swap.js.

   Both images are 1920x1080 and share one grid cell, so the box is exactly the
   size the carousel was: full width, never wider than the 1920px source. The
   banner sits on top at opacity 0 and eases in with a slight zoom-out. */
.lc-hero-swap {
  display: grid;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lc-hero-swap > img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.lc-hero-swap__next {
  opacity: 0;
  transform: scale(1.03);
}
.lc-hero-swap.is-swapped {
  cursor: default;
}
.lc-hero-swap.is-swapped .lc-hero-swap__intro {
  opacity: 0;
}
.lc-hero-swap.is-swapped .lc-hero-swap__next {
  opacity: 1;
  transform: none;
}
.lc-hero-swap:focus-visible {
  outline: 3px solid #00a158;
  outline-offset: -3px;
}
/* "Please scroll down" under the hero. main.min.css lifts it 30px
   (`.ss-scorll-down.ss-banner .ss-ac-scorll-down{bottom:30px}`) and only the
   phone layout pays that back with padding-top:45px. From 768px up the label
   rode 9px over the bottom edge of the hero, invisible on the cream GIF but
   plain on the black IFRS banner. 44px puts the label 35px below the hero, the
   same gap the phone layout has; the section grows by the same amount, so the
   arrow keeps its gap above the next section. Phones are left as they were. */
@media screen and (min-width: 768px) {
  .ss-scorll-down.ss-banner .ss-ac-scorll-down.scorll-down-home {
    padding-top: 44px;
  }
}
/* Astra outlines every focused link (`a:focus{outline:thin dotted}`). This link
   only jumps to #ss-scroll on the same page, so after a click it keeps focus and
   the dotted box stayed around it. Drop the outline for mouse/touch focus and
   draw a brand-green ring for keyboard focus instead. */
.ss-scorll-down .ac-scorll-down:focus:not(:focus-visible) {
  outline: none;
}
.ss-scorll-down .ac-scorll-down:focus-visible {
  outline: 2px solid #00a158;
  outline-offset: 6px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .lc-hero-swap > img {
    transition: none;
  }
}
