/* =====================================================================
   Hero Banner Widget — PPV
   White & Blue theme · Mobile-first · Animations
   ===================================================================== */

/* ----- CSS Custom Properties (Theme) ----- */
.ppv-hero-banner {
    --hb-primary: #1565c0;
    --hb-primary-light: #42a5f5;
    --hb-primary-dark: #0d47a1;
    --hb-accent: #e3f2fd;
    --hb-bg: #ffffff;
    --hb-bg-secondary: #f5f9ff;
    --hb-text: #1a1a2e;
    --hb-text-muted: #5a6577;
    --hb-card-bg: #ffffff;
    --hb-card-shadow: 0 8px 32px rgba(21, 101, 192, 0.10);
    --hb-radius: 16px;
    --hb-radius-sm: 10px;
    --hb-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ----- Container ----- */
.ppv-hero-banner {
    position: relative;
    overflow: hidden;
    padding: 80px 40px 60px;
    background: linear-gradient(135deg, var(--hb-bg) 0%, var(--hb-bg-secondary) 50%, var(--hb-accent) 100%);
    background-size: 200% 200%;
    animation: hbGradientPulse 8s ease infinite;
    border-radius: var(--hb-radius);
    min-height: 520px;
}

@keyframes hbGradientPulse {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ----- Particle Canvas ----- */
.ppv-hb-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ----- Background Watermark Title ----- */
.ppv-hb-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: clamp(80px, 12vw, 200px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--hb-primary);
    opacity: 0.06;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
    user-select: none;
}

/* ----- Main Grid Layout ----- */
.ppv-hb-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 32px;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

/* ----- Left Column: Text ----- */
.ppv-hb-text {
    grid-column: 1;
    grid-row: 1;
    max-width: 400px;
}

.ppv-hb-subtitle {
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--hb-primary);
    margin: 0 0 12px;
}

.ppv-hb-title {
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 800;
    color: var(--hb-text);
    line-height: 1.15;
    margin: 0 0 16px;
}

.ppv-hb-description {
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.7;
    color: var(--hb-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ----- Center Column: Hero Image ----- */
.ppv-hb-image-wrap {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.ppv-hb-image-inner {
    position: relative;
    transition: transform var(--hb-transition);
}

.ppv-hb-image-inner img {
    display: block;
    max-height: 480px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(21, 101, 192, 0.15));
    transition: filter var(--hb-transition), transform var(--hb-transition);
}

.ppv-hb-image-inner:hover img {
    filter: drop-shadow(0 30px 60px rgba(21, 101, 192, 0.22));
}

/* ----- Right Column: CTA Card ----- */
.ppv-hb-cta-card {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    background: var(--hb-card-bg);
    border-radius: var(--hb-radius);
    padding: 28px 24px;
    box-shadow: var(--hb-card-shadow);
    max-width: 260px;
    text-align: center;
    transition: transform var(--hb-transition), box-shadow var(--hb-transition);
    transform-style: preserve-3d;
    border: 1px solid rgba(21, 101, 192, 0.08);
}

.ppv-hb-cta-card:hover {
    box-shadow: 0 16px 48px rgba(21, 101, 192, 0.16);
}

.ppv-hb-cta-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--hb-text);
    margin: 0 0 16px;
    line-height: 1.3;
}

.ppv-hb-cta-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    object-fit: contain;
}

.ppv-hb-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--hb-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--hb-transition), transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

.ppv-hb-cta-btn:hover {
    background: var(--hb-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 101, 192, 0.35);
}

.ppv-hb-cta-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

/* ----- Feature Badges Row ----- */
.ppv-hb-badges {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

.ppv-hb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--hb-radius-sm);
    border: 1px solid rgba(21, 101, 192, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ppv-hb-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(21, 101, 192, 0.12);
}

.ppv-hb-badge-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hb-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.ppv-hb-badge-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--hb-primary);
}

.ppv-hb-badge-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hb-text);
    line-height: 1.3;
}

/* ----- Floating Decorative Shapes ----- */
.ppv-hb-shape {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    opacity: 0.12;
    border-radius: 50%;
}

.ppv-hb-shape--circle-1 {
    width: 120px;
    height: 120px;
    background: var(--hb-primary-light);
    top: 8%;
    right: 15%;
    animation: hbFloat1 7s ease-in-out infinite;
}

.ppv-hb-shape--circle-2 {
    width: 60px;
    height: 60px;
    background: var(--hb-primary);
    bottom: 15%;
    left: 8%;
    animation: hbFloat2 9s ease-in-out infinite;
}

.ppv-hb-shape--circle-3 {
    width: 80px;
    height: 80px;
    background: var(--hb-primary-dark);
    top: 60%;
    right: 5%;
    animation: hbFloat3 11s ease-in-out infinite;
}

