/**
 * Hero Slider Widget CSS — Pawwell "Cinematic" premium skin
 *
 * Direction: full-bleed imagery, deep charcoal-to-transparent gradient
 * (bottom-up) with a soft vignette, white display-serif headline,
 * a gold eyebrow + hairline rule, and refined minimal controls.
 * Aesop / Glossier editorial-luxe feel.
 *
 * Scoped under .pwpa-hero-slider to avoid conflicts.
 * Includes Swiper base structural styles so the slider renders even
 * when Elementor's Swiper CSS is not loaded for custom widgets.
 */

/* ==========================================
   SWIPER BASE STRUCTURAL STYLES
   ========================================== */

.pwpa-hero-slider .swiper {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
    display: block;
}

.pwpa-hero-slider .swiper-vertical > .swiper-wrapper {
    flex-direction: column;
}

.pwpa-hero-slider .swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.pwpa-hero-slider .swiper-android .swiper-slide,
.pwpa-hero-slider .swiper-wrapper {
    transform: translate3d(0, 0, 0);
}

.pwpa-hero-slider .swiper-horizontal {
    touch-action: pan-y;
}

.pwpa-hero-slider .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block;
}

.pwpa-hero-slider .swiper-slide-invisible-blank {
    visibility: hidden;
}

.pwpa-hero-slider .swiper-autoheight,
.pwpa-hero-slider .swiper-autoheight .swiper-slide {
    height: auto;
}

.pwpa-hero-slider .swiper-autoheight .swiper-wrapper {
    align-items: flex-start;
    transition-property: transform, height;
}

.pwpa-hero-slider .swiper-backface-hidden .swiper-slide {
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* ==========================================
   SLIDER WRAPPER & SLIDE
   ========================================== */

.pwpa-hero-slider {
    position: relative;
    width: 100%;
    background: var(--charcoal, #1E1E1E);
}

.pwpa-hero-slider .swiper,
.pwpa-hero-slider .swiper-slide {
    height: 80vh;
    min-height: 540px;
}

@media (min-width: 1024px) {
    .pwpa-hero-slider .swiper,
    .pwpa-hero-slider .swiper-slide {
        height: 92vh;
        min-height: 640px;
    }
}

.pwpa-hero-slider .swiper-slide {
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--charcoal, #1E1E1E);
}

.pwpa-hero-slider .swiper-slide-active {
    z-index: 1;
}

/* ==========================================
   CINEMATIC GRADE — directional gradient (inline-controlled) + vignette
   The inline overlay supplies the charcoal bottom-up gradient; the
   slide::after adds an always-on vignette for depth & text contrast.
   ========================================== */

.pwpa-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.pwpa-hero-slider .swiper-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 35% 55%,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.28) 60%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

/* ==========================================
   SLIDE INNER / CONTENT WRAPPER
   ========================================== */

.pwpa-slide-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 24px;
}

.pwpa-slide-content {
    width: 100%;
    max-width: var(--max-width, 1240px);
    margin: 0 auto;
    padding: 0 24px;
}

/* Clean text column — no card, generous negative space for a luxe feel. */
.pwpa-slide-content-wrap {
    position: relative;
    max-width: 640px;
}

/* ==========================================
   CONTENT ENTRANCE ANIMATION
   ========================================== */

