/* ============================================================
   Core Values Slider Widget v3.0 — Elementor Plugin Styles
   Sticky left · Scroll-driven right panels · White bg
   Exo font · #ff7f27 orange · #324a5a navy
   ============================================================ */

.cvw-wrap {
    --cvw-gold:  #ff7f27;
    --cvw-navy:  #324a5a;
    --cvw-text:  #1a2830;
    --cvw-muted: #6a8a9a;
    --cvw-bg:    #ffffff;
    font-family: 'Exo', sans-serif;
    color: var(--cvw-text);
}

/* ── SECTION WRAPPER — takes scroll space in document ── */
.cvw-section-wrap {
    position: relative;
    /* height set dynamically by JS = 100vh × panels */
}

/* ── STICKY STAGE — locks in viewport while section scrolls ── */
.cvw-sticky-stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ── LEFT — static inside sticky stage ── */
.cvw-left {
    width: 42%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 72px 56px;
    border-right: 1px solid rgba(255,127,39,0.15);
    background: var(--cvw-navy);
    flex-shrink: 0;
}

.cvw-left-brand {
    font-family: 'Exo', sans-serif;
    font-size: 10px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--cvw-gold);
    display: flex;
    align-items: center;
    gap: 14px;
}

.cvw-left-brand::before {
    content: '';
    width: 24px; height: 1px;
    background: var(--cvw-gold);
    flex-shrink: 0;
}

.cvw-left-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cvw-left-title {
    font-family: 'Exo', sans-serif;
    font-size: clamp(36px, 3.4vw, 62px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #ffffff;
}

.cvw-left-title em { font-style: italic; color: var(--cvw-gold); }

.cvw-left-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.45);
    font-weight: 300;
    max-width: 300px;
}

/* Nav */
.cvw-left-nav { display: flex; flex-direction: column; }

.cvw-nav-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(255,127,39,0.12);
    gap: 16px;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.cvw-nav-item:last-child { border-bottom: 1px solid rgba(255,127,39,0.12); }

.cvw-nav-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0; width: 0;
    background: rgba(255,127,39,0.07);
    transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}
.cvw-nav-item.active .cvw-nav-fill { width: 100%; }

.cvw-nav-num {
    font-family: 'Exo', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    transition: color 0.4s;
    width: 24px; flex-shrink: 0; position: relative;
}
.cvw-nav-item.active .cvw-nav-num { color: var(--cvw-gold); }

.cvw-nav-label {
    font-family: 'Exo', sans-serif;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    transition: color 0.4s;
    font-weight: 500; position: relative;
}
.cvw-nav-item.active .cvw-nav-label { color: #ffffff; }

.cvw-nav-bar {
    margin-left: auto;
    width: 32px; height: 1px;
    background: rgba(255,127,39,0.15);
    position: relative; flex-shrink: 0;
}
.cvw-nav-bar::after {
    content: '';
    position: absolute;
    left: 0; top: 0; height: 100%; width: 0;
    background: var(--cvw-gold);
    transition: width 0.6s cubic-bezier(0.22,1,0.36,1);
}
.cvw-nav-item.active .cvw-nav-bar::after { width: 100%; }

/* ── RIGHT — overflow hidden, panels moved by JS transform ── */
.cvw-right {
    flex: 1;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: var(--cvw-bg);
}

.cvw-right-inner { will-change: transform; }

/* ── PANELS ── */
.cvw-panel {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 70px;
    position: relative;
    overflow: hidden;
    background: var(--cvw-bg);
}

.cvw-panel[data-index="0"] { background: #ffffff; }
.cvw-panel[data-index="1"] { background: #fdfcfb; }
.cvw-panel[data-index="2"] { background: #fcfbfa; }
.cvw-panel[data-index="3"] { background: #fafaf9; }

.cvw-panel-line-top {
    position: absolute;
    top: 0; left: 70px; right: 70px; height: 1px;
    background: linear-gradient(to right, var(--cvw-gold), transparent);
    opacity: 0.35;
}

.cvw-panel-bg-num {
    position: absolute;
    right: -10px; bottom: -40px;
    font-family: 'Exo', sans-serif;
    font-size: 260px; font-weight: 900; line-height: 1;
    color: rgba(50,74,90,0.04);
    pointer-events: none; letter-spacing: -0.05em;
    user-select: none; transition: color 0.6s ease;
}
.cvw-panel.in-view .cvw-panel-bg-num { color: rgba(255,127,39,0.06); }

.cvw-corner-mark {
    position: absolute;
    top: 40px; right: 70px;
    width: 28px; height: 28px;
    border-top: 1px solid rgba(255,127,39,0.3);
    border-right: 1px solid rgba(255,127,39,0.3);
}

.cvw-p-inner {
    max-width: 480px; width: 100%;
    position: relative; z-index: 1;
    opacity: 0; transform: translateX(28px);
    transition: opacity 0.75s cubic-bezier(0.22,1,0.36,1),
                transform 0.75s cubic-bezier(0.22,1,0.36,1);
}
.cvw-panel.in-view .cvw-p-inner { opacity: 1; transform: translateX(0); }

.cvw-p-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 36px; }
.cvw-p-kicker-num { font-family: 'Exo', sans-serif; font-size: 13px; font-style: italic; color: var(--cvw-gold); letter-spacing: 0.05em; }
.cvw-p-kicker-line { width: 40px; height: 1px; background: var(--cvw-gold); opacity: 0.5; }
.cvw-p-kicker-tag { font-family: 'Exo', sans-serif; font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--cvw-muted); }

.cvw-p-title {
    font-family: 'Exo', sans-serif;
    font-size: clamp(52px, 6vw, 88px);
    font-weight: 900; line-height: 1;
    letter-spacing: -0.03em;
    color: var(--cvw-text); margin-bottom: 32px;
    white-space: nowrap;
}
.cvw-t-outline { -webkit-text-stroke: 1.5px rgba(255,127,39,0.9); color: transparent; display: inline; }

.cvw-p-divider { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.cvw-p-divider-dot { width: 5px; height: 5px; background: var(--cvw-gold); border-radius: 50%; flex-shrink: 0; }
.cvw-p-divider-line { flex: 1; height: 1px; background: linear-gradient(to right, var(--cvw-gold), transparent); opacity: 0.35; }

.cvw-p-desc { font-family: 'Exo', sans-serif; font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--cvw-muted); }
.cvw-p-desc strong { color: var(--cvw-text); font-weight: 500; }

.cvw-p-tag-wrap { margin-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.cvw-p-tag {
    font-family: 'Exo', sans-serif;
    font-size: 9px; letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cvw-gold);
    border: 1px solid rgba(255,127,39,0.3);
    padding: 6px 14px; display: inline-block;
}

/* ── Elementor editor helpers ── */
.elementor-editor-active .cvw-section-wrap { height: auto !important; }
.elementor-editor-active .cvw-sticky-stage { position: relative; }
.elementor-editor-active .cvw-right { overflow-y: auto; }
