/* === Custom Styles for Lacoure Brothers === */

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

/* === Navbar transitions === */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(26, 39, 68, 0.08);
}

#navbar.scrolled .nav-link {
    color: #1a2744;
}

#navbar.scrolled .menu-line {
    background: #1a2744;
}

/* === Mobile menu animations === */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobile-menu.open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
#mobile-menu.open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }

/* === Service card hover effects === */
.service-card {
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(26, 39, 68, 0.2);
}

/* === Gallery image transitions === */
.group img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Scroll-triggered animations === */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* === Hero parallax-like effect === */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.4) 0%, transparent 60%);
    z-index: 1;
}

#hero > *:not(.absolute) {
    position: relative;
    z-index: 2;
}

/* === Selection color === */
::selection {
    background: #d4a84b;
    color: #1a2744;
}

/* === Custom scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #b3bdd6;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8d9ac3;
}

/* === Input focus animation === */
input:focus, textarea:focus, select:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

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

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* === Mobile menu line animation === */
.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
}

/* === Footer link hover underline === */
footer a {
    position: relative;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #d4a84b;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}
