/* =========================================
   TRANSANTANA "PRO MAX" — UIX v3
   Custom CSS sobre o SPA legado
   ========================================= */

/* ───────────────────────────────────────────
   HERO — Globetrotter como background
   ─────────────────────────────────────────── */
.hero {
    position: relative !important;
    overflow: hidden !important;
    /* Dois Volvo FH Globetrotter posicionados à direita */
    background-color: #0A0F1C !important;
    /* navy escuro por trás do PNG transparente */
    background-image: url('https://www.transantana.com.br/imgs/globetrotter.png') !important;
    background-size: 58% auto !important;
    /* ocupa 58% da largura */
    background-position: right center !important;
    background-repeat: no-repeat !important;
}

/* Overlay gradiente da esquerda para esconder/fundir a borda direita */
.hero::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to right,
            rgba(10, 15, 28, 1.00) 0%,
            /* navy sólido à esquerda */
            rgba(10, 15, 28, 0.82) 40%,
            /* fade para o centro */
            rgba(10, 15, 28, 0.30) 70%,
            /* semi-transparente */
            rgba(10, 15, 28, 0.10) 100%
            /* quase transparente na direita */
        ) !important;
    z-index: 1 !important;
    pointer-events: none !important;
}


.hero .container,
.hero-particles,
.tech-grid {
    position: relative !important;
    z-index: 2 !important;
}

/* Remover caixa escura centralizada do hero-content
   (o gradiente do ::before ja cobre tudo) */
.hero-content {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 80px 24px !important;
}

/* O .container dentro do .hero tem background do SPA — remover apenas o fundo */
.hero .container {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}



/* ── Google-Fonts override via preconnect injetado no head ─────────────── */
:root {
    --ta-navy: #0A0F1C;
    --ta-dark: #0f1623;
    --ta-card: #131d2e;
    --ta-cyan: #00C6D7;
    --ta-cyan-lo: rgba(0, 198, 215, .18);
    --ta-amber: #F59E0B;
    --ta-text: #F4F6FB;
    --ta-muted: #8B97AB;
    --ta-border: rgba(255, 255, 255, .08);
    --ta-line: rgba(0, 198, 215, .4);
    --ff-head: 'DM Sans', 'Lato', sans-serif;
    --ff-body: 'DM Sans', 'Lato', sans-serif;
    --ff-mono: 'DM Mono', 'Source Code Pro', monospace;
    --ff-display: 'Syncopate', sans-serif;
}

/* ───────────────────────────────────────────
   BASE
   ─────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
.kv-background,
.kv-ee-section,
.kv-page-content,
.kv-main,
.container,
.section,
section {
    background-color: var(--ta-navy) !important;
    color: var(--ta-text) !important;
    font-family: var(--ff-body) !important;
}

h1,
.section-title-h1 {
    font-family: var(--ff-display) !important;
    color: var(--ta-text) !important;
    letter-spacing: 0.03em !important;
}

h2,
h3,
h4,
h5,
h6,
.section-title,
.kv-ee-title,
.kv-ee-section-title {
    font-family: var(--ff-head) !important;
    color: var(--ta-text) !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}

p,
span,
li,
.section-subtitle,
.kv-ee-section-description,
.kv-ee-body--md {
    color: var(--ta-muted) !important;
    font-family: var(--ff-body) !important;
    line-height: 1.65 !important;
}

/* links globais */
a {
    transition: color .2s;
}

/* ───────────────────────────────────────────
   NAVBAR / HEADER
   ─────────────────────────────────────────── */
.kv-ee-navigation,
.kv-fixed-header,
header,
nav,
.navbar {
    background-color: rgba(10, 15, 28, .97) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--ta-border) !important;
    padding: 10px 0 !important;
}

/* Nav links — branco puro, claro e legivel */
.kv-ee-menu-item-wrapper a,
nav a,
.nav-item a,
.navbar a {
    color: #FFFFFF !important;
    font-family: var(--ff-body) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    transition: color .2s, border-color .2s !important;
    text-shadow: none !important;
}

.kv-ee-menu-item-wrapper a:hover,
nav a:hover {
    color: var(--ta-cyan) !important;
}

.kv-ee-active,
.nav-item.active a {
    color: var(--ta-cyan) !important;
    border-bottom: 2px solid var(--ta-cyan) !important;
    padding-bottom: 2px;
}

