/* =====================================================
   VELQOR — FEATURED COLLECTION Campaign Banner
   Updated for Cinematic 16:8 Image with Text Overlay
   ===================================================== */

.campaign-banner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #C9D1BE;
    /* Fallback color */
    isolation: isolate;
}

.campaign-banner__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Ensures image stays at the bottom */
}

.campaign-banner__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Keeps the center of the image focused */
    transform: scale(1);
    transition: transform 700ms cubic-bezier(.2, .7, .2, 1);
    will-change: transform;
}

.campaign-banner:hover .campaign-banner__media img {
    transform: scale(1.02);
    /* Subtle cinematic zoom */
}

.campaign-banner__link {
    position: absolute;
    inset: 0;
    z-index: 3;
    /* Keeps the link clickable above everything */
    display: block;
    text-decoration: none;
}

/* =====================================================
   TEXT OVERLAY STYLES (For the new image)
   ===================================================== */

.campaign-banner__content {
    position: absolute;
    top: 50%;
    left: 6%;
    /* Positions text over the left concrete wall */
    transform: translateY(-50%);
    max-width: 380px;
    /* Prevents text from overlapping the first model */
    color: #ffffff;
    z-index: 4;
    /* Above the link and image */
}

.campaign-banner__title {
    font-family: 'Your Brand Font', sans-serif;
    /* Replace with your font */
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    /* Ensures readability */
}

.campaign-banner__subtitle {
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.campaign-banner__cta {
    display: inline-block;
    padding: 14px 28px;
    background-color: #ffffff;
    color: #111111;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.campaign-banner__link:hover .campaign-banner__cta {
    background-color: #C9D1BE;
    /* Your brand sage green */
    color: #ffffff;
}

.campaign-banner__link:focus-visible .campaign-banner__cta {
    outline: 3px solid #000000;
    /* Accessibility focus state */
    outline-offset: 2px;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS (Fixing Cropping Issues)
   ===================================================== */

/* Tablet & Small Laptops */
@media (max-width: 1024px) {
    .campaign-banner {
        aspect-ratio: 16 / 9;
        /* Slightly taller to prevent side cropping */
    }

    .campaign-banner__title {
        font-size: 2.2rem;
    }

    .campaign-banner__content {
        max-width: 320px;
        left: 5%;
    }
}

/* Mobile & Tablets Portrait */
@media (max-width: 768px) {

    /* 
       Changed from 4/3 to 4/5. 
       This prevents cutting off the left and right models too harshly 
       and gives space for the text to move to the bottom.
    */
    .campaign-banner {
        aspect-ratio: 4 / 5;
    }

    .campaign-banner__content {
        top: auto;
        bottom: 8%;
        /* Move text to the bottom for mobile */
        left: 5%;
        right: 5%;
        transform: none;
        max-width: 100%;
        text-align: center;
    }

    .campaign-banner__title {
        font-size: 1.8rem;
    }

    .campaign-banner__subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .campaign-banner__cta {
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    /* 
       Add a subtle dark gradient to the bottom on mobile 
       so the white text is 100% readable over the bright floor and models.
    */
    .campaign-banner::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60%;
        /* Covers the bottom half */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        z-index: 2;
        /* Above image, below link */
        pointer-events: none;
        /* Allows clicks to pass through to the link */
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .campaign-banner {
        aspect-ratio: 1 / 1;
        /* Back to square for very small screens */
    }

    .campaign-banner__title {
        font-size: 1.5rem;
    }

    .campaign-banner__subtitle {
        font-size: 0.85rem;
    }
}

/* =====================================================
   PREFERS REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .campaign-banner__media img {
        transition: none;
        transform: none !important;
    }
}