/* ===== Base & Utilities ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(184, 84, 70, 0.2);
    color: inherit;
}

/* ===== Scroll Reveal ===== */
.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(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .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; }
}

/* ===== Hero Animations ===== */
@media (prefers-reduced-motion: no-preference) {
    .hero-eyebrow {
        animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s both;
    }
    
    .hero-headline {
        animation: slideInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.35s both;
    }
    
    .hero-subtext {
        animation: slideInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s both;
    }
    
    .hero-ctas {
        animation: slideInUp 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.65s both;
    }
    
    .hero-scroll {
        animation: fadeIn 1s ease 1.2s both;
    }
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Navbar Scroll State ===== */
.navbar-scrolled {
    background-color: rgba(243, 241, 235, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.navbar-scrolled .nav-brand-text,
.navbar-scrolled .nav-sub-text,
.navbar-scrolled .nav-link {
    color: #1c1917 !important;
}

.navbar-scrolled .mobile-link {
    color: #1c1917 !important;
}

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

body.menu-open {
    overflow: hidden;
}

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

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

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

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

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #B85446;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Print Styles ===== */
@media print {
    nav, #contact-form, .hero-scroll { display: none; }
    body { background: white; color: black; }
    .bg-stone-900, .bg-terracotta-500 { background: white !important; color: black !important; }
}
