/* ========================================
   Le Corsaire Parlor — Custom Styles
   ======================================== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f5f0f7;
}
::-webkit-scrollbar-thumb {
    background: #4A1942;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b3a6b;
}

/* Selection color */
::selection {
    background: #D4A84B;
    color: #2a0d28;
}

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

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

/* Nav links underline animation */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #D4A84B;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile nav links */
.mobile-nav-link {
    padding: 8px 0;
    border-bottom: 1px solid #ebe0f0;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Floating card animations */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
}

.floating-card-1 {
    animation: float-1 4s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-2 5s ease-in-out infinite;
}

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Staggered reveal delays */
    .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; }
    .reveal-delay-5 { transition-delay: 0.5s; }
    .reveal-delay-6 { transition-delay: 0.6s; }
}

/* Service card hover glow */
.group:hover .w-14 {
    box-shadow: 0 0 30px rgba(212, 168, 75, 0.3);
}

/* Image hover overlay */
.overflow-hidden {
    position: relative;
}

.overflow-hidden::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 25, 66, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.overflow-hidden:hover::after {
    opacity: 1;
}

/* Button focus styles */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #D4A84B;
    outline-offset: 2px;
}

/* 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='%234A1942' stroke-width='2'%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;
}

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

#mobile-menu.open {
    max-height: 400px;
    opacity: 1;
}

/* Decorative divider */
.divider-amber {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4A84B, #eebf4a);
    border-radius: 2px;
}

/* Print styles */
@media print {
    #navbar, .floating-card-1, .floating-card-2 {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
