/* Custom Styles for Coffee's Christian Childcare */

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

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

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

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

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

/* Selection Color */
::selection {
    background: #ff6b6b;
    color: white;
}

/* Navbar Transition */
#navbar.scrolled {
    background: rgba(26, 26, 26, 0.95);
    backdrop-blur-lg;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Hero Image Animation */
#hero img {
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Floating Card Animation */
.absolute.-bottom-8.-right-8 {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Value Card Hover */
.group:hover .group-hover\:bg-coral-500\/30 {
    transition: background-color 0.3s ease;
}

/* Image Hover Zoom */
.group:hover .group-hover\:scale-105 {
    transition: transform 0.5s ease;
}

/* Button Hover Effects */
a[href="#contact"],
button[type="submit"] {
    transition: all 0.3s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    #hero img {
        animation: none;
    }
    
    .absolute.-bottom-8.-right-8 {
        animation: none;
    }
    
    .group:hover .group-hover\:scale-105 {
        transform: none;
    }
}

/* Print Styles */
@media print {
    nav,
    #back-to-top,
    .group-hover\\:scale-105 {
        display: none !important;
    }
    
    body {
        color: #1a1a1a;
        background: white;
    }
    
    .bg-charcoal-900,
    .bg-stone-50 {
        background: white !important;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Loading State for Form */
button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Image Placeholder Fallback */
img {
    background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
}
