/* Home hero and availability-form overrides loaded after responsive.css. */

.home-action--gold {
  opacity: 0.7;
}

/* Keep the logo and navigation at the top after the menu reaches it. */
.navigation-sticky-spacer {
  display: block;
  width: 100%;
  height: 0;
}

@media (min-width: 769px) {
  .hero-poster {
    display: none;
    background-image: none;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .home-actions {
    width: min(100%, 264px);
    gap: 6px;
    margin-top: 22px;
  }

  .home-action {
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
    box-sizing: border-box;
    font-size: 9px;
    letter-spacing: 1px;
  }

  #navigation-sticky-wrapper {
    position: relative;
    height: 60px !important;
    z-index: 9999;
  }

  #navigation {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    height: 60px;
    box-sizing: border-box;
  }

  #navigation.navigation-is-fixed {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
  }

  .hero-poster {
    display: block;
    background-image: url(../images/hero-home-first-frame.webp);
    transition: none;
  }

  .video-wrapper::after {
    background: transparent;
  }

  .video-wrapper video {
    transition: none;
  }

  .animated {
    visibility: visible !important;
    animation: none !important;
    -webkit-animation: none !important;
  }

  #history {
    display: block;
    min-height: 0;
  }

  #history .inner {
    width: 100%;
    height: auto;
    min-height: 0;
    padding-top: 36px;
    padding-bottom: max(36px, calc(24px + env(safe-area-inset-bottom)));
    box-sizing: border-box;
  }

  #history .contact-f {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 92%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    transform: none;
  }

  #history .contact-f .header-slogan-form {
    padding: 0 0 14px;
    font-size: clamp(25px, 7vw, 27px);
    line-height: 1.2;
  }

  #why-wisten {
    padding-bottom: 0;
    background: #e7e7e7 !important;
  }

  #why-wisten .inner,
  #why-wisten .accordion,
  #why-wisten .panel,
  #why-wisten .accordion-body,
  #why-wisten .accordion-inner {
    background: transparent !important;
  }

  #why-wisten .inner {
    height: auto;
    min-height: 0;
    padding-top: 32px;
    padding-bottom: max(24px, calc(16px + env(safe-area-inset-bottom)));
    box-sizing: border-box;
  }

  #why-wisten .accordion {
    float: none;
    width: calc(100% - 32px);
    max-width: 480px;
    margin: 0 auto;
  }

  #why-wisten .accordion-inner {
    padding-bottom: 12px;
  }

  #back-top {
    display: none !important;
  }

  #contact {
    height: auto;
    min-height: 0;
  }

  #contact .contact-form {
    width: 100%;
    height: auto;
    min-height: 0;
    padding-bottom: max(32px, calc(24px + env(safe-area-inset-bottom)));
    box-sizing: border-box;
    left: auto;
    transform: none;
  }

  #contact #map {
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
  }

  #footer {
    min-height: 0;
  }

  #footer .footer {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  #footer .footer-box {
    margin-top: 0;
    margin-bottom: 0;
  }

  #footer .footer-text {
    margin-top: 0;
  }
}
