@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&family=Zalando+Sans+Expanded:ital,wght@0,200..900;1,200..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
    overflow-y: scroll;
}

body {
    font-family: "Poppins", sans-serif;
    background-color: var(--branco);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

:root {
    --azul-ajborges: #3d3d90;
    --azul-ajborges-escuro: #2b2b6d;
    --azul-ajborges-medio: #4a4aa8;
    --azul-ajborges-claro: #5c5cb8;
    --azul-ajborges-suave: #eef2ff;
    --azul-ajborges-alpha: rgba(61, 61, 144, 0.12);
    --azul-ajborges-glow: rgba(61, 61, 144, 0.25);
    --branco: #ffffff;
    --preto: #000000;
    --cinza: #aeaeae;
    --cinza-escuro: #1e293b;
    --cinza-medio: #64748b;
    --cinza-texto: #475569;
    --cinza-claro: #f8fafc;
    --cinza-hover: #f1f5f9;
    --cinza-borda: #e2e8f0;
    --cinza-borda-hover: #cbd5e1;
    --cinza-placeholder: #94a3b8;
    --cinza-fundo-muted: #f8f9fa;
    --fundo-principal: #f4f6fb;
    --card-background: #ffffff;
    --card-header-bg: #f8fafc;
    --verde-sucesso: #10b981;
    --verde-sucesso-escuro: #065f46;
    --verde-sucesso-fundo: #ecfdf5;
    --verde-sucesso-borda: #a7f3d0;
    --vermelho-perigo: #ef4444;
    --vermelho-perigo-escuro: #b91c1c;
    --vermelho-perigo-fundo: #fef2f2;
    --vermelho-perigo-borda: #fecaca;
    --amarelo-alerta: #f59e0b;
    --amarelo-alerta-escuro: #b45309;
    --amarelo-alerta-fundo: #fffbeb;
    --amarelo-alerta-borda: #fde68a;
    --azul-info: #3b82f6;
    --azul-info-escuro: #1d4ed8;
    --azul-info-fundo: #eff6ff;
    --azul-info-borda: #bfdbfe;
    --sombra-card: 0 4px 18px rgba(0, 0, 0, 0.06);
    --sombra-suave: 0 2px 8px rgba(0, 0, 0, 0.04);
    --sombra-elevada: 0 10px 25px rgba(61, 61, 144, 0.15);
}

/* --- HEADER --- */

header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--azul-ajborges);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.header-AJBorges {
    width: 100%;
    max-width: 1200px;
    height: 112px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Computador (links lado a lado): links logo depois do logo, a 56px dele; o espaço que sobra fica à direita */
@media (min-width: 781px) and (min-height: 501px) {
    .header-AJBorges {
        justify-content: flex-start;
        gap: 56px;
    }
}

.logotipo-AJBorges {
    display: flex;
    align-items: center;
}

.logotipo-AJBorges .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logotipo-AJBorges img {
    height: 100px;
    width: auto;
    object-fit: contain;
    background-color: transparent;
    padding: 0;
    border-radius: 8px;
    box-shadow: none;
    transition: transform 0.25s ease;
}

.logotipo-AJBorges img:hover {
    transform: scale(1.04);
}

.header-links {
    display: flex;
    align-items: center;
}

.lista-links {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
}

.lista-links li a {
    text-decoration: none;
    color: var(--branco);
    font-size: 18.5px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: inline-block;
    white-space: nowrap;
}

.lista-links li a:hover,
.lista-links li a.link-ativo,
.lista-links li a.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: var(--branco);
    transform: translateY(-1px);
}

/* --- CONTEÚDO PRINCIPAL (NOSSOS FRETES) --- */

main {
    margin-top: 112px;
    width: 100%;
    background-color: var(--fundo-principal);
    display: flex;
    flex-direction: column;
}

/* HERO NOSSOS FRETES COM FOTO SCANIA */
.fretes-hero {
    position: relative;
    width: 100%;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 130px 24px 115px;
    color: var(--branco);
    text-align: center;
}

.fretes-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.fretes-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.fretes-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(61, 61, 144, 0.88) 60%,
        rgba(43, 43, 109, 0.92) 100%
    );
}

