/* Custom styles for ChurroFix Logan */

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

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

/* Selection color */
::selection {
    background-color: #d95033;
    color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf7f0;
}
::-webkit-scrollbar-thumb {
    background: #e9dbb2;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4af64;
}

/* Navbar glass effect */
#navbar.scrolled {
    background: rgba(254, 253, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

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

/* Fade-in animations (below the fold only, progressive enhancement) */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* Hero decorative blobs subtle animation */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(12px, -18px) scale(1.04); }
}
@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-14px, 12px) scale(1.03); }
}
@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8px, -10px) scale(1.05); }
}

.hero-blob-1 { animation: float-slow 12s ease-in-out infinite; }
.hero-blob-2 { animation: float-medium 16s ease-in-out infinite; }
.hero-blob-3 { animation: float-fast 10s ease-in-out infinite; }

/* Button ripple effect on focus */
button:focus-visible, a:focus-visible {
    outline: 2px solid #d95033;
    outline-offset: 2px;
}

/* Input focus ring animation */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(217, 80, 51, 0.15);
}

/* Image loading placeholder */
img {
    background-color: #f3edd7;
}
