/* ===== Base & Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    background-color: #fefcf7;
}

::selection {
    background-color: #f5c4b0;
    color: #672d22;
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(254, 252, 247, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(180, 168, 146, 0.2);
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #d46b43 !important;
}

/* Mobile menu */
#mobile-menu.active {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.active .mobile-link {
    animation: fadeUp 0.5s ease-out forwards;
}

#mobile-menu.active .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.active .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.active .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.active .mobile-link:nth-child(4) { animation-delay: 0.25s; }

.menu-line {
    transition: all 0.3s ease;
}

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

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

#menu-btn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.25rem;
}

/* ===== Hero ===== */
.hero-subtitle {
    opacity: 0;
}

.hero-title {
    opacity: 0;
}

.hero-desc {
    opacity: 0;
}

.hero-ctas {
    opacity: 0;
}

.hero-pills {
    opacity: 0;
}

/* ===== Section Animations ===== */
.section-label {
    opacity: 0;
}

.section-title {
    opacity: 0;
}

.section-desc {
    opacity: 0;
}

.section-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Menu Cards ===== */
.menu-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -20px rgba(212, 107, 67, 0.15);
}

/* ===== Gallery ===== */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

/* ===== About Images ===== */
.about-img-main {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-img-main.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== CTA ===== */
.cta-section .section-anim {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-section .section-anim.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Button Hover Effects ===== */
button, a {
    transition: all 0.3s ease;
}

/* ===== Smooth Scroll Offset ===== */
section[id] {
    scroll-margin-top: 80px;
}

/* ===== Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d46b43;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== 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;
    }
    .section-anim,
    .gallery-item,
    .about-img-main {
        opacity: 1;
        transform: none;
    }
}

/* ===== Tablet ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-title br {
        display: none;
    }
    
    #hero {
        padding-top: 100px;
    }
    
    .main-img-wrapper {
        margin-top: 2rem;
    }
    
    .about-img-main {
        margin-bottom: 4rem;
    }
}

/* ===== Small Mobile ===== */
@media (max-width: 380px) {
    .hero-title {
        font-size: 2.25rem !important;
    }
    
    .hero-ctas {
        flex-direction: column;
    }
    
    .hero-ctas a {
        width: 100%;
        justify-content: center;
    }
}