.ppv-hb-shape--plus-1 {
    width: 28px;
    height: 28px;
    border-radius: 0;
    top: 20%;
    left: 25%;
    animation: hbFloat4 6s ease-in-out infinite;
}

.ppv-hb-shape--plus-1::before,
.ppv-hb-shape--plus-1::after {
    content: '';
    position: absolute;
    background: var(--hb-primary);
    border-radius: 2px;
}

.ppv-hb-shape--plus-1::before {
    width: 100%;
    height: 4px;
    top: 50%;
    transform: translateY(-50%);
}

.ppv-hb-shape--plus-1::after {
    width: 4px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.ppv-hb-shape--plus-2 {
    width: 20px;
    height: 20px;
    border-radius: 0;
    bottom: 25%;
    right: 28%;
    animation: hbFloat5 8s ease-in-out infinite;
}

.ppv-hb-shape--plus-2::before,
.ppv-hb-shape--plus-2::after {
    content: '';
    position: absolute;
    background: var(--hb-primary-light);
    border-radius: 2px;
}

.ppv-hb-shape--plus-2::before {
    width: 100%;
    height: 3px;
    top: 50%;
    transform: translateY(-50%);
}

.ppv-hb-shape--plus-2::after {
    width: 3px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* ----- Float Keyframes ----- */
@keyframes hbFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(5deg); }
    66% { transform: translate(-10px, 10px) rotate(-3deg); }
}

@keyframes hbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.1); }
}

@keyframes hbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-12px, -18px); }
    75% { transform: translate(8px, 12px); }
}

@keyframes hbFloat4 {
    0%, 100% { transform: rotate(0deg); opacity: 0.12; }
    50% { transform: rotate(90deg); opacity: 0.2; }
}

@keyframes hbFloat5 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.2); }
}

/* ----- Scroll Reveal ----- */
.ppv-hb-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ppv-hb-reveal.ppv-hb-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.ppv-hb-reveal[data-delay="1"] { transition-delay: 0.1s; }
.ppv-hb-reveal[data-delay="2"] { transition-delay: 0.2s; }
.ppv-hb-reveal[data-delay="3"] { transition-delay: 0.3s; }
.ppv-hb-reveal[data-delay="4"] { transition-delay: 0.4s; }
.ppv-hb-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* ----- Responsive: Tablet ----- */
@media (max-width: 1024px) {
    .ppv-hero-banner {
        padding: 60px 28px 48px;
    }

    .ppv-hb-content {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        gap: 24px;
    }

    .ppv-hb-text {
        grid-column: 1;
        grid-row: 1;
    }

    .ppv-hb-image-wrap {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .ppv-hb-cta-card {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .ppv-hb-badges {
        grid-column: 1 / -1;
        grid-row: 3;
    }

    .ppv-hb-image-inner img {
        max-height: 400px;
    }

    .ppv-hb-watermark {
        font-size: clamp(60px, 10vw, 140px);
    }
}

/* ----- Responsive: Mobile ----- */
@media (max-width: 767px) {
    .ppv-hero-banner {
        padding: 48px 20px 36px;
        min-height: auto;
        border-radius: var(--hb-radius-sm);
        animation: none;
    }

    .ppv-hb-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 24px;
        text-align: center;
    }

    .ppv-hb-text {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
    }

    .ppv-hb-image-wrap {
        grid-column: 1;
        grid-row: 2;
    }

    .ppv-hb-image-inner img {
        max-height: 320px;
    }

    .ppv-hb-cta-card {
        grid-column: 1;
        grid-row: 3;
        justify-self: center;
        max-width: 100%;
        width: 100%;
    }

    .ppv-hb-badges {
        grid-column: 1;
        grid-row: 4;
        justify-content: center;
    }

    .ppv-hb-watermark {
        font-size: clamp(48px, 15vw, 80px);
        transform: translate(-50%, -60%);
    }

    .ppv-hb-title {
        font-size: clamp(24px, 6vw, 32px);
    }

    /* Reduce animations on mobile */
    .ppv-hb-shape {
        display: none;
    }

    .ppv-hb-particles {
        display: none;
    }
}

/* ----- Reduce Motion Preference ----- */
@media (prefers-reduced-motion: reduce) {
    .ppv-hero-banner {
        animation: none;
    }

    .ppv-hb-shape {
        animation: none;
    }

    .ppv-hb-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ppv-hb-particles {
        display: none;
    }
}

/* ----- Elementor Editor Fix ----- */
.elementor-editor-active .ppv-hb-reveal {
    opacity: 1;
    transform: none;
}

.elementor-editor-active .ppv-hb-particles {
    display: none;
}
