/* Main Styles */

/* Animation for logo scroll */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-scroll {
  animation: scrollLogos 30s linear infinite;
  width: max-content;
  display: flex;
}

/* For very small screens, make sure text doesn't get too small */
@media (max-width: 320px) {
  body {
    font-size: 14px;
  }
}

/* Improve readability of pricing on dark backgrounds */
.text-primary-600 {
  text-shadow: 0 0 1px rgba(255,255,255,0.5);
}

/* Custom styling for image galleries */
.aspect-w-16 {
  position: relative;
  padding-bottom: 56.25%;
}

.aspect-w-16 > * {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
  bottom: 0;
  left: in 0;
}

/* Truncate long text with ellipsis */
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Make logo partners section more vibrant */
.grayscale {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.grayscale:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Popup styling */
.popup {
  display: none;
}

.popup.hidden {
  display: none;
}

.popup {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
}

.popup .popup-content {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  position: relative;
  width: 100%;
  max-width: 400px;
}

.popup .popup-content input,
.popup .popup-content textarea {
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  border-radius: 0.375rem;
  width: 100%;
  margin-bottom: 1rem;
}

.popup .popup-content button {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  width: 100%;
  font-size: 1rem;
}

.popup .popup-content button:hover {
  background-color: #1d4ed8;
}