/* Custom styles for Heimbach Construction */

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

/* Navbar scroll state */
#navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

#navbar.scrolled .nav-link {
    color: #2d3138;
}

#navbar.scrolled .nav-link:hover {
    color: #E07A5F;
}

#navbar.scrolled .font-serif {
    color: #1e2127;
}

/* Coral button */
.btn-coral {
    background: #E07A5F;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-coral:hover {
    background: #d16043;
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-coral:active {
    transform: translateY(0);
}

/* Service cards */
.service-card {
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* Gallery items */
.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.01);
}

/* Testimonial cards */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

/* Mobile nav links */
.mobile-nav-link {
    display: block;
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23717680' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .service-card,
    .testimonial-card,
    .gallery-item,
    .btn-coral,
    .service-card > div,
    .gallery-item img {
        transition: none;
    }

    .service-card:hover,
    .testimonial-card:hover,
    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .btn-coral:hover {
        transform: none;
    }
}

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

/* Selection color */
::selection {
    background: #f9c8bc;
    color: #773124;
}
