/* Custom styles for Foster House-A Gathering Place */

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

/* Body base */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0eb;
}
::-webkit-scrollbar-thumb {
    background: #3a3a3a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e8645a;
}

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

/* Hero parallax feel */
#hero {
    scroll-snap-align: start;
}

/* Mobile menu animations */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 50%;
}

/* Mobile link hover */
.mobile-link {
    transition: all 0.3s ease;
}

/* Navbar background on scroll */
#navbar.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Reveal animations — progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image hover zoom */
.rounded-2xl img,
.rounded-2xl img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover lift */
.group:hover {
    transform: translateY(-4px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form focus ring */
input:focus,
textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, #contact-form {
        display: none;
    }
    body {
        color: #1a1a1a;
        background: white;
    }
}

/* Utility — stagger children */
.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.5s; }
