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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* ========== SCROLL REVEAL (progressive enhancement) ========== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        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: translateY(0);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(168, 61, 32, 0.08);
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

/* ========== CUSTOM SELECTION ========== */
::selection {
    background-color: #fad3c3;
    color: #6f2c1b;
}

/* ========== SUBTLE GRADIENT OVERLAY FOR HERO IMG CARDS ========== */
.group::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top, rgba(74, 64, 56, 0.04) 0%, transparent 40%);
    pointer-events: none;
}

/* ========== BUTTON FOCUS STATES ========== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #e06b42;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ========== SMOOTH IMAGE LOADING ========== */
img {
    background-color: #ebe7dd;
}
