/* Custom styles for Mega Prints and Signs */

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

/* Prevent flash of unstyled content */
body {
    opacity: 1;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F6;
}
::-webkit-scrollbar-thumb {
    background: #F97066;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #F65347;
}

/* Service card hover animation */
.service-card {
    transform: translateY(0);
}
.service-card:hover {
    transform: translateY(-4px);
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
#mobile-menu.active {
    max-height: 400px;
    padding-top: 0;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(254, 252, 251, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}
nav.scrolled .text-charcoal-900 {
    color: #1A202C !important;
}

/* Scroll reveal animations (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .reveal.visible {
        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; }
}

/* Fallback: ensure content is always visible even if JS is disabled */
.no-js .reveal {
    opacity: 1;
    transform: none;
}

/* Selection color */
::selection {
    background: #F97066;
    color: white;
}
