/* ============================================================
   HERO SLIDER SECTION
   The header is position:fixed, so the hero starts below it and
   fills the remaining viewport height.
   ============================================================ */

.hero-section {
    position: relative;
    width: 100%;
    min-height: calc(100vh - var(--topbar-h) - var(--header-h));
    min-height: calc(100dvh - var(--topbar-h) - var(--header-h));
    margin-top: calc(var(--topbar-h) + var(--header-h));
    padding-top: 0;
    overflow: hidden;
    background: #f7f1e3;
    isolation: isolate;
}

/* ── Slides ─────────────────────────────────────────────────── */
.hero-slider__track,
.hero-slider__slide {
    position: absolute;
    inset: 0;
}

.hero-slider__track {
    z-index: 0;
}

.hero-slider__slide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 1.2s;
    will-change: opacity, transform;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 7s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s;
}

.hero-slider__slide img,
.hero-slider__slide picture,
.hero-slider__slide picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ── Text Shadow Overlay (left side gradient for readability) ── */
.hero-slider__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(247, 241, 227, 0.95) 0%,
        rgba(247, 241, 227, 0.78) 40%,
        rgba(247, 241, 227, 0.42) 65%,
        transparent 85%
    );
    pointer-events: none;
    transition: opacity 1.2s ease;
}

/* ── Slide Content (left side) ──────────────────────────────── */
.hero-slide__content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 55%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
    padding-left: clamp(32px, 6vw, 90px);
    color: #111111;
    font-family: var(--font-family);
    pointer-events: auto;
}

.hero-slide__tagline {
    display: inline-block;
    align-self: flex-start;
    font-size: clamp(13px, 1.6vw, 16px);
    font-weight: 600;
    font-style: italic;
    color: var(--white);
    background: var(--primary);
    padding: 8px 20px;
    border-radius: 999px;
    margin: 0 0 14px;
    box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.hero-slide__heading {
    margin: 0;
    line-height: 1.08;
}

.hero-slide__heading--dark {
    display: block;
    font-family: var(--font-family);
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 800;
    color: #111111;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-slide__heading--primary {
    display: block;
    font-family: var(--font-family);
    font-size: clamp(32px, 4.5vw, 58px);
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.hero-slide__divider {
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    margin: 18px 0 16px;
    opacity: 0.85;
}

.hero-slide__desc {
    font-size: clamp(13px, 1.2vw, 16px);
    font-weight: 400;
    color: #2b2b2b;
    line-height: 1.65;
    max-width: 420px;
    margin: 0 0 24px;
}

/* ── Feature Badges ─────────────────────────────────────────── */
.hero-slide__features {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.hero-slide__feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hero-slide__feat-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--primary);
    opacity: 0.9;
}

.hero-slide__feat-icon svg {
    width: 100%;
    height: 100%;
}

.hero-slide__feat-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-slide__feat-text strong {
    font-size: 11px;
    font-weight: 700;
    color: #111111;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hero-slide__feat-text span {
    font-size: 11px;
    color: #444444;
}

/* ── CTA Buttons ────────────────────────────────────────────── */
.hero-slide__actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.hero-slide__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero-slide__btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.35);
}

.hero-slide__btn--primary:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(229, 57, 53, 0.45);
}

.hero-slide__btn--outline {
    background: transparent;
    color: #111111;
    border: 1.5px solid rgba(0, 0, 0, 0.55);
}

.hero-slide__btn--outline:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: #111111;
    transform: translateY(-1px);
}

.hero-slide__btn-icon {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.hero-slide__btn-icon svg {
    width: 100%;
    height: 100%;
}

/* ── Dots (bottom-left) ─────────────────────────────────────── */
.hero-slider__dots {
    position: absolute;
    left: 32px;
    bottom: 32px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.4s ease,
                transform 0.4s ease;
}

.hero-slider__dot:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-slider__dot.is-active {
    width: 28px;
    background: #111111;
}

.hero-slider__dot:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-slider__slide,
    .hero-slider__slide.is-active {
        transform: none;
        transition: opacity 0.4s ease;
    }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-slide__content {
        width: 60%;
        padding-left: clamp(28px, 5vw, 60px);
        padding-right: 30px;
    }

    .hero-slide__features {
        gap: 14px;
    }
}

@media (max-width: 768px) {
    /* Start below the fixed navbar so the top of every slide pic
       stays visible (not hidden under the header). */
    .hero-section {
        margin-top: calc(var(--topbar-h) + var(--header-h));
        min-height: calc(84vh - var(--topbar-h) - var(--header-h));
        min-height: calc(84dvh - var(--topbar-h) - var(--header-h));
    }

    /* Mobile images place the product in the top half — keep the
       text confined to the bottom half, centered and aligned.
       The gradient itself covers the whole slide. */
    .hero-slide__content {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        bottom: 0;
        width: 100%;
        padding: 8px 24px 96px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-slider__slide::after {
        background: linear-gradient(
            0deg,
            rgba(247, 241, 227, 0.95) 0%,
            rgba(247, 241, 227, 0.75) 40%,
            rgba(247, 241, 227, 0.42) 70%,
            rgba(247, 241, 227, 0.2) 100%
        );
    }

    .hero-slide__heading--dark,
    .hero-slide__heading--primary {
        font-size: clamp(23px, 6.5vw, 32px);
        line-height: 1.08;
    }

    .hero-slide__tagline {
        align-self: center;
        font-size: 12px;
        padding: 7px 16px;
        margin-bottom: 8px;
    }

    .hero-slide__desc {
        font-size: 12px;
        max-width: 100%;
        margin-bottom: 12px;
    }

    .hero-slide__divider {
        width: 40px;
        margin: 10px auto;
    }

    .hero-slide__features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 18px;
        margin-bottom: 12px;
    }

    /* Only show 2 features in a row on phones */
    .hero-slide__feat:nth-child(3) {
        display: none;
    }

    .hero-slide__feat-icon {
        width: 18px;
        height: 18px;
    }

    .hero-slide__feat-text strong {
        font-size: 10px;
    }

    .hero-slide__feat-text span {
        font-size: 10px;
    }

    .hero-slide__actions {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .hero-slide__btn {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 220px;
        white-space: nowrap;
        justify-content: center;
        padding: 10px 16px;
        font-size: 11px;
    }

    .hero-slider__dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 18px;
    }
}

@media (max-width: 480px) {
    .hero-slide__content {
        padding: 6px 16px 88px;
    }

    .hero-slide__actions {
        gap: 8px;
    }

    .hero-slide__btn {
        flex: 1 1 auto;
        max-width: 190px;
        padding: 9px 10px;
        font-size: 10px;
        gap: 5px;
    }
}

@media (max-width: 400px) {
    /* Tiny phones: drop the description so text stays in the
       bottom half and never overlaps the product above it. */
    .hero-slide__desc {
        display: none;
    }

    .hero-slide__content {
        padding-bottom: 84px;
    }
}
