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

body {
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf5f7;
}
::-webkit-scrollbar-thumb {
    background: #a34d65;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8a3750;
}

/* Selection */
::selection {
    background: #d97706;
    color: #2a1019;
}

/* Reveal animations - progressive enhancement */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.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);
    }
}

/* Hero entrance animations */
@media (prefers-reduced-motion: no-preference) {
    #hero-eyebrow {
        opacity: 0;
        animation: fadeUp 0.8s ease forwards 0.3s;
    }
    #hero-headline {
        opacity: 0;
        animation: fadeUp 0.8s ease forwards 0.5s;
    }
    #hero-sub {
        opacity: 0;
        animation: fadeUp 0.8s ease forwards 0.7s;
    }
    #hero-cta {
        opacity: 0;
        animation: fadeUp 0.8s ease forwards 0.9s;
    }
}

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

/* Navbar transition */
.nav-scrolled {
    background: rgba(42, 16, 25, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-transparent {
    background: transparent !important;
}

/* Image placeholder fallback */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    nav, #contact-form, .animate-bounce {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
