@import url('base.css');

.hero {
    background-color: #000000;
    padding: 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Remover container do hero para ocupar toda a largura */
.hero .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: calc(var(--header-height) + 2rem) 4rem 140px 4rem;
    overflow: hidden;
}

/* Background blur que preenche toda a tela */
.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--bg-image, inherit);
    filter: blur(15px);
    z-index: 1;
    opacity: 1;
}

/* Imagem principal que nunca ultrapassa os limites */
.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    z-index: 2;
    object-fit: contain;
    object-position: center;
}

/* Slides com imagens usando picture/img */
.carousel-slide:has(.slide-bg) {
    background: none;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: white;
    max-width: 60%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: visible;
}

.slide-title {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: -0.02em;
}

.slide-description {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    max-width: 90%;
}

/* CTA Centralizado */
.hero-cta-container {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: all 0.4s ease;
    text-transform: capitalize;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    white-space: nowrap;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background-color: white;
}

.hero-cta .material-icons {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.hero-cta:hover .material-icons {
    transform: translateX(5px);
}

/* Remove CTAs antigos dos slides individuais */
.slide-cta-container {
    display: none;
}

.slide-cta {
    display: none;
}

/* Indicadores do carrossel */
.carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    padding: 2rem 4rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0;
    z-index: 10;
}

.indicator {
    flex: 1;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 80px;
    justify-content: flex-end;
}

.indicator-progress {
    height: 3px;
    background-color: rgba(255, 255, 255, 0.25);
    margin-bottom: 1rem;
    border-radius: 2px;
    overflow: hidden;
    margin-right: 0;
}

.indicator:not(:last-child) .indicator-progress {
    margin-right: 0;
}

.indicator-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 1));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 2px;
}

.indicator.active .indicator-fill {
    width: 100%;
}

.indicator-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.indicator-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.4rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.indicator.active .indicator-number {
    opacity: 1;
    transform: translateY(-2px);
}

.indicator-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    line-height: 1.2;
    opacity: 0.7;
    transition: all 0.3s ease;
    min-height: 1.8rem;
    display: flex;
    align-items: flex-start;
}

.indicator.active .indicator-title {
    opacity: 1;
    font-weight: 600;
}

/* Responsivo Tablet */
@media (max-width: 1024px) {
    .carousel-slide {
        padding: calc(var(--header-height) + 1.5rem) 3rem 120px 3rem;
    }
    
    .slide-content {
        max-width: 70%;
    }
    
    .carousel-indicators {
        padding: 1.5rem 3rem 2.5rem;
    }
    
    .hero-cta-container {
        bottom: 140px;
    }
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        height: 100vh;
    }
    
    .carousel-slide {
        padding: calc(var(--header-height) + 1rem) 1.5rem 100px 1.5rem;
        align-items: center;
        justify-content: flex-start;
    }
    
    .slide-content {
        max-width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        position: relative;
    }
    
    .slide-text-container {
        justify-content: center;
        overflow: visible;
        margin-bottom: 0;
    }
    
    .slide-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .slide-description {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
        margin-bottom: 1.5rem;
        line-height: 1.4;
        max-width: 100%;
    }
    
    /* CTA Mobile */
    .hero-cta-container {
        bottom: 120px;
    }
    
    .hero-cta {
        padding: 0.8rem 1.5rem;
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        gap: 0.6rem;
    }
    
    .hero-cta .material-icons {
        font-size: 1.1rem;
    }
    
    /* Barra de Progresso Mobile - Topo */
    .carousel-indicators::before {
        content: '';
        position: absolute;
        top: calc(var(--header-height) + 1rem);
        left: 1.5rem;
        right: 1.5rem;
        height: 2px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 1px;
        z-index: 5;
    }
    
    .carousel-indicators::after {
        content: '';
        position: absolute;
        top: calc(var(--header-height) + 1rem);
        left: 1.5rem;
        height: 2px;
        background-color: white;
        border-radius: 1px;
        width: 20%;
        transition: width 0.3s ease;
        z-index: 6;
    }
    
    .carousel-indicators[data-active="0"]::after { width: 20%; }
    .carousel-indicators[data-active="1"]::after { width: 40%; }
    .carousel-indicators[data-active="2"]::after { width: 60%; }
    .carousel-indicators[data-active="3"]::after { width: 80%; }
    .carousel-indicators[data-active="4"]::after { width: 100%; }
    
    /* Indicadores Mobile - Layout Horizontal na Parte Inferior */
    .carousel-indicators {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
        padding: 1rem 1.5rem 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        flex-direction: row;
    }
    
    .indicator {
        flex: none;
        width: auto;
        min-height: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0;
        min-width: 35px;
    }
    
    .indicator-progress {
        display: none;
    }
    
    .indicator-fill {
        display: none;
    }
    
    .indicator-content {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .indicator-number {
        font-size: clamp(0.8rem, 3vw, 1rem);
        font-weight: 400;
        color: rgba(255, 255, 255, 0.6);
        margin-bottom: 0;
        opacity: 1;
        transition: all 0.3s ease;
        text-align: center;
        min-width: 30px;
        padding: 0.4rem;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .indicator.active .indicator-number {
        color: white;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }
    
    .indicator-title {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-slide {
        padding: calc(var(--header-height) + 0.5rem) 1rem 80px 1rem;
    }
    
    .slide-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
        margin-bottom: 0.8rem;
    }
    
    .slide-description {
        font-size: clamp(0.85rem, 4.5vw, 1rem);
        margin-bottom: 1.2rem;
    }
    
    .hero-cta-container {
        bottom: 100px;
    }
    
    .hero-cta {
        padding: 0.7rem 1.3rem;
        font-size: clamp(0.8rem, 4vw, 0.9rem);
    }
    
    .carousel-indicators {
        padding: 0.8rem 1rem 1.5rem;
        gap: 0.6rem;
    }
    
    .indicator-number {
        font-size: clamp(0.75rem, 3.5vw, 0.9rem);
        min-width: 28px;
        padding: 0.3rem;
    }
    
    .carousel-indicators::before {
        left: 1rem;
        right: 1rem;
    }
    
    .carousel-indicators::after {
        left: 1rem;
    }
}

@media (max-width: 320px) {
    .carousel-slide {
        padding: calc(var(--header-height) + 0.5rem) 0.8rem 70px 0.8rem;
    }
    
    .slide-title {
        font-size: clamp(1.4rem, 9vw, 1.8rem);
    }
    
    .slide-description {
        font-size: clamp(0.8rem, 5vw, 0.95rem);
    }
    
    .hero-cta-container {
        bottom: 90px;
    }
    
    .hero-cta {
        padding: 0.6rem 1.1rem;
    }
    
    .carousel-indicators {
        padding: 0.6rem 0.8rem 1.2rem;
    }
}