/* Custom styles for Shawn's Super Center */

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

/* Selection color */
::selection {
    background-color: rgba(161, 16, 54, 0.4);
    color: white;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift on images */
img {
    display: block;
}

/* Mobile menu transition */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

/* Navbar scroll state */
#navbar.scrolled {
    background-color: rgba(15, 15, 26, 0.95);
    box-shadow: 0 1px 0 rgba(161, 16, 54, 0.2);
}

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

/* Ensure hero text is readable */
#hero h1,
#hero p {
    position: relative;
    z-index: 10;
}

/* Counter animation for stats */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    .float-slow, .float-medium, .float-fast {
        animation: none !important;
    }
    img {
        transition: none !important;
    }
}

/* Print styles */
@media print {
    nav, #mobileMenu, button {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
    section {
        page-break-inside: avoid;
    }
}
