/* ═══════════════════════════════════════════════════════════════
   VS HOME FOODS — PREMIUM HERO SLIDER
   File: static/css/premium-slider.css
   Fonts: Great Vibes (script), Playfair Display (serif), Poppins (body)
   Brand palette: #4a2a17 (dark brown) · #7a3b1e (mid brown) · #c45d13 (amber)
   All slider text is HTML — 100% editable in index.html
═══════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --vs-brown-dark:  #4a2a17;
    --vs-brown-mid:   #7a3b1e;
    --vs-amber:       #c45d13;
    --vs-amber-light: #e07a35;
    --vs-cream:       #fdf6ec;
    --vs-cream-warm:  #fff8f0;
    --vs-transition:  700ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Section wrapper ───────────────────────────────────────── */
.vs-premium-slider-section {
    position: relative;
    overflow: hidden;
    background: var(--vs-brown-dark);
    /* height driven by slides */
}

/* ── Slider track ──────────────────────────────────────────── */
.vs-premium-slider {
    position: relative;
    width: 100%;
    /* min-height set on slides */
    user-select: none;
}

/* ── Individual slide ──────────────────────────────────────── */
.vs-pslide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    min-height: 350px;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--vs-transition), visibility var(--vs-transition);
    z-index: 1;
}

/* Active slide */
.vs-pslide.active {
    position: relative;          /* take space in flow */
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Leaving slide (fading out) */
.vs-pslide.leaving {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
}

/* ── Background image panel (right 55%) ────────────────────── */
.vs-pslide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    /* Subtle zoom on active */
    transform: scale(1.03);
    transition: transform 8s ease;
}
.vs-pslide.active .vs-pslide-bg {
    transform: scale(1);
}

/* ── Gradient overlay — warm cream on left, transparent right ─ */
.vs-pslide-overlay {
    position: absolute;
    inset: 0;
    /* Strong left coverage fades to transparent, matching reference design */
    background: linear-gradient(
        to right,
        rgba(253, 246, 236, 0.96) 0%,
        rgba(253, 246, 236, 0.90) 28%,
        rgba(253, 246, 236, 0.72) 44%,
        rgba(253, 246, 236, 0.25) 62%,
        rgba(253, 246, 236, 0.00) 78%
    );
    z-index: 1;
}

/* ── Content panel (left side) ─────────────────────────────── */
.vs-pslide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    padding: 60px 48px 60px 7%;
    /* Text anchored to left */
}

/* ── Eyebrow label ─────────────────────────────────────────── */
.pslide-eyebrow {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--vs-amber);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.vs-pslide.active .pslide-eyebrow {
    opacity: 1;
    transform: translateY(0);
}

/* ── Script / cursive main title ───────────────────────────── */
.pslide-title-script {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--vs-brown-dark);
    margin: 0 0 6px;
    /* "VS" in amber for brand accent */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease 0.2s, transform 0.65s ease 0.2s;
}
.vs-pslide.active .pslide-title-script {
    opacity: 1;
    transform: translateY(0);
}

/* ── Offer-style heading (for slide 2) ─────────────────────── */
.pslide-title-offer {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--vs-brown-dark);
    margin: 0 0 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease 0.2s, transform 0.65s ease 0.2s;
}
.vs-pslide.active .pslide-title-offer {
    opacity: 1;
    transform: translateY(0);
}

/* "Offer" word gets a ribbon treatment */
.pslide-title-offer .offer-word {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--vs-amber);
    padding: 4px 20px 4px 14px;
    border-radius: 4px;
    margin-top: -4px;
    vertical-align: middle;
    box-shadow: 3px 3px 0 rgba(74,42,23,0.18);
}

/* ── Subtitle ───────────────────────────────────────────────── */
.pslide-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: clamp(0.9rem, 1.8vw, 1.15rem);
    font-style: italic;
    color: var(--vs-brown-mid);
    margin: 0 0 22px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.vs-pslide.active .pslide-subtitle {
    opacity: 1;
    transform: translateY(0);
}

/* ── Feature list ───────────────────────────────────────────── */
.pslide-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.vs-pslide.active .pslide-features {
    opacity: 1;
    transform: translateY(0);
}
.pslide-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 500;
    color: var(--vs-brown-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}
.pf-icon {
    font-size: 16px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196,93,19,0.10);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Discount block (slide 2) ──────────────────────────────── */
.pslide-discount-block {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.vs-pslide.active .pslide-discount-block {
    opacity: 1;
    transform: translateY(0);
}
.discount-pct {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: #2d5a27;          /* forest green — matches reference */
    line-height: 1;
    letter-spacing: -1px;
}
.discount-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.discount-on {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--vs-brown-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.discount-amount {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    background: #2d5a27;
    padding: 4px 16px;
    border-radius: 20px;
    border: 1.5px solid rgba(45,90,39,0.3);
}
.discount-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--vs-brown-mid);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ── CTA button ─────────────────────────────────────────────── */
.pslide-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: var(--vs-amber);
    padding: 13px 32px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 24px rgba(196,93,19,0.35);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    opacity: 0;
    transform: translateY(16px);
    /* slightly later entry */
    transition: opacity 0.6s ease 0.45s, transform 0.6s ease 0.45s,
                background 0.25s ease, box-shadow 0.25s ease;
}
.vs-pslide.active .pslide-cta {
    opacity: 1;
    transform: translateY(0);
}
.pslide-cta:hover {
    background: var(--vs-brown-dark);
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 32px rgba(74,42,23,0.30) !important;
}
.pslide-cta-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}
.pslide-cta:hover .pslide-cta-arrow {
    transform: translateX(4px);
}

