/* Graceful Childcare — Custom Styles */

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

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

/* Selection color */
::selection {
    background: #c9a227;
    color: #0f2140;
}

/* Scroll reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gold accent underline animation */
a.group {
    position: relative;
}

a.group::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a227;
    transition: width 0.3s ease;
}

a.group:hover::after {
    width: 100%;
}

/* Gradient text utility */
.text-gradient-gold {
    background: linear-gradient(135deg, #c9a227 0%, #e0c060 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Subtle pattern for section backgrounds */
.pattern-grid {
    background-image: 
        linear-gradient(rgba(15, 33, 64, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 33, 64, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Button pulse animation for CTA */
@keyframes pulse-gold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(201, 162, 39, 0);
    }
}

.btn-pulse {
    animation: pulse-gold 2s infinite;
}

/* Mobile menu transition */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 400px;
}

/* Star rating animation */
.star-fill {
    transition: transform 0.2s ease;
}

.star-fill:hover {
    transform: scale(1.2);
}

/* Image lazy load placeholder */
img {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .btn-pulse {
        animation: none;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .bg-white\/5 {
        background-color: rgba(255, 255, 255, 0.15) !important;
    }
    
    .text-white\/60 {
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* Print styles */
@media print {
    header, footer, #mobile-menu-btn, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
