/* ========== CUSTOM STYLES ========== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background-color: #2f704c;
  color: #fdfcf8;
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
/* Default: all elements visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only apply hidden state when JS is available and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal-hidden {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal-hidden.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-hidden-delay-1 { transition-delay: 0.1s; }
  .reveal-hidden-delay-2 { transition-delay: 0.2s; }
  .reveal-hidden-delay-3 { transition-delay: 0.3s; }
  .reveal-hidden-delay-4 { transition-delay: 0.4s; }
  .reveal-hidden-delay-5 { transition-delay: 0.5s; }
  .reveal-hidden-delay-6 { transition-delay: 0.6s; }
}

/* ========== NAVBAR SCROLL STATE ========== */
.navbar-scrolled {
  box-shadow: 0 1px 20px rgba(31, 72, 50, 0.08);
}

/* ========== BUTTON HOVER GLOW ========== */
button:hover,
a:hover {
  transition: all 0.2s ease;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #faf8f0;
}
::-webkit-scrollbar-thumb {
  background: #aed7bd;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7fbf96;
}

/* ========== IMAGE LAZY LOAD FADE ========== */
img[loading="lazy"] {
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded {
  opacity: 1;
}
img[loading="lazy"] {
  opacity: 0;
}

/* ========== NEIGHBORHOOD CARD OVERLAY ========== */
.group:hover .group-hover\:scale-105 {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== SELECT STYLING ========== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232f704c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

/* ========== MOBILE MENU ANIMATION ========== */
#mobileMenu {
  animation: slideDown 0.25s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== FORM INPUT FOCUS ========== */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ========== TESTIMONIAL CARD HOVER ========== */
.bg-emerald-800\/50:hover {
  background-color: rgba(38, 90, 62, 0.6);
  transition: background-color 0.3s ease;
}
