/* ══════════════════════════════════════
   UPVC Hero Slider
   Mirrors the Artificial Grass Online hero
   ══════════════════════════════════════ */

.upvc-hero-wrap {
    --upvc-hero-green: #2d7a3a;
    --upvc-hero-dark: #1a1a1a;
    --upvc-hero-radius: 8px;
}

/* ── Hard reset ── */
.upvc-hero-wrap,
.upvc-hero-wrap *,
.upvc-hero-wrap *::before,
.upvc-hero-wrap *::after {
    box-sizing: border-box !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    list-style: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* ── Wrapper ── */
.upvc-hero-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    line-height: 1.4 !important;
}

/* ── Section ── */
.upvc-hero-wrap .upvc-hero {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--upvc-hero-h, 500px) !important;
    overflow: hidden !important;
    background: var(--upvc-hero-dark) !important;
    line-height: 1.4 !important;
}

/* ── Slider track ── */
.upvc-hero-wrap .upvc-hero__slider {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* ── Slide ── */
.upvc-hero-wrap .upvc-hero__slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.6s ease, visibility 0.6s ease !important;
    z-index: 1 !important;
}

.upvc-hero-wrap .upvc-hero__slide.is-active {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2 !important;
    height: 100% !important;
}

/* ── Slide image ── */
.upvc-hero-wrap .upvc-hero__slide picture {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 0 !important;
}

.upvc-hero-wrap .upvc-hero__slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    max-width: 100% !important;
    border-radius: 0 !important;
}

/* ── Content overlay ── */
.upvc-hero-wrap .upvc-hero__content {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    z-index: 3 !important;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.55) 35%, transparent 75%) !important;
    pointer-events: none !important;
}

/* ── Inner content block (bottom-left) ── */
.upvc-hero-wrap .upvc-hero__inner {
    position: absolute !important;
    bottom: 48px !important;
    left: 80px !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    max-width: 550px !important;
    width: auto !important;
    gap: 0 !important;
    pointer-events: auto !important;
    color: #fff !important;
}

/* ── Heading ── */
.upvc-hero-wrap .upvc-hero__heading {
    display: block !important;
    width: 100% !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #fff !important;
    margin: 0 0 12px 0 !important;
}

/* ── Subheading ── */
.upvc-hero-wrap .upvc-hero__sub {
    display: block !important;
    width: 100% !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: rgba(255,255,255,0.9) !important;
    margin: 0 0 16px 0 !important;
}

/* ── Actions row (promo + CTA) ── */
.upvc-hero-wrap .upvc-hero__actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    pointer-events: auto !important;
}

/* ── Promo code pill ── */
.upvc-hero-wrap .upvc-hero__promo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 14px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #fff !important;
    white-space: nowrap !important;
    pointer-events: auto !important;
}

.upvc-hero-wrap .upvc-hero__promo strong {
    display: inline-block !important;
    background: #F5C518 !important;
    color: #333 !important;
    padding: 2px 8px !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
}

/* ── CTA button ── */
.upvc-hero-wrap .upvc-hero__cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px 28px !important;
    background: var(--upvc-hero-green) !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: var(--upvc-hero-radius) !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.upvc-hero-wrap .upvc-hero__cta:hover,
.upvc-hero-wrap .upvc-hero__cta:focus {
    background: #245f2e !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* ── Discount badge (top-right) ── */
.upvc-hero-wrap .upvc-hero__badge {
    position: absolute !important;
    top: 24px !important;
    right: 24px !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    background: #F5C518 !important;
    color: #333 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
    border-radius: 8px !important;
    text-align: center !important;
    line-height: 1.1 !important;
    z-index: 5 !important;
    pointer-events: auto !important;
}

/* ── Arrows ── */
.upvc-hero-wrap .upvc-hero__arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 10 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff !important;
    font-size: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s !important;
    line-height: 1 !important;
    pointer-events: auto !important;
}

.upvc-hero-wrap .upvc-hero__arrow:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.upvc-hero-wrap .upvc-hero__arrow--prev { left: 20px !important; right: auto !important; bottom: auto !important; }
.upvc-hero-wrap .upvc-hero__arrow--next { right: 20px !important; left: auto !important; bottom: auto !important; }

/* ── Dots ── */
.upvc-hero-wrap .upvc-hero__dots {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 8px !important;
    z-index: 10 !important;
    top: auto !important;
    right: auto !important;
    pointer-events: auto !important;
}

.upvc-hero-wrap .upvc-hero__dot {
    width: 10px !important;
    height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.4) !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    aspect-ratio: 1 / 1 !important;
    pointer-events: auto !important;
}

.upvc-hero-wrap .upvc-hero__dot.is-active {
    background: #fff !important;
}

/* ══════════════════════════════════════
   Mobile
   ══════════════════════════════════════ */

@media (max-width: 768px) {

    /* Switch to mobile height — everything else inherits 100% from base */
    .upvc-hero-wrap .upvc-hero {
        height: var(--upvc-hero-h-mobile, 350px) !important;
    }

    /* Gradient from bottom on mobile */
    .upvc-hero-wrap .upvc-hero__content {
        background: linear-gradient(to top, rgba(0,0,0,0.65) 60%, transparent) !important;
    }

    /* Content – clear the dots */
    .upvc-hero-wrap .upvc-hero__inner {
        bottom: 60px !important;
        left: 24px !important;
        right: 24px !important;
        max-width: none !important;
    }

    .upvc-hero-wrap .upvc-hero__heading {
        font-size: 24px !important;
    }

    .upvc-hero-wrap .upvc-hero__sub {
        font-size: 14px !important;
    }

    .upvc-hero-wrap .upvc-hero__badge {
        top: 12px !important;
        right: 12px !important;
        font-size: 16px !important;
        padding: 10px 14px !important;
    }

    .upvc-hero-wrap .upvc-hero__arrow {
        width: 36px !important;
        height: 36px !important;
        font-size: 20px !important;
    }

    .upvc-hero-wrap .upvc-hero__arrow--prev { left: 12px !important; }
    .upvc-hero-wrap .upvc-hero__arrow--next { right: 12px !important; }

    .upvc-hero-wrap .upvc-hero__actions {
        gap: 10px !important;
    }
}
