/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Encode Sans", sans-serif;
}

/* ================= HEADER ================= */

header {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    align-items: center;

    padding: 16px 24px;
    
}

header img {
    height: 32px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.menu a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #6B6B6B;
    transition: 0.2s;
}

.menu a:hover {
    color: #000;
}

.menu button {
    padding: 10px 20px;
    border: none;
    border-radius: 24px;
    background-color: #FF6B6B;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ================= HERO ================= */

.hero {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 24px;
    
}

.hero-content {
    width: 100%;
    min-height: 662px;

    border-radius: 20px;

    display: flex;
    align-items: center;

    background-image: url("../src/img-inicio.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;
}

/* Overlay escuro */
.hero-content::before {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-space {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 80px 60px;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-space span {
    font-size: 14px;
    letter-spacing: 2px;
    color: #FAFAFA;
}

.hero-space h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 72px;
    color: #FAFAFA;
}

.hero-space p {
    font-size: 18px;
    line-height: 26px;
    color: #FAFAFA;
}

/* ================= BOTÕES ================= */

.hero-buttons {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-top: 24px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;
    height: 52px;

    font-size: 16px;
    text-decoration: none;
    border-radius: 999px;

    transition: all 0.3s ease;
}

/* Seu botão primário (mantido como você definiu) */
.btn-primary {
    background: #F47574;
    color: #FAFAFA;
}

.btn-primary:hover {
    background: #e5e5e5;
}

.btn-secondary {
    background: transparent;
    color: #FAFAFA;
    border: 1px solid #FAFAFA;
}

.btn-secondary:hover {
    background: #FAFAFA;
    color: #111827;
}

/* Seção 2 - Soluções */
.secaoSolucoes {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 50px;
    text-align: center;
}

.secaoSolucoes span,
.secaoSolucoes h1,
.secaoSolucoes p {
    margin-bottom: 16px; /* espaçamento vertical */
}


.secaoSolucoesDesc {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 40px 80px;

    display: flex;
    gap: 60px;
    align-items: center;
}

/* IMAGEM */
.solucao-imagem {
    flex: 1;
}

.solucao-imagem img {
    width: 100%;
    border-radius: 20px;
    display: block;
}


/* CONTEÚDO */
.solucao-conteudo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ITEM */
.item {
    border-bottom: 1px solid #ddd;
    padding: 18px 0;
}

/* CABEÇALHO */
.titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.left img {
    width: 43px;
    height: 43px;
}

.titulo span {
    font-weight: 600;
    font-size: 20px;
    color: #333;
}

/* SETA */
.arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* DESCRIÇÃO */
.item p {
    margin-top: 12px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    display: none;
}

/* ITEM ATIVO */
.item.ativo p {
    display: block;
}

.item.ativo .arrow {
    transform: rotate(180deg);
}

/* Secão como funciona */


.secaoComoFunc {
    width: 100%;
    max-width: 1366px;
    margin: 60px auto 0 auto;

    padding: 0px 0px;

    min-height: 849px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "texto imagem"
        "passos imagem";

    gap: 60px 80px;

    align-items: start;

    background-image: url("../src/secao_comofunc-fundo-azul.png");
    background-size: cover;
    background-position: center;

    overflow: hidden; /* impede qualquer coisa de sair */
}

/* ================= TOP ================= */

.como-topo {
    grid-area: texto;
    color: #fff;

    padding: 80px 0 0 80px; /* topo e esquerda */
}

.como-topo span {
    color: #8BA8B6;
    font-size: 14px;
    letter-spacing: 1px;
}

.como-topo h1 {
    margin: 20px 0;
    font-size: 40px;
    line-height: 1.2;
}

.como-topo p {
    font-size: 18px;
    line-height: 1.6;
    color: #B8CAD3;
}

/* ================= PASSOS ================= */

.como-passos {
    grid-area: passos;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 80px;

    padding: 0 0 80px 80px; /* esquerda e bottom */
}

.passo {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 280px;
}

.passo h2 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: #F4A6A6;
    margin: 0;
}

.passo h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.passo p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    color: #B8CAD3;
}

/* ================= IMAGEM ================= */

.como-imagem {
    grid-area: imagem;
    height: 100%;
    align-self: stretch;
}

.como-imagem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Secão como Vantagens */
.secaoVantagens {
    width: 100%;
    max-width: 1366px;
    margin: 0 auto;
    padding: 120px 80px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
}

/* TEXTO ESQUERDA */

.vantagens-texto {
    flex: 1;
    max-width: 480px;
}

.vantagens-texto span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #8BA8B6;
}

.vantagens-texto h1 {
    font-size: 40px;
    margin: 20px 0;
    line-height: 1.2;
    color: #111827;
}

.vantagens-texto p {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.6;
}

/* LISTA DIREITA */

.vantagens-lista {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ITEM */

.vantagem-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.vantagem-item img {
    width: 48px;
    height: 48px;
}

.vantagem-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #111827;
}

.vantagem-item p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
}

