/* Custom styles for Hakala Brothers Excavating */

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

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

/* Hero animations */
#hero-eyebrow {
    animation: fadeSlideUp 0.8s ease forwards 0.3s;
}

#hero-headline {
    animation: fadeSlideUp 0.8s ease forwards 0.5s;
}

#hero-sub {
    animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

#hero-cta {
    animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal - progressive enhancement via JS, but defaults are visible */
.scroll-reveal {
    /* Default state: visible */
}

/* Navbar transition */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(200, 164, 94, 0.1);
}

#navbar.scrolled #logo-text,
#navbar.scrolled .md\\:flex a {
    color: #ffffff;
}

/* Mobile menu transitions */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Service card hover effects */
.group:hover .text-gold-500,
.group:hover svg .text-navy-700 {
    transition: color 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

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

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

/* Selection color */
::selection {
    background: rgba(200, 164, 94, 0.3);
    color: #0A1628;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    #hero-eyebrow,
    #hero-headline,
    #hero-sub,
    #hero-cta {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .group img {
        transition: none;
    }
}

/* Tablet adjustments */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.1;
    }
}

/* Image loading placeholder */
img {
    background-color: #EDE8E0;
}
