/*
Hero Section - Landing page hero with floating food images
Large heading, subheading, CTA buttons, and animated decorations
*/

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    overflow: visible; /* Allow floating elements to overflow */
    padding-top: 140px; /* Account for fixed nav */
    padding-bottom: var(--space-4xl);
}

/* Hero container - two column layout */
.hero-container {
    position: relative;
    z-index: 10; /* Above floating images */
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

/* ========== HERO CONTENT ========== */
.hero-content {
    text-align: left;
    max-width: 600px;
}

/* Hero heading */
.hero-heading {
    font-size: var(--text-7xl);
    font-family: var(--font-heading);
    font-weight: var(--font-black);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-xl);
    color: var(--foreground);
}

/* Hero subheading */
.hero-subheading {
    font-size: var(--text-xl);
    line-height: var(--leading-normal);
    color: var(--muted-foreground);
    max-width: 500px;
    margin: 0 0 var(--space-3xl) 0;
}

/* CTA buttons row */
.hero-cta-buttons {
    display: flex;
    gap: var(--space-lg);
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

/* ========== HERO GALLERY ========== */
/* Image gallery on the right side */
.hero-gallery {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-left: auto;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base);
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-float);
}

/* Positioning for collage effect with floating animations */
.gallery-img-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    animation: float 6s ease-in-out infinite;
}

.gallery-img-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    animation: wave 7s ease-in-out infinite;
    animation-delay: 0.5s;
    z-index: 2;
}

.gallery-img-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    animation: float-reverse 8s ease-in-out infinite;
    animation-delay: 1s;
}


/* ========== RESPONSIVE DESIGN ========== */

/* Tablet and below */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-3xl);
    }
    
    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-subheading {
        margin: 0 auto var(--space-3xl);
    }
    
    .hero-cta-buttons {
        justify-content: center;
    }
    
    .hero-gallery {
        max-width: 400px;
        margin: 0 auto; /* Center the gallery on mobile */
        order: -1; /* Move gallery above content on mobile */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-heading {
        font-size: var(--text-5xl);
    }
    
    .hero-subheading {
        font-size: var(--text-lg);
        margin-bottom: var(--space-2xl);
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-gallery {
        max-width: 350px;
        margin: 0 auto; /* Keep centered on mobile */
        gap: var(--space-sm);
    }
    
}

/* Mobile only */
@media (max-width: 640px) {
    .hero-heading {
        font-size: var(--text-4xl);
    }
    
    .hero-subheading {
        font-size: var(--text-base);
    }
    
    .hero-cta-buttons .btn {
        width: 100%;
    }
    
    .hero-gallery {
        max-width: 300px;
        margin: 0 auto; /* Keep centered on small mobile */
    }
}

