/* ========== BASE & RESET ========== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    overflow-x: hidden;
}

::selection {
    background: #B85C38;
    color: #fefcf8;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
        opacity: 0;
        transform: translateY(28px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== NAVIGATION ========== */
#site-header {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 168, 96, 0.15);
    transition: box-shadow 0.3s ease;
}

#site-header.scrolled {
    box-shadow: 0 4px 24px rgba(26, 22, 20, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ========== HERO FLOATING CARDS ========== */
@media (prefers-reduced-motion: no-preference) {
    .lg\:block\:relative > div:nth-child(2) {
        animation: float1 6s ease-in-out infinite;
    }
    .lg\:block\:relative > div:nth-child(3) {
        animation: float2 5s ease-in-out infinite;
    }
    .lg\:block\:relative > div:nth-child(4) {
        animation: float3 7s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ========== BUTTON HOVER GLOW ========== */
button:hover,
a:hover {
    outline: none;
}

/* ========== FORM FOCUS ========== */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ========== CUSTOM SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf6ec;
}
::-webkit-scrollbar-thumb {
    background: #d4a860;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B85C38;
}

/* ========== PRINT ========== */
@media print {
    #site-header, #mobile-menu, .reveal[data-reveal] {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
    }
    body {
        background: white;
        color: black;
    }
}
