/* ===== Custom Styles for Dirty Sally's General Store ===== */

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

/* Custom selection color */
::selection {
    background-color: #D4A574;
    color: #0f261c;
}

/* Navbar transition */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

/* Mobile menu button animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 20px;
    transform: translateY(-4px) rotate(-45deg);
    margin-left: 0;
}

/* Mobile link fade in */
.mobile-link {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateX(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* Scroll reveal base - content always visible by default */
.reveal {
    /* Default state is visible - JS adds .visible for animation */
}

/* Subtle hover effects on images */
img {
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Department card hover lift */
.group:hover {
    transform: translateY(-2px);
}

/* Gold accent underline for serif headings */
.font-serif .accent-underline {
    position: relative;
}

.font-serif .accent-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #D4A574, transparent);
}

/* Decorative gold line animation on hover */
a:hover .gold-line {
    width: 100%;
}

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

/* High contrast mode support */
@media (prefers-contrast: high) {
    .group {
        border-width: 2px;
    }
    a:hover {
        text-decoration: underline;
    }
}

/* Print styles */
@media print {
    #navbar, #menuBtn, .reveal {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
    a[href]::after {
        content: none;
    }
}