.fretes-hero-container {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.fretes-hero-titulo {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.fretes-hero-subtitulo {
    font-size: 17.5px;
    line-height: 1.68;
    color: #e2e8f0;
    max-width: 760px;
    margin: 0 auto;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* SEÇÃO CENTRAL PORTAL FRETEBRAS */
.fretebras-portal-section {
    padding: 0 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.fretebras-portal-container {
    max-width: 1000px;
    margin: 0 auto;
}

.fretebras-card-destaque {
    background: #ffffff;
    border-radius: 20px;
    padding: 48px 40px;
    border: 1.5px solid var(--cinza-borda);
    box-shadow: 0 12px 35px rgba(27, 27, 78, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.fretebras-card-header {
    max-width: 760px;
    margin: 0 auto 36px;
}

.fretebras-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--verde-sucesso-fundo);
    color: var(--verde-sucesso-escuro);
    border: 1px solid var(--verde-sucesso-borda);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 18px;
}

.live-pulse {
    width: 8px;
    height: 8px;
    background-color: var(--verde-sucesso);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.fretebras-titulo {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 14px;
    line-height: 1.3;
}

.fretebras-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--cinza-texto);
}

.fretebras-desc strong {
    color: var(--azul-ajborges);
}

.fretebras-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    text-align: left;
}

.info-ponto {
    background-color: #f8fafc;
    border: 1px solid var(--cinza-borda);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-ponto svg {
    width: 24px;
    height: 24px;
    color: var(--azul-ajborges);
    flex-shrink: 0;
}

.info-ponto div {
    display: flex;
    flex-direction: column;
}

.info-ponto strong {
    font-size: 14px;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 2px;
}

.info-ponto span {
    font-size: 12px;
    color: var(--cinza-medio);
}

.fretebras-acoes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-fretebras-principal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--azul-ajborges) 0%, var(--azul-ajborges-escuro) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(61, 61, 144, 0.3);
    transition: all 0.25s ease;
}

.btn-fretebras-principal:hover {
    background: linear-gradient(135deg, var(--azul-ajborges-medio) 0%, var(--azul-ajborges) 100%);
    box-shadow: 0 10px 25px rgba(61, 61, 144, 0.45);
    transform: translateY(-2px);
}

.btn-fretebras-principal svg {
    transition: transform 0.25s ease;
}

.btn-fretebras-principal:hover svg {
    transform: translate(3px, -3px);
}

.btn-fretebras-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 16px 28px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
    transition: all 0.25s ease;
}

.btn-fretebras-whatsapp:hover {
    background-color: #1eb954;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    transform: translateY(-2px);
}

/* SEÇÃO 3 BLOCOS DE VANTAGENS (100% ESTÁTICOS) */
.vantagens-section {
    padding: 60px 24px 80px;
    width: 100%;
}

.vantagens-container {
    max-width: 1000px;
    margin: 0 auto;
}

.vantagens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.vantagem-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 22px;
    border: 1px solid var(--cinza-borda);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transform: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.vantagem-card:hover {
    transform: none !important;
    border-color: rgba(61, 61, 144, 0.25);
    box-shadow: 0 6px 20px rgba(61, 61, 144, 0.08);
}

.vantagem-icone {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--azul-ajborges-suave);
    color: var(--azul-ajborges);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vantagem-icone svg {
    width: 22px;
    height: 22px;
}

.vantagem-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.vantagem-info p {
    font-size: 13px;
    color: var(--cinza-texto);
    line-height: 1.5;
}