.pwpa-hero-slider.swiper-initialized .swiper-slide-active .pwpa-slide-subtitle,
.pwpa-hero-slider.swiper-initialized .swiper-slide-active .pwpa-slide-title,
.pwpa-hero-slider.swiper-initialized .swiper-slide-active .pwpa-slide-description,
.pwpa-hero-slider.swiper-initialized .swiper-slide-active .pwpa-slide-buttons {
    animation: pwpaCineReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pwpa-hero-slider.swiper-initialized .swiper-slide-active .pwpa-slide-title { animation-delay: 0.14s; }
.pwpa-hero-slider.swiper-initialized .swiper-slide-active .pwpa-slide-description { animation-delay: 0.28s; }
.pwpa-hero-slider.swiper-initialized .swiper-slide-active .pwpa-slide-buttons { animation-delay: 0.42s; }

@keyframes pwpaCineReveal {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   SUBTITLE — gold eyebrow with hairline rule
   ========================================== */

.pwpa-slide-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    font-family: var(--font-accent, 'Space Grotesk', 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold, #D4A853);
}

/* Hairline rule before the eyebrow */
.pwpa-slide-subtitle::before {
    content: '';
    width: 38px;
    height: 1px;
    flex-shrink: 0;
    background: var(--gold, #D4A853);
    opacity: 0.8;
}

@media (min-width: 1024px) {
    .pwpa-slide-subtitle {
        font-size: 13px;
        margin-bottom: 30px;
        letter-spacing: 0.26em;
    }

    .pwpa-slide-subtitle::before {
        width: 46px;
    }
}

/* ==========================================
   TITLE — display serif, luminous white
   ========================================== */

.pwpa-slide-title {
    margin: 0 0 24px;
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

/* Terracotta accent word (inline <span class="pwpa-accent">) */
.pwpa-slide-title .pwpa-accent,
.pwpa-slide-title .accent {
    color: var(--terracotta, #C45B3E);
    font-style: italic;
}

@media (min-width: 1024px) {
    .pwpa-slide-title {
        margin-bottom: 28px;
    }
}

/* ==========================================
   DESCRIPTION — soft white, restrained width
   ========================================== */

.pwpa-slide-description {
    margin: 0 0 42px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: #FFFFFF;
    max-width: 480px;
}

@media (min-width: 1024px) {
    .pwpa-slide-description {
        font-size: 18px;
        margin-bottom: 48px;
    }
}

/* ==========================================
   BUTTONS — refined CTA + quiet ghost
   ========================================== */

.pwpa-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.pwpa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 16px 34px;
    border-radius: 2px;
    font-family: var(--font-accent, 'Space Grotesk', 'Inter', sans-serif);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

/* Primary — solid warm white, charcoal text (luxe, high-contrast) */
.pwpa-btn--primary {
    background: #FAF6F1;
    color: var(--charcoal, #1E1E1E);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.pwpa-btn--primary:hover {
    color: var(--charcoal, #1E1E1E);
    background: var(--gold, #D4A853);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

/* Secondary — ghost outline */
.pwpa-btn--secondary {
    background: transparent;
    color: #FFFFFF;
    border: none;
}

.pwpa-btn--secondary:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    transform: translateY(-2px);
}

/* ==========================================
   NAVIGATION ARROWS — minimal circles
   ========================================== */

.pwpa-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwpa-slider-arrow svg {
    width: 18px;
    height: 18px;
}

.pwpa-slider-arrow:hover {
    background: #FFFFFF;
    color: var(--charcoal, #1E1E1E);
    border-color: #FFFFFF;
    transform: translateY(-50%) scale(1.05);
}

.pwpa-slider-arrow--prev { left: 26px; }
.pwpa-slider-arrow--next { right: 26px; }

/* ==========================================
   PAGINATION — hairline bars, gold active
   ========================================== */

.pwpa-hero-slider .swiper-pagination {
    position: absolute;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    left: 0;
    right: 0;
}

.pwpa-hero-slider .pwpa-pagination-bottom { bottom: 40px; }
.pwpa-hero-slider .pwpa-pagination-top { top: 40px; }

.pwpa-hero-slider .swiper-pagination-bullet {
    width: 30px;
    height: 2px;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.35);
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwpa-hero-slider .swiper-pagination-bullet:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.pwpa-hero-slider .swiper-pagination-bullet-active {
    width: 52px;
    background-color: var(--gold, #D4A853);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (min-width: 1024px) {
    .pwpa-slide-inner { padding: 56px 32px; }
    .pwpa-slide-content { padding: 0 56px; }
}

@media (max-width: 768px) {
    .pwpa-hero-slider .swiper,
    .pwpa-hero-slider .swiper-slide {
        height: 84vh;
        min-height: 500px;
    }

    .pwpa-slide-description {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .pwpa-btn {
        padding: 14px 26px;
        font-size: 11px;
        letter-spacing: 0.14em;
    }

    .pwpa-slider-arrow {
        width: 42px;
        height: 42px;
    }

    .pwpa-slider-arrow svg {
        width: 16px;
        height: 16px;
    }

    .pwpa-slider-arrow--prev { left: 14px; }
    .pwpa-slider-arrow--next { right: 14px; }

    .pwpa-hero-slider .pwpa-pagination-bottom { bottom: 26px; }
}

@media (max-width: 480px) {
    .pwpa-slide-subtitle {
        font-size: 11px;
        letter-spacing: 0.2em;
        margin-bottom: 20px;
    }

    .pwpa-slide-subtitle::before {
        width: 28px;
    }

    .pwpa-slide-description {
        font-size: 14px;
        margin-bottom: 30px;
        line-height: 1.65;
    }

    .pwpa-slide-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .pwpa-slide-buttons .pwpa-btn {
        width: 100%;
    }

    .pwpa-slide-inner { padding: 26px 18px; }
    .pwpa-slide-content { padding: 0 6px; }
}
