/* ===== Base & Utilities ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #b5654a;
    color: #FDF8F0;
}

/* ===== Scroll Reveal (progressive enhancement) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }
    
    .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; }
}

/* ===== Navbar ===== */
.navbar-scrolled {
    background: rgba(253, 248, 240, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(60, 36, 21, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #3C2415 !important;
}

.navbar-scrolled .nav-link {
    color: rgba(60, 36, 21, 0.7) !important;
}

.navbar-default .nav-link {
    color: rgba(60, 36, 21, 0.65) !important;
}

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

body.menu-open {
    overflow: hidden;
}

/* ===== Button & Link Transitions ===== */
a, button {
    transition: all 0.25s ease;
}

/* ===== Form Styles ===== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ===== Custom Scrollbar ===== */
@media (min-width: 768px) {
    ::-webkit-scrollbar {
        width: 8px;
    }
    ::-webkit-scrollbar-track {
        background: #FDF8F0;
    }
    ::-webkit-scrollbar-thumb {
        background: #d4b065;
        border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: #b5654a;
    }
}

/* ===== Print Styles ===== */
@media print {
    nav, #contact-form, iframe {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
