/* Custom styles for Champagnat Hall */

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

/* Prevent scroll-reveal from hiding content when JS is disabled */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .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; }
}

/* Default state: always visible (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
}

/* Navbar transitions */
#navbar.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(51, 81, 43, 0.08);
}

#navbar.scrolled #nav-logo-text {
    color: #294125;
}

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

/* Menu icon animation */
#menu-icon.open #menu-line-1 {
    transform: translateY(4px) rotate(45deg);
}

#menu-icon.open #menu-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

#menu-icon.open #menu-line-3 {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

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

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

::-webkit-scrollbar-thumb {
    background: #c6dbbc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ec08f;
}

/* Selection color */
::selection {
    background-color: #c6dbbc;
    color: #294125;
}

/* Subtle image hover effect */
img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Input autofill styling */
input:-webkit-autofill,
textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px #f5f3ed inset !important;
    -webkit-text-fill-color: #22361f !important;
}
</style>
