/* Custom styles for Michelles Smiling Day Care */

/* Smooth scroll offset for fixed nav */
section[id] {
  scroll-margin-top: 80px;
}

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(20, 20, 25, 0.95) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Reduced motion: ensure content is always visible */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f5f5f7;
}
::-webkit-scrollbar-thumb {
  background: #f05a28;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #e04210;
}

/* Selection color */
::selection {
  background: #ffd0b8;
  color: #1f1f26;
}

/* Mobile menu transition */
#mobile-menu {
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button focus styles */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid #ffab80;
  outline-offset: 2px;
}

/* Gallery image hover */
.rounded-2xl.overflow-hidden {
  overflow: hidden;
}
.rounded-2xl.overflow-hidden img {
  transition: transform 0.5s ease;
}

/* Card hover lift */
.group:hover .group-hover\:bg-coral-500 {
  background-color: #f05a28;
}
