/* ---------------------------------------------------------------------------
   AllCross — identidade visual.
   Cores e tipografia conferidas em allcross.com.br: azul-marinho do topo
   (#1a2256), verde dos botões (#39b54a), Roboto Condensed nos títulos e Inter
   no texto.

   As variáveis --pxb-* existem porque o painel (motor px-blog) lê a marca
   daqui — é o mesmo arquivo servindo o site público e o admin.
   --------------------------------------------------------------------------- */

:root {
    --pxb-primary:    #1a2256;
    --pxb-secondary:  #39b54a;

    --ac-navy:        #1a2256;
    --ac-navy-dark:   #141b46;
    --ac-navy-soft:   #252f6e;
    --ac-green:       #39b54a;
    --ac-green-dark:  #2f9a3e;
    --ac-whats:       #25d366;
    --ac-cinza:       #f4f6fa;
    --ac-borda:       #e2e6ef;
    --ac-texto:       #2b2f3a;
    --ac-texto-suave: #69727d;

    --ac-fonte-titulo: 'Roboto Condensed', 'Arial Narrow', Arial, sans-serif;
    --ac-fonte-texto:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --ac-raio:   12px;
    --ac-sombra: 0 10px 30px rgba(26, 34, 86, .12);
}

/* ── Base ── */
body.ac-body {
    margin: 0;
    font-family: var(--ac-fonte-texto);
    color: var(--ac-texto);
    background: #fff;
    line-height: 1.6;
}

.ac-body h1, .ac-body h2, .ac-body h3, .ac-body h4 {
    font-family: var(--ac-fonte-titulo);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ac-navy);
}

.ac-container {
    width: min(1180px, 92vw);
    margin-inline: auto;
}

.ac-secao       { padding: 3.5rem 0; }
.ac-secao-cinza { background: var(--ac-cinza); }

.ac-secao-titulo {
    font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
    margin: 0 0 .35rem;
}

.ac-secao-sub {
    color: var(--ac-texto-suave);
    margin: 0 0 2rem;
}

.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    background: var(--ac-green);
    color: #fff;
    font-weight: 700;
    border: 0;
    border-radius: 999px;
    padding: .85rem 1.6rem;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.ac-btn:hover      { background: var(--ac-green-dark); transform: translateY(-1px); color: #fff; }
.ac-btn--bloco     { width: 100%; }
.ac-btn--whats     { background: var(--ac-whats); }
.ac-btn--whats:hover { background: #1da851; }
.ac-btn--fantasma  { background: transparent; border: 2px solid #fff; }
.ac-btn--fantasma:hover { background: rgba(255, 255, 255, .12); }

/* ── Topo ── */
.ac-topo {
    background: var(--ac-navy);
    padding: .9rem 0;
    position: sticky;
    top: 0;
    z-index: 30;
}
.ac-topo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.ac-topo img { height: 38px; width: auto; }
.ac-topo-contatos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #fff;
    font-size: .95rem;
}
.ac-topo-contatos a { color: #fff; text-decoration: none; }
.ac-topo-contatos a:hover { text-decoration: underline; }

/* ── Hero ── */
.ac-hero {
    position: relative;
    background: var(--ac-navy);
    color: #fff;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}
.ac-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .22;
}
/* O degradê garante contraste do texto branco mesmo com foto clara. */
.ac-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, var(--ac-navy-dark) 12%, rgba(26, 34, 86, .82) 55%, rgba(26, 34, 86, .55) 100%);
}
.ac-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: start;
}
.ac-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem);
    margin: 0 0 1rem;
}
.ac-hero-texto { font-size: 1.05rem; color: rgba(255, 255, 255, .9); }
.ac-hero-texto p:first-child { margin-top: 0; }

.ac-selos {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    font-weight: 600;
}
.ac-selos li::before {
    content: '✓';
    color: var(--ac-green);
    font-weight: 700;
    margin-right: .45rem;
}

