/* ========================================
   Famous Wings — Custom Styles
   Charcoal + Coral | Clean Minimalist
   ======================================== */

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

/* --- Hero Animations (above the fold — always visible) --- */
.hero-eyebrow {
    opacity: 1;
    animation: fadeDown 0.8s ease forwards;
}

.hero-title {
    opacity: 1;
    animation: fadeUp 0.9s ease 0.15s forwards;
    opacity: 0;
}

.hero-sub {
    opacity: 1;
    animation: fadeUp 0.9s ease 0.3s forwards;
    opacity: 0;
}

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

.hero-image {
    opacity: 1;
    animation: fadeUp 1s ease 0.6s forwards;
    opacity: 0;
}

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

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

/* --- Scroll Reveal (below fold — progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .section-eyebrow,
    .section-title,
    .section-sub,
    .menu-card,
    .value-card,
    .about-eyebrow,
    .about-title,
    .about-image,
    .visit-eyebrow,
    .visit-title {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .menu-card:nth-child(1) { transition-delay: 0s; }
    .menu-card:nth-child(2) { transition-delay: 0.1s; }
    .menu-card:nth-child(3) { transition-delay: 0.2s; }
    .menu-card:nth-child(4) { transition-delay: 0.3s; }

    .value-card:nth-child(1) { transition-delay: 0s; }
    .value-card:nth-child(2) { transition-delay: 0.1s; }
    .value-card:nth-child(3) { transition-delay: 0.2s; }

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

/* --- Menu Card Hover --- */
.menu-card {
    transform: translateY(0);
}

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

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

#mobileMenu .mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }

/* --- Mobile Menu Button Animation --- */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

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

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

/* --- Navbar Scroll State --- */
#navbar.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

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

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

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

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

/* --- Selection --- */
::selection {
    background: rgba(232, 106, 76, 0.15);
    color: #1A1A1A;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #E86A4C;
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Image Loading --- */
img {
    background-color: #f5f5f4;
}

/* --- Form Success Message --- */
.form-success {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-success.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Print Styles --- */
@media print {
    #navbar, #mobileMenu, .hero-image, .visit-map iframe {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    section {
        page-break-inside: avoid;
    }
}
