/* Custom styles for A1 Dollar Store */

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

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

/* Selection color */
::selection {
    background-color: rgba(165, 24, 62, 0.15);
    color: #6f1731;
}

/* Navbar scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(111, 23, 49, 0.08);
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .group:hover img {
        transform: none;
    }
}

/* Mobile menu transitions */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 500px;
}

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

::-webkit-scrollbar-track {
    background: #fafafa;
}

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

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

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* Subtle line decorations */
.section-line {
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, #a5183e, transparent);
}

/* Card hover effects */
.group:hover .card-shadow {
    box-shadow: 0 20px 60px rgba(111, 23, 49, 0.12);
}

/* Button focus states */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #a5183e;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Ensure text readability on all backgrounds */
.text-burgundy-700 {
    color: #a5183e;
}

.text-burgundy-600 {
    color: #c92450;
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #a5183e 0%, #e04470 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Decorative dot pattern */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(165, 24, 62, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Aspect ratio utilities */
.aspect-4-5 {
    aspect-ratio: 4/5;
}

.aspect-3-4 {
    aspect-ratio: 3/4;
}

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

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

@keyframes pulse-soft {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

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

/* Mobile menu link hover */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #a5183e;
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* Map container */
.leaflet-container,
iframe {
    border-radius: 16px;
}

/* Print styles */
@media print {
    nav,
    #hero,
    .reveal {
        display: block !important;
        opacity: 1 !important;
    }
    
    footer {
        background: #1a1a1a !important;
    }
}
