/* Base & Utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Animations */
.hero-anim {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-anim {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .hero-anim:nth-child(1) { transition-delay: 0.2s; }
    .hero-anim:nth-child(2) { transition-delay: 0.4s; }
    .hero-anim:nth-child(3) { transition-delay: 0.6s; }
    .hero-anim:nth-child(4) { transition-delay: 0.8s; }
    .hero-anim:nth-child(5) { transition-delay: 1.0s; }
}

/* Navbar Transitions */
.nav-scrolled .nav-brand {
    color: rgb(255, 255, 255);
}

.nav-scrolled #navbar {
    background: rgba(42, 12, 29, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-scrolled #navbar a:not(.px-6):not(a[href^="tel"]) {
    color: rgba(255, 255, 255, 0.8);
}

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

/* Selection Color */
::selection {
    background: rgba(180, 83, 9, 0.2);
    color: rgb(79, 30, 66);
}

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

::-webkit-scrollbar-track {
    background: rgb(250, 245, 240);
}

::-webkit-scrollbar-thumb {
    background: rgb(212, 147, 190);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(144, 45, 102);
}

/* Image loading placeholder */
img {
    background-color: rgb(250, 245, 240);
}

/* Select dropdown 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='%23a83d7e' stroke-width='1.5' 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;
    appearance: none;
    -webkit-appearance: none;
}

/* Focus visible styles */
:focus-visible {
    outline: 1px solid rgb(251, 191, 36);
    outline-offset: 2px;
}

/* Reduced motion */
@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;
    }
}
