/* Custom styles for St Stephen's Food Bank */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d95228;
    border-radius: 5px;
}

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

/* Reveal animation for scroll-triggered elements */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Hover effects for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(217, 82, 40, 0.15);
}

/* Button pulse animation */
@keyframes pulse-soft {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(217, 82, 40, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(217, 82, 40, 0);
    }
}

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

/* Image hover zoom */
.img-zoom {
    transition: transform 0.5s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #d95228 0%, #e46f4b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
}
