/* ============================================
   Marley's Gourmet Grille & Catering Co.
   Custom Styles
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #9a2525;
    color: #fefdfb;
}

/* --- Navbar --- */
.nav-text {
    transition: color 0.3s ease;
}

.nav-subtext {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

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

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

.nav-link:hover {
    color: #9a2525;
}

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(254, 253, 251, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar-scrolled .nav-text,
.navbar-scrolled .nav-link {
    color: #1a1a1a !important;
}

.navbar-scrolled .nav-subtext {
    color: #9a2525 !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* --- Scroll Indicator --- */
@keyframes scrollIndicator {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(200%);
    }
}

.animate-scroll-indicator {
    animation: scrollIndicator 1.5s ease-in-out infinite;
}

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

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

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

.hero-tagline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-headline {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.25s;
    opacity: 0;
}

.hero-description {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.55s;
    opacity: 0;
}

.hero-quick-info {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    opacity: 0;
}

.hero-image-wrapper {
    animation: scaleIn 1s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

/* --- Scroll Reveal (below fold only) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* --- About Section --- */
.about-images {
    opacity: 1;
}

.about-content {
    opacity: 1;
}

/* --- Menu Section --- */
.menu-header {
    opacity: 1;
}

.menu-column {
    opacity: 1;
}

.menu-cta {
    opacity: 1;
}

/* --- Catering Section --- */
.catering-content {
    opacity: 1;
}

.catering-image {
    opacity: 1;
}

/* --- Gallery --- */
.gallery-header {
    opacity: 1;
}

.gallery-item {
    opacity: 1;
}

/* --- Quote Section --- */
.quote-section {
    opacity: 1;
}

/* --- Contact Section --- */
.contact-info {
    opacity: 1;
}

.contact-form-wrapper {
    opacity: 1;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero-tagline,
    .hero-headline,
    .hero-description,
    .hero-ctas,
    .hero-quick-info,
    .hero-image-wrapper {
        opacity: 1;
        animation: none;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #9a2525;
    outline-offset: 2px;
    border-radius: 2px;
}

/* --- Image Loading --- */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* --- Smooth Hover for Buttons --- */
button,
a {
    -webkit-tap-highlight-color: transparent;
}
