/* ========================================
   Navarro General Store — Custom Styles
   Classic & Elegant · Charcoal + Coral
======================================== */

/* Base */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F5F4;
}
::-webkit-scrollbar-thumb {
    background: #3D3D3D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E8633A;
}

/* Scroll reveal base — content always visible */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Scroll reveal active state (added by JS) */
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar transition */
.nav-logo-text,
.nav-logo-sub {
    transition: color 0.4s ease;
}

/* Hero image float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-float {
    animation: float 6s ease-in-out infinite;
}

/* Decorative pulse */
@keyframes pulse-soft {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.pulse-soft {
    animation: pulse-soft 4s ease-in-out infinite;
}

/* Mobile menu */
#mobileMenu {
    backdrop-filter: blur(8px);
}

/* Image hover zoom */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

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

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

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }
}

/* Print styles */
@media print {
    nav, #mobileMenu, .scroll-reveal {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
