/* ====================================================
   NeuroPlanck Hero Widget — Elementor
   Prefixed with .np-hero to avoid theme conflicts
   ==================================================== */

/* ─── SLIDER WRAPPER ─── */
.np-hero-slider {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}
.np-hero-slider__track {
    position: relative;
    width: 100%;
}
.np-hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 0;
}
.np-hero-slider__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* Arrows — hidden by default, transparent style */
.np-hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: transparent;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.np-hero-slider__arrow:hover {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.8);
}
.np-hero-slider__arrow--prev { left: 24px; }
.np-hero-slider__arrow--next { right: 24px; }

/* Dots */
.np-hero-slider__dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.np-hero-slider__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.35);
    background: transparent;
    cursor: pointer;
    transition: all 0.35s ease;
    padding: 0;
}
.np-hero-slider__dot:hover {
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
}
.np-hero-slider__dot.is-active {
    background: rgba(255,255,255,0.85);
    border-color: rgba(255,255,255,0.85);
    width: 32px;
    border-radius: 6px;
}

/* ─── WordPress / Woodmart Theme Override — Full Width ─── */
.elementor-widget-np_hero {
    max-width: 100% !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    padding: 0 !important;
}
.elementor-widget-np_hero .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}
/* Remove Elementor section padding when hero is inside */
.elementor-section:has(.elementor-widget-np_hero) {
    padding: 0 !important;
    margin: 0 !important;
}
.elementor-section:has(.elementor-widget-np_hero) > .elementor-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.elementor-section:has(.elementor-widget-np_hero) > .elementor-container > .elementor-column > .elementor-widget-wrap {
    padding: 0 !important;
}

/* Woodmart theme container break-out */
.wd-content-layout:has(.elementor-widget-np_hero) {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
}
.wd-page-content:has(.elementor-widget-np_hero),
.entry-content:has(.elementor-widget-np_hero),
.content-layout-wrapper:has(.elementor-widget-np_hero) {
    padding: 0 !important;
    padding-top: 0 !important;
    margin: 0 !important;
}

/* Agressive button reset for dots (WordPress themes add button defaults) */
button.np-hero-slider__dot,
.np-hero-slider__dot {
    width: 12px !important;
    height: 12px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.35s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
button.np-hero-slider__dot:hover,
.np-hero-slider__dot:hover {
    border-color: rgba(255,255,255,0.6) !important;
    background: rgba(255,255,255,0.15) !important;
}
button.np-hero-slider__dot.is-active,
.np-hero-slider__dot.is-active {
    background: rgba(255,255,255,0.85) !important;
    border-color: rgba(255,255,255,0.85) !important;
    width: 32px !important;
    border-radius: 6px !important;
}

/* ─── HERO ─── */
.np-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 40px 0 60px;
}

/* Background */
.np-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.np-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.np-hero__bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8,18,38,0.92) 0%, rgba(8,18,38,0.7) 45%, rgba(8,18,38,0.3) 70%, transparent 100%),
        linear-gradient(180deg, rgba(8,18,38,0.3) 0%, transparent 40%, transparent 70%, rgba(8,18,38,0.8) 100%);
}

/* Container */
.np-hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* ─── LEFT — Text ─── */
.np-hero__text {
    flex: 1;
    max-width: 650px;
}

