/**
 * iOS Safari fixes — all iPhone / iPad WebKit
 * Targets WebKit touch devices where 100vh and backdrop-filter misbehave on first paint.
 */

@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: calc(var(--vh, 1vh) * 100);
  }

  .hero__content {
    opacity: 1;
    transform: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(14, 24, 20, 0.62);
  }

  [data-theme="light"] .hero__content {
    background: rgba(22, 58, 44, 0.58);
  }

  .hero .btn--outline {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header.is-scrolled {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--color-header-scrolled);
  }

  @media (max-width: 1100px) {
    .header__inner {
      height: 64px;
      min-height: 64px;
      max-height: 64px;
    }

    .nav {
      -webkit-transform: translate3d(100%, 0, 0);
      transform: translate3d(100%, 0, 0);
      will-change: transform;
    }

    .nav.is-open {
      -webkit-transform: translate3d(0, 0, 0);
      transform: translate3d(0, 0, 0);
    }

    .nav__list {
      flex: 0 0 auto;
      margin-top: 0;
    }
  }
}
