/* Custom styles for American Blacktop Sealcoating & Patching */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f4f8;
}
::-webkit-scrollbar-thumb {
    background: #bcccdc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9fb3c8;
}

/* Selection color */
::selection {
    background: #f0a828;
    color: #102a43;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(16, 42, 67, 0.08);
}

.navbar-scrolled .font-display,
.navbar-scrolled .font-body {
    color: #102a43 !important;
}

/* Animation for scroll reveals */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .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; }
}

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

.floating {
    animation: float 4s ease-in-out infinite;
}

/* Subtle pattern overlay */
.pattern-overlay {
    background-image: radial-gradient(circle, rgba(16, 42, 67, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid #f0a828;
    outline-offset: 2px;
}

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

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

/* Button press effect */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
}

/* Form focus states */
input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(240, 168, 40, 0.15);
}

/* Print styles */
@media print {
    nav, #contact-form, .floating {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
