/* === Custom Styles for Zion-Concord Lutheran School === */

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

/* Custom selection color */
::selection {
    background-color: #c4512d;
    color: #fdf0eb;
}

/* === Scroll Reveal Animations === */
/* Default: content is visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.fade-left {
    opacity: 0;
    transform: translateX(-30px);
}

.reveal.fade-right {
    opacity: 0;
    transform: translateX(30px);
}

.reveal.scale-in {
    opacity: 0;
    transform: scale(0.95);
}

/* Only apply hidden state when JS is available (via .js class on body) */
.js .reveal.fade-up,
.js .reveal.fade-left,
.js .reveal.fade-right,
.js .reveal.scale-in {
    opacity: 0;
    transform: translateY(30px);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* === Navbar scroll state === */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* === Mobile menu transitions === */
#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* === Button hover effects === */
a, button {
    transition: all 0.3s ease;
}

/* === Image hover zoom === */
img {
    transition: transform 0.7s ease;
}

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

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

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

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

/* === Focus styles for accessibility === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #c4512d;
    outline-offset: 2px;
}

/* === Print styles === */
@media print {
    #navbar,
    #mobileMenu,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #1C1917;
        background: white;
    }
}

/* === Mobile menu animation === */
.menu-line {
    transition: all 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
}

/* === Mobile link animations === */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.3s; }
