/* ========================================
   Airport Cafe — Custom Styles
   Burgundy & Blush Editorial Design
   ======================================== */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #7B2D3B;
    color: #FDF6F0;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a1219;
}

/* --- Hero Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(6px); }
}

.hero-tag {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-headline {
    animation: fadeInUp 0.9s ease-out 0.4s both;
}

.hero-subtitle {
    animation: fadeInUp 0.9s ease-out 0.6s both;
}

.hero-ctas {
    animation: fadeInUp 0.9s ease-out 0.8s both;
}

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

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

/* --- Navbar --- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 244, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 59, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

/* --- Feature Items --- */
.feature-item {
    position: relative;
}

.feature-item:not(:last-child) {
    border-right: 1px solid rgba(245, 216, 196, 0.15);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* --- Menu Section --- */
.menu-category {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(123, 45, 59, 0.08);
}

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

.menu-item::before {
    content: '';
    display: block;
    height: 1px;
    width: 0;
    background: linear-gradient(to right, #7B2D3B, transparent);
    transition: width 0.4s ease;
}

.menu-item:hover::before {
    width: 100%;
}

/* --- About Section --- */
.about-image-wrapper {
    position: relative;
}

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

.about-stat {
    opacity: 1;
}

/* --- Gallery --- */
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 18, 25, 0.3), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Visit Section --- */
.visit-card {
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.visit-card:hover {
    transform: translateY(-4px);
}

/* --- Contact Form --- */
.contact-input {
    transition: all 0.3s ease;
}

.contact-input:focus {
    box-shadow: 0 0 0 4px rgba(123, 45, 59, 0.06);
}

.contact-submit {
    position: relative;
    overflow: hidden;
}

.contact-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.contact-submit:hover::before {
    left: 100%;
}

/* --- Scroll Reveal (Progressive Enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.revealed {
        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; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* Default state: content always visible */
.reveal {
    opacity: 1;
    transform: none;
}

/* --- Button Styles --- */
.btn-primary {
    box-shadow: 0 4px 20px rgba(123, 45, 59, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(123, 45, 59, 0.4);
}

/* --- Section Tags --- */
.menu-tag, .gallery-tag, .visit-tag, .contact-tag, .about-tag {
    letter-spacing: 0.2em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 3rem;
    }

    .hero-headline br {
        display: none;
    }

    .hero-headline::after {
        content: '';
    }

    .menu-title, .gallery-title, .visit-title, .contact-title, .cta-title {
        font-size: 3rem;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .feature-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(245, 216, 196, 0.15);
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

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

@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .menu-title, .gallery-title, .visit-title, .contact-title, .cta-title {
        font-size: 2.5rem;
    }
}

/* --- Print --- */
@media print {
    #navbar, .scroll-indicator {
        display: none;
    }

    .hero-bg img {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}
