/**
 * XPEL Korea - Coverage Pages
 * Automotive, Marine, Home & Office, Bike, Motorcycle
 */

/* ==========================================================================
   Base Fixes
   ========================================================================== */
.coverage-page svg {
    max-width: 100%;
    height: auto;
}

.coverage-page .icon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* ==========================================================================
   Coverage Hero
   ========================================================================== */
.coverage-hero {
    position: relative;
    height: 280px;
    display: flex;
    align-items: flex-end;
    background-color: var(--color-gray-900);
    overflow: hidden;
}

@media (min-width: 768px) {
    .coverage-hero {
        height: 320px;
    }
}

.coverage-hero__bg {
    position: absolute;
    inset: 0;
}

.coverage-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coverage-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.coverage-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-xl);
    width: 100%;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
}

.coverage-hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-bold);
    color: var(--color-white);
    line-height: 1.1;
    text-transform: uppercase;
}

/* ==========================================================================
   Coverage Intro Section
   ========================================================================== */
.coverage-intro {
    padding: var(--space-16) var(--space-6);
    background-color: var(--color-white);
}

.coverage-intro__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .coverage-intro__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
        align-items: start;
    }
}

.coverage-intro__headline {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
    font-weight: var(--font-medium);
    color: var(--color-black);
    line-height: 1.2;
}

.coverage-intro__text {
    font-size: var(--text-base);
    color: var(--color-gray-600);
    line-height: 1.7;
}

/* ==========================================================================
   Coverage Products Grid
   ========================================================================== */
.coverage-products {
    padding: 0 var(--space-6) var(--space-16);
    background-color: var(--color-white);
}

.coverage-products__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.coverage-products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .coverage-products__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Single product - full width on mobile, half on desktop */
.coverage-products__grid--single {
    max-width: 600px;
}

@media (min-width: 768px) {
    .coverage-products__grid--single {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Coverage Product Card
   ========================================================================== */
.coverage-product-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    text-decoration: none;
}

@media (min-width: 768px) {
    .coverage-product-card {
        aspect-ratio: 16 / 10;
    }
}

.coverage-product-card__image {
    position: absolute;
    inset: 0;
}

.coverage-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.coverage-product-card:hover .coverage-product-card__image img {
    transform: scale(1.05);
}

.coverage-product-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.coverage-product-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-6);
    z-index: 2;
}

.coverage-product-card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-2);
}

.coverage-product-card__desc {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 400px;
}

/* ==========================================================================
   Coverage Shop CTA (Full-width banner)
   ========================================================================== */
.coverage-shop-cta {
    position: relative;
    padding: var(--space-16) var(--space-6);
    background-color: var(--color-gray-900);
    overflow: hidden;
}

.coverage-shop-cta__bg {
    position: absolute;
    inset: 0;
}

.coverage-shop-cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.coverage-shop-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.coverage-shop-cta__content {
    position: relative;
    z-index: 2;
    max-width: var(--container-xl);
    margin: 0 auto;
}

.coverage-shop-cta__title {
    font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
    font-weight: var(--font-medium);
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: var(--space-6);
    max-width: 400px;
}

.coverage-shop-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-black);
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.coverage-shop-cta__btn:hover {
    background-color: var(--color-gold);
}

/* ==========================================================================
   Bottom CTAs Section (shared with homepage)
   ========================================================================== */
.coverage-bottom-ctas {
    padding: var(--space-16) var(--space-6);
    background-color: var(--color-gray-900);
}

.coverage-bottom-ctas__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
}

.coverage-bottom-ctas__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
}

@media (min-width: 768px) {
    .coverage-bottom-ctas__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.coverage-cta-item {
    padding: var(--space-6);
}

.coverage-cta-item__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    color: var(--color-white);
}

.coverage-cta-item__icon svg {
    width: 48px;
    height: 48px;
    display: block;
}

.coverage-cta-item__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-white);
    margin-bottom: var(--space-3);
}

.coverage-cta-item__text {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.coverage-cta-item__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-white);
    text-decoration: none;
}

.coverage-cta-item__link:hover {
    color: var(--color-gold);
}

.coverage-cta-item__link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
