/* ===== Custom Styles for Healthy Spot Tracy ===== */

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

/* Base font sizes */
body {
    font-family: 'Nunito', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navbar styles */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(16, 42, 67, 0.06);
    transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(16, 42, 67, 0.08);
}

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

#mobile-menu .mobile-link {
    transition: transform 0.2s ease, color 0.2s ease;
}

#mobile-menu .mobile-link:hover {
    transform: scale(1.05);
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.grid > .scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.grid > .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.grid > .scroll-reveal:nth-child(3) { transition-delay: 0.15s; }
.grid > .scroll-reveal:nth-child(4) { transition-delay: 0.2s; }
.grid > .scroll-reveal:nth-child(5) { transition-delay: 0.25s; }
.grid > .scroll-reveal:nth-child(6) { transition-delay: 0.3s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

/* Image hover effects */
.group:hover img {
    transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fef9c3;
}
::-webkit-scrollbar-thumb {
    background: #102a43;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #243b53;
}