/* ── Tagline below button ───────────────────────────────────── */
.pslide-tagline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(11px, 1.4vw, 13px);
    font-style: italic;
    color: var(--vs-brown-mid);
    margin: 14px 0 0;
    opacity: 0;
    transition: opacity 0.6s ease 0.55s;
}
.vs-pslide.active .pslide-tagline {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   ARROWS
═══════════════════════════════════════════════════════════════ */
.vs-pslider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(74,42,23,0.25);
    background: rgba(253,246,236,0.85);
    color: var(--vs-brown-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.vs-pslider-arrow:hover {
    background: var(--vs-amber);
    color: #fff;
    border-color: var(--vs-amber);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(196,93,19,0.35);
}
.vs-pslider-prev { left: 20px; }
.vs-pslider-next { right: 20px; }

/* ═══════════════════════════════════════════════════════════════
   DOTS
═══════════════════════════════════════════════════════════════ */
.vs-pslider-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.vs-pslider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(74,42,23,0.35);
    background: rgba(253,246,236,0.55);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
}
.vs-pslider-dot.active {
    width: 28px;
    border-radius: 6px;
    background: var(--vs-amber);
    border-color: var(--vs-amber);
}

/* ═══════════════════════════════════════════════════════════════
   TRUST BADGES  (preserved from original)
═══════════════════════════════════════════════════════════════ */
.vs-trust-section {
    background: #fff;
    padding: 32px 24px;
    border-bottom: 1px solid #f0e0cc;
}
.vs-trust-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
}
.vs-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-right: 1px solid #f0e0cc;
    flex: 1 1 200px;
}
.vs-trust-item:last-child { border-right: none; }
.vs-trust-icon {
    width: 42px;
    height: 42px;
    background: #fdf6ec;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vs-trust-label strong { display: block; font-size: 14px; font-weight: 700; color: #511d0e; }
.vs-trust-label span   { font-size: 12px; color: #8a6a55; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
    .vs-pslide {
        min-height: 300px;
        align-items: flex-end;
    }

    /* On tablet the overlay covers more of the image */
    .vs-pslide-overlay {
        background: linear-gradient(
            to right,
            rgba(253, 246, 236, 0.97) 0%,
            rgba(253, 246, 236, 0.88) 40%,
            rgba(253, 246, 236, 0.40) 65%,
            rgba(253, 246, 236, 0.00) 85%
        );
    }

    .vs-pslide-content {
        padding: 40px 32px 60px 5%;
        max-width: 460px;
    }

    .pslide-title-script  { font-size: clamp(2.4rem, 7vw, 3.8rem); }
    .pslide-title-offer   { font-size: clamp(2.2rem, 6vw, 3.4rem); }
    .discount-pct         { font-size: clamp(2rem, 6vw, 3rem); }
}

/* ── Mobile landscape (≤ 640px) ────────────────────────────── */
@media (max-width: 640px) {
    .vs-pslide {
        min-height: 300px;
        align-items: center;
    }

    /* Full overlay on mobile so text reads on any image */
    .vs-pslide-overlay {
        background: linear-gradient(
            to bottom,
            rgba(253, 246, 236, 0.92) 0%,
            rgba(253, 246, 236, 0.82) 60%,
            rgba(253, 246, 236, 0.50) 100%
        );
    }

    .vs-pslide-bg {
        background-position: center center;
    }

    .vs-pslide-content {
        padding: 36px 24px 72px;
        max-width: 100%;
    }

    .pslide-eyebrow        { font-size: 11px; letter-spacing: 2px; }
    .pslide-title-script   { font-size: clamp(2.4rem, 10vw, 3.4rem); }
    .pslide-title-offer    { font-size: clamp(2rem, 9vw, 3rem); }
    .pslide-subtitle       { font-size: 14px; }
    .pslide-features li    { font-size: 13px; }
    .pslide-cta            { font-size: 13px; padding: 11px 26px; }
    .discount-pct          { font-size: clamp(1.8rem, 8vw, 2.6rem); }

    .vs-pslider-arrow {
        width: 38px;
        height: 38px;
    }
    .vs-pslider-prev { left: 12px; }
    .vs-pslider-next { right: 12px; }

    /* Trust badges stack on mobile */
    .vs-trust-item {
        border-right: none;
        border-bottom: 1px solid #f0e0cc;
        padding: 14px 20px;
    }
    .vs-trust-item:last-child { border-bottom: none; }
}

/* ── Small mobile (≤ 400px) ─────────────────────────────────── */
@media (max-width: 400px) {
    .vs-pslide { min-height: 460px; }
    .pslide-title-script  { font-size: 2.2rem; }
    .pslide-title-offer   { font-size: 1.9rem; }
    .pslide-discount-block { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .vs-pslide,
    .vs-pslide-bg,
    .pslide-eyebrow,
    .pslide-title-script,
    .pslide-title-offer,
    .pslide-subtitle,
    .pslide-features,
    .pslide-discount-block,
    .pslide-cta,
    .pslide-tagline {
        transition-duration: 0.01ms !important;
        animation: none !important;
    }
}
