/**
 * ESP Specials & Promotions Page Styles
 */

/* Remove top padding from main so hero touches header */
.esp-specials-body .esp-main {
    padding-top: 0 !important;
}

/* Hero Banner (matching about page style) */
.esp-specials-body .esp-about-hero {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-color: #374151;
}

@media (min-width: 768px) {
    .esp-specials-body .esp-about-hero {
        height: 400px;
    }
}

.esp-specials-body .esp-about-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

/* Page Title Section (matching about page style) */
.esp-specials-body .esp-about-title {
    padding: 3rem 0 2.5rem;
    background: #fff;
    text-align: center;
    border-bottom: 3px solid #f59e0b;
}

.esp-specials-body .esp-about-title__heading {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    margin: 0;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.esp-specials-body .esp-about-title__subtitle {
    font-size: 1.25rem;
    color: #f59e0b;
    margin: 0.75rem 0 0;
    font-weight: 500;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (max-width: 768px) {
    .esp-specials-body .esp-about-hero {
        height: 180px;
    }

    .esp-specials-body .esp-about-title {
        padding: 2rem 0 1.5rem;
    }

    .esp-specials-body .esp-about-title__heading {
        font-size: 1.75rem;
    }

    .esp-specials-body .esp-about-title__subtitle {
        font-size: 1rem;
    }
}

/* Legacy Hero Banner (kept for reference) */
.esp-specials-hero {
    position: relative;
    width: 100%;
    min-height: 300px;
    background-image: url('../images/specials_banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.esp-specials-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.7) 0%, rgba(217, 119, 6, 0.5) 100%);
}

.esp-specials-hero__content {
    position: relative;
    z-index: 1;
    padding: 4rem 1.5rem;
}

.esp-specials-hero__title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.esp-specials-hero__subtitle {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Intro Section */
.esp-specials-intro {
    padding: 2rem 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.esp-specials-intro__text {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
    margin: 0 0 1rem;
    max-width: 800px;
}

.esp-specials-intro__text:last-child {
    margin-bottom: 0;
}

.esp-specials-intro__link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.esp-specials-intro__link:hover {
    text-decoration: none;
}

/* Promotions Grid Section */
.esp-specials-grid-section {
    padding: 3rem 0;
    background: #f9fafb;
}

.esp-specials-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Promo Card */
.esp-promo-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 1 100%;
    max-width: 500px;
}

@media (min-width: 640px) {
    .esp-promo-card {
        flex: 0 1 calc(50% - 0.75rem);
        max-width: none;
    }
}

@media (min-width: 1024px) {
    .esp-promo-card {
        flex: 0 1 calc(33.333% - 1rem);
    }
}

.esp-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

.esp-promo-card--featured {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .esp-promo-card--featured {
        grid-column: span 2;
    }

    .esp-promo-card--featured .esp-promo-card__image-wrapper {
        aspect-ratio: 21 / 9;
    }
}

.esp-promo-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.esp-promo-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.esp-promo-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.esp-promo-card:hover .esp-promo-card__image {
    transform: scale(1.03);
}

.esp-promo-card__image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.esp-promo-card__content {
    flex: 1;
    padding: 1rem 1.25rem;
}

.esp-promo-card__title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.375rem;
    line-height: 1.25;
}

.esp-promo-card__date {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #f59e0b;
    margin: 0 0 0.5rem;
}

.esp-promo-card__excerpt {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.esp-promo-card__footer {
    padding: 0 1.25rem 1rem;
    padding-right: 4rem; /* Space for arrow button */
}

/* Tag Pills */
.esp-promo-card__tag {
    display: inline-block;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.esp-promo-card__tag--orange {
    background: #fef3c7;
    color: #92400e;
}

.esp-promo-card__tag--green {
    background: #d1fae5;
    color: #065f46;
}

.esp-promo-card__tag--blue {
    background: #dbeafe;
    color: #1e40af;
}

.esp-promo-card__tag--red {
    background: #fee2e2;
    color: #991b1b;
}

.esp-promo-card__tag--gray {
    background: #f3f4f6;
    color: #374151;
}

/* Arrow Button */
.esp-promo-card__arrow {
    position: absolute;
    bottom: 0.75rem;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: #f59e0b;
    color: #fff;
    border-radius: 9999px 0 0 9999px;
    padding-left: 0.125rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.esp-promo-card__arrow svg {
    width: 16px;
    height: 16px;
}

.esp-promo-card:hover .esp-promo-card__arrow {
    background: #d97706;
    transform: translateX(-3px);
}

/* Featured Brands Section */
.esp-specials-brands {
    padding: 3rem 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.esp-specials-brands__title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin: 0 0 0.5rem;
}

.esp-specials-brands__subtitle {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    color: #6b7280;
    text-align: center;
    margin: 0 0 2rem;
}

.esp-specials-brands__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .esp-specials-brands__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .esp-specials-brands__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.esp-specials-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.esp-specials-brand-card:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.esp-specials-brand-card__logo {
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.esp-specials-brand-card__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.esp-specials-brand-card__name {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
}

.esp-specials-brand-card:hover .esp-specials-brand-card__name {
    color: #f59e0b;
}

.esp-specials-brands__cta {
    text-align: center;
    margin-top: 2rem;
}

/* CTA Section */
.esp-specials-cta {
    padding: 4rem 0;
    background: #1f2937;
}

.esp-specials-cta__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.esp-specials-cta__title {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem;
}

.esp-specials-cta__text {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    color: #d1d5db;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.esp-specials-cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.esp-specials-cta .esp-btn--primary {
    background: #f59e0b;
    color: #fff;
}

.esp-specials-cta .esp-btn--primary:hover {
    background: #d97706;
}

.esp-specials-cta .esp-btn--outline {
    color: #fff;
    border-color: #fff;
    background: transparent;
}

.esp-specials-cta .esp-btn--outline:hover {
    background: #fff;
    color: #1f2937;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .esp-specials-hero {
        min-height: 220px;
    }

    .esp-specials-hero__content {
        padding: 2.5rem 1rem;
    }

    .esp-specials-hero__title {
        font-size: 2rem;
    }

    .esp-specials-hero__subtitle {
        font-size: 1rem;
    }

    .esp-specials-grid-section {
        padding: 2rem 0;
    }

    .esp-specials-intro__text {
        font-size: 1rem;
    }

    .esp-promo-card__title {
        font-size: 1.125rem;
    }

    .esp-promo-card__excerpt {
        font-size: 0.8125rem;
    }

    .esp-specials-brands {
        padding: 2rem 0;
    }

    .esp-specials-brands__title {
        font-size: 1.5rem;
    }

    .esp-specials-cta {
        padding: 3rem 0;
    }

    .esp-specials-cta__title {
        font-size: 1.5rem;
    }

    .esp-specials-cta__text {
        font-size: 1rem;
    }

    .esp-specials-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .esp-specials-cta__buttons .esp-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .esp-specials-hero__title {
        font-size: 1.75rem;
    }

    .esp-promo-card__content {
        padding: 0.875rem 1rem;
    }

    .esp-promo-card__footer {
        padding: 0 1rem 0.875rem;
        padding-right: 3.5rem;
    }

    .esp-promo-card__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .esp-specials-brand-card {
        padding: 0.75rem;
    }

    .esp-specials-brand-card__logo {
        width: 60px;
        height: 40px;
    }

    .esp-specials-brand-card__name {
        font-size: 0.6875rem;
    }
}
