/* ===== Custom Styles for Coen Brothers ===== */

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

/* Hero diagonal clip */
.clip-diagonal {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
}

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

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

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

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

/* Service card stagger animation (progressive enhancement) */
.service-card,
.testimonial-card {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .service-card {
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    background 0.3s ease,
                    box-shadow 0.3s ease;
    }

    .testimonial-card {
        transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.3s ease;
    }

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

/* Scroll reveal (progressive enhancement — only when JS runs and user prefers motion) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #D4A017;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #F5F0F7;
}
::-webkit-scrollbar-thumb {
    background: #BA92B8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #9B649A;
}

/* Selection color */
::selection {
    background: #D4A017;
    color: #240A1F;
}

/* Form select dropdown styling */
select {
    appearance: none;
    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='%237D3C7D' 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;
}

/* Print styles */
@media print {
    #navbar, #mobile-menu, .service-card, .testimonial-card {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
