/* ==========================================================
   REPRESENTANTES - ECODIFFUSORE
========================================================== */

:root {
    --verde: #22c55e;
    --verde-dark: #14532d;
    --verde-map: #72a97a;
    --verde-map-hover: #8bc78f;

    --fundo: #020617;
    --fundo-2: #050505;

    --branco: #ffffff;
    --texto: #e5e7eb;
    --texto-muted: #94a3b8;

    --borda: rgba(255, 255, 255, 0.10);

    --radius: 18px;
}


/* ==========================================================
   RESET
========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: var(--fundo);
    color: var(--texto);

    font-family: Arial, Helvetica, sans-serif;

    min-height: 100vh;
}


/* ==========================================================
   HEADER
========================================================== */

#header-wrap {
    position: relative;
    z-index: 1000;
}

.navbar {
    background: rgba(2, 6, 23, 0.96);

    min-height: 80px;

    border-bottom: 1px solid var(--borda);

    backdrop-filter: blur(10px);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    max-height: 52px;
    width: auto;
}


/* ==========================================================
   MENU
========================================================== */

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    color: var(--branco);

    font-size: 15px;
    font-weight: 500;

    padding: 10px 15px;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--verde);
}


/* ==========================================================
   BOTÃO MOBILE
========================================================== */

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.20);

    color: var(--branco);

    padding: 8px 11px;

    border-radius: 8px;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler i {
    font-size: 20px;
}


/* ==========================================================
   MENU MOBILE
========================================================== */

.mobile-menu {
    display: none;
}


/* ==========================================================
   PÁGINA
========================================================== */

.representantes-page {
    min-height: calc(100vh - 80px);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(34, 197, 94, 0.08),
            transparent 40%
        ),
        var(--fundo);
}


/* ==========================================================
   SEÇÃO
========================================================== */

.representantes-section {
    padding: 130px 20px 90px;
}


/* ==========================================================
   TÍTULO
========================================================== */

.section-heading {
    max-width: 800px;

    margin: 0 auto 30px;

    text-align: center;
}

.section-subtitle {
    display: block;

    color: var(--verde);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.section-heading h1 {
    margin: 0 0 15px;

    color: var(--branco);

    font-size: clamp(32px, 5vw, 56px);

    font-weight: 800;

    line-height: 1.05;
}

.section-heading p {
    margin: 0 auto;

    max-width: 650px;

    color: var(--texto-muted);

    font-size: 17px;

    line-height: 1.6;
}
/* ==========================================================
   MAPA
   ========================================================== */

.mapa-container {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;

    min-height: 560px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}


/* ==========================================================
   SVG
   ========================================================== */

.mapa-container svg {
    display: block;

    width: 100%;
    height: auto;

    max-width: 900px;
    max-height: 700px;

    overflow: visible;
}


/* ==========================================================
   BORDA DOS ESTADOS
   ========================================================== */

.mapa-container svg #features path {

    stroke: #ffffff;
    stroke-width: 1px;

    stroke-linejoin: round;
    stroke-linecap: round;

    cursor: pointer;

    transition:
        fill 0.25s ease,
        stroke-width 0.25s ease,
        filter 0.25s ease,
        opacity 0.25s ease;
}


/* ==========================================================
   CORES DAS REGIÕES
   ========================================================== */

/* NORTE */

.mapa-container svg #regiao-norte path {
    fill: #3FAE72 !important;
}


/* NORDESTE */

.mapa-container svg #regiao-nordeste path {
    fill: #F2A65A !important;
}


/* CENTRO-OESTE */

.mapa-container svg #regiao-centro-oeste path {
    fill: #E5C453 !important;
}


/* SUDESTE */

.mapa-container svg #regiao-sudeste path {
    fill: #4F8FD9 !important;
}


/* SUL */

.mapa-container svg #regiao-sul path {
    fill: #9B70C9 !important;
}


/* ==========================================================
   HOVER
   ========================================================== */