/* ── Logo Circular — Estilo Avatar de Perfil ── */
.kv-ee-logo-image,
.ta-logo-rounded {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: contain !important;
    padding: 5px !important;
    background: #ffffff !important;
    box-shadow:
        0 0 0 2.5px var(--ta-cyan),
        0 0 0 5px rgba(0, 198, 215, .15),
        0 6px 22px rgba(0, 0, 0, .55) !important;
    transition: box-shadow .35s ease, transform .35s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.kv-ee-logo-image:hover,
.ta-logo-rounded:hover {
    box-shadow:
        0 0 0 2.5px var(--ta-cyan),
        0 0 0 7px rgba(0, 198, 215, .25),
        0 8px 28px rgba(0, 0, 0, .6) !important;
    transform: scale(1.04) !important;
}

/* ── Botoes ── */
.kv-ee-button-primary,
.kv-ee-button-callToAction,
.btn-primary,
.btn {
    background: var(--ta-cyan) !important;
    color: #000 !important;
    border-radius: 5px !important;
    font-weight: 700 !important;
    font-family: var(--ff-body) !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    border: none !important;
    box-shadow: 0 0 18px rgba(0, 198, 215, .35) !important;
    transition: all .3s !important;
}

.kv-ee-button-primary:hover,
.btn-primary:hover {
    background: #00a3b1 !important;
    box-shadow: 0 0 28px rgba(0, 198, 215, .55) !important;
    transform: translateY(-2px) !important;
}

/* ── Footer ── */
footer,
.kv-ee-top-footer,
.kv-ee-subfooter,
.footer {
    background-color: #05080f !important;
    border-top: 1px solid var(--ta-border) !important;
}

footer a,
.footer a {
    color: var(--ta-muted) !important;
}

footer a:hover,
.footer a:hover {
    color: var(--ta-cyan) !important;
}

/* ───────────────────────────────────────────
   SECAO — Base
   ─────────────────────────────────────────── */
.section {
    padding: 80px 0 !important;
}

.section-alt {
    background-color: var(--ta-dark) !important;
}

.section-title {
    font-size: clamp(1.4rem, 2.5vw, 2rem) !important;
    margin-bottom: 12px !important;
    font-weight: 700 !important;
    color: var(--ta-text) !important;
}

.section-subtitle {
    font-size: 1rem !important;
    color: var(--ta-muted) !important;
    margin-bottom: 52px !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ───────────────────────────────────────────
   DIAGRAMA VERTICAL (Diferenciais)
   ─────────────────────────────────────────── */
.diagram-section {
    text-align: center;
}

.diagram-vertical {
    position: relative;
    max-width: 820px;
    margin: 0 auto 60px;
    padding: 0 16px;
}

/* Linha central */
.diagram-vertical::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--ta-line) 10%, var(--ta-line) 90%, transparent);
    transform: translateX(-50%);
}

.dv-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    position: relative;
}

.dv-left {
    flex-direction: row;
    text-align: left;
}

.dv-right {
    flex-direction: row-reverse;
    text-align: right;
}

.dv-left .dv-node {
    margin-left: 40px;
}

.dv-right .dv-node {
    margin-right: 40px;
}

.dv-left .dv-content {
    padding-right: 24px;
}

.dv-right .dv-content {
    padding-left: 24px;
}

.dv-node {
    background: var(--ta-card);
    border: 1px solid var(--ta-border);
    border-radius: 10px;
    padding: 20px 24px;
    width: calc(50% - 52px);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex-shrink: 0;
    text-align: left;
    transition: border-color .3s, box-shadow .3s;
}

.dv-node:hover {
    border-color: var(--ta-cyan);
    box-shadow: 0 4px 24px rgba(0, 198, 215, .15);
}

.dv-left .dv-node {
    order: 1;
}

.dv-right .dv-node {
    order: 2;
    flex-direction: row-reverse;
}

.dv-icon {
    font-family: var(--ff-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--ta-cyan);
    background: var(--ta-cyan-lo);
    border-radius: 6px;
    padding: 6px 10px;
    flex-shrink: 0;
    line-height: 1;
}

.dv-content h4 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: var(--ta-text) !important;
    margin: 0 0 6px 0 !important;
}

.dv-content p {
    font-size: 0.85rem !important;
    color: var(--ta-muted) !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

/* Conector horizontal até a linha central */
.dv-connector {
    position: absolute;
    top: 26px;
    left: 50%;
    width: 40px;
    height: 2px;
    background: var(--ta-line);
}

.dv-left .dv-connector {
    transform: translateX(-100%);
}

.dv-right .dv-connector {
    transform: translateX(0);
}

/* ── Stats Row ── */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.stat-card {
    background: var(--ta-card);
    border: 1px solid var(--ta-border);
    border-radius: 10px;
    padding: 20px 28px;
    min-width: 140px;
    text-align: center;
    transition: border-color .3s;
}

.stat-card:hover {
    border-color: var(--ta-cyan);
}

.stat-num {
    font-family: var(--ff-mono) !important;
    font-size: 1.9rem !important;
    font-weight: 500 !important;
    color: var(--ta-cyan) !important;
    line-height: 1 !important;
}

.stat-num sup {
    font-size: 0.9rem;
}

.stat-label {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
    color: var(--ta-muted) !important;
    margin-top: 6px !important;
}

/* ───────────────────────────────────────────
   DIAGRAMA HORIZONTAL (Servicos)
   ─────────────────────────────────────────── */
.diagram-horizontal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 900px;
}

