/* ============================================
   Schleicher's Family Restaurant
   Bold Editorial Style — Burgundy & Blush
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

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

::-webkit-scrollbar-track {
    background: #2a090e;
}

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

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

/* ---- Navbar ---- */
#navbar {
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(42, 9, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #f5d5c8, #f5a8b8);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: #fff;
}

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

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

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

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

/* Hamburger Animation */
#menuBtn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.25rem;
    margin-right: 0;
}

/* ---- Hero Section ---- */
.hero-bg {
    will-change: transform;
}

.hero-overlay {
    pointer-events: none;
}

.hero-label {
    animation: fadeUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero-headline {
    animation: fadeUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeUp 0.8s ease 0.7s forwards;
    opacity: 0;
}

.hero-ctas {
    animation: fadeUp 0.8s ease 0.9s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeIn 0.8s ease 1.2s forwards;
    opacity: 0;
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

/* ---- Reveal Animations ---- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ---- Parallax ---- */
.parallax-bg {
    will-change: transform;
}

/* ---- Menu Cards ---- */
.reveal .group {
    transition-delay: calc(var(--index, 0) * 0.1s);
}

/* ---- Button Hover Effects ---- */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ---- Form Styles ---- */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.1);
}

/* ---- Selection Color ---- */
::selection {
    background: #7B2D3B;
    color: #fce7eb;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .font-serif.text-5xl {
        font-size: 2.75rem;
    }
    
    .font-serif.text-4xl {
        font-size: 2.25rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .font-serif.text-6xl {
        font-size: 4rem;
    }
}

/* ---- Print Styles ---- */
@media print {
    #navbar, .hero-scroll, button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
}
