/**
 * Breakpoint-only adaptations. Component defaults stay in their own modules.
 */

@media (max-width: 1023px) {
  :root {
    --annwn-section-space: clamp(3rem, 8vw, 5rem);
  }

  .annwn-grid--4,
  .annwn-grid--3,
  .annwn-theme .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .annwn-theme .homepage_banner {
    min-height: 38rem;
  }
}

@media (max-width: 767px) {
  :root {
    --annwn-gutter: 1rem;
    --annwn-section-space: 3.5rem;
  }

  .annwn-grid--2,
  .annwn-grid--3,
  .annwn-grid--4,
  .annwn-split,
  .annwn-theme .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .annwn-theme .primary_header_2 h3,
  .annwn-theme .bizberg_header_wrapper h3 {
    font-size: 2.5rem;
    letter-spacing: 0.1em;
  }

  .annwn-has-header-brand-image .primary_header_2_wrapper {
    min-height: min(var(--annwn-header-brand-height, 220px), 180px);
  }

  .annwn-theme .homepage_banner {
    min-height: 32rem;
  }

  .annwn-theme .homepage_banner .overlay {
    background: rgba(var(--annwn-black-rgb), 0.68);
  }

  .annwn-theme .homepage_banner .section-title {
    text-align: center;
  }

  .annwn-theme .homepage_banner .banner_subtitle {
    margin-inline: auto;
  }

  .annwn-button,
  .annwn-button--mobile-full,
  .annwn-theme .wp-block-button.annwn-button--mobile-full,
  .annwn-theme .wp-block-button.annwn-button--mobile-full .wp-block-button__link {
    width: 100%;
  }

  .annwn-hidden-mobile {
    display: none;
  }
}

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

@media (prefers-contrast: more) {
  :root {
    --annwn-border: #77736c;
    --annwn-stone: #c4beb3;
  }
}
