/* ===== Base & Typography ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: #b04040;
    color: #fff;
}

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

#navbar.scrolled {
    background: rgba(253, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(176, 64, 64, 0.08);
}

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

#mobile-menu.open .mobile-link {
    animation: fadeSlideDown 0.4s ease forwards;
    opacity: 0;
}

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

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Menu toggle animation */
#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}
#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* ===== Marquee ===== */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Hero Animations ===== */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-image-main {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImgIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-image-float {
    opacity: 0;
    transform: scale(0.85) rotate(6deg);
    animation: heroFloatIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroImgIn {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroFloatIn {
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ===== Section Headers ===== */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ===== Menu Cards ===== */
.menu-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

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

/* ===== Process Cards ===== */
.process-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Visit Section ===== */
#visit > div > div:first-child > div {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

#visit > div > div:first-child > div.visible {
    opacity: 1;
    transform: translateX(0);
}

#visit > div > div:last-child {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

#visit > div > div:last-child.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== Contact Section ===== */
#contact > div > div:first-child > div {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

#contact > div > div:first-child > div.visible {
    opacity: 1;
    transform: translateY(0);
}

#contact > div > div:last-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

#contact > div > div:last-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== 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;
    }
    
    .hero-content,
    .hero-image-main,
    .hero-image-float {
        opacity: 1;
        transform: none;
        animation: none;
    }
    
    .section-header,
    .menu-card,
    .about-images,
    .about-content,
    .process-card {
        opacity: 1;
        transform: none;
    }
}