.mapa-container svg #features path.estado-hover {

    opacity: 1;

    stroke: #ffffff !important;
    stroke-width: 3.5px !important;

    filter:
        drop-shadow(
            0 3px 7px rgba(0, 0, 0, 0.20)
        );
}


/* ==========================================================
   ESTADO SELECIONADO
   ========================================================== */

.mapa-container svg #features path.estado-selecionado {

    fill: var(--verde-dark) !important;

    opacity: 1;

    stroke: #ffffff !important;
    stroke-width: 4px !important;

    filter:
        drop-shadow(
            0 4px 10px rgba(0, 0, 0, 0.25)
        );
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 768px) {

    .mapa-container {

        min-height: 420px;

        padding: 10px;

    }


    .mapa-container svg {

        width: 100%;

        max-height: 480px;

    }


    .mapa-container svg #features path {

        stroke-width: 2px;

    }


    .mapa-container svg #features path.estado-hover {

        stroke-width: 3px !important;

    }


    .mapa-container svg #features path.estado-selecionado {

        stroke-width: 3.5px !important;

    }

}


/* ==========================================================
   MOBILE PEQUENO
   ========================================================== */

@media (max-width: 480px) {

    .mapa-container {

        min-height: 350px;

        padding: 5px;

    }


    .mapa-container svg {

        max-height: 400px;

    }


    .mapa-container svg #features path {

        stroke-width: 1.7px;

    }


    .mapa-container svg #features path.estado-hover {

        stroke-width: 2.5px !important;

    }


    .mapa-container svg #features path.estado-selecionado {

        stroke-width: 3px !important;

    }

}


/* ==========================================================
   MOBILE PEQUENO
   ========================================================== */

@media (max-width: 480px) {

    .mapa-container {

        min-height: 350px;

        padding: 5px;

    }


    .mapa-container svg {

        max-height: 400px;

    }


    .mapa-container svg #features path {

        stroke-width: 1.5px;

    }


    .mapa-container svg #features path.estado-selecionado {

        stroke-width: 2px !important;

    }

}

/* ==========================================================
   LOADING
========================================================== */

.mapa-loading {
    color: var(--texto-muted);

    text-align: center;

    font-size: 16px;
}

.mapa-loading i {
    display: block;

    color: var(--verde);

    font-size: 28px;

    margin-bottom: 12px;
}


/* ==========================================================
   MODAL
========================================================== */

.modal-representantes {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(5px);
}


/* MODAL ABERTO */

.modal-representantes.ativo {
    display: flex;
}


/* ==========================================================
   CAIXA DO MODAL
========================================================== */

.modal-caixa {

    position: relative;

    width: 100%;

    max-width: 850px;

    max-height: 90vh;

    overflow-y: auto;

    background: #ffffff;

    color: #111827;

    border-radius: var(--radius);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.45);

    padding: 38px;
}


/* ==========================================================
   BOTÃO FECHAR
========================================================== */

.fechar-modal {

    position: absolute;

    top: 15px;
    right: 18px;

    width: 42px;
    height: 42px;

    border: 0;

    border-radius: 50%;

    background: #f1f5f9;

    color: #334155;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.fechar-modal:hover {

    background: var(--verde);

    color: white;

    transform: rotate(90deg);
}


/* ==========================================================
   CABEÇALHO DO MODAL
========================================================== */

.modal-header-custom {

    padding-right: 45px;

    margin-bottom: 30px;

    border-bottom: 1px solid #e5e7eb;

    padding-bottom: 20px;
}

.modal-header-custom span {

    display: block;

    color: var(--verde-dark);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 7px;
}

.modal-header-custom h2 {

    margin: 0;

    color: #111827;

    font-size: 32px;

    font-weight: 800;
}


/* ==========================================================
   FILTROS DE REGIÃO
========================================================== */

.filtros-regiao {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 25px;
}

