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

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

body {
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF9F3;
}
::-webkit-scrollbar-thumb {
    background: #D49A4E;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C0603A;
}

/* ===== NAVBAR SHADOW ON SCROLL ===== */
#site-header.scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(58, 31, 14, 0.08);
}

/* ===== NAV LINKS ===== */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C0603A;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* ===== MOBILE NAV LINKS ===== */
.mobile-nav-link {
    position: relative;
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(224, 200, 150, 0.2);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-nav-link:hover {
    color: #C0603A;
    padding-left: 0.75rem;
}

.mobile-nav-link:last-of-type {
    border-bottom: none;
}

/* ===== MENU ITEM HOVER ===== */
.group:hover .group-hover\:text-terra-600 {
    color: #a84e2e;
}

/* ===== PLAIN TEXT INDENT FOR ADDRESS BLOCKS ===== */
.pl-13 {
    padding-left: 3.25rem;
}

/* ===== SCROLL REVEAL (progressive enhancement — JS only) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ===== REDUCED MOTION — always show content ===== */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== HERO DOT PATTERN ANIMATION ===== */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.02); }
}

/* ===== IMAGE STRIP HOVER ===== */
.aspect-square {
    will-change: transform;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
    outline: 2px solid #C0603A;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== RESPONSIVE FINE-TUNING ===== */
@media (max-width: 767px) {
    .pl-13 {
        padding-left: 2.5rem;
    }
}
