/* Accessibility */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--primary-500);
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  clip: auto !important;
  clip-path: none;
  color: white;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  line-height: normal;
  padding: 1rem 2rem;
  text-decoration: none;
  top: 1rem;
  width: auto;
  z-index: 100000;
  transition: transform var(--transition-duration) ease,
    box-shadow var(--transition-duration) ease;
  outline: 2px solid var(--accent-500);
  outline-offset: -4px;
}

.screen-reader-text:focus:hover {
  transform: translateY(0);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

@media (prefers-reduced-motion: no-preference) {
  .screen-reader-text:focus:hover {
    transform: translateY(-2px);
  }
}

/* Hide elements */
.hidden {
  display: none;
}

/* Infinite scroll */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
  display: none;
}

.infinity-end.neverending .site-footer {
  display: block;
}

/* Reusable classes */
.rounded-full {
  border-radius: 32px;
}

.rounded-full img {
  border-radius: 32px;
}

.no-padding {
  padding: 0;
}

.no-margin {
  margin: 0;
}

@media screen and (max-width: 37.5em) {
  .mobile-flex-reverse {
    flex-direction: column-reverse !important;
  }

  .offer {
    gap: 0 !important;
  }

  .offer h2 {
    margin-top: 0 !important;
  }
}