.dh-node {
    background: var(--ta-card);
    border: 1px solid var(--ta-border);
    border-radius: 10px;
    padding: 28px 24px;
    width: 240px;
    text-align: center;
    transition: border-color .3s, box-shadow .3s;
    flex-shrink: 0;
}

.dh-node:hover {
    border-color: var(--ta-cyan);
    box-shadow: 0 4px 24px rgba(0, 198, 215, .15);
}

.dh-index {
    font-family: var(--ff-mono);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ta-cyan);
    background: var(--ta-cyan-lo);
    border-radius: 4px;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: .1em;
}

.dh-label {
    font-family: var(--ff-head);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ta-text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.dh-desc {
    font-size: 0.8rem;
    color: var(--ta-muted);
    line-height: 1.55;
}

/* Seta entre nos */
.dh-arrow {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 0 4px;
    align-self: center;
    flex-shrink: 0;
}

.dh-line {
    width: 36px;
    height: 2px;
    background: var(--ta-line);
}

.dh-arrowhead {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid var(--ta-cyan);
}

@media (max-width: 768px) {
    .diagram-horizontal {
        flex-direction: column;
        align-items: center;
    }

    .dh-arrow {
        flex-direction: column;
        padding: 4px 0;
    }

    .dh-line {
        width: 2px;
        height: 28px;
    }

    .dh-arrowhead {
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid var(--ta-cyan);
        border-bottom: none;
    }
}

/* ───────────────────────────────────────────
   COVERAGE FLOW (Cobertura Nacional)
   ─────────────────────────────────────────── */
.tech-map-section {
    background: linear-gradient(160deg, #0c1425 0%, #0A0F1C 100%) !important;
    padding: 80px 0 !important;
}

.coverage-flow {
    max-width: 860px;
    margin: 0 auto;
}

.cf-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.cf-state,
.cf-region {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    padding: 20px 20px;
    width: 210px;
    text-align: center;
    flex-shrink: 0;
    transition: border-color .3s;
}

.cf-state:hover,
.cf-region:hover {
    border-color: var(--ta-cyan);
}

.cf-base {
    border-color: rgba(0, 198, 215, .4) !important;
}

.cf-code {
    font-family: var(--ff-mono);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--ta-cyan);
    line-height: 1;
    margin-bottom: 6px;
}

.cf-name {
    font-family: var(--ff-head);
    font-size: 0.82rem;
    font-weight: 700;
    color: #F9FAFB;
    margin-bottom: 4px;
}

.cf-tag {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 8px;
}

.cf-status {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(0, 198, 215, .15);
    color: var(--ta-cyan);
    border: 1px solid rgba(0, 198, 215, .3);
    border-radius: 3px;
    padding: 2px 8px;
}

.cf-rname {
    font-family: var(--ff-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: #F9FAFB;
    margin-bottom: 4px;
}

.cf-rstates {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 8px;
}

.cf-connector {
    display: flex;
    align-items: center;
    padding: 0 2px;
    flex-shrink: 0;
}

.cf-line {
    width: 32px;
    height: 2px;
    background: var(--ta-line);
    position: relative;
}

.cf-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid var(--ta-cyan);
}

.cf-divider {
    text-align: center;
    font-family: var(--ff-body);
    font-size: 0.7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ta-muted);
    margin: 32px 0 24px;
    position: relative;
}

.cf-divider::before,
.cf-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--ta-border);
}

.cf-divider::before {
    left: 0;
}

.cf-divider::after {
    right: 0;
}

@media (max-width: 700px) {
    .cf-row {
        flex-direction: column;
    }

    .cf-connector {
        flex-direction: column;
        padding: 4px 0;
    }

    .cf-line {
        width: 2px;
        height: 24px;
    }

    .cf-line::after {
        right: 50%;
        top: auto;
        bottom: 0;
        transform: translateX(50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 7px solid var(--ta-cyan);
        border-bottom: none;
    }
}

/* ───────────────────────────────────────────
   SUSTENTABILIDADE — Badge Grid
   ─────────────────────────────────────────── */
.sustainability-section {
    background: var(--ta-dark) !important;
    padding: 80px 0 !important;
}

.sustain-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.ss-item {
    background: var(--ta-card);
    border: 1px solid var(--ta-border);
    border-radius: 10px;
    padding: 18px 28px;
    text-align: center;
    min-width: 130px;
}

.ss-val {
    font-family: var(--ff-mono);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ta-cyan);
    line-height: 1;
    margin-bottom: 6px;
}

