/* Custom styles for Stacey's Daycare */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #ffebef;
}
::-webkit-scrollbar-thumb {
    background: #b8244d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9a1c43;
}

/* Selection color */
::selection {
    background: #b8244d;
    color: #fff;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #b8244d;
    outline-offset: 2px;
}

/* Button ripple effect on hover */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on form elements */
select, input, textarea {
    background-image: none;
}

/* Navbar transition for scroll effect */
.nav-scrolled {
    background: rgba(255, 245, 247, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(184, 36, 77, 0.1);
}

/* Mobile menu animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu-open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* Line animation for mobile menu */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Form focus ring */
input:focus, select:focus, textarea:focus {
    border-color: #b8244d !important;
    box-shadow: 0 0 0 3px rgba(184, 36, 77, 0.1);
}

/* Print styles */
@media print {
    nav, #contact-form, .geometric-shape, .float-1, .float-2, .float-3, .spin-slow {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
