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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #f9c5cd;
    color: #7B2D3B;
}

/* ===== Section Eyebrow ===== */
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7B2D3B;
    background: linear-gradient(90deg, #fdf0f2, #fce4e8);
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid #f9c5cd;
}

.section-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #7B2D3B;
    border-radius: 50%;
    display: inline-block;
}

/* ===== Animations ===== */
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 50px) scale(1.05); }
}

.animate-blob {
    animation: blob 8s ease-in-out infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

.animate-scroll-line {
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-eyebrow {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

h1, .hero-image-wrap {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-image-wrap {
    animation: fadeInRight 0.9s ease-out 0.4s forwards;
}

.menu-card {
    animation: fadeInUp 0.7s ease-out forwards;
    opacity: 0;
}

.menu-card:nth-child(1) { animation-delay: 0.1s; }
.menu-card:nth-child(2) { animation-delay: 0.25s; }
.menu-card:nth-child(3) { animation-delay: 0.4s; }

.about-images {
    animation: fadeInLeft 0.9s ease-out 0.2s forwards;
    opacity: 0;
}

/* ===== Scroll-triggered animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    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; }

/* ===== Navbar ===== */
#navbar {
    background: rgba(254, 253, 248, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(123, 45, 59, 0.06);
}

#navbar.scrolled {
    background: rgba(254, 253, 248, 0.95);
    box-shadow: 0 4px 30px rgba(123, 45, 59, 0.08);
}

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

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-link:nth-child(3) { transition-delay: 0.2s; }

/* ===== Menu Card Image Hover ===== */
.menu-card img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== Smooth Image Loading ===== */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf9ee;
}

::-webkit-scrollbar-thumb {
    background: #f9c5cd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ec6172;
}

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

/* ===== Responsive tweaks ===== */
@media (max-width: 768px) {
    .section-eyebrow {
        font-size: 0.6875rem;
    }

    #hero h1 {
        font-size: 2.25rem;
    }

    @media (min-width: 768px) {
        #hero h1 {
            font-size: 3rem;
        }
    }

    @media (min-width: 1024px) {
        #hero h1 {
            font-size: 3.75rem;
        }
    }
}

/* ===== Print Styles ===== */
@media print {
    #navbar, .animate-blob, .animate-float, .animate-scroll-line {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
