/*!
 * Hero 04 — Beauty Corporativo Premium
 * Autoria: Uebsites - https://uebsites.com.br - 2026-05-16
 */

.pueb-hero--corporate {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

/* Fundo */
.pueb-hero--corporate .pueb-hero-bg-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.pueb-hero--corporate .pueb-hero-slider {
    position: absolute;
    inset: 0;
}

.pueb-hero--corporate .pueb-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.pueb-hero--corporate .pueb-hero-slide.is-active {
    opacity: 1;
}

.pueb-hero--corporate .pueb-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vídeo de fundo */
.pueb-hero--corporate .pueb-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay */
.pueb-hero--corporate .pueb-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--pueb-hero-overlay, #0a0510) 80%, transparent) 0%,
        color-mix(in srgb, var(--pueb-hero-overlay, #0a0510) 50%, transparent) 100%
    );
    opacity: var(--pueb-hero-overlay-opacity, 0.55);
    z-index: 1;
}

/* Layout */
.pueb-hero--corporate .pueb-hero-inner {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 100px;
    padding-bottom: 60px;
}

/* Título */
.pueb-hero--corporate .pueb-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.12;
    margin-bottom: 20px;
}

.pueb-hero--corporate .pueb-hero-subtitle {
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    color: color-mix(in srgb, var(--pueb-cor-textos, #fff) 70%, transparent);
    max-width: 500px;
    margin-bottom: 32px;
}

/* Badge */
.pueb-badge--corporate {
    background: color-mix(in srgb, var(--pueb-cor-primaria, #d4af7a) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--pueb-cor-primaria, #d4af7a) 30%, transparent);
    color: var(--pueb-cor-primaria, #d4af7a);
}

/* Botão corporativo */
.pueb-btn--corp {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pueb-btn-micro {
    font-size: 10px;
    opacity: .7;
    letter-spacing: .08em;
}

/* Estatísticas */
.pueb-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 32px;
}

.pueb-hero-stat {
    padding: 16px 20px;
    border-radius: 14px;
    text-align: center;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.pueb-hero-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--pueb-cor-primaria, #d4af7a);
}

.pueb-hero-stat small {
    font-size: 11px;
    color: color-mix(in srgb, var(--pueb-cor-textos, #fff) 60%, transparent);
    text-transform: uppercase;
    letter-spacing: .06em;
    display: block;
    margin-top: 4px;
}

/* Before/After */
.pueb-hero-ba {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-width: 520px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    user-select: none;
}

.pueb-hero-ba-before,
.pueb-hero-ba-after {
    position: relative;
}

.pueb-hero-ba-after {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0s;
}

.pueb-hero-ba img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pueb-hero-ba-label {
    position: absolute;
    bottom: 12px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
}

.pueb-hero-ba-before .pueb-hero-ba-label {
    right: 12px;
}

.pueb-hero-ba-after .pueb-hero-ba-label {
    left: 12px;
}

.pueb-hero-ba-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.pueb-hero-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.pueb-hero-ba-line {
    position: absolute;
    inset: 0;
    background: var(--pueb-cor-primaria, #d4af7a);
}

.pueb-hero-ba-grip {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pueb-cor-primaria, #d4af7a);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.pueb-hero-ba-grip .pueb-icon {
    width: 12px;
    height: 12px;
    color: var(--pueb-cor-bg, #0a0510);
}

.pueb-hero-ba-grip .pueb-icon:first-child {
    transform: rotate(180deg);
}

/* Imagem corporativa */
.pueb-hero-corp-img {
    border-radius: 16px;
    overflow: hidden;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.pueb-hero-corp-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Glass */
.pueb-hero--corporate .pueb-glass {
    background: rgba(255, 255, 255, .05);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 1024px) {
    .pueb-hero--corporate .pueb-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 120px;
    }
    .pueb-hero--corporate .pueb-hero-subtitle {
        margin-inline: auto;
    }
    .pueb-hero--corporate .pueb-hero-actions {
        justify-content: center;
    }
    .pueb-hero-stats {
        justify-content: center;
    }
    .pueb-hero--corporate .pueb-hero-visual {
        order: -1;
    }
    .pueb-hero-ba,
    .pueb-hero-corp-img {
        max-width: 400px;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .pueb-hero-stat {
        min-width: 80px;
        padding: 12px 14px;
    }
    .pueb-hero-stat-num {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .pueb-hero--corporate .pueb-hero-inner {
        padding-top: 90px;
        padding-bottom: 40px;
    }
    .pueb-hero-ba,
    .pueb-hero-corp-img {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pueb-hero--corporate .pueb-hero-slide,
    .pueb-hero--corporate .pueb-hero-video {
        animation: none !important;
        transition: none !important;
    }
}
