/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* LAYOUT FULL SCREEN E CORES */
:root {
    --color-primary: #8c50ff;     /* Roxo/Lilás, fundo */
    --color-green: #1aff1a;       /* Verde Lima */
    --color-text-light: #ffe9ce;  /* Creme */
    --color-white: #FFFFFF;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-primary);
}

/* HEADER FIXO */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 60px;
    z-index: 10;
}

/* Estilo do Logo do Header */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px; 
    width: auto;
}

.logo-text {
    color: var(--color-white);
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 10px;
}

/* Estilo da Navegação */
.main-nav a {
    color: var(--color-green); 
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-left: 40px;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-text-light); 
}

/* CARROSSEL - ESTRUTURA E TRANSIÇÃO */
#carousel-container {
    width: 100vw;
    height: 100vh;
}

#carousel-inner {
    height: 100%;
    display: flex; 
    width: 500vw; 
    transition: transform 1s ease-in-out; 
}

.slide {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
}

/* ESTILO DO CONTEÚDO PARA SLIDES (padrão) */
.slide-content {
    display: flex; 
    justify-content: center;
    align-items: center; 
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding-top: 100px; 
    color: var(--color-text-light);
}

.headline {
    font-size: 3em;
    font-weight: 700;
    max-width: 400px;
    text-align: left;
    text-transform: lowercase;
}

/* ------------------------------------- */
/* LAYOUT CSS GRID ESPECÍFICO PARA A HOME (slide-0) */
/* ------------------------------------- */

.slide-content.home-layout {
    display: grid;
    /* 7 colunas: Espaço(1fr) | CONTEÚDO 1 | Espaço(1fr) | CONTEÚDO 2 | Espaço(1fr) | CONTEÚDO 3 | Espaço(1fr) */
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; 
    
    /* Centraliza verticalmente o conjunto de elementos no slide */
    align-items: center; 
    
    height: 100vh;
    padding-top: 100px; 
}

/* 1. BLOCO ESQUERDO: BIG U (33vh) */
.left-content-area {
    grid-column: 2 / 3; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: flex-start; 
}

.big-u-container {
    width: 33vh; 
    height: 33vh; 
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-u-img {
    max-width: 100%; 
    max-height: 100%;
    object-fit: contain; 
}

/* 2. BLOCO CENTRAL: TEXTO HEADLINE */
.headline-block {
    grid-column: 4 / 5; 
    align-self: center; 
    margin-bottom: 0;
}
.headline-block .headline {
    font-size: 3em;
    color: var(--color-green); 
    max-width: 400px;
    text-align: left;
}

/* 3. BLOCO DIREITO: IMAGEM DA GAROTA (80vh) */
.image-area {
    grid-column: 6 / 7; 
    display: flex;
    justify-content: flex-start;
    align-items: center; 
    height: 100%;
}

.image-placeholder {
    width: 45vh; 
    height: 80vh; 
    
    background-image: url('assets/garota_cel.png'); 
    background-size: cover; 
    background-position: center bottom; 
    background-repeat: no-repeat;
}


/* ------------------------------------- */
/* LAYOUT SLIDE SERVIÇOS (slide-3) */
/* ------------------------------------- */

.slide-content.service-layout {
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 60px 50px 60px; 
    height: 100vh;
}

.section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
    max-width: 1200px;
    width: 90vw; 
}

.service-block {
    background-color: rgba(255, 255, 255, 0.1); 
    padding: 30px 20px;
    border-radius: 10px;
    color: var(--color-white);
    transition: transform 0.3s, background-color 0.3s;
    text-align: center;
    
    /* Usando min-height para ser flexível em vez de height fixo */
    min-height: 40vh; 
    
    /* Flexbox para CENTRALIZAR o conteúdo interno */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
}

.service-block:hover {
    background-color: var(--color-primary); 
    outline: 2px solid var(--color-green); 
    transform: translateY(-5px);
}

.service-icon {
    /* REMOVIDA UMA DUPLICIDADE AQUI */
    color: var(--color-green); 
    display: block;
    margin-bottom: 15px; 
    height: 60px; 
    display: flex; /* REMOVIDA OUTRA DUPLICIDADE AQUI */
    justify-content: center;
    align-items: center;
}

.service-icon img.service-img {
    height: 100%; 
    width: auto;
    object-fit: contain;
    display: block; 
}

.service-icon .mobile-icon {
    display: none; 
    font-size: 2.5em; 
}


.service-block h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: var(--color-text-light); 
}

.service-block p {
    font-size: 0.9em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
}


