/* ============================================
   Van Nutrition — Custom Styles
   ============================================ */

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

/* Base font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection color */
::selection {
    background: #c8960c;
    color: #0a1628;
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — hidden by default,
   revealed via JS only when JS is available.
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* When JS is enabled and motion is preferred, these animate in */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }

    .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; }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-link {
    transition: color 0.2s ease;
}

.mobile-link:hover {
    color: #c8960c;
}

/* Hamburger animation */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hover effects for product cards
   ============================================ */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Button hover lift effect
   ============================================ */
button, a {
    will-change: transform;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #c8960c;
    border-radius: 4px;
}

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

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

/* ============================================
   Image loading placeholder
   ============================================ */
img {
    background: linear-gradient(135deg, #0f2240 0%, #153060 100%);
    min-height: 4px;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    #navbar,
    #contactForm,
    .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
