/* Only the language control is added. Existing Elementor/Astra styles remain the source of truth. */
:root {
  --fh-layer-language-switcher: 900;
}

/*
 * Astra can tint header logos to a single colour. The original site disabled
 * that filter through Astra's theme-specific Additional CSS, which no longer
 * loads while this child theme is active. Keep the supplied full-colour logo
 * intact in both normal and transparent headers.
 */
.site-logo-img img,
.transparent-custom-logo img,
.ast-theme-transparent-header .site-logo-img img,
img.custom-logo {
  filter: none !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
}

/*
 * Scroll reveal is opt-in through the runtime class below. Without the
 * runtime, content stays fully visible so a script or cache failure cannot
 * hide any page content. The class is applied to individual Elementor
 * widgets, not their parent sections.
 */
.fh-scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity .8s cubic-bezier(.16, 1, .3, 1),
    transform .8s cubic-bezier(.16, 1, .3, 1);
  transition-delay: var(--fh-reveal-delay, 0ms);
}

.fh-scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fh-scroll-reveal,
  .fh-scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.fh-language-switcher {
  align-items: center;
  background: #00479d;
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 .5rem 1.5rem rgba(0, 71, 157, .2);
  display: flex;
  gap: .1rem;
  isolation: isolate;
  padding: .28rem;
  pointer-events: auto;
  position: fixed;
  right: 1.1rem;
  top: 1rem;
  z-index: var(--fh-layer-language-switcher);
}

.fh-lang-link {
  align-items: center;
  color: rgba(255, 255, 255, .86);
  cursor: pointer;
  display: flex;
  font-size: .75rem;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  min-width: 2.3rem;
  padding: .45rem .55rem;
  pointer-events: auto;
  position: relative;
  text-align: center;
  text-decoration: none;
}

.fh-lang-link:hover,
.fh-lang-link.is-current {
  background: #e3bd2c;
  color: #00479d;
}

.fh-lang-link:focus-visible {
  outline: 3px solid #0b6b63;
  outline-offset: 3px;
}

.admin-bar .fh-language-switcher {
  top: calc(32px + .75rem);
}

@media (max-width: 760px) {
  .fh-language-switcher {
    right: .7rem;
    top: .7rem;
  }

  .admin-bar .fh-language-switcher {
    top: calc(46px + .5rem);
  }
}
