/* Town Square Nutrition — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1d23;
}
::-webkit-scrollbar-thumb {
    background: #3a3d45;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a4d55;
}

/* Selection color */
::selection {
    background: rgba(255, 107, 53, 0.3);
    color: #fff;
}

/* Navbar transition */
#navbar {
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu transition */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* Remove default focus outline for mouse users */
:focus:not(:focus-visible) {
    outline: none;
}

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

/* Subtle gradient border effect on cards */
.group:hover .rounded-2xl {
    box-shadow: 0 0 40px rgba(255, 107, 53, 0.08);
}

/* Hero parallax-like depth */
#top .absolute {
    will-change: transform;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, button {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
