/* Custom styles for Vannest Construction LLC */

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

/* Custom font families */
.font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.font-sans {
    font-family: 'Inter', system-ui, sans-serif;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .group:hover img,
    img.hover\\:scale-105 {
        transform: none;
    }
}

/* For non-reduced-motion users, add the initial state via JS */
.js-enabled .scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
}

/* Custom selection color */
::selection {
    background-color: #064E3B;
    color: #FDFBF7;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #065E46;
}

/* Navbar scrolled state */
.navbar-scrolled #nav-bg {
    opacity: 1;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Subtle hover underline for links */
a:not(.no-underline):hover {
    position: relative;
}

/* Image aspect ratio utilities */
.aspect-portrait {
    aspect-ratio: 4/5;
}

/* Gradient text utility */
.text-gradient {
    background: linear-gradient(135deg, #064E3B 0%, #065E46 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
