/* Progressive motion and navigation enhancements for the Start Here landing page. */

:root {
  --av-ink: #006182;
  --av-yellow: #ebab21;
  --av-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 128px;
}

body {
  overflow-x: clip;
}

#av-scroll-progress {
  position: fixed;
  z-index: 10001;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--av-yellow);
}

#av-back-to-top {
  position: fixed;
  z-index: 9998;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: #fff;
  background: var(--av-ink) !important;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 97, 130, .2);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .24s ease, transform .24s var(--av-ease), box-shadow .24s ease;
}

#av-back-to-top.av-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#av-back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 26px rgba(0, 97, 130, .25);
}

#av-back-to-top .av-top-arrow {
  font-size: 20px;
  line-height: 1;
}

#section-EkiEKh2FiX {
  position: fixed !important;
  z-index: 10000 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  transition: box-shadow .3s ease, background-color .3s ease;
}

#preview-container {
  margin-top: 120px !important;
}

#section-EkiEKh2FiX.av-header-scrolled {
  background-color: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 10px 30px rgba(0, 97, 130, .1) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[class*="animate__fadeIn"],
[data-animation-class]:not([data-animation-class=""]) {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}

.av-motion-ready .av-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .72s var(--av-ease), transform .72s var(--av-ease);
  transition-delay: var(--av-delay, 0ms);
  will-change: opacity, transform;
}

.av-motion-ready .av-reveal.av-from-left {
  transform: translate3d(-30px, 0, 0);
}

.av-motion-ready .av-reveal.av-from-right {
  transform: translate3d(30px, 0, 0);
}

.av-motion-ready .av-reveal.av-in-view {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.av-coaching-image img {
  transition: transform .65s var(--av-ease), filter .65s ease;
}

@media (hover: hover) and (pointer: fine) {
  .av-coaching-image:hover img {
    transform: scale(1.018);
    filter: saturate(1.03);
  }

  .av-nav-cta:hover,
  .av-mobile-cta:hover,
  .chat-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 20px rgba(0, 97, 130, .18) !important;
  }
}

.av-nav-cta,
.av-mobile-cta,
.chat-btn {
  transition: transform .22s var(--av-ease), box-shadow .22s ease !important;
}

.av-search-bar.open,
.av-dropdown.open {
  animation: av-search-in .24s var(--av-ease) both;
}

.av-mobile-menu.open {
  animation: av-menu-in .3s var(--av-ease) both;
}

@keyframes av-search-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes av-menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 110px;
  }

  #preview-container {
    margin-top: 110px !important;
  }

  #av-scroll-progress {
    height: 3px;
  }

  #av-back-to-top {
    left: 14px;
    bottom: 14px;
    width: 50px;
    min-height: 50px;
    justify-content: center;
    padding: 0;
  }

  #av-back-to-top .av-top-label {
    display: none;
  }

  .av-motion-ready .av-reveal,
  .av-motion-ready .av-reveal.av-from-left,
  .av-motion-ready .av-reveal.av-from-right {
    transform: translate3d(0, 20px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #av-scroll-progress,
  #av-back-to-top,
  .av-motion-ready .av-reveal,
  .av-motion-ready .av-reveal.av-from-left,
  .av-motion-ready .av-reveal.av-from-right,
  .av-motion-ready .av-reveal.av-in-view,
  .av-coaching-image img,
  .av-nav-cta,
  .av-mobile-cta,
  .chat-btn,
  .av-dropdown.open,
  .av-search-bar.open,
  .av-mobile-menu.open {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
