/* Dawson Hardware — Custom Styles */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #D49B5E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85446;
}

/* Navbar scroll state */
.nav-fixed {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
    background: rgba(253, 249, 243, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav-fixed.scrolled .font-display,
.nav-fixed.scrolled span {
    color: #1A1A1A;
}

.nav-fixed.scrolled .text-terra-600 {
    color: #B85446;
}

/* Mobile menu animations */
#mobileMenu {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    opacity: 1;
}

#mobileMenu.collapsed {
    max-height: 0 !important;
    opacity: 0;
    overflow: hidden;
}

/* Hero text gradient shimmer (subtle, no animation) */
.hero-gradient-text {
    background: linear-gradient(135deg, #B85446 0%, #E3664A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover lift effect */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Image aspect ratio fallback */
.aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #B85446;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: #F5B8AA;
    color: #5A2821;
}

/* Scroll reveal base (progressive enhancement — JS adds .revealed) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    .scroll-reveal.delay-100 { transition-delay: 0.1s; }
    .scroll-reveal.delay-200 { transition-delay: 0.2s; }
    .scroll-reveal.delay-300 { transition-delay: 0.3s; }
    .scroll-reveal.delay-400 { transition-delay: 0.4s; }
}
