    /* Custom styles for Discount Building Supply WV */

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

    /* Selection color */
    ::selection {
        background-color: #065f46;
        color: #fefdf8;
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #fdf9ee;
    }
    ::-webkit-scrollbar-thumb {
        background: #065f46;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #047857;
    }

    /* Subtle pattern overlay for cream sections */
    .bg-cream-50::before,
    .bg-cream-100::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23065f46' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 0;
    }

    /* Ensure content is above the pattern */
    nav, section, footer {
        position: relative;
        z-index: 1;
    }

    /* Navbar scroll state */
    nav.scrolled {
        box-shadow: 0 1px 20px rgba(6, 95, 70, 0.08);
    }

    /* Image hover smoothness */
    img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

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

    /* Mobile menu animation */
    #mobile-menu {
        animation: slideDown 0.25s ease-out;
    }

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

    /* Scroll reveal (progressive enhancement) */
    @media (prefers-reduced-motion: no-preference) {
        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }
        .reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }
        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }
        .reveal-delay-4 { transition-delay: 0.4s; }
    }

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