/**
 * Special Offers Section Styles
 */

/* Section Container */
.special-offers-section {
    position: relative;
    width: 100%;
    padding: 80px 0;
    background: #fff;
}

.special-offers-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Header */
.special-offers-section .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.special-offers-section .section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.special-offers-section .section-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 100%;
}

/* Offer Card */
.offer-card {
    position: relative;
    display: block;
    width: 100%;
    padding-bottom: 75%;
    /* 4:3 aspect ratio */
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Offer Image */
.offer-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-card:hover .offer-image {
    transform: scale(1.1);
}

/* Overlay */
.offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.8) 100%);
    transition: background 0.4s ease;
}

.offer-card:hover .offer-overlay {
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.9) 100%);
}

/* Offer Content */
.offer-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 10;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.offer-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.offer-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-cta {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.offer-card:hover .offer-cta {
    opacity: 1;
    transform: translateX(4px);
}

/* Responsive Styles */

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .special-offers-section {
        padding: 60px 0;
    }

    .offer-content {
        padding: 24px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .offers-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .special-offers-section {
        padding: 50px 0;
    }

    .offer-card {
        padding-bottom: 70%;
        /* Slightly taller on mobile */
    }

    .offer-content {
        padding: 20px;
    }

    .special-offers-section .section-header {
        margin-bottom: 30px;
    }
}