/* ============================================
   Gate Gourmet — Custom Styles
   Bold Editorial · Burgundy + Blush
   ============================================ */

/* --- Reset & 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;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #a02020;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7f1818;
}

/* --- Selection --- */
::selection {
    background: #a02020;
    color: #faf8f5;
}

/* --- Hero Animations --- */
.hero-tagline {
    animation: slideUp 0.8s ease forwards 0.2s;
}

.hero-title-line {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title-line:nth-child(1) { animation-delay: 0.3s; }
.hero-title-line:nth-child(2) { animation-delay: 0.45s; }
.hero-title-line:nth-child(3) { animation-delay: 0.6s; }
.hero-title-line:nth-child(4) { animation-delay: 0.75s; }

.hero-subtitle {
    animation: slideUp 0.8s ease forwards 0.9s;
}

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

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

/* --- Scroll Line Animation --- */
.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); }
}

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

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

#navbar.scrolled .nav-link {
    color: #1a1a1a;
}

/* --- Nav Link Underline --- */
.nav-link {
    position: relative;
}

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

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

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s 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-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* --- Menu Item Hover --- */
.menu-item {
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(160, 32, 32, 0.1);
}

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

/* --- Feature Card --- */
.feature-card {
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #a02020;
    transition: width 0.4s ease;
    z-index: 1;
}

.feature-card:hover::before {
    width: 100%;
}

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

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

/* --- Input Focus --- */
input:focus, select:focus, textarea:focus {
    border-color: #a02020 !important;
    box-shadow: 0 0 0 3px rgba(160, 32, 32, 0.1);
}

/* --- Button Ripple Effect --- */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title-line {
        font-size: 3.5rem !important;
    }

    @media (max-width: 480px) {
        .hero-title-line {
            font-size: 2.75rem !important;
        }
    }

    #navbar.scrolled {
        background: rgba(250, 248, 245, 0.98);
    }
}

/* --- Print --- */
@media print {
    #navbar, .scroll-line { display: none; }
    body { background: white; }
}