.np-hero__brand {
    display: inline-block;
    font-family: 'Geologica', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.np-hero__title {
    font-family: 'Geologica', Arial, Helvetica, sans-serif;
    font-size: 58px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: normal;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.np-hero__desc {
    font-family: 'Cabin', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
    max-width: 520px;
    margin-bottom: 24px;
}

/* Trust line */
.np-hero__trust {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 14px 24px;
}
.np-hero__trust-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
}
.np-hero__trust-label {
    font-family: 'Cabin', Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}
.np-hero__trust-sep {
    color: rgba(255,255,255,0.2);
    font-size: 14px;
}
.np-hero__trust-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}
.np-hero__trust-stars svg,
.np-hero__trust-stars .np-star {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.np-hero__trust-rating {
    font-size: 13px;
    font-weight: 700;
    color: #f5a623;
}
.np-hero__trust-count {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

/* CTAs */
.np-hero__ctas {
    display: flex;
    gap: 14px;
    align-items: center;
}
.np-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 35px;
    font-family: 'Geologica', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    text-transform: capitalize;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}
.np-hero__cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}
.np-hero__cta--primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}
.np-hero__cta--primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 30px rgba(59,130,246,0.5);
    transform: translateY(-2px);
    color: #fff;
}
.np-hero__cta--primary:hover svg {
    transform: translateX(4px);
}
.np-hero__cta--outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.np-hero__cta--outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
    color: #fff;
}

/* ─── RIGHT — Products Grid ─── */
.np-hero__products {
    flex: 1.2;
    position: relative;
    padding: 30px 0;
}
.np-hero__products-grid {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
}

/* Product card */
.np-hero__product-card {
    flex: 1 1 0;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease;
}
.np-hero__product-card:hover {
    transform: translateY(-6px);
}
.np-hero__product-card--featured {
    max-width: 240px;
}
.np-hero__product-img {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.np-hero__product-card:hover .np-hero__product-img {
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.np-hero__product-card--featured .np-hero__product-img {
    height: 300px;
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.15);
}
.np-hero__product-img img {
    width: 105%;
    height: 105%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
}
.np-hero__product-card:hover .np-hero__product-img img {
    transform: scale(1.03);
}

/* ─── Dynamic product count layouts ─── */
/* 1 product: full width, featured size */
.np-hero__products-grid--count-1 .np-hero__product-card {
    flex: 0 0 100%;
    max-width: 380px;
}
.np-hero__products-grid--count-1 .np-hero__product-img {
    height: 340px;
}

/* 2 products: equal columns */
.np-hero__products-grid--count-2 .np-hero__product-card {
    flex: 1 1 45%;
    max-width: 240px;
}
.np-hero__products-grid--count-2 .np-hero__product-img {
    height: 280px;
}

/* 3 products: default (original flex sizes apply) */

/* 4 products: 2x2 grid */
.np-hero__products-grid--count-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.np-hero__products-grid--count-4 .np-hero__product-card {
    max-width: none;
}
.np-hero__products-grid--count-4 .np-hero__product-img {
    height: 200px;
}

/* ─── Video Player in Product Cards ─── */
.np-hero__product-card--video .np-hero__product-img {
    padding: 0;
    position: relative;
    overflow: hidden;
}
.np-hero__video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
}
.np-hero__video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.np-hero__play-btn {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.np-hero__play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
.np-hero__play-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: scale(1.12);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.2);
}
/* Playing state */
.np-hero__product-img.is-playing .np-hero__video-poster {
    opacity: 0;
    pointer-events: none;
}
.np-hero__product-img.is-playing .np-hero__video-player {
    opacity: 1;
}
.np-hero__product-img.is-playing .np-hero__play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Badge boxes row */
.np-hero__badges-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}
.np-hero__badge-box {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-family: 'Cabin', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
}
.np-hero__badge-box svg {
    width: 16px;
    height: 16px;
    color: #34d399;
    flex-shrink: 0;
}
.np-hero__badge-box:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
}

/* ─── ANIMATIONS ─── */
@keyframes npFadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes npFadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.np-hero__brand     { animation: npFadeInUp 0.8s ease-out 0.2s both; }
.np-hero__title     { animation: npFadeInUp 0.8s ease-out 0.35s both; }
.np-hero__desc      { animation: npFadeInUp 0.8s ease-out 0.5s both; }
.np-hero__trust     { animation: npFadeInUp 0.8s ease-out 0.6s both; }
.np-hero__ctas      { animation: npFadeInUp 0.8s ease-out 0.7s both; }
.np-hero__products  { animation: npFadeInRight 1s ease-out 0.5s both; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
    .np-hero__container {
        gap: 40px;
    }
    .np-hero__text {
        max-width: 480px;
    }
    .np-hero__product-card {
        max-width: 180px;
    }
    .np-hero__product-card--featured {
        max-width: 200px;
    }
}

