/* Custom styles for Urban Casual — Wichita */

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

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

/* Navbar scroll state */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Collection card hover */
.collection-card {
    transition: transform 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
}

/* Scroll reveal — progressive enhancement */
.js-scroll .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered reveal delays */
.js-scroll .reveal-delay-1 { transition-delay: 0.1s; }
.js-scroll .reveal-delay-2 { transition-delay: 0.2s; }
.js-scroll .reveal-delay-3 { transition-delay: 0.3s; }
.js-scroll .reveal-delay-4 { transition-delay: 0.4s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
    .collection-card:hover {
        transform: none;
    }
    a, button {
        transition: none;
    }
}

/* Subtle gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #152a3c 0%, #2d9e7e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f2faf8;
}
::-webkit-scrollbar-thumb {
    background: #bcebd8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #89dbc0;
}

/* Selection color */
::selection {
    background: #bcebd8;
    color: #0d1c2a;
}

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

/* Mobile menu overlay fix */
body.menu-open {
    overflow: hidden;
}

/* Navbar glass effect when scrolled */
.navbar-scrolled {
    background: rgba(242, 250, 248, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(21, 42, 60, 0.06);
}

.navbar-scrolled #nav-logo-text {
    color: #0d1c2a;
}
