/* Custom styles that complement Tailwind */

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background-color: rgba(255, 107, 74, 0.3);
    color: #f6f6f7;
}

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

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #2a2c31 0%, #1a1b1e 100%);
}

/* Subtle card hover lift */
.category-card,
.bg-charcoal-800\/40 {
    will-change: transform;
}

/* Ensure hero cards don't overflow on small screens */
@media (max-width: 640px) {
    .hero-card {
        transform: scale(0.85);
    }
    .hero-card:nth-child(2) {
        transform: scale(0.8) translateY(-10px);
    }
}

/* Print styles */
@media print {
    nav, .marquee, .hero-card, #menuBtn, #mobileMenu {
        display: none !important;
    }
    body {
        background: white;
        color: black;
    }
}

/* Loading state for JS-enhanced elements */
.reveal {
    /* Default state is visible — JS only adds the 'visible' class for animation */
}

/* Reduced motion fallback */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