.filtro-regiao {

    border: 2px solid var(--verde);

    background: transparent;

    color: var(--verde-dark);

    padding: 12px 20px;

    border-radius: 10px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.filtro-regiao:hover,
.filtro-regiao.ativo {

    background: var(--verde);

    border-color: var(--verde);

    color: #ffffff;
}


/* ==========================================================
   LISTA DE REPRESENTANTES
========================================================== */

#lista-representantes {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* CARD */

.representante {

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    padding: 22px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.representante:hover {

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(15, 23, 42, 0.08);
}


/* NOME */

.representante h3 {

    margin: 0 0 16px;

    color: #111827;

    font-size: 18px;

    font-weight: 800;

    line-height: 1.3;
}


/* INFORMAÇÕES */

.representante p {

    margin: 8px 0;

    color: #475569;

    font-size: 14px;

    line-height: 1.5;
}

.representante strong {

    color: #1e293b;
}


/* ==========================================================
   SEM REPRESENTANTES
========================================================== */

.sem-representantes {

    padding: 30px;

    border-radius: 12px;

    background: #f8fafc;

    color: #64748b;

    text-align: center;

    border: 1px solid #e2e8f0;
}


/* ==========================================================
   FOOTER
========================================================== */

.footer {

    padding: 35px 20px;

    background: #050505;

    border-top: 1px solid var(--borda);
}

.footer-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}

.footer-logo img {

    max-height: 42px;

    width: auto;
}

.footer-info p {

    margin: 0;

    color: #64748b;

    font-size: 13px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991px) {

    .navbar-nav .nav-link {
        padding-left: 10px;
        padding-right: 10px;
    }

    .mapa-container {
        max-width: 850px;
    }

    #lista-representantes {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .navbar {
        min-height: 70px;
    }

    .logo {
        max-height: 45px;
    }

    .representantes-section {
        padding: 105px 15px 60px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .section-heading h1 {
        font-size: 34px;
    }

    .section-heading p {
        font-size: 15px;
    }


    /* MAPA MAIOR NO CELULAR */

    .mapa-container {

        width: 115%;

        margin-left: -7.5%;

        min-height: 430px;

        padding: 0;
    }

    .mapa-container svg {

        width: 100%;

        max-height: none;
    }


    /* MODAL */

    .modal-representantes {
        padding: 10px;
    }

    .modal-caixa {

        max-height: 94vh;

        padding: 28px 20px;
    }

    .modal-header-custom h2 {
        font-size: 27px;
    }


    /* FILTROS */

    .filtros-regiao {
        flex-direction: column;
    }

    .filtro-regiao {
        width: 100%;
    }


    /* REPRESENTANTES */

    .representante {
        padding: 18px;
    }


    /* FOOTER */

    .footer-content {

        flex-direction: column;

        text-align: center;
    }

}

/* ==========================================================
   BUSCA DE REPRESENTANTES
   ========================================================== */

.busca-representante {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}


/* ==========================================================
   LABEL
   ========================================================== */

.busca-representante label {
    display: block;
    margin-bottom: 10px;

    font-size: 15px;
    font-weight: 500;
    color: #4b5a52;

    text-align: left;
}


/* ==========================================================
   CAMPO + BOTÃO
   ========================================================== */

.campo-busca {
    display: flex;
    width: 100%;
    gap: 10px;
}


/* ==========================================================
   INPUT
   ========================================================== */

#cidade-representante {
    flex: 1;

    height: 48px;

    padding: 0 16px;

    border: 1px solid #d7dfda;
    border-radius: 8px;

    background: #fff;

    font-family: inherit;
    font-size: 15px;
    color: #26332d;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


#cidade-representante::placeholder {
    color: #9aa7a0;
}


#cidade-representante:focus {
    border-color: #1f5f3b;

    box-shadow:
        0 0 0 3px rgba(31, 95, 59, 0.10);
}


/* ==========================================================
   BOTÃO BUSCAR
   ========================================================== */

#buscar-representante {
    height: 48px;

    padding: 0 24px;

    border: none;
    border-radius: 8px;

    background: #1f5f3b;
    color: #fff;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


#buscar-representante:hover {
    background: #17492d;
}


