/**
Theme Name: Astra-Betterview
Author: Betterview Team
Author URI: https://betterview.cz/
Description: Better theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-betterview
Template: astra
*/

/* Lenis Smooth Scroll Recommended CSS */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* Ensure card text isn't hidden behind the spotlight */
.elementor-widget-icon-box .elementor-widget-container *,
.elementor-testimonial-wrapper * {
    position: relative;
    z-index: 2;
}

/* Eliminate native elementor backgrounds that might clash */
.elementor-widget-icon-box .elementor-widget-container,
.elementor-testimonial-wrapper .elementor-testimonial-content {
    background-color: transparent !important;
}

/* Hover States for Cards */
.elementor-widget-icon-box:hover .elementor-widget-container,
.elementor-testimonial-wrapper:hover {
    transform: translateY(-8px) scale(1.02) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.elementor-widget-icon-box:hover .elementor-widget-container::before,
.elementor-testimonial-wrapper:hover::before {
    opacity: 1;
}

/* 4. Sleek Button Styling */
/* .bw-glass-button {
    background: #fff !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 24.5px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(15px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.bw-glass-button:hover {
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.2), inset 0 0 8px 5px rgba(255, 255, 255, 0.15) !important;
    transform: scale(1.05) !important;
    background: transparent !important;
    backdrop-filter: blur(15px) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
} */

.bw-glass-button .elementor-button {
    position: relative;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    background: rgba(255, 255, 255, 1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    overflow: visible;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bw-glass-button .elementor-button span {
    position: relative;
    z-index: 2;
}

/* 2. PSEUDO-ELEMENT PRO GRADIENT BORDER */
.bw-glass-button .elementor-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
    z-index: 1;

    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bw-glass-button .elementor-button:hover {
    background: rgba(255, 255, 255, 0.01);
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 15px 35px rgba(138, 43, 226, 0.2), inset 0 0 8px 5px rgba(255, 255, 255, 0.15);
}

.bw-glass-button .elementor-button:hover::before {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.1) 30%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(255, 255, 255, 0.08) 70%,
            rgba(255, 255, 255, 0.23) 100%);
}

.ast-plain-container,
.ast-page-builder-template {
    background-color: #06101f;
}

/* ============================================
   PINNED STEPS – SINGLE INDICATOR + STACKED CARDS
   ============================================ */

:root {
    --bv-accent: #8b5cf6;
    --bv-accent-glow: rgba(139, 92, 246, 0.6);
    --bv-accent-bright: #a78bfa;
    --bv-indicator-size: 44px;
}

/* --- Steps Section --- */
.bv-steps-section {
    position: relative !important;
}

/* --- Horizontal Stepper --- */
.bv-hz-stepper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    width: 100%;
}

/* Add margins only if the stepper is natively positioned out of a specific widget container (like next to a Title Element) */
.bv-steps-section>.bv-hz-stepper,
.elementor-widget-heading+.bv-hz-stepper {
    margin-top: 40px;
    margin-bottom: 20px;
}

.bv-hz-track-container {
    width: 250px;
    max-width: 100%;
    padding: 0 20px;
    /* Padding allows thumb to spill over edges safely */
    box-sizing: border-box;
}

.bv-hz-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    /* Track base color */
    border-radius: 6px;
}

/* Filled track line indicating progress */
.bv-hz-track-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--bv-accent);
    box-shadow: 0 0 10px var(--bv-accent-glow);
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.bv-hz-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    z-index: 2;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Active dots glow faintly */
.bv-hz-dot.is-filled {
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.bv-hz-thumb {
    position: absolute;
    bottom: 5%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid var(--bv-accent);
    box-shadow: inset 0 0 5px 4px rgba(255, 255, 255, 0.3), 0 0 15px var(--bv-accent-glow);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    z-index: 3;
    overflow: hidden;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    box-sizing: border-box;
}

.bv-hz-thumb-numbers {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bv-hz-num {
    width: 40px;
    /* match thumb inner size */
    height: 40px;
    /* match thumb inner size */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.bv-hz-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--bv-accent-bright);
    transition: color 0.4s ease;
    margin-left: 20px;
    /* Alumn with the start of the inner track */
}

/* Checkmark SVG styles */
.bv-hz-check-svg {
    width: 24px;
    height: 24px;
    stroke: #22c55e;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.bv-hz-check-circle {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

.bv-hz-check-mark {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
}

/* Completion States */
.bv-hz-stepper.is-complete .bv-hz-thumb {
    background: transparent;
    border: 2px solid #22c55e;
    box-shadow: inset 0 0 5px 4px rgba(255, 255, 255, 0.3), 0 0 15px rgba(34, 197, 94, 0.4);
    backdrop-filter: blur(10px);
}

.bv-hz-stepper.is-complete .bv-hz-track-fill {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.bv-hz-stepper.is-complete .bv-hz-label {
    color: #22c55e;
}

/* 3D Tilt preservation for cards */
.bv-step .elementor-widget-container {
    transform-style: preserve-3d;
    will-change: transform;
}

/* --- Text Split Reveal --- */
.bv-split-word {
    display: inline-block;
    will-change: transform, opacity, filter;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    :root {
        --bv-indicator-size: 40px;
    }

    .bv-indicator-item {
        font-size: 0.9rem;
    }

    .bv-indicator-item svg {
        width: 22px;
        height: 22px;
    }

    .bv-indicator-wrapper {
        margin-top: 16px;
    }
}