/* Secção Contatos */
.hero-content-final {
    width: 100%;
    min-height: 662px;

    max-width: 1366px;
    margin: 0 auto;
    margin-top: 20px;
    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center; /* centraliza horizontal */
    text-align: center; /* centraliza texto */

    background-image: url("../src/secao-contato-fundo.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    position: relative;
    overflow: hidden;
}

/* Overlay escuro */
.hero-content-final::before {
    content: "";
    position: absolute;
    inset: 0;
}

.hero-space-final {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    padding: 60px 0px;

    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-space-final span {
    font-size: 14px;
    letter-spacing: 2px;
}

.hero-space-final h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 72px;
}

.hero-space-final p {
    font-size: 18px;
    line-height: 26px;
}

/* ================= BOTÕES ================= */

.hero-buttons-final {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-top: 24px;
    justify-content: center; /* centraliza os botões */
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;
    height: 52px;

    font-size: 16px;
    text-decoration: none;
    border-radius: 999px;

    transition: all 0.3s ease;
}

/* Seu botão primário (mantido como você definiu) */
.btn-primary-final {
    background: #F47574;
    color: #FAFAFA;
}

.btn-primary-final:hover {
    background: #e5e5e5;
}

.btn-secondary-final {
    background: transparent;
    border: 1px solid #111827;
    color: #111827;
}

.btn-secondary-final:hover {
    background: #FAFAFA;
    color: #111827;
}

/* Rodape */ 

.footer {
    width: 100%;
    padding: 0;
}

.footer-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 20px 80px;
    min-height: 140px;

    background: #2F4A5C; /* azul agora só dentro do limite */

    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* LADO ESQUERDO */

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-left img {
    height: 32px; /* controla tamanho real da logo */
    max-width: 140px;
    display: block;
}

.footer-left p {
    font-size: 12px;
    color: #B0C4CF;
}

/* LADO DIREITO */

.footer-right {
    display: flex;
    gap: 40px;
}

.footer-right a {
    font-size: 14px;
    color: #DCE6EC;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-right a:hover {
    opacity: 0.7;
}

/* Hamburge */
.hamburger {
    font-size: 28px;
    cursor: pointer;
    display: none;
    z-index: 1001;
}

/* OVERLAY */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ================= RESPONSIVIDADE ================= */

@media (max-width: 768px) {

    

    .menu {
        display: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;

    }


    .menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 30px;

        transition: top 0.4s ease;
        z-index: 1000;
    }

    .menu.active {
        top: 0;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero-content {
        min-height: 60vh;
    }

    .hero-space {
        padding: 60px 24px;
        max-width: 100%;
        align-items: center;
        text-align: center;
    }

    .hero-space h1 {
        font-size: 36px;
        line-height: 42px;
    }

    .hero-space p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Seção Soluções */
    .secaoSolucoes {
        padding: 40px 20px;
    }

    .secaoSolucoesDesc {
        flex-direction: column; /* imagem em cima, conteúdo embaixo */
        padding: 30px 20px; /* reduz lateral */
        gap: 40px;
    }

    /* Imagem */
    .solucao-imagem img {
        border-radius: 18px;
    }

    /* Conteúdo */
    .solucao-conteudo {
        width: 100%;
        padding: 0 20px; /* controla o respiro só do conteúdo */
        /*gap: 20px;*/
    }

    /* Ícones menores */
    .left img {
        width: 32px;
        height: 32px;
    }

    /* Título menor e mais proporcional */
    .titulo span {
        font-size: 18px;
    }

    /* Texto descrição mais confortável */
    .item p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Secão como funciona */
    .secaoComoFunc {
        display: flex;
        flex-direction: column;
        gap: 40px;
        margin-top: 60px;
    }

    /* TOPO */
    
    .como-topo {
        padding: 50px 25px 0;
    }

    .como-topo h1 {
        font-size: 26px;
    }

    .descricao {
        font-size: 15px;
        margin-bottom: 20px;
    }

    /* IMAGEM */
    .como-imagem {
        width: 100%;
    }

    .como-imagem img {
        width: 100%;
        height: auto;
    }

    /* PASSOS */
    .como-passos {
        padding: 0 25px 50px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .passo h2 {
        font-size: 32px;
    }

    /* Secção Vantagens */
    .secaoVantagens {
        flex-direction: column;
        padding: 60px 24px;
        gap: 40px;
    }

    .vantagens-texto {
        text-align: center;
        max-width: 100%;
    }

    .vantagens-lista {
        width: 100%;
    }

    /* CONTATOS */
    .hero-content-final {
        min-height: auto; /* remove altura exagerada */
        padding: 60px 20px;
        margin-top: 0;
    }

    .hero-space-final {
        padding: 40px 0;
        gap: 20px;
    }

    .hero-space-final span {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .hero-space-final h1 {
        font-size: 32px;
        line-height: 38px;
    }

    .hero-space-final p {
        font-size: 15px;
        line-height: 22px;
    }

    /* BOTÕES UM EMBAIXO DO OUTRO */

    .hero-buttons-final {
        flex-direction: column; /* empilha */
        gap: 16px;
        width: 100%;
        align-items: center;
    }

    .hero-buttons-final li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-buttons-final .btn {
        width: 100%; /* botão ocupa largura total */
        max-width: 320px; /* limite elegante */
    }

    /* Secção Contatos */
    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 30px 24px;
        text-align: center;
        gap: 20px;
    }

    /* Contatos em cima */
    .footer-right {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 20px;
        font-size: 14px;
    }

    /* Logo no meio */
    .footer-left {
        order: 2;
        align-items: center;
        gap: 10px;
    }

    .footer-left img {
        height: 28px;
    }

    /* Texto copyright */
    .footer-left p {
        font-size: 12px;
    }

}