/* =====================================================
   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);
    /* Account for fixed banner + header */
    padding-top: calc(var(--shipping-banner-height, 0px) + var(--header-height, 70px));
}

.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-top: var(--spacing-xl);
    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 Products - Two cards side by side */
.hero-products {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

/* Mobile: Two cards side by side, compact */
@media (max-width: 599px) {
    .hero-products {
        gap: var(--spacing-xs);
    }

    .hero-products .product-card.hero-featured {
        flex: 1;
        max-width: 165px;
        min-width: 140px;
        padding: var(--spacing-sm);
    }

    .hero-products .product-card.hero-featured .product-image {
        height: 100px;
        width: 100%;
        object-fit: cover;
    }

    .hero-products .product-card.hero-featured h3 {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-xs);
    }

    .hero-products .product-card.hero-featured .product-contents {
        font-size: 11px;
        margin-bottom: var(--spacing-xs);
    }

    .hero-products .product-card.hero-featured .price {
        font-size: var(--font-size-base);
    }

    .hero-products .product-card.hero-featured .free-shipping-tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .hero-products .product-card.hero-featured .badge {
        font-size: 9px;
        padding: 2px 6px;
        margin-bottom: var(--spacing-xs);
    }

    .hero-products .product-card.hero-featured .btn-cta {
        font-size: var(--font-size-xs);
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .hero-products .product-card.hero-featured .product-pricing {
        margin-bottom: var(--spacing-xs);
    }
}

/* Very small screens (iPhone SE, etc.) */
@media (max-width: 374px) {
    .hero-products .product-card.hero-featured {
        max-width: 145px;
        min-width: 120px;
        padding: var(--spacing-xs);
    }

    .hero-products .product-card.hero-featured .product-image {
        height: 80px;
    }

    .hero-products .product-card.hero-featured h3 {
        font-size: 12px;
    }

    .hero-products .product-card.hero-featured .product-contents {
        font-size: 10px;
    }

    .hero-products .product-card.hero-featured .price {
        font-size: var(--font-size-sm);
    }
}

@media (min-width: 600px) {
    .hero-products {
        gap: var(--spacing-lg);
    }
}

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

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

.hero-products .product-card:nth-child(2) {
    animation-delay: 0.5s;
}

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

/* Legacy single product support */
.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 .products-carousel .product-card {
    text-align: left;
}

.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);
    padding-top: var(--spacing-m);
}

.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 for legacy hero-product (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);
    }
}

/* =====================================================
   PRODUCT IMAGE STYLES (Home Page)
   ===================================================== */
.hero-products .product-card .product-image,
.products-carousel .product-card .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    background-color: var(--color-gray-100);
}

/* Behind the scenes image */
.behind-scenes-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
}
