/* Base styles and custom utilities */
html {
    scroll-behavior: smooth;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(250, 248, 245, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-text {
    color: #332d28 !important;
}

.navbar-scrolled .nav-link {
    color: #5e5248 !important;
}

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

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

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

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

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

/* Selection color */
::selection {
    background: #f9c4a8;
    color: #462110;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #A04820;
    outline-offset: 2px;
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Image placeholder fallback */
img {
    background: linear-gradient(135deg, #e6e0d8 0%, #d1c7ba 100%);
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: #f49d72 !important;
    box-shadow: 0 0 0 3px rgba(244, 157, 114, 0.15);
}

/* Print styles */
@media print {
    nav,
    #contact-form,
    .reveal {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}
