/* ============================================
   EAC Premier Paint and Texture — Custom Styles
   ============================================ */

/* Smooth scrolling for the entire document */
html {
    scroll-behavior: smooth;
}

/* Base font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Hero Animation
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

/* ============================================
   Scroll Reveal (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Staggered delays for grid items */
    .reveal:nth-child(1) { transition-delay: 0s; }
    .reveal:nth-child(2) { transition-delay: 0.05s; }
    .reveal:nth-child(3) { transition-delay: 0.1s; }
    .reveal:nth-child(4) { transition-delay: 0.15s; }
    .reveal:nth-child(5) { transition-delay: 0.2s; }
    .reveal:nth-child(6) { transition-delay: 0.25s; }
}

/* ============================================
   Navbar Scroll State
   ============================================ */
#site-header.scrolled {
    background: rgba(254, 253, 249, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(192, 108, 68, 0.08), 0 4px 30px rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(192, 108, 68, 0.08);
}

#site-header.scrolled .nav-link {
    color: #78350f;
}

/* ============================================
   Navigation Active State
   ============================================ */
.nav-link.active {
    background: rgba(192, 108, 68, 0.12);
    color: #c06c44;
}

/* ============================================
   Custom Select Arrow
   ============================================ */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* ============================================
   Focus Visible Styles
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #c06c44;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ============================================
   Selection Color
   ============================================ */
::selection {
    background: #f9d9c8;
    color: #78350f;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #e8916e;
    border-radius: 9999px;
}

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