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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========== SCROLL REVEAL ========== */
.scroll-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);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(32px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .scroll-reveal.delay-1 { transition-delay: 0.1s; }
    .scroll-reveal.delay-2 { transition-delay: 0.2s; }
    .scroll-reveal.delay-3 { transition-delay: 0.3s; }
    .scroll-reveal.delay-4 { transition-delay: 0.4s; }
}

/* ========== NAVBAR ========== */
.navbar-scrolled {
    background: rgba(253, 249, 243, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(27, 67, 50, 0.08);
}

.nav-text {
    color: #1B4332;
}

.navbar-scrolled .nav-text {
    color: #1B4332;
}

.navbar-scrolled .nav-link {
    color: #1B4332;
}

.navbar-scrolled .nav-link:hover {
    color: #0f251c;
}

/* ========== MOBILE MENU ========== */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

.mobile-nav-link:hover {
    background-color: rgba(27, 67, 50, 0.08);
}

/* ========== HERO SCROLL INDICATOR ========== */
.hero-scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ========== MENU ITEM HOVER ========== */
.menu-item-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.menu-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ========== GALLERY IMAGE ========== */
.gallery-img {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-img:hover {
    transform: scale(1.05);
}

/* ========== FORM INPUTS ========== */
.form-input {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: rgba(212, 165, 116, 0.5);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.15);
}

/* ========== BUTTON TRANSITIONS ========== */
.btn-primary {
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    transition: background-color 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(27, 67, 50, 0.15), transparent);
}

/* ========== CUSTOM SELECTION ========== */
::selection {
    background-color: rgba(27, 67, 50, 0.2);
    color: #1B4332;
}

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
}

/* ========== UTILITY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
