/* ── Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 148, 74, 0.3);
    color: #F7F0F9;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1E0B1C;
}
::-webkit-scrollbar-thumb {
    background: #4A1942;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #69267B;
}

/* ── Navigation ── */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(30, 11, 28, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(74, 25, 66, 0.3);
}

.nav-link {
    position: relative;
}

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

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

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

#mobile-menu.open .mobile-link {
    animation: fadeUp 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 fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

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

/* ── Hero Animations ── */
.hero-badge {
    animation: slideUp 0.8s ease 0.2s both;
}

.hero-title {
    animation: slideUp 0.8s ease 0.4s both;
}

.hero-subtitle {
    animation: slideUp 0.8s ease 0.6s both;
}

.hero-cta {
    animation: slideUp 0.8s ease 0.8s both;
}

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

/* ── Floating Cards ── */
.floating-card {
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    animation-delay: 0s;
}

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

.card-3 {
    animation-delay: -4s;
}

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

/* ── Decorative Lines ── */
.hero-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, rgba(212, 148, 74, 0.08), transparent);
    width: 1px;
}

.line-1 {
    top: 0;
    left: 20%;
    height: 100%;
    animation: lineGrow 1.5s ease 1s both;
}

.line-2 {
    top: 0;
    right: 30%;
    height: 100%;
    animation: lineGrow 1.5s ease 1.2s both;
}

.line-3 {
    top: 0;
    left: 50%;
    height: 100%;
    animation: lineGrow 1.5s ease 1.4s both;
}

@keyframes lineGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 100%;
        opacity: 1;
    }
}

/* ── Scroll Indicator ── */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .floating-card {
        animation: none;
    }
    .hero-badge, .hero-title, .hero-subtitle, .hero-cta {
        animation: none;
        opacity: 1;
    }
    .hero-line {
        animation: none;
        height: 100%;
        opacity: 1;
    }
    .scroll-line {
        animation: none;
        opacity: 0.5;
    }
}

/* ── Menu Tabs ── */
.tab-btn {
    color: #D9BFE5;
    background: transparent;
}

.tab-btn.active {
    color: #1E0B1C;
    background: #D4944A;
}

.tab-btn:not(.active):hover {
    color: #F0BC70;
}

/* ── Menu Items ── */
.menu-item {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(74, 25, 66, 0.3);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Form ── */
#reserve-form input:focus,
#reserve-form select:focus,
#reserve-form textarea:focus {
    border-color: rgba(212, 148, 74, 0.6) !important;
    box-shadow: 0 0 0 1px rgba(212, 148, 74, 0.2);
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .font-serif.text-5xl,
    .font-serif.text-6xl {
        font-size: 2.5rem;
    }
}
