/* Responsive overrides (loaded after style.css) */

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .featured-events--swapDemo .featured-events__cards--swap .swapWrap {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* <= 1100px */
@media (max-width: 1100px) {
  .nav__links {
    display: none;
  }
  .hero {
    position: relative;
    min-height: auto;
    overflow: hidden;
}
  .hero__content {
    grid-template-columns: 1fr;
    height: auto;
    padding-top: 90px;
    padding-bottom: 40px;
  }

  .hero__copy h1 {
    font-size: 54px;
    letter-spacing: -2px;
    margin-top: 35px;
  }

  .hero__mock {
    justify-self: end;
    align-self: flex-end;
  }

  .hero__mock img {
    width: min(560px, 92vw);
    height: auto;
    margin-bottom: clamp(-64px, -8vh, -14px);
  }

  .featured-events__inner {
    /* padding-top: 110px; */
  }

  .featured-events h2 {
    font-size: 40px;
  }

  .events__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .events__nav {
    width: 100%;
    justify-content: flex-end;
  }

  .features__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .features__mock {
    justify-content: center;
  }

  .features__mock img {
    width: min(680px, 92vw);
  }

  .gallery__stage {
    height: 520px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__col--wide {
    grid-column: 1 / -1;
  }
}

/* Short viewport height (laptops, zoomed browsers): prevent hero cut-off */
@media (max-height: 760px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    height: auto;
    min-height: calc(100svh - 84px);
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero__copy h1 {
    font-size: clamp(44px, 6.2vw, 72px);
    letter-spacing: -3px;
  }

  .hero__mock img {
    /* width: min(560px, 44vw); */
    height: auto;
  }
}

/* Prefer stable viewport units when available */
@supports (height: 100svh) {
  .hero__content {
    height: auto;
    min-height: calc(100svh - 84px);
  }
}

/* Legal pages */
@media (max-width: 980px) {
  .legal__wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .legal__card {
    position: relative;
    top: auto;
  }
}

/* <= 980px (tablet + narrow laptops) */
@media (max-width: 980px) {
  /* Featured Events swap demo: stack cards vertically (no overlap) */
  .featured-events--swapDemo .featured-events__cards--swap {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 40px;
    padding: 8px 0 32px;
  }

  .featured-events--swapDemo .featured-events__cards--swap .swapWrap {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: min(360px, 92vw) !important;
    /* Stop desktop slot rotations from repositioning; allow keyframe transform */
    --slot-transform: none !important;
    will-change: auto;
    opacity: 0;
    animation: swapStackReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .featured-events--swapDemo .featured-events__cards--swap .swapWrap:nth-child(1) {
    animation-delay: 0.05s;
  }

  .featured-events--swapDemo .featured-events__cards--swap .swapWrap:nth-child(2) {
    animation-delay: 0.22s;
  }

  .featured-events--swapDemo .featured-events__cards--swap .swapWrap:nth-child(3) {
    animation-delay: 0.39s;
  }

  @keyframes swapStackReveal {
    from {
      opacity: 0;
      transform: translateY(16px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .featured-events--swapDemo .promo-card {
    height: min(440px, 72vh);
  }

  .featured-events--swapDemo .promo-card__title {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: -1px;
    margin-bottom: 16px;
  }
}

/* <= 700px (phones) */
@media (max-width: 700px) {
  .container {
    padding: 0 16px;
  }

  .nav__inner {
    padding: 16px;
  }

  .btn {
    padding: 12px 18px;
  }

  .hero__copy h1 {
    font-size: 40px;
    line-height: 1;
  }

  .hero__copy p {
    font-size: 16px;
  }

  .hero__stores {
    flex-wrap: wrap;
  }

  .featured-events h2 {
    font-size: 32px;
  }

  /* Events slider */
  .events {
    padding: 70px 0 90px;
  }

  .eventsSwiper {
    padding-left: 16px;
    padding-right: 16px;
  }

  .event-card {
    width: 86vw;
    max-width: 420px;
  }

  /* Featured Venues */
  .venues {
    padding: 70px 0 90px;
  }

  .venues__stack {
    height: 620px;
  }

  .venue-tile {
    width: 280px;
    height: 330px;
  }

  .venue-tile__media {
    inset: 0 0 80px 0;
  }

  .venue-tile__meta {
    height: 80px;
    padding: 12px 14px;
  }

  .venues__hint {
    position: absolute;
    left: 50%;
    top: 150px;
    transform: translateX(-50%);
    z-index: 3;
    height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    backdrop-filter: blur(10px);
    font: inherit;
    letter-spacing: -0.2px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    animation: venuesHintBounce 950ms cubic-bezier(0.22, 1.4, 0.36, 1) infinite;
    opacity: 0.82;
  }

  .venues__hintText {
    font-weight: 600;
    font-size: 14px;
  }

  .venues__hint[data-state="close"] {
    opacity: 0.72;
  }

  @keyframes venuesHintBounce {
    0%,
    100% {
      transform: translateX(-50%) translateY(0);
    }
    50% {
      transform: translateX(-50%) translateY(-8px);
    }
  }

  /* Gallery videos: hide some tiles to reduce clutter */
  .gallery {
    padding: 90px 0;
  }

  .gallery__stage {
    height: 520px;
  }

  .gallery__tile {
    display: none;
  }

  .gallery__tile:nth-child(1),
  .gallery__tile:nth-child(4),
  .gallery__tile:nth-child(6) {
    display: block;
  }

  .gallery__center h2 {
    font-size: 34px;
  }

  /* FAQ */
  .faq h2 {
    font-size: 40px;
  }

  .accordion {
    gap: 12px;
  }

  /* CTA */
  .cta {
    height: 360px;
    border-radius: 34px 34px 0 0;
  }

  .cta__inner {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .cta h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  .cta__actions {
    flex-direction: column;
    align-items: center;
  }

  .cta__btn {
    width: min(320px, 92vw);
  }

  /* Footer */
  .footer {
    padding: 64px 18px;
  }

  .footer__brand img {
    height: 50px;
    width: 50px;
  }

  .footer__inner {
    gap: 28px;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__title {
    margin-bottom: 10px;
  }

  .footer__col a {
    margin: 8px 0;
  }

  .footer__form input {
    height: 50px;
    border-radius: 14px;
  }
}