@media (max-width: 900px) {
    .np-hero {
        height: auto !important;
        min-height: auto !important;
        max-height: none;
        padding: 100px 0 70px;
    }
    .np-hero__bg img {
        height: 100%;
        min-height: 100%;
    }
    .np-hero__container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0 24px;
        gap: 36px;
    }
    .np-hero__text {
        max-width: 560px;
    }
    .np-hero__desc {
        margin-left: auto;
        margin-right: auto;
        font-size: 18px;
    }
    .np-hero__trust {
        justify-content: center;
    }
    .np-hero__ctas {
        justify-content: center;
    }
    .np-hero__products {
        max-width: 100%;
        width: 100%;
        padding: 10px 0;
    }
    .np-hero__products-grid {
        justify-content: center;
        gap: 12px;
    }
    .np-hero__product-card {
        max-width: 150px;
    }
    .np-hero__product-card--featured {
        max-width: 165px;
    }
    .np-hero__product-img {
        height: 200px;
    }
    .np-hero__product-card--featured .np-hero__product-img {
        height: 230px;
    }
    .np-hero__badge-box {
        padding: 8px 14px;
        font-size: 12px;
    }
    /* Dots */
    .np-hero-slider__dots {
        bottom: 20px;
    }
}

@media (max-width: 600px) {
    .np-hero {
        padding: 80px 0 60px;
    }
    .np-hero__container {
        padding: 0 16px;
        gap: 24px;
    }
    .np-hero__title {
        font-size: 32px;
        line-height: 1.3;
    }
    .np-hero__brand {
        font-size: 12px;
        letter-spacing: 3px;
        margin-bottom: 10px;
    }
    .np-hero__desc {
        font-size: 15px;
        margin-bottom: 16px;
    }
    .np-hero__trust {
        gap: 6px;
        margin-bottom: 20px;
    }
    .np-hero__trust-label {
        font-size: 12px;
    }
    .np-hero__ctas {
        flex-direction: column;
        gap: 10px;
    }
    .np-hero__cta {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    .np-hero__products-grid {
        gap: 8px;
    }
    .np-hero__product-card {
        max-width: 110px;
    }
    .np-hero__product-card--featured {
        max-width: 120px;
    }
    .np-hero__product-img {
        height: 155px;
        border-radius: 12px;
    }
    .np-hero__product-card--featured .np-hero__product-img {
        height: 175px;
    }
    .np-hero__badge-box {
        font-size: 11px;
        padding: 6px 10px;
        gap: 4px;
    }
    .np-hero__badge-box svg {
        width: 13px;
        height: 13px;
    }
    .np-hero__badges-row {
        gap: 6px;
        margin-top: 16px;
    }
    .np-hero-slider__dots {
        bottom: 14px;
        gap: 6px;
    }
    button.np-hero-slider__dot,
    .np-hero-slider__dot {
        width: 8px !important;
        height: 8px !important;
    }
    button.np-hero-slider__dot.is-active,
    .np-hero-slider__dot.is-active {
        width: 24px !important;
    }
}

@media (max-width: 375px) {
    .np-hero {
        padding: 70px 0 50px;
    }
    .np-hero__title {
        font-size: 26px;
    }
    .np-hero__product-card {
        max-width: 90px;
    }
    .np-hero__product-card--featured {
        max-width: 100px;
    }
    .np-hero__product-img {
        height: 130px;
    }
    .np-hero__product-card--featured .np-hero__product-img {
        height: 150px;
    }
}
