/* ============================================================
   Evoltima Results Section — style.css
   ============================================================ */

.evoltima-results {
    background-color: var(--evoltima-bg);
}

/* ── Section header ───────────────────────────────────────── */

.evoltima-results__header {
    text-align: center;
    margin-bottom: 40px;
}

.evoltima-results__label {
    font-family: var(--evoltima-font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--evoltima-text-muted);
    margin: 0 0 16px;
}

.evoltima-results__heading {
    font-family: var(--evoltima-font-serif);
    font-size: clamp(28px, 3.5vw, 46px);
    font-weight: 400;
    color: var(--evoltima-text);
    margin: 0 0 24px;
    line-height: 1.15;
}

.evoltima-results__gallery-btn {
    display: inline-block;
}

/* ── Tab navigation ───────────────────────────────────────── */

.evoltima-results__tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 48px;
    border-bottom: 1px solid #d8d4cf;
}

.evoltima-results__tab {
    position: relative;
    background: none;
    border: none;
    padding: 12px 28px;
    font-family: var(--evoltima-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--evoltima-text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.evoltima-results__tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--evoltima-accent);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.evoltima-results__tab:hover {
    color: var(--evoltima-accent);
}

.evoltima-results__tab.is-active {
    color: var(--evoltima-accent);
}

.evoltima-results__tab.is-active::after {
    transform: scaleX(1);
}

/* ── Panels ───────────────────────────────────────────────── */

.evoltima-results__panel {
    display: none;
}

.evoltima-results__panel.is-active {
    display: block;
    animation: evoltima-fade-in 0.35s ease forwards;
}

@keyframes evoltima-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.evoltima-results__panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ── Comparison slider ────────────────────────────────────── */

.evoltima-compare {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 5;
    background-color: #e0dbd5;
    user-select: none;
    cursor: ew-resize;
    touch-action: pan-y;
}

.evoltima-compare--single {
    cursor: default;
}

.evoltima-compare__before-img,
.evoltima-compare__after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* After image is clipped from the right; JS updates this */
.evoltima-compare__after-img {
    clip-path: inset(0 50% 0 0);
}

/* Before / After labels */
.evoltima-compare__badge {
    position: absolute;
    top: 16px;
    z-index: 4;
    font-family: var(--evoltima-font-sans);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0,0,0,0.42);
    padding: 4px 10px;
    border-radius: 2px;
    pointer-events: none;
}

.evoltima-compare__badge--before { left: 16px; }
.evoltima-compare__badge--after  { right: 16px; }

/* Divider handle */
.evoltima-compare__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.evoltima-compare__handle-line {
    flex: 1;
    width: 2px;
    background: var(--evoltima-accent-light);
}

.evoltima-compare__handle-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--evoltima-accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 14px rgba(31, 111, 107, 0.35);
    pointer-events: none;
    transition: background-color 0.2s ease;
}

/* ── Media section (slider + caption) ────────────────────── */

.evoltima-results__caption {
    font-family: var(--evoltima-font-sans);
    font-size: 11.5px;
    font-style: italic;
    color: var(--evoltima-text-muted);
    margin: 12px 0 0;
    line-height: 1.6;
}

/* ── Text content ─────────────────────────────────────────── */

.evoltima-results__content {
    padding-top: 8px;
}

.evoltima-results__title {
    font-family: var(--evoltima-font-serif);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 400;
    color: var(--evoltima-text);
    margin: 0 0 20px;
    line-height: 1.25;
}

.evoltima-results__text {
    font-family: var(--evoltima-font-sans);
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--evoltima-text-muted);
    margin-bottom: 32px;
}

.evoltima-results__btn {
    display: inline-block;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 900px) {
    .evoltima-results__panel-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .evoltima-compare {
        aspect-ratio: 4 / 3;
    }

    .evoltima-results__tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0;
    }

    .evoltima-results__tab {
        padding: 10px 18px;
        font-size: 11px;
    }
}

@media (max-width: 540px) {
    .evoltima-results {
        padding: 56px 0;
    }

    .evoltima-results__header {
        margin-bottom: 28px;
    }
}
