/* Custom styles for DeRidder Property Partner */

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

/* Navbar scroll effect */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(30, 32, 39, 0.08);
}

/* Hero image parallax-like effect */
#hero img {
    transition: transform 0.6s ease;
}

#hero:hover img {
    transform: scale(1.02);
}

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

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

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(30, 32, 39, 0.08);
}

/* Fade-in animations for below-fold sections */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: no-preference) {
    .fade-in-section {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

#mobile-menu.open {
    max-height: 400px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Subtle gradient backgrounds */
.bg-acadiana-gradient {
    background: linear-gradient(135deg, #fff5f2 0%, #f6f6f7 50%, #ffece5 100%);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #9fa1a7;
}

/* Selection color */
::selection {
    background-color: #ffd5c8;
    color: #1e2027;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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