/* Custom styles for Thompson Wrecker Service */

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

/* Ensure content is visible by default for progressive enhancement */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

/* Animation classes — only applied via JS when motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-left {
        opacity: 0;
        transform: translateX(-30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-right {
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
    
    /* Staggered delays */
    .reveal-up:nth-child(1) { transition-delay: 0.05s; }
    .reveal-up:nth-child(2) { transition-delay: 0.1s; }
    .reveal-up:nth-child(3) { transition-delay: 0.15s; }
    .reveal-up:nth-child(4) { transition-delay: 0.2s; }
    .reveal-up:nth-child(5) { transition-delay: 0.25s; }
    .reveal-up:nth-child(6) { transition-delay: 0.3s; }
}

/* Navbar styles */
.nav-scrolled {
    background: rgba(254, 253, 251, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(61, 10, 21, 0.08);
}

.nav-scrolled .font-serif {
    color: #3d0a15 !important;
}

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

/* Menu button animation */
.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 20px;
}

/* Hero section - ensure text contrast */
#hero h1,
#hero p {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #871c32;
}

/* Selection color */
::selection {
    background: #a61b32;
    color: #fefdfb;
}

/* Focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #a61b32;
    outline-offset: 2px;
}

/* Image loading placeholder */
img {
    background-color: #faf0e4;
}

/* Print styles */
@media print {
    nav, #contact-form, .reveal-up, .reveal-left, .reveal-right {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
