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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #8B4537;
    color: #FAF6F0;
}

/* ========== NAVBAR ========== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(139, 69, 55, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile menu animation */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-line.active:nth-child(2) {
    opacity: 0;
}

.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 28px;
}

/* ========== HERO ========== */
.hero-content {
    opacity: 1;
    transform: none;
}

.hero-image-wrapper {
    overflow: hidden;
}

.hero-image-wrapper img {
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-wrapper:hover img {
    transform: scale(1.03);
}

/* ========== DIVIDER ========== */
.divider-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #e4c4a8, transparent);
    margin: 0 auto;
}

/* ========== REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-reveal-delay="2"] {
    transition-delay: 0.2s;
}

.reveal[data-reveal-delay="3"] {
    transition-delay: 0.3s;
}

.reveal[data-reveal-delay="4"] {
    transition-delay: 0.4s;
}

/* ========== MENU ITEMS ========== */
.menu-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e8d5c4, transparent);
    margin: 0 -0.5rem;
}

.menu-item {
    opacity: 1;
}

.menu-item:hover h4 {
    color: #8B4537;
    transition: color 0.3s ease;
}

.menu-item h4 {
    transition: color 0.3s ease;
}

/* ========== GALLERY ========== */
.gallery-item {
    opacity: 1;
}

.gallery-item img {
    will-change: transform;
}

/* ========== BUTTONS ========== */
button, a[type="submit"] {
    cursor: pointer;
}

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #8B4537;
    outline-offset: 2px;
}

/* ========== FORM ========== */
input:focus, textarea:focus {
    border-color: #8B4537;
    box-shadow: 0 0 0 3px rgba(139, 69, 55, 0.1);
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal[data-reveal] {
        opacity: 1;
        transform: none;
    }

    .gallery-item img {
        transition: none;
    }

    .hero-image-wrapper img {
        transition: none;
    }
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.1;
    }

    #hero {
        min-height: auto;
        padding-top: 80px;
    }

    #hero .grid {
        flex-direction: column-reverse;
    }

    #hero .order-1 {
        order: 1;
    }

    #hero .order-2 {
        order: 2;
    }

    #hero .min-h-screen {
        min-height: 60vh;
    }

    .hero-image-wrapper {
        min-height: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero .grid {
        gap: 0;
    }
}

/* ========== FOCUS VISIBLE ========== */
a:focus-visible, button:focus-visible {
    outline: 2px solid #8B4537;
    outline-offset: 3px;
    border-radius: 2px;
}
