/* Local Mattress Deals — Custom Styles */

/* Base */
*, *::before, *::after { box-sizing: border-box; }

/* Selection */
::selection {
  background: #52803e;
  color: #fdfcfa;
}

/* Smooth focus */
:focus-visible {
  outline: 2px solid #52803e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Hide scrollbar for mobile menu */
.mobile-menu-scroll::-webkit-scrollbar { width: 0; }

/* Nav transition */
#navbar {
  transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
  box-shadow: 0 1px 20px rgba(31, 52, 24, 0.1);
}

/* Hero image zoom on hover */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Floating card animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating-card {
  animation: float 4s ease-in-out infinite;
}

/* Scroll reveal (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Form styles */
.contact-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #c5d8ba;
  border-radius: 0.5rem;
  background: #fdfcfa;
  color: #1f3418;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-input:focus {
  outline: none;
  border-color: #52803e;
  box-shadow: 0 0 0 3px rgba(82, 128, 62, 0.15);
}

.contact-input::placeholder {
  color: #9dbe8c;
}

/* Success message */
.success-message {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #e2eadc;
  border: 1px solid #c5d8ba;
  border-radius: 0.5rem;
  color: #26401e;
  font-weight: 500;
}

.success-message.show {
  display: flex;
}

/* Mobile menu transitions */
#mobileMenu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#mobileMenu.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

#mobileMenu:not(.hidden) {
  max-height: 400px;
  opacity: 1;
}
