/* HZ Concrete Construction — Custom Styles */

:root {
    --gold-400: #d4b962;
    --gold-500: #c8a84e;
    --navy-900: #06101f;
    --navy-800: #0a1f3d;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background: rgba(200, 168, 78, 0.3);
    color: var(--navy-900);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--navy-900);
}
::-webkit-scrollbar-thumb {
    background: rgba(200, 168, 78, 0.4);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 168, 78, 0.6);
}

/* Navbar transitions */
#navbar.scrolled {
    background: rgba(6, 16, 31, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 168, 78, 0.1);
}

#navbar.scrolled a[style*="color: rgba(255,255,255,0.7)"] {
    color: rgba(255, 255, 255, 0.7) !important;
}

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

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

/* Mobile link hover */
.mobile-link {
    display: block;
    text-decoration: none;
}

.mobile-link:hover {
    color: var(--gold-400) !important;
}

/* Form select styling */
select option {
    background: var(--navy-900);
    color: #fff;
}

/* Input focus states */
input:focus, textarea:focus, select:focus {
    border-color: var(--gold-400) !important;
}

/* Service card stagger animation */
.service-card {
    opacity: 1;
}

/* Button hover effects */
button[type="submit"]:hover {
    background: var(--navy-800) !important;
}

/* Image hover zoom container */
.aspect-square {
    position: relative;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .service-card,
    .aspect-square img {
        transition: none !important;
    }
    .aspect-square img {
        transform: none !important;
    }
}

/* Fade-in animation for scroll reveals */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delay classes */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
</style>
