/* Custom styles for Rodriguez Family Child Care */

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

/* Scroll indicator animation */
@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(400%);
    }
}

.scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(253, 248, 244, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(127, 26, 52, 0.08);
}

/* Mobile menu animations */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Menu line animations */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* Custom selection color */
::selection {
    background: #DB4065;
    color: white;
}

/* Subtle hover lift for cards */
.group:hover {
    transform: translateY(-2px);
}

/* Image lazy load fade */
img {
    transition: opacity 0.3s ease;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7f1a34;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .scroll-line {
        animation: none;
    }

    .group:hover {
        transform: none;
    }

    .group:hover .w-16 {
        transition: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
}

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

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

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

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

/* Print styles */
@media print {
    nav,
    #visit,
    .scroll-indicator {
        display: none;
    }

    body {
        color: #1C1917;
        background: white;
    }

    .bg-burgundy-950 {
        background: #1C1917 !important;
        color: white !important;
    }
}