/* ── Formulário do hero ── */
.ac-form {
    background: #fff;
    border-radius: var(--ac-raio);
    box-shadow: var(--ac-sombra);
    padding: 1.75rem;
    color: var(--ac-texto);
}
.ac-form h2 {
    font-size: 1.35rem;
    margin: 0 0 .25rem;
}
.ac-form-sub {
    color: var(--ac-texto-suave);
    font-size: .9rem;
    margin: 0 0 1.25rem;
}
.ac-campo { margin-bottom: .85rem; }
.ac-campo label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .25rem;
    color: var(--ac-navy);
}
.ac-campo input,
.ac-campo select {
    width: 100%;
    border: 1px solid var(--ac-borda);
    border-radius: 8px;
    padding: .7rem .8rem;
    font: inherit;
    font-size: .95rem;
    background: #fff;
}
.ac-campo input:focus,
.ac-campo select:focus {
    outline: 0;
    border-color: var(--ac-navy-soft);
    box-shadow: 0 0 0 3px rgba(26, 34, 86, .12);
}
.ac-campo-duplo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}
.ac-form-legal {
    font-size: .72rem;
    color: var(--ac-texto-suave);
    margin: .85rem 0 0;
    text-align: center;
}
.ac-form-erro {
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #a32020;
    border-radius: 8px;
    padding: .7rem .85rem;
    font-size: .85rem;
    margin-bottom: 1rem;
}
.ac-form-ok {
    background: #eaf7ec;
    border: 1px solid #bfe4c6;
    color: #216b2c;
    border-radius: 8px;
    padding: 1rem;
    font-size: .92rem;
}
/* Armadilha de bot: invisível para gente, preenchida por robô. */
.ac-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Conteúdo rico (saída do editor) ── */
.ac-rich { font-size: 1.02rem; }
.ac-rich h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.ac-rich h3 { font-size: 1.3rem; margin: 1.75rem 0 .6rem; }
.ac-rich img { max-width: 100%; height: auto; border-radius: var(--ac-raio); }
.ac-rich a { color: var(--ac-navy); }
.ac-rich ul, .ac-rich ol { padding-left: 1.2rem; }

/* ── Carrossel ── */
.ac-carrossel { position: relative; }
.ac-carrossel-trilho {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: .25rem .25rem 1rem;
    scrollbar-width: thin;
}
.ac-carrossel-item {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: 210px;
    background: #fff;
    border: 1px solid var(--ac-borda);
    border-radius: var(--ac-raio);
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 150px;
    text-decoration: none;
    color: var(--ac-texto);
    transition: box-shadow .2s, transform .2s;
}
.ac-carrossel-item:hover { box-shadow: var(--ac-sombra); transform: translateY(-2px); }
.ac-carrossel-item img {
    max-width: 100%;
    max-height: 68px;
    object-fit: contain;
}
.ac-carrossel-item .ac-nome {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.25;
}
.ac-carrossel-item .ac-local {
    font-size: .75rem;
    color: var(--ac-texto-suave);
}
/* Sem logo, o nome vira a marca — não deixa buraco no carrossel. */
.ac-logo-vazio {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 68px;
    font-family: var(--ac-fonte-titulo);
    font-size: 1.15rem;
    color: var(--ac-navy);
    background: var(--ac-cinza);
    border-radius: 8px;
    padding: .5rem;
}
.ac-carrossel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ac-borda);
    background: #fff;
    color: var(--ac-navy);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
    z-index: 3;
}
.ac-carrossel-nav[hidden] { display: none; }
.ac-carrossel-nav--ant { left: -18px; }
.ac-carrossel-nav--prox { right: -18px; }

/* ── Unidade ── */
.ac-unidade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.ac-unidade img {
    width: 100%;
    border-radius: var(--ac-raio);
    box-shadow: var(--ac-sombra);
}
.ac-unidade-dados {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    display: grid;
    gap: .75rem;
}
.ac-unidade-dados li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}
.ac-unidade-dados .ac-icone {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ac-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .95rem;
}
.ac-unidade-dados a { color: var(--ac-navy); text-decoration: none; }
.ac-unidade-dados a:hover { text-decoration: underline; }

/* ── CTA final ── */
.ac-cta {
    background: var(--ac-navy);
    color: #fff;
    text-align: center;
    padding: 3rem 0;
}
.ac-cta h2 { color: #fff; }
.ac-cta-botoes {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ── Rodapé ── */
.ac-rodape {
    background: var(--ac-navy-dark);
    color: rgba(255, 255, 255, .75);
    padding: 2.5rem 0;
    font-size: .88rem;
}
.ac-rodape img { height: 34px; margin-bottom: 1rem; }
.ac-rodape a { color: #fff; }

/* ── Botão flutuante do WhatsApp ── */
.ac-whats-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ac-whats);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
    z-index: 40;
    text-decoration: none;
}

/* ── Listagem de /corretoras ── */
.ac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.ac-card {
    border: 1px solid var(--ac-borda);
    border-radius: var(--ac-raio);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.ac-card:hover { box-shadow: var(--ac-sombra); transform: translateY(-2px); }
.ac-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.ac-card-corpo { padding: 1rem 1.15rem 1.35rem; }
.ac-card h2 { font-size: 1.1rem; margin: 0 0 .35rem; }
.ac-card p { margin: 0; font-size: .88rem; color: var(--ac-texto-suave); }

/* ── Responsivo ── */
@media (max-width: 960px) {
    .ac-hero-inner,
    .ac-unidade { grid-template-columns: 1fr; }
    .ac-carrossel-nav { display: none; }
}
@media (max-width: 520px) {
    .ac-campo-duplo { grid-template-columns: 1fr; }
    .ac-topo-inner  { justify-content: center; }
}