.ss-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--ta-muted);
}

.sustain-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 36px;
}

.sb-badge {
    border-radius: 10px;
    padding: 20px 20px;
    min-width: 230px;
    flex: 1;
    max-width: 320px;
}

.sb-social {
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .25);
}

.sb-ambiental {
    background: rgba(34, 197, 94, .07);
    border: 1px solid rgba(34, 197, 94, .22);
}

.sb-economico {
    background: rgba(245, 158, 11, .07);
    border: 1px solid rgba(245, 158, 11, .22);
}

.sb-cat {
    font-family: var(--ff-head);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 12px;
}

.sb-social .sb-cat {
    color: #60a5fa;
}

.sb-ambiental .sb-cat {
    color: #4ade80;
}

.sb-economico .sb-cat {
    color: var(--ta-amber);
}

.sb-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sb-items span {
    font-size: 0.78rem;
    color: var(--ta-muted) !important;
    padding: 4px 10px;
    background: rgba(255, 255, 255, .04);
    border-radius: 4px;
    border-left: 2px solid currentColor;
}

.sb-social .sb-items span {
    border-color: #60a5fa;
}

.sb-ambiental .sb-items span {
    border-color: #4ade80;
}

.sb-economico .sb-items span {
    border-color: var(--ta-amber);
}

.sustain-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.sc-item {
    font-size: 0.75rem;
    font-family: var(--ff-body);
    color: var(--ta-text);
    background: var(--ta-card);
    border: 1px solid var(--ta-border);
    border-radius: 20px;
    padding: 6px 16px;
    white-space: nowrap;
    transition: border-color .25s;
}

.sc-item:hover {
    border-color: var(--ta-cyan);
}

/* ───────────────────────────────────────────
   CTA SECTION
   ─────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, #0c1a2e 0%, var(--ta-navy) 100%) !important;
    border-top: 1px solid var(--ta-border) !important;
    text-align: center !important;
    padding: 80px 0 !important;
}

.cta-section h2 {
    margin-bottom: 16px !important;
}

.cta-section p {
    margin-bottom: 32px !important;
}

/* ───────────────────────────────────────────
   CARROSSEL DE PARCEIROS
   ─────────────────────────────────────────── */
.partners-section {
    padding: 24px 0 20px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-top: 2px solid #e5e7eb !important;
    border-bottom: 2px solid #e5e7eb !important;
    overflow: hidden !important;
    position: relative !important;
}

.partners-title {
    text-align: center;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #9CA3AF !important;
    margin: 0 0 14px 0;
    font-family: var(--ff-body);
}

/* Wrapper com overflow:hidden mascara o reset (sem gap) */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Track: 6 logos × 2 (duplicados) × 180px = 2160px
   Anima de 0 até -1080px = exatamente 1 conjunto de logos */
.carousel-track {
    display: flex;
    flex-wrap: nowrap;
    /* nunca quebra linha */
    width: 2160px;
    /* 12 slides × 180px */
    animation: scroll-partners 26s linear infinite;
    align-items: center;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

/* Cada slide: largura fixa, sem encolher */
.carousel-slide {
    width: 180px;
    min-width: 180px;
    height: 68px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 120px;
    height: 46px;
    object-fit: contain;
    border-radius: 6px;
    filter: grayscale(15%) opacity(0.88);
    transition: filter .3s, transform .3s;
    display: block;
    flex-shrink: 0;
}

.carousel-slide img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.07);
}

@keyframes scroll-partners {
    from {
        transform: translateX(0px);
    }

    to {
        transform: translateX(-1080px);
    }

    /* 6 slides × 180px */
}

@media (max-width: 768px) {
    .carousel-slide {
        width: 140px;
        min-width: 140px;
        padding: 0 14px;
    }

    .carousel-track {
        width: 1680px;
    }

    /* 12 × 140px */
    @keyframes scroll-partners {
        from {
            transform: translateX(0px);
        }

        to {
            transform: translateX(-840px);
        }

        /* 6 × 140px */
    }

    .carousel-slide img {
        width: 90px;
        height: 36px;
    }
}


/* ───────────────────────────────────────────
   MISC Express Editor overrides
   ─────────────────────────────────────────── */
.kv-background-inner {
    background: transparent !important;
}

.kv-ee-gutters,
.kv-ee-item {
    background: var(--ta-card) !important;
    border: 1px solid var(--ta-border) !important;
    border-radius: 8px !important;
}