/* Custom styles for Blake Paving LLC */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #152d54;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1e4072;
}

/* Navbar scroll state */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(21, 45, 84, 0.08);
}

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

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

/* Mobile nav link hover */
.mobile-nav-link {
    position: relative;
}
.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e5a820;
    transition: width 0.2s ease;
}
.mobile-nav-link:hover::after {
    width: 100%;
}

/* Service card hover glow */
.service-card:hover {
    border-color: rgba(229, 168, 32, 0.3);
}

/* Gallery hover */
.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    outline: 2px solid transparent;
    transition: outline-color 0.3s ease;
    pointer-events: none;
    z-index: 10;
}
.gallery-item:hover::before {
    outline-color: rgba(229, 168, 32, 0.5);
}

/* Testimonial card hover */
.testimonial-card:hover {
    border-color: rgba(229, 168, 32, 0.3);
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Fade-in animation for scroll reveals */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progressive enhancement: only animate when JS is enabled and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus visible for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #e5a820;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Selection color */
::selection {
    background: rgba(229, 168, 32, 0.3);
    color: #0d1f3c;
}

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

/* Print styles */
@media print {
    header, footer, #contact-form, iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
    section {
        page-break-inside: avoid;
    }
}