#buscar-representante:active {
    transform: translateY(1px);
}


/* ==========================================================
   RESULTADO
   ========================================================== */

#resultado-busca {
    width: 100%;
    margin-top: 24px;
}


/* ==========================================================
   MENSAGENS
   ========================================================== */

.mensagem-busca,
.mensagem-proximidade,
.sem-representantes {
    padding: 16px 18px;

    border-radius: 8px;

    font-size: 14px;
    line-height: 1.6;

    color: #526059;
    background: #f5f8f6;
}


.mensagem-busca strong,
.mensagem-proximidade strong {
    color: #1f5f3b;
}


/* ==========================================================
   MENSAGEM DE PROXIMIDADE
   ========================================================== */

.mensagem-proximidade {
    margin-bottom: 14px;

    background: #eef6f0;

    border-left: 4px solid #1f5f3b;
}


/* ==========================================================
   SEM REPRESENTANTES
   ========================================================== */

.sem-representantes {
    text-align: center;

    background: #f7f8f7;
}


/* ==========================================================
   CARD DO REPRESENTANTE
   ========================================================== */

.representante {
    position: relative;

    width: 100%;

    padding: 24px;

    border: 1px solid #e0e7e2;
    border-radius: 12px;

    background: #fff;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.06);

    animation:
        aparecerRepresentante 0.3s ease;
}


/* ==========================================================
   TÍTULO
   ========================================================== */

.representante h3 {
    margin: 0 0 20px;

    color: #1f5f3b;

    font-size: 21px;
    font-weight: 600;
}


/* ==========================================================
   INFORMAÇÕES
   ========================================================== */

.representante p {
    margin: 0 0 10px;

    color: #59655e;

    font-size: 14px;
    line-height: 1.6;
}


.representante p:last-child {
    margin-bottom: 0;
}


.representante strong {
    color: #26332d;
    font-weight: 600;
}


/* ==========================================================
   AÇÕES DO REPRESENTANTE
   ========================================================== */

.acoes-representante {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}


/* BOTÃO WHATSAPP */

.botao-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 18px;

    background: #25D366;
    color: #ffffff !important;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;
    font-size: 14px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.botao-whatsapp:hover {
    background: #1ebe5d;
    color: #ffffff !important;

    transform: translateY(-2px);
}


/* BOTÃO FORMULÁRIO */

.botao-contato {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 18px;

    background: var(--verde-dark);
    color: #ffffff !important;

    border-radius: 8px;

    text-decoration: none;

    font-weight: 700;
    font-size: 14px;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.botao-contato:hover {
    background: #14532d;
    color: #ffffff !important;

    transform: translateY(-2px);
}


/* MOBILE */

@media (max-width: 600px) {

    .acoes-representante {
        flex-direction: column;
    }

    .botao-whatsapp,
    .botao-contato {
        width: 100%;
    }

}

/* ==========================================================
   ANIMAÇÃO
   ========================================================== */

@keyframes aparecerRepresentante {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 600px) {

    .busca-representante label {
        font-size: 14px;
    }


    .campo-busca {
        flex-direction: column;
        gap: 10px;
    }


    #cidade-representante {
        width: 100%;
        height: 46px;
    }


    #buscar-representante {
        width: 100%;
        height: 46px;
    }


    #resultado-busca {
        margin-top: 20px;
    }


    .representante {
        padding: 20px;
        border-radius: 10px;
    }


    .representante h3 {
        font-size: 19px;
        margin-bottom: 16px;
    }


    .representante p {
        font-size: 14px;
    }

}


/* ==========================================================
   CELULARES PEQUENOS
========================================================== */

@media (max-width: 480px) {

    .representantes-section {
        padding-top: 95px;
    }

    .section-heading h1 {
        font-size: 30px;
    }

    .modal-caixa {
        padding: 25px 16px;
    }

    .modal-header-custom h2 {
        font-size: 24px;
    }

    .representante h3 {
        font-size: 16px;
    }

}