/* ===== CUSTOM OVERRIDES & ENHANCEMENTS ===== */

/* Smooth focus styles */
*:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Custom select arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237B2D3B' 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 12px center;
    padding-right: 40px;
}

/* Subtle hover lift for cards */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-4px);
}

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 1px 20px -4px rgba(123, 45, 59, 0.1) !important;
}

.nav-scrolled .nav-link {
    color: #4f4740 !important;
}

.nav-scrolled .nav-link:hover {
    color: #7B2D3B !important;
    background: rgba(253, 240, 242, 0.8) !important;
}

/* Mobile menu animation */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Active nav link */
.nav-link.active {
    color: #7B2D3B !important;
    background: rgba(253, 240, 242, 0.8) !important;
}

/* Selection color */
::selection {
    background: #f8c3cc;
    color: #4e0f18;
}

/* Smooth image loading */
img {
    loading: lazy;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .animate-float,
    .animate-float-delayed,
    .animate-float-slow {
        animation: none !important;
    }
}

/* Print styles */
@media print {
    nav, #back-to-top, .animate-float, .animate-float-delayed, .animate-float-slow {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
