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

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

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

::selection {
    background: #e9b5a3;
    color: #5d3225;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .font-display {
    color: #1c1917 !important;
}

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

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

#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; }

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

/* Hamburger animation */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.25rem;
}

/* ===== HERO ===== */
.hero-eyebrow {
    opacity: 1;
    animation: fadeIn 0.8s ease 0.3s both;
}

h1 {
    opacity: 1;
    animation: fadeIn 0.8s ease 0.5s both;
}

h1 p,
h1 ~ p {
    opacity: 1;
    animation: fadeIn 0.8s ease 0.7s both;
}

h1 ~ p {
    animation-name: fadeIn;
    animation-delay: 0.7s;
    animation-fill-mode: both;
}

main > section:first-of-type > div > div > div h1 ~ p {
    opacity: 1;
    animation: fadeIn 0.8s ease 0.7s both;
}

.hero-cta-group {
    opacity: 1;
    animation: fadeIn 0.8s ease 0.9s both;
}

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

/* ===== ABOUT SECTION ===== */
.about-img-main {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.7s ease, box-shadow 0.7s ease;
}

.about-img-float {
    opacity: 1;
    transform: translate(0, 0);
    transition: transform 0.7s ease 0.2s;
}

.about-text > * {
    opacity: 1;
}

.about-img-main:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* ===== MENU CARDS ===== */
.menu-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

/* ===== ATMOSPHERE IMAGES ===== */
.atmosphere-img {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.atmosphere-img:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

/* ===== SCROLL REVEAL (below fold only, progressive enhancement) ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@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 {
        opacity: 1;
        transform: none;
    }

    .atmosphere-img img,
    .about-img-main,
    .about-img-float,
    .menu-card {
        transition: none;
    }

    .atmosphere-img:hover img {
        transform: none;
    }
}

/* ===== FORM STYLES ===== */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
    outline: 2px solid #c2704e;
    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;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .font-display {
        font-size: 1.75rem;
    }
}
