/* ==========================================================================
   HERO SLIDER — Flamingo Piscinas (profissional e moderno)
   ========================================================================== */

.hero-slider {
    position: relative;
    margin-top: 196px;                 /* compensa o cabeçalho fixo */
    height: calc(100vh - 196px);
    min-height: 540px;
    max-height: 880px;
    overflow: hidden;
    background: #062a3a;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease;
}

.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }

/* Fundo com imagem + gradiente (camada própria p/ efeito de zoom) */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.hero-slide.active .hero-bg {
    animation: heroKenburns 9s ease forwards;
}

@keyframes heroKenburns {
    from { transform: scale(1.02); }
    to   { transform: scale(1.12); }
}

/* Fundos de cada slide (imagem opcional + fallback de textura/gradiente) */
.hero-slide-1 .hero-bg {
    background-image:
        linear-gradient(115deg, rgba(4, 34, 50, 0.82) 0%, rgba(0, 110, 150, 0.55) 60%, rgba(0, 170, 174, 0.35) 100%),
        url('images/slide-troca.jpg'),
        url('images/hero.jpg');
}
.hero-slide-2 .hero-bg {
    background-image:
        linear-gradient(115deg, rgba(8, 20, 48, 0.86) 0%, rgba(10, 60, 110, 0.62) 60%, rgba(0, 120, 160, 0.40) 100%),
        url('images/slide-tramado.jpg'),
        url('images/revestimentos/azul-marmore.jpg');
}
.hero-slide-3 .hero-bg {
    background-image:
        linear-gradient(115deg, rgba(190, 20, 95, 0.72) 0%, rgba(255, 90, 60, 0.55) 55%, rgba(255, 170, 40, 0.40) 100%),
        url('images/slide-promo.jpg'),
        url('images/hero.jpg');
}

/* Conteúdo */
.hero-slide .container { position: relative; z-index: 2; width: 100%; }

.hero-slide-content {
    max-width: 700px;
    color: #ffffff;
    opacity: 0;
    transform: translateY(26px);
}

.hero-slide.active .hero-slide-content {
    animation: heroContentUp 0.8s 0.25s ease forwards;
}

@keyframes heroContentUp {
    to { opacity: 1; transform: none; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero-badge i { font-size: 0.9rem; }

.hero-slide-title {
    font-size: clamp(2.4rem, 5.2vw, 4.3rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero-slide-title .accent {
    display: block;
    background: linear-gradient(135deg, #ffd700 0%, #ff8a3d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slide-text {
    font-size: clamp(1.02rem, 1.6vw, 1.28rem);
    font-weight: 400;
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-slide-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: pointer;
}

.hero-btn-primary {
    background: #ffffff;
    color: #06405a;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero-btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.hero-btn-whats {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(37, 211, 102, 0.45);
}

.hero-btn-whats:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 46px rgba(37, 211, 102, 0.6);
}

.hero-btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

/* Setas */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover { background: rgba(0, 0, 0, 0.5); transform: translateY(-50%) scale(1.08); }
.hero-arrow.prev { left: 24px; }
.hero-arrow.next { right: 24px; }

/* Indicadores (dots em linha) */
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    border-radius: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease;
    position: relative;
    overflow: hidden;
}

.hero-dot.active { background: rgba(255, 255, 255, 0.55); width: 56px; }

/* Barra de progresso do autoplay dentro do dot ativo */
.hero-dot .hero-dot-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: #ffffff;
    border-radius: 50px;
}

.hero-dot.active .hero-dot-fill.run {
    animation: heroProgress var(--hero-interval, 6s) linear forwards;
}

@keyframes heroProgress { from { width: 0; } to { width: 100%; } }

/* Responsivo */
@media (max-width: 968px) {
    .hero-slide-content { max-width: 100%; }
    .hero-arrow { width: 46px; height: 46px; font-size: 1rem; }
    .hero-arrow.prev { left: 12px; }
    .hero-arrow.next { right: 12px; }
}

@media (max-width: 600px) {
    .hero-slider {
        margin-top: 126px;                 /* cabeçalho menor no mobile */
        height: auto;
        min-height: 560px;
        max-height: none;
    }
    .hero-slide { padding: 70px 0; }
    .hero-slide-actions { flex-direction: column; align-items: flex-start; }
    .hero-btn { width: 100%; justify-content: center; }
    .hero-arrow { display: none; }
    .hero-badge { font-size: 0.74rem; }
}