/* INDICADORES DE NAVEGAÇÃO FIXOS */
.slide-indicators-fixed {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.indicator.active {
    background-color: var(--color-green);
}


/* ================================================= */
/* MEDIA QUERIES PARA RESPONSIVIDADE        */
/* ================================================= */

/* ------------------------------------- */
/* 1. AJUSTES GERAIS E HEADER (Tablet/Smartphone) */
/* ------------------------------------- */

@media (max-width: 1024px) {
    .headline {
        font-size: 2.5em;
        max-width: 90vw;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 20px 30px; 
    }
    .logo-text {
        font-size: 1.2em; 
    }
    .main-nav a {
        font-size: 0.9em; 
        margin-left: 20px;
    }
    .slide-content {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    /* 1. LAYOUT DO HEADER NO TOPO (EMPILHADO E CENTRALIZADO) */
    .main-header {
        flex-direction: column;
        align-items: center; 
        padding: 20px 10px; 
        height: auto; 
    }

    .logo {
        margin-bottom: 10px; 
    }
    
    .logo-img {
        height: 30px; 
    }
    
    .logo-text {
        font-size: 1.1em;
    }

    .main-nav {
        margin-top: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
    }
    .main-nav a {
        margin: 0 5px;
        font-size: 0.75em;
    }
    
    /* 4. INDICADORES */
    .slide-indicators-fixed {
        bottom: 10px; 
        gap: 10px;
    }
    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* ------------------------------------- */
/* 2. RESPONSIVIDADE PARA O SLIDE HOME (slide-0) */
/* ------------------------------------- */

/* Tablet e Desktop Pequeno (Max 1024px) */
@media (max-width: 1024px) {
    .slide-content.home-layout {
        grid-template-columns: 1fr 30vw 1fr auto 1fr;
    }

    .left-content-area {
        display: none; 
    }
    
    .image-area {
        grid-column: 2 / 3;
        grid-row: 1; 
        justify-content: center;
        align-items: flex-end; 
        height: 100vh;
        padding-top: 100px;
    }

    .headline-block {
        grid-column: 4 / 5;
        grid-row: 1;
        align-self: center;
    }
    
    .image-placeholder {
        width: 35vh; 
        height: 60vh;
    }
}


/* Smartphone (Max 768px) */
@media (max-width: 768px) {
    .slide-content.home-layout {
        grid-template-columns: 1fr 1fr 1fr; 
        grid-template-rows: auto auto; 
        align-content: center; 
        padding-top: 120px;
    }

    .image-area {
        grid-column: 1 / 4; 
        grid-row: 1; 
        justify-content: center;
        align-items: flex-end;
        height: 45vh; 
    }
    
    .image-placeholder {
        width: 30vh;
        height: 40vh;
        background-position: center bottom;
    }

    .headline-block {
        grid-column: 1 / 4; 
        grid-row: 2; 
        text-align: center;
        margin-top: 20px;
    }
    
    .headline-block .headline {
        font-size: 2em; 
        max-width: 90vw;
        text-align: center;
    }
}

/* ------------------------------------- */
/* 3. RESPONSIVIDADE PARA O SLIDE SERVIÇOS (slide-3) */
/* ------------------------------------- */

/* Tablet (Max 1024px) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas */
        gap: 20px;
    }
    .section-title {
        margin-bottom: 30px;
    }
    .service-block {
        min-height: 35vh;
    }
}

/* Smartphone (Max 600px) */
@media (max-width: 600px) {
    
    /* 2. CORREÇÃO DE OVERFLOW E MARGEM VERTICAL */
    .slide-content.service-layout {
        /* Garante margem superior (para o header) e inferior (para as bolinhas) */
        padding: 120px 20px 50px 20px; 
        justify-content: flex-start; /* Alinha o conteúdo ao topo da área de padding */
        height: 100%; /* Permite que o conteúdo use o espaço disponível */
    }

    .services-grid {
        grid-template-columns: 1fr; /* 1 coluna */
        gap: 15px; /* Menor espaçamento */
        max-width: 300px;
        
        /* CRÍTICO: Limita a altura e permite a rolagem */
        /* Subtrai o espaço ocupado pelo header (aprox. 100px) e indicadores (aprox. 30px) + padding */
        max-height: calc(100vh - 170px); 
        overflow-y: auto; 
    }
    
    .service-block {
        min-height: auto; 
        padding: 15px 10px;
    }
    .service-block h3 {
        font-size: 1.1em;
    }
    .service-block p {
        font-size: 0.9em;
    }
    
    /* Substituição de Ícones */
    .service-icon {
        height: 40px; 
        margin-bottom: 10px;
    }

    .service-icon img.service-img {
        display: none; 
    }

    .service-icon .mobile-icon {
        display: block;
        font-size: 2em; 
    }
}