/* ===================================
   FLAVORS SECTION
   =================================== */

/* Flavors Section - Clean rebuild */
.flavors-section {
    background-image: url('../images/sando.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 140px 0 80px 0;
    text-align: center;
}

.flavors-section .container {
    background: transparent !important;
}

.sandostore-image {
    width: 250px;
    height: auto;
    margin: 20px 0 40px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

.flavors-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
    font-family: 'Proxima Nova', sans-serif;
}

.flavors-section h2 a {
    color: var(--primary-green);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.flavors-section h2 a:hover {
    color: var(--dark-green);
    text-decoration-thickness: 3px;
}

.shop-section {
    margin-top: 60px;
    text-align: center;
}

.shop-section h2 {
    margin-bottom: 20px;
}

.flavors-section p {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.flavors-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    margin-top: 2rem;
    animation: none !important;
    white-space: normal !important;
    justify-content: flex-start;
    overflow-x: auto;
    /* Reserve space so the section doesn't jump when cards load from Contentful */
    min-height: 300px;
}

.flavor-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    padding: 0;
    min-width: 200px;
    max-width: 300px;
    flex: 1;
    height: 300px;
    /* Smooth entry instead of popping in once Contentful data arrives */
    animation: flavorCardFadeIn 0.45s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
    .flavor-card {
        animation: none;
    }
}

.flavor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.flavor-icon {
    width: calc(100% - 2rem);
    height: 200px;
    overflow: hidden;
    margin: 1rem 1rem 0 1rem;
    padding: 0;
    border-radius: 12px;
    position: relative;
}

.flavor-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.flavor-card:hover .flavor-icon img {
    transform: scale(1.05);
}

.flavor-card h3 {
    font-family: 'Proxima Nova', 'Arial Black', sans-serif;
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    padding: 1rem 1rem 0 1rem;
    height: auto;
    display: block;
    text-align: center;
    white-space: nowrap;
}

.flavor-card p {
    display: none;
}

.flavor-card .card-description {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
    padding: 0 1rem 1rem 1rem;
    margin: 0;
    text-align: center;
}

/* Sauce Background Section */
.sauce-bg-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.sauce-cards {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 0;
    justify-content: center;
    align-items: center;
}

.sauce-cards img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: -20px;
}

.sauce-cards img:first-child {
    margin-left: 0;
}

.sauce-cards img:hover {
    transform: scale(1.05);
}

/* LM Image Section */
.lm-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 175px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.bottles-image {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 200%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
    opacity: 0.8;
    transform: translateY(0px);
    transition: transform 0.1s ease-out;
}

.tagline {
    font-size: 1.2rem;
    color: var(--primary-green);
    font-style: italic;
    position: relative;
    display: inline-block;
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tagline::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-green);
    transform: scaleX(0);
    transform-origin: left;
    animation: expandWidth 1s ease-out 1s forwards;
}

.sandwich-icon {
    font-size: 3rem;
    display: inline-block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sandostore-image {
        width: 200px;
        margin: 15px auto 30px auto;
    }
    
    .sauce-bg-section {
        height: 300px;
    }
    
    .sauce-bg-image {
        object-fit: cover;
        object-position: center;
    }
    
    .sauce-cards {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 0 20px;
        justify-content: flex-start;
    }
    
    .sauce-cards img {
        width: 200px;
        height: 200px;
        margin-left: 0;
        flex: 0 0 200px;
        object-fit: contain;
    }
    
    .lm-section {
        height: 125px;
    }
    
    /* Keep menu items single row on mobile */
    .flavors-grid {
        gap: 20px;
        margin: 0 10px;
        padding: 0 20px;
    }
    
    .flavor-card {
        flex: 0 0 220px !important;
        min-width: 220px !important;
        padding: 0 !important;
    }
    
    .sandwich-icon {
        display: none;
    }
}