/* RESPONSIVIDADE DE NOSSOS FRETES */
@media (max-width: 1024px) {
    .fretebras-info-grid {
        grid-template-columns: 1fr;
    }

    .vantagens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .fretes-hero {
        padding: 70px 16px 80px;
        min-height: 380px;
    }

    .fretes-hero-titulo {
        font-size: 28px;
    }

    .fretes-hero-subtitulo {
        font-size: 15px;
    }

    .fretebras-portal-section {
        padding: 0 16px;
        margin-top: -35px;
    }

    .fretebras-card-destaque {
        padding: 30px 18px;
    }

    .fretebras-titulo {
        font-size: 22px;
    }

    .fretebras-acoes {
        flex-direction: column;
        width: 100%;
    }

    .btn-fretebras-principal,
    .btn-fretebras-whatsapp {
        width: 100%;
        justify-content: center;
    }

    .vantagens-section {
        padding: 40px 16px 60px;
    }

    .vantagens-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* --- SISTEMA DE ANIMAÇÕES SCROLL REVEAL (ESTILO MARILAN) --- */
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-fade {
    opacity: 0;
    will-change: transform, opacity;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
    transform: translateY(35px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-scale {
    transform: scale(0.92);
}

.reveal-fade {
    transform: scale(0.96);
}

.revealed {
    opacity: 1 !important;
    transform: translate(0, 0) scale(1) !important;
}

/* Efeito Cascata / Stagger Delay */
.stagger-delay:nth-child(1) { transition-delay: 0.05s; }
.stagger-delay:nth-child(2) { transition-delay: 0.14s; }
.stagger-delay:nth-child(3) { transition-delay: 0.23s; }
.stagger-delay:nth-child(4) { transition-delay: 0.32s; }
.stagger-delay:nth-child(5) { transition-delay: 0.41s; }
.stagger-delay:nth-child(6) { transition-delay: 0.50s; }
.stagger-delay:nth-child(7) { transition-delay: 0.59s; }
.stagger-delay:nth-child(8) { transition-delay: 0.68s; }
.stagger-delay:nth-child(9) { transition-delay: 0.77s; }
.stagger-delay:nth-child(10) { transition-delay: 0.86s; }

/* --- FOOTER --- */

footer {
    width: 100%;
    background-color: var(--azul-ajborges);
    color: var(--branco);
    padding-top: 50px;
    margin-top: auto;
    border-top: 3px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

.bloco-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: flex-start;
}

.footer-coluna {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-coluna-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--branco);
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.footer-coluna-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background-color: var(--branco);
    border-radius: 2px;
}

.footer-descricao {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.links-redessociais {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.links-redessociais a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--branco);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.links-redessociais a svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.links-redessociais a:hover {
    background-color: var(--branco);
    color: var(--azul-ajborges);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.links-redessociais a:hover svg {
    transform: scale(1.1);
}

.links-contatos-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.links-contatos-lista li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icone-contato {
    width: 20px;
    height: 20px;
    color: #a4b4ff;
    flex-shrink: 0;
    margin-top: 3px;
}

.contato-info {
    display: flex;
    flex-direction: column;
}

.contato-tipo {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contato-info a {
    color: var(--branco);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contato-info a:hover {
    color: #c0cdff;
    text-decoration: underline;
}

.conteudo-endereco {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icone-endereco {
    width: 22px;
    height: 22px;
    color: #a4b4ff;
    flex-shrink: 0;
    margin-top: 2px;
}

.endereco-texto p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.endereco-texto .endereco-empresa {
    font-weight: 600;
    color: var(--branco);
    font-size: 15px;
}

.endereco-texto .endereco-cep {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 4px;
}

.footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2px;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* --- RESPONSIVIDADE (Header e Footer) --- */

@media (max-width: 900px) {
    .bloco-footer {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Menu com 5 links numa linha ao lado do logo: fonte e espaçamento diminuem com a largura */
@media (max-width: 1140px) {
    .lista-links {
        gap: 8px;
    }

    .lista-links li a {
        font-size: 17px;
        padding: 7px 13px;
    }
}

@media (max-width: 960px) {
    .header-AJBorges {
        padding: 0 20px;
    }

    .lista-links {
        gap: 6px;
    }

    .lista-links li a {
        font-size: 15px;
        padding: 7px 10px;
    }
}

@media (max-width: 860px) {
    .lista-links {
        gap: 4px;
    }

    .lista-links li a {
        font-size: 13.5px;
        padding: 6px 8px;
    }
}

@media (max-width: 640px) {
    .bloco-footer {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-container {
        padding: 0 20px 30px;
    }
}

/* ==========================================================================
   HEADER NO CELULAR: rola com a página e não cobre o conteúdo
   ========================================================================== */

/* Header rola com a página (estreito ou deitado): nunca cobre o conteúdo */
@media (max-width: 780px), (max-height: 500px) {
    header {
        position: relative;
    }

    main {
        margin-top: 0;
    }
}

@media (max-height: 500px) {
    .header-AJBorges {
        height: 64px;
    }

    .logotipo-AJBorges img {
        height: 56px;
    }
}

/* 641 a 780px: logo em cima e os 5 links numa linha embaixo */
@media (max-width: 780px) {
    .header-AJBorges {
        height: auto;
        padding: 10px 20px;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    /* Header compacto: logo + 5 links em grade de 2 colunas (3 linhas) com botões de 44px */
    .header-AJBorges {
        padding: 10px 12px;
        gap: 8px;
    }

    .logotipo-AJBorges img {
        height: 56px;
    }

    .header-links,
    .lista-links {
        width: 100%;
    }

    .lista-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
        gap: 6px;
    }

    /* botões da mesma linha com a mesma altura */
    .lista-links li {
        display: flex;
    }

    /* 5º link sozinho ocupa a linha toda */
    .lista-links li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .lista-links li a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        font-size: 14px;
        line-height: 1.2;
        padding: 8px 6px;
        text-align: center;
        white-space: normal;
    }
}

/* Celular pequeno (<=374px): "Agregue-se Conosco" cabe na coluna (no 320px quebra em 2 linhas) */
@media (max-width: 374px) {
    .lista-links li a {
        font-size: 13px;
    }
}
