/* Custom styles for Cunningham Children's Home */

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(79, 33, 45, 0.08);
}

.nav-scrolled #navbar a:not(.bg-plum-700) {
    color: rgb(94, 40, 54) !important;
}

/* Selection color */
::selection {
    background: rgb(219, 170, 175);
    color: rgb(42, 15, 21);
}

/* Scroll reveal base — progressive enhancement only */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgb(250, 245, 247);
}
::-webkit-scrollbar-thumb {
    background: rgb(219, 170, 175);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgb(168, 85, 104);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

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

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

button:active, a:active {
    transform: scale(0.98);
}

/* Image hover zoom */
.group img {
    transition: transform 0.6s ease;
}

.group:hover img {
    transform: scale(1.03);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid rgb(142, 63, 82);
    outline-offset: 2px;
}
