/* ============================================================
   Willies Wellness Theme v2 — Home Slider CSS
   Zero-Crop Responsive Slider Engine with Natural Proportions
   ============================================================ */

.ww-slider-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d1a12;
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.12);
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}

/* ── Slide Track ── */
.ww-slider {
    display: flex;
    width: 100%;
    transition: transform 0.65s cubic-bezier(0.45, 0, 0.25, 1);
    will-change: transform;
}

/* ── Individual Slide ── */
.ww-slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ── Responsive Image Box (Zero Cropping) ── */
.ww-slide-img-box {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* Default & Contain: 100% Full Image Visible, exact natural proportions */
.ww-slide-img {
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
    display: block;
}

/* Natural Proportions Mode */
.ww-slider-fit-natural .ww-slide-img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
}

/* Cover Mode (Edge to edge fill) */
.ww-slider-fit-cover .ww-slide-img-box {
    height: clamp(220px, 35vw, 480px);
}

.ww-slider-fit-cover .ww-slide-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* ── Full Slide Clickable Link ── */
.ww-slide-full-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

/* ── Overlays (Default: None / Clean image) ── */
.ww-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: none;
    pointer-events: none;
}

.ww-slider-wrap.ww-slider-overlay-dark_subtle .ww-slide-overlay {
    display: block;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
}

.ww-slider-wrap.ww-slider-overlay-dark_full .ww-slide-overlay {
    display: block;
    background: rgba(0, 0, 0, 0.4);
}

/* ── Slide Content Overlay ── */
.ww-slide-content {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: clamp(0.85rem, 3.5vw, 2.75rem);
    color: #ffffff;
    box-sizing: border-box;
    pointer-events: none;
}

.ww-slide-content a,
.ww-slide-content button {
    pointer-events: auto;
}

/* ── Position Alignments (Strictly Preserved on Desktop & Mobile) ── */

/* 1. Center */
.ww-slide.ww-slide-align-center .ww-slide-content {
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    max-width: 780px;
}

/* 2. Middle Left */
.ww-slide.ww-slide-align-left .ww-slide-content {
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    margin-left: clamp(0.6rem, 3.5vw, 3.5rem);
    margin-right: auto;
    max-width: clamp(240px, 60vw, 620px);
}

/* 3. Middle Right */
.ww-slide.ww-slide-align-right .ww-slide-content {
    justify-content: center;
    align-items: flex-end;
    text-align: right;
    margin-right: clamp(0.6rem, 3.5vw, 3.5rem);
    margin-left: auto;
    max-width: clamp(240px, 60vw, 620px);
}

/* 4. Bottom Center */
.ww-slide.ww-slide-align-bottom-center .ww-slide-content {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    padding-bottom: clamp(1.75rem, 5vw, 3.25rem);
    max-width: 780px;
}

/* 5. Bottom Left */
.ww-slide.ww-slide-align-bottom-left .ww-slide-content {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    margin-left: clamp(0.6rem, 3.5vw, 3.5rem);
    margin-right: auto;
    padding-bottom: clamp(1.75rem, 5vw, 3.25rem);
    max-width: clamp(240px, 60vw, 620px);
}

/* 6. Bottom Right */
.ww-slide.ww-slide-align-bottom-right .ww-slide-content {
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
    margin-right: clamp(0.6rem, 3.5vw, 3.5rem);
    margin-left: auto;
    padding-bottom: clamp(1.75rem, 5vw, 3.25rem);
    max-width: clamp(240px, 60vw, 620px);
}

/* 7. Top Left */
.ww-slide.ww-slide-align-top-left .ww-slide-content {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    margin-left: clamp(0.6rem, 3.5vw, 3.5rem);
    margin-right: auto;
    padding-top: clamp(1rem, 3.5vw, 2.75rem);
    max-width: clamp(240px, 60vw, 620px);
}

/* 8. Top Right */
.ww-slide.ww-slide-align-top-right .ww-slide-content {
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
    margin-right: clamp(0.6rem, 3.5vw, 3.5rem);
    margin-left: auto;
    padding-top: clamp(1rem, 3.5vw, 2.75rem);
    max-width: clamp(240px, 60vw, 620px);
}

/* ── Typography & Scaling ── */
.ww-slide-headline {
    font-size: clamp(1.1rem, 3.4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 clamp(0.2rem, 0.8vw, 0.55rem);
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9);
    font-family: var(--font-family, 'Barlow', -apple-system, sans-serif);
}

.ww-slide-subtitle {
    font-size: clamp(0.74rem, 1.5vw, 1.05rem);
    font-weight: 500;
    line-height: 1.38;
    margin: 0 0 clamp(0.35rem, 1vw, 0.85rem);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
    max-width: 620px;
}

/* ── Responsive CTA Button ── */
.ww-slide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.25rem, 0.8vw, 0.5rem);
    padding: clamp(0.4rem, 1.3vw, 0.68rem) clamp(0.85rem, 2.6vw, 1.7rem);
    background: var(--primary, #00aa00);
    color: #ffffff !important;
    font-weight: 700;
    font-size: clamp(0.72rem, 1.3vw, 0.9rem);
    border-radius: var(--radius-full, 9999px);
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: clamp(0.15rem, 0.6vw, 0.45rem);
    width: auto;
    white-space: nowrap;
}

.ww-slide-btn:hover {
    background: var(--primary-hover, #008800);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.ww-slide-btn:active {
    transform: translateY(0);
}

/* ── Slide Transitions ── */
.ww-slide .ww-slide-content {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s 0.15s ease, transform 0.4s 0.15s ease;
}

.ww-slide.active .ww-slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Navigation Arrows ── */
.ww-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: clamp(28px, 3.8vw, 40px);
    height: clamp(28px, 3.8vw, 40px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    font-size: clamp(0.8rem, 1.4vw, 1.15rem);
    line-height: 1;
    padding: 0;
}

.ww-slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.08);
}

.ww-slider-prev {
    left: clamp(0.35rem, 1.2vw, 1.2rem);
}

.ww-slider-next {
    right: clamp(0.35rem, 1.2vw, 1.2rem);
}

/* ── Pagination Dots ── */
.ww-slider-dots {
    position: absolute;
    bottom: clamp(0.35rem, 1vw, 0.75rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: clamp(0.3rem, 0.7vw, 0.5rem);
    align-items: center;
}

.ww-dot {
    width: clamp(6px, 1vw, 8px);
    height: clamp(6px, 1vw, 8px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.ww-dot.active {
    background: #ffffff;
    width: clamp(16px, 2.5vw, 22px);
    border-radius: 6px;
    transform: none;
}

/* ── Mobile Adjustments (<= 680px) ── */
@media (max-width: 680px) {
    .ww-slider-wrap {
        margin-top: 0.75rem;
        margin-bottom: 1.25rem;
        border-radius: var(--radius-md, 8px);
    }

    .ww-slide-headline {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .ww-slide-subtitle {
        font-size: 0.72rem;
        line-height: 1.3;
    }

    .ww-slide-btn {
        padding: 0.38rem 0.85rem;
        font-size: 0.7rem;
    }

    .ww-slider-btn {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }
}
