/* =====================================================
   BEEF MANIAC - HOME PAGE STYLES
   ===================================================== */

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-secondary);
    /* Offset the main padding-top so hero is truly full-screen */
    margin-top: -70px;
    padding-top: 70px;
}

@media (min-width: 768px) {
    .hero {
        margin-top: -80px;
        padding-top: 80px;
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        padding: var(--spacing-2xl) var(--spacing-xl);
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr auto;
        gap: var(--spacing-3xl);
    }
}

/* Hero Text */
.hero-text {
    color: var(--color-white);
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-text {
        text-align: left;
    }
}


.hero-slogan {
    font-size: var(--font-size-4xl);
    line-height: 1;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .hero-slogan {
        font-size: var(--font-size-5xl);
    }
}

@media (min-width: 1024px) {
    .hero-slogan {
        font-size: var(--font-size-6xl);
    }
}

.hero-headline {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: var(--font-size-2xl);
    }
}

.hero-subheadline {
    font-size: var(--font-size-base);
    color: var(--color-gray);
    margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
    .hero-subheadline {
        font-size: var(--font-size-lg);
    }
}

/* Hero Product */
.hero-product {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-product {
        justify-content: flex-end;
    }
}

.hero-product .product-card {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =====================================================
   PRODUCTS CAROUSEL SECTION
   ===================================================== */
.products-carousel-section {
    background-color: var(--color-white);
}

.products-carousel-section .container {
    text-align: center;
}

.products-carousel-section .btn-large {
    margin-top: var(--spacing-lg);
}

/* =====================================================
   BEHIND SCENES SECTION
   ===================================================== */
.behind-scenes-section {
    background-color: var(--color-off-white);
}

/* =====================================================
   SOCIAL SECTION
   ===================================================== */
.social-section {
    background-color: var(--color-white);
}

.social-section .container {
    text-align: center;
}

/* =====================================================
   HOME PAGE SPECIFIC OVERRIDES
   ===================================================== */

/* Ensure hero takes full viewport minus header */
@media (max-width: 767px) {
    .hero {
        min-height: 100vh;
        align-items: flex-start;
        margin-top: -70px;
        padding-top: 120px;
    }

    .hero-product .product-card.hero-featured {
        max-width: 100%;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero {
        min-height: calc(100vh - 80px);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-product {
        justify-content: center;
    }
}

/* =====================================================
   ADDITIONAL MOBILE OPTIMIZATIONS
   ===================================================== */

/* Small mobile improvements */
@media (max-width: 479px) {
    .hero {
        padding-top: 110px;
    }

    .hero-slogan {
        font-size: var(--font-size-3xl);
    }

    .hero-headline {
        font-size: var(--font-size-lg);
    }

    .hero-subheadline {
        font-size: var(--font-size-sm);
    }

    .hero-content {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    /* Hero product card mobile size */
    .hero-product .product-card.hero-featured {
        padding: var(--spacing-md);
    }

    .hero-product .product-card h3 {
        font-size: var(--font-size-base);
    }
}

/* Better mobile overlay for readability */
@media (max-width: 767px) {
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.7) 100%
        );
    }
}

/* Disable floating animation on mobile (saves battery) */
@media (max-width: 767px) {
    .hero-product .product-card {
        animation: none;
    }
}

/* Improve section spacing on mobile */
@media (max-width: 767px) {
    .products-carousel-section .btn-large {
        width: 100%;
        margin-top: var(--spacing-md);
    }
}

/* Social section mobile improvements */
@media (max-width: 479px) {
    .social-grid {
        gap: var(--spacing-md);
    }

    .social-card {
        padding: var(--spacing-md);
    }

    .instagram-grid {
        gap: var(--spacing-xs);
    }
}

/* Newsletter section mobile */
@media (max-width: 767px) {
    .newsletter-card {
        padding: 0 var(--spacing-sm);
    }

    .newsletter-card h2 {
        font-size: var(--font-size-xl);
    }
}
