/* === Base & Typography === */
html {
    scroll-behavior: smooth;
}

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

::selection {
    background-color: #C05A45;
    color: #F9F7F4;
}

/* === Scroll Reveal Animations === */
.reveal-up {
    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-left {
    opacity: 1;
    transform: translateX(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-right {
    opacity: 1;
    transform: translateX(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);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-up, .reveal-left, .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .animate-bounce {
        animation: none;
    }
}

/* Scroll-triggered reveals (progressive enhancement) */
.reveal-up.is-hidden,
.reveal-left.is-hidden,
.reveal-right.is-hidden {
    opacity: 0;
}

.reveal-up.is-hidden {
    transform: translateY(40px);
}

.reveal-left.is-hidden {
    transform: translateX(-40px);
}

.reveal-right.is-hidden {
    transform: translateX(40px);
}

/* === Hero Animations === */
.hero-eyebrow {
    animation: fadeSlideDown 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
}

.hero-headline {
    animation: fadeSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s both;
}

.hero-subtext {
    animation: fadeSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s both;
}

.hero-ctas {
    animation: fadeSlideUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s both;
}

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

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Navbar Transition === */
.nav-scrolled {
    background-color: rgba(44, 44, 44, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.nav-scrolled .nav-link {
    color: rgba(249, 247, 244, 0.85) !important;
}

/* === Form Styles === */
input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #C05A45 !important;
}

input::-webkit-calendar-picker-indicator {
    filter: invert(0.4);
    cursor: pointer;
}

/* === Button Focus States === */
button:focus-visible,
a:focus-visible {
    outline: 2px solid #C05A45;
    outline-offset: 2px;
}

/* === Smooth Image Loading === */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: #2C2C2C;
}

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

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