/* Custom styles for Abc Aunty House Group Family Daycare Inc. */

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

/* Base transitions */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Header styles */
#site-header {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(110, 231, 183, 0.15);
}

#site-header.scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 1px 20px rgba(5, 95, 70, 0.06);
}

/* Mobile menu */
#mobile-menu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal animations */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 0.12s; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 0.19s; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 0.26s; }
.grid > .scroll-reveal:nth-child(5) { transition-delay: 0.33s; }
.grid > .scroll-reveal:nth-child(6) { transition-delay: 0.40s; }

/* Input focus styles */
input:focus, select:focus, textarea:focus {
  outline: none;
}

/* Image hover effects */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .group:hover .group-hover\:scale-105 {
    transform: none;
    transition: none;
  }
  #mobile-menu {
    animation: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #FDFBF7;
}
::-webkit-scrollbar-thumb {
  background: #A7F3D0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6EE7B7;
}

/* Selection color */
::selection {
  background: #A7F3D0;
  color: #064E3B;
}
