/* Custom styles and overrides */

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

/* Base font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal base state - visible by default for progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scroll reveal hidden state - only applied when JS adds the class */
.reveal.revealed {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal {
        transition: none;
    }
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
    .animate-bounce {
        animation: none;
    }
}

/* Custom animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

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

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(250, 248, 245, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav-scrolled .nav-text-color {
    color: #3d1208 !important;
}

.nav-scrolled .nav-text-sub {
    color: #8d6e47 !important;
}

.nav-scrolled .nav-link {
    color: #8d6e47 !important;
}

.nav-scrolled .nav-link:hover {
    color: #c4431e !important;
}

/* Hero section text colors for transparent nav */
#hero .nav-text-color {
    color: #3d1208;
}

#hero .nav-text-sub {
    color: #8d6e47;
}

#hero .nav-link {
    color: #8d6e47;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* 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='%238d6e47' 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;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Subtle card hover lift */
.group:hover {
    transform: translateY(-4px);
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #c4431e;
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background-color: #f9d0b8;
    color: #6b2917;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #faf8f5;
}

::-webkit-scrollbar-thumb {
    background: #d4ba92;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c4a172;
}
