/* Custom styles for Sandy's Daycare */

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

/* Nav text color transitions */
.nav-text {
  color: #4f2034;
  transition: color 0.2s ease;
}

.hero-dark .nav-text {
  color: #faf5f7;
}

/* Navbar scroll state */
#navbar.scrolled {
  background: rgba(250, 245, 247, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(79, 32, 52, 0.08);
}

#navbar.scrolled .nav-text {
  color: #4f2034;
}

#navbar.scrolled .mobile-link {
  color: #4f2034;
}

#navbar.hero-mode .nav-text {
  color: #faf5f7;
}

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

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

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    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; }
}

/* Ensure all content is visible by default for no-JS */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf5f7;
}

::-webkit-scrollbar-thumb {
  background: #d9a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #c27493;
}

/* Selection color */
::selection {
  background: #d9a3b8;
  color: #2b0f1a;
}
