/* =========================================================
   CARIMOCHIL
   STYLE PRINCIPAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #172033;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.cabecalho {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8ebf0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cabecalho-conteudo {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0d47a1;
    white-space: nowrap;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-left: auto;
}

.menu a {
    color: #4c5565;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.menu a:hover {
    color: #0d47a1;
}

.acoes {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-login,
.btn-cadastrar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 19px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.btn-login {
    color: #0d47a1;
    border: 1px solid #0d47a1;
    background: #ffffff;
}

.btn-login:hover {
    background: #f1f6ff;
}

.btn-cadastrar {
    color: #ffffff;
    background: #0d47a1;
    border: 1px solid #0d47a1;
}

.btn-cadastrar:hover {
    background: #083579;
}

.menu-mobile {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #dce1e8;
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
    padding: 9px;
}

.menu-mobile span {
    display: block;
    width: 100%;
    height: 2px;
    background: #172033;
    margin: 5px 0;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background: linear-gradient(135deg, #f4f8ff 0%, #ffffff 100%);
    padding: 78px 0 70px;
}

.hero-conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-texto {
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.hero-etiqueta {
    display: inline-block;
    margin-bottom: 14px;
    color: #0d47a1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-texto h1 {
    color: #172033;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -1.5px;
    font-weight: 800;
}

.hero-texto h1 span {
    color: #0d47a1;
}

.hero-texto p {
    max-width: 650px;
    margin: 20px auto 0;
    color: #697386;
    font-size: 17px;
}


/* =========================================================
   PESQUISA
========================================================= */

.pesquisa {
    width: 100%;
    max-width: 1050px;
    margin-top: 42px;
    background: #ffffff;
    border: 1px solid #e2e7ee;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 35px rgba(22, 40, 70, 0.09);
}

.tipo-pesquisa {
    display: flex;
    gap: 5px;
    padding: 4px;
    border-bottom: 1px solid #edf0f4;
}

.tipo {
    border: 0;
    background: transparent;
    color: #667085;
    padding: 11px 20px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 600;
}

.tipo:hover {
    background: #f5f7fa;
}

.tipo.ativo {
    background: #0d47a1;
    color: #ffffff;
}

.campos-pesquisa {
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr auto;
    gap: 10px;
    padding: 12px 4px 4px;
}

.campos-pesquisa select,
.campos-pesquisa input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dce1e8;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #303846;
}

.campos-pesquisa select:focus,
.campos-pesquisa input:focus {
    border-color: #0d47a1;
}

.campos-pesquisa input::placeholder {
    color: #9aa3b2;
}

.btn-pesquisar {
    min-width: 125px;
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 7px;
    background: #0d47a1;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s ease;
}

.btn-pesquisar:hover {
    background: #083579;
}


/* =========================================================
   TÍTULOS DAS SECÇÕES
========================================================= */

.titulo-seccao {
    text-align: center;
    margin-bottom: 38px;
}

.titulo-seccao h2 {
    color: #172033;
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 9px;
}

.titulo-seccao p {
    color: #727b8b;
    font-size: 15px;
}


/* =========================================================
   CATEGORIAS
========================================================= */

.categorias {
    padding: 80px 0;
    background: #ffffff;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.categoria {
    display: block;
    padding: 30px 24px;
    background: #ffffff;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.categoria:hover {
    transform: translateY(-4px);
    border-color: #c5d4eb;
    box-shadow: 0 10px 25px rgba(20, 42, 76, 0.08);
}

.icone {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4ff;
    border-radius: 50%;
    font-size: 29px;
}

.categoria h3 {
    margin-bottom: 7px;
    color: #172033;
    font-size: 18px;
}

.categoria p {
    color: #737c8c;
    font-size: 14px;
}


/* =========================================================
   DESTAQUES
========================================================= */

.destaques {
    padding: 80px 0;
    background: #f7f9fc;
}

.anuncios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.anuncio {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e7ed;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.anuncio:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(25, 43, 70, 0.09);
}

.anuncio-imagem {
    height: 210px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(135deg, #dce8f8, #eef3f9);
}

.anuncio-imagem span {
    display: inline-block;
    padding: 6px 11px;
    border-radius: 5px;
    background: #0d47a1;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.anuncio-info {
    padding: 21px;
}

.anuncio-info h3 {
    color: #172033;
    font-size: 19px;
    margin-bottom: 7px;
}

.anuncio-info p {
    color: #747e8d;
    font-size: 14px;
    margin-bottom: 13px;
}

.anuncio-info strong {
    color: #0d47a1;
    font-size: 18px;
}


/* =========================================================
   RODAPÉ
========================================================= */

.rodape {
    background: #111827;
    color: #ffffff;
    padding-top: 55px;
}

.rodape-conteudo {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 45px;
}

.rodape-coluna h2 {
    font-size: 23px;
    margin-bottom: 14px;
}

.rodape-coluna h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.rodape-coluna p {
    max-width: 350px;
    color: #aeb7c6;
    font-size: 14px;
    margin-bottom: 8px;
}

.rodape-coluna a {
    display: block;
    width: fit-content;
    color: #aeb7c6;
    font-size: 14px;
    margin-bottom: 9px;
    transition: color 0.2s ease;
}

.rodape-coluna a:hover {
    color: #ffffff;
}

.copyright {
    border-top: 1px solid #283142;
    padding: 18px 20px;
    text-align: center;
}

.copyright p {
    color: #8e98a9;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 1000px) {

    .menu {
        gap: 18px;
    }

    .campos-pesquisa {
        grid-template-columns: 1fr 1fr;
    }

    .btn-pesquisar {
        width: 100%;
    }

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .anuncios {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 850px) {

    .cabecalho-conteudo {
        min-height: 68px;
    }

    .menu {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 20px 20px;
        background: #ffffff;
        border-bottom: 1px solid #e5e8ed;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .menu.aberto {
        display: flex;
    }

    .menu a {
        padding: 13px 5px;
        border-bottom: 1px solid #f0f2f5;
    }

    .acoes {
        margin-left: auto;
    }

    .menu-mobile {
        display: block;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-texto h1 {
        font-size: 40px;
    }

}


@media (max-width: 650px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .logo {
        font-size: 21px;
    }

    .acoes {
        display: none;
    }

    .hero-texto h1 {
        font-size: 34px;
        letter-spacing: -0.8px;
    }

    .hero-texto p {
        font-size: 15px;
    }

    .pesquisa {
        margin-top: 30px;
    }

    .campos-pesquisa {
        grid-template-columns: 1fr;
    }

    .categorias,
    .destaques {
        padding: 60px 0;
    }

    .categorias-grid,
    .anuncios {
        grid-template-columns: 1fr;
    }

    .titulo-seccao h2 {
        font-size: 26px;
    }

    .rodape-conteudo {
        grid-template-columns: 1fr;
        gap: 30px;
    }

}


@media (max-width: 420px) {

    .hero-texto h1 {
        font-size: 30px;
    }

    .tipo-pesquisa {
        width: 100%;
    }

    .tipo {
        flex: 1;
        padding: 10px 8px;
        font-size: 13px;
    }

    .anuncio-imagem {
        height: 180px;
    }

}