/* ── Custom CSS for Elmira's Daycare ── */

html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-background); }
::-webkit-scrollbar-thumb { background: var(--color-primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary-light); }

/* Focus states */
a:focus, button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Navbar scroll state transition */
#navbar {
  transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s, padding 0.3s;
}

#navbar.scrolled {
  background: rgba(42, 36, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

#navbar.scrolled > div {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Gallery hover effects */
.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card hover shadow transition */
.service-card:hover {
  box-shadow: var(--shadow-card-hover) !important;
}

/* Responsive overrides */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem !important;
  }

  .hero-subtitle {
    font-size: 1.125rem !important;
  }

  .hero-badges {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem !important;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
  }
}

/* Print styles */
@media print {
  nav, .hero, .gallery, footer, .animate-bounce { display: none; }
  .contact { page-break-inside: avoid; }
  .reveal, .service-card, .gallery-item {
    opacity: 1 !important;
    transform: none !important;
  }
}
