@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0d0f12;
    color: #e5e7eb;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* HEADER FIXO NO TOPO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px;

    background: #0b0d10;
    color: #f9fafb;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);

    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
}

.nav a {
    color: #e5e7eb;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 500;
}

.btn-nav {
    background: #f7b500;
    padding: 8px 14px;
    border-radius: 6px;
    color: #000;
    font-weight: 600;
}

/* MENU HAMBURGUER */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
}

/* HERO — NÃO MEXIDO */
.hero {
    position: relative;
    background-image: url("https://images.unsplash.com/photo-1621905251918-48416bd8575a?q=80&w=2069&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 255px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero-text p {
    color: #e5e7eb;
}

.btn-cta {
    display: inline-block;
    margin-top: 20px;
    background: #25d366;
    color: #fff;
    padding: 14px 22px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

/* CARDS SERVIÇOS */
.servicos {
    position: relative;
    padding: 80px 0;
    top: -30px;

}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #12151a;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: #12151a;
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card h3 {
    margin-top: 12px;
    color: #f9fafb;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

/* NOVA SEÇÃO BAIRRO */
.secao-bairro {
    padding: 80px 0;
    background: #0d0f12;
    text-align: center;
}

.bairro-box {
    background: #12151a;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bairro-box h2 {
    color: #f7b500;
    margin-bottom: 15px;
}

.bairro-box p {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

#bairro {
    width: 100%;
    max-width: 350px;
    padding: 12px 15px;
    background: #1a1d23;
    border: 2px solid #2d333d;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    cursor: pointer;
}

#bairro:focus {
    border-color: #f7b500;
}

.hero-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
}

/* SEÇÕES DARK */
.servicos,
.historia,
.beneficios,
.depoimentos,
.bairro-box,
.cta-final,
.footer {
    background: #0d0f12;
    color: #e5e7eb;
}

/* TÍTULOS */
.servicos h2,
.beneficios h2,
.historia h2,
.depoimentos h2,
.cta-final h2 {
    color: #f9fafb;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* HISTÓRIA UNIFICADA */
.historia {
    padding: 160px 0;
}

.historia-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 40px;
    top: 20px;
}

.historia-texto h2 {
    color: #f9fafb;
    margin-bottom: 20px;
    text-align: left;
}

.historia-texto p {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* ESTILO DOS BENEFÍCIOS LADO A LADO */
.beneficios-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.beneficio-item {
    background: #12151a;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f7b500;
    border: 1px solid rgba(247, 181, 0, 0.3);
    white-space: nowrap;
}

.historia-img img {
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
}

/* DEPOIMENTOS */
.depoimentos {
    background: #0b0d10;
    padding: 130px 50px;
}

.depoimentos-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.depoimento-card {
    background: #12151a;
    padding: 26px;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.depoimento-card p {
    color: #e5e7eb;
}

.depoimento-card span {
    color: #9ca3af;
}

.secao-bairro {
    position: relative;
    padding: 80px;
    top: 20px;
    margin-bottom: 5px;
}

/* BAIRRO */
.bairro-box select {
    background: #12151a;
    color: #f9fafb;
    margin-left: 30px;

}

/* CTA FINAL */
.cta-final {
    text-align: center;
    background: linear-gradient(180deg, #0b0d10, #020204);
}

/* FOOTER */
.footer {
    background: #020204;
    color: #9ca3af;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* BOTÃO TOPO */
#btnTopo {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: none;
    background: #f7b500;
    color: #000;
    font-size: 24px;
    cursor: pointer;
    display: none;

    /* ISSO AQUI É O QUE RESOLVE */
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 999;
    box-shadow: 0 0 25px rgba(247, 181, 0, 0.9);
    animation: alertaLuz 1.5s infinite;
}

/* ALERTA */
@keyframes alertaLuz {
    0% {
        box-shadow: 0 0 10px rgba(247, 181, 0, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(247, 181, 0, 1);
    }

    100% {
        box-shadow: 0 0 10px rgba(247, 181, 0, 0.5);
    }
}

/* ADICIONADO */
#servicos,
#historia,
#beneficios,
#depoimento,
#contato {
    scroll-margin-top: 70px;
}

/* ============================================================
   RESPONSIVO COMPLETO (Tablet e Mobile)
   ============================================================ */

@media (max-width: 992px) {

    .cards,
    .depoimentos-cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas em tablets */
    }
}

@media (max-width: 768px) {

    /* Ajustes Gerais */
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 25px;
    }

    /* Menu Hamburguer - Visual */
    .menu-toggle {
        position: relative;
        display: flex;
        cursor: pointer;
        z-index: 1300;
    }

    /* Localize este bloco dentro do @media (max-width: 768px) e substitua */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 45%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.015);
        backdrop-filter: blur(3px) saturate(130%);
        -webkit-backdrop-filter: blur(5px) saturate(130%);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s ease-in-out;
        z-index: 1200;
    }

    /* ATIVAÇÃO */
    .nav.active {
        right: 0;
    }

    .nav a {
        margin-left: 0;
        font-size: 1.2rem;
    }

    /* Hero e Seções */
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content,
    .historia-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-img img,
    .historia-img img {
        max-width: 100%;
    }

    /* Grids para 1 coluna */
    .cards,
    .depoimentos-cards {
        grid-template-columns: 1fr;
    }

    /* Seção Bairro */
    .secao-bairro {
        padding: 20px 20px;
        /* z-index: 2; */
        margin-bottom: 20px;
    }

    /* AJUSTE BOTÃO ESCOLHER REGIÃO */
    /* BAIRRO */
    /* Dentro do seu media query de 768px, substitua aquele trecho por este: */

    .bairro-box {
        background: #12151a;
        color: #f9fafb;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centraliza tudo que está dentro da box */
        text-align: center;
    }

    #bairro {
        width: 100%;
        /* Ocupa a largura disponível no container pai */
        max-width: 250px;
        /* Define um limite para não ficar gigante no celular */
        margin: 0 auto 20px auto;
        /* O 'auto' nas laterais centraliza horizontalmente */
        display: block;
        /* Garante que o margin auto funcione */
        appearance: none;
        /* Remove estilos padrão do sistema se quiser */
        -webkit-appearance: none;
    }

    /* Se você quiser garantir que o wrapper também não empurre nada */
    .select-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .cta-final {
        position: relative;
        bottom: 20px;
    }

    /* Ajustes de Espaçamento */
    .servicos,
    .historia,
    .depoimentos {
        padding: 60px 0;
        top: 0;
        /* Remove os offsets negativos que quebram o mobile */
    }

    .historia-texto h2 {
        text-align: center;
    }

    .beneficios-lista {
        justify-content: center;
    }

    #btnTopo {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1400;
        /* MAIOR QUE A NAV E O MENU */
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .beneficio-item {
        font-size: 0.8rem;
    }
}