/* ===== Custom Styles for Little Lehigh Lumber ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base - progressive enhancement */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }

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

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
    .reveal:nth-child(5) { transition-delay: 0.4s; }
    .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Navbar scroll state */
#navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Mobile menu transitions */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

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

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

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

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

/* Selection color */
::selection {
    background: #F9DCD6;
    color: #5c1f27;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: visible;
}

/* Geometric pattern for section dividers */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #7B2D3B 0%, #F9DCD6 50%, #7B2D3B 100%);
}

/* Image hover overlay */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Print styles */
@media print {
    header, footer, #contactForm, #formSuccess {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
