
/* =========================================================
   ZERO-D — CAMADA DE COMPATIBILIDADE COM O CSS EXISTENTE
   Mantém Bootstrap/MDB, menu, footer e responsividade antigos.
   ========================================================= */

:root {
    --zd-black: #111318;
    --zd-text: #20242d;
    --zd-muted: #6f7682;
    --zd-white: #ffffff;
    --zd-soft: #f7f7f5;
    --zd-orange: #ff5a1f;
    --zd-orange-dark: #dd430f;
    --zd-red: #e53a2d;
    --zd-blue: #225ed8;
    --zd-line: rgba(17, 19, 24, .12);
    --zd-shadow: 0 18px 46px rgba(26, 28, 34, .09);
}

/* Correção do espaçamento global antigo */
body {
    background: var(--zd-white);
    color: var(--zd-text);
}

main section {
    margin-top: 0;
}

.site-section {
    margin-top: 0 !important;
    padding: 105px 0;
}

.site-section.bg-soft {
    background: var(--zd-soft);
}

/* Menu antigo modernizado sem quebrar as classes existentes */
nav.fixed-top,
.navbar.fixed-top {
    background: rgba(255,255,255,.96) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--zd-line) !important;
    box-shadow: 0 8px 28px rgba(20,22,27,.06);
    backdrop-filter: blur(12px);
}

.navbar-nav {
    margin-top: 0;
}

nav img {
/*    max-width: 180px;*/
/*    margin-top: 0;*/
}

nav li {
    margin-left: 18px;
}

nav li a,
nav li i {
    color: var(--zd-black);
}

nav li a:hover,
nav li a:focus {
    color: var(--zd-orange) !important;
}

nav .dropdown-menu {
    border: 1px solid var(--zd-line);
    border-radius: 12px;
    box-shadow: var(--zd-shadow);
}

/* Banner/carrossel */
.banner-home {
    margin-top: 0 !important;
    padding-top: 78px;
    background: #090b10;
}

.banner-home .carousel,
.banner-home .carousel-inner,
.banner-home .carousel-item {
    width: 100%;
}

.banner-home .carousel-item img {
    width: 100%;
    min-height: 420px;
    max-height: 700px;
    object-fit: cover;
}

.banner-home .carousel-control-prev,
.banner-home .carousel-control-next {
    width: 6%;
    opacity: 1;
    z-index: 9;
}

.banner-home .carousel-control-prev-icon,
.banner-home .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(0,0,0,.55);
    background-size: 45%;
}

.banner-home .carousel-indicators li {
    width: 34px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background-color: rgba(255,255,255,.45);
}

.banner-home .carousel-indicators .active {
    width: 58px;
    background-color: var(--zd-orange);
}

/* Faixa de métricas usando grid Bootstrap existente */
.metricas-home {
    margin-top: 0 !important;
    padding: 0;
    background: #fff;
    border-bottom: 1px solid var(--zd-line);
}

.metricas-home .metrica {
    min-height: 132px;
    padding: 30px 20px;
    border-right: 1px solid var(--zd-line);
}

.metricas-home .metrica:last-child {
    border-right: 0;
}

.metricas-home strong {
    display: block;
    margin-bottom: 8px;
    color: var(--zd-black);
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.04em;
}

.metricas-home .metrica:nth-child(3n+1) strong {
    color: var(--zd-blue);
}

.metricas-home .metrica:nth-child(3n+2) strong {
    color: var(--zd-orange);
}

.metricas-home span {
    color: var(--zd-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Títulos */
.site-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--zd-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.site-label:before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.site-title {
    max-width: 950px;
    margin: 0;
    color: var(--zd-black);
    font-size: clamp(38px, 5vw, 74px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 800;
}

.site-title span {
    color: var(--zd-orange);
}

.site-copy {
    max-width: 740px;
    margin-top: 24px;
    color: var(--zd-muted);
    font-size: 17px;
    line-height: 1.75;
}

/* Cards */
.zd-card {
    height: 100%;
    min-height: 235px;
    padding: 28px;
    border: 1px solid var(--zd-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
    transition: .2s ease;
}

.zd-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,90,31,.35);
    box-shadow: var(--zd-shadow);
}

.zd-card .zd-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 42px;
    border-radius: 50%;
    background: #fff0e9;
    color: var(--zd-orange);
    font-size: 19px;
}

.zd-card.blue .zd-icon {
    background: #edf4ff;
    color: var(--zd-blue);
}

.zd-card h3 {
    margin: 0;
    color: var(--zd-black);
    font-size: 19px;
    font-weight: 800;
}

.zd-card p {
    margin: 12px 0 0;
    color: var(--zd-muted);
    font-size: 14px;
    line-height: 1.65;
}

/* Fluxo institucional */
.zd-statement {
    padding: 34px;
    border-left: 4px solid var(--zd-orange);
    background: var(--zd-black);
    color: #fff;
}

.zd-statement h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.08;
    font-weight: 800;
}

.zd-statement p {
    margin: 18px 0 0;
    color: rgba(255,255,255,.7);
    line-height: 1.7;
}

.zd-flow {
    border-top: 1px solid var(--zd-line);
}

.zd-flow-item {
    display: grid;
    grid-template-columns: 55px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 22px 0;
    border-bottom: 1px solid var(--zd-line);
}

.zd-flow-item span {
    color: var(--zd-orange);
    font-size: 12px;
    font-weight: 800;
}

.zd-flow-item h4 {
    margin: 0;
    color: var(--zd-black);
    font-size: 17px;
    font-weight: 800;
}

/* Produtos */
.zd-product {
    min-height: 255px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
    background: var(--zd-black);
    color: #fff;
    overflow: hidden;
}

.zd-product.orange {
    background: var(--zd-orange);
}

.zd-product.blue {
    background: var(--zd-blue);
}

.zd-product small {
    color: rgba(255,255,255,.65);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.zd-product h3 {
    margin: 0;
    font-size: 31px;
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 800;
}

.zd-product p {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
}

/* Mercados */
.zd-market {
    min-height: 175px;
    padding: 28px;
    border: 1px solid var(--zd-line);
    background: #fff;
}

.zd-market i {
    color: var(--zd-orange);
    font-size: 22px;
}

.zd-market h3 {
    margin-top: 38px;
    color: var(--zd-black);
    font-size: 20px;
    font-weight: 800;
}

/* Tecnologias */
.zd-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.zd-tech {
    padding: 11px 16px;
    border: 1px solid var(--zd-line);
    border-radius: 999px;
    background: #fff;
    color: var(--zd-black);
    font-size: 13px;
    font-weight: 700;
}

.zd-tech:hover {
    border-color: var(--zd-orange);
    color: var(--zd-orange);
}

/* CTA */
.zd-cta {
    margin-top: 0 !important;
    padding: 90px 0;
    background: var(--zd-orange);
    color: #fff;
}

.zd-cta h2 {
    margin: 0;
    font-size: clamp(40px, 5vw, 76px);
    line-height: .96;
    letter-spacing: -.045em;
    font-weight: 800;
}

.zd-cta .btn {
    border-radius: 999px;
    background: var(--zd-black) !important;
    color: #fff !important;
}

/* Footer antigo atualizado */
footer {
    margin-top: 0;
    background: var(--zd-black) !important;
}

footer h6,
footer p,
footer a,
footer a i {
    color: rgba(255,255,255,.72) !important;
}

footer a:hover {
    color: var(--zd-orange) !important;
}

/* Responsivo */
@media screen and (max-width: 991px) {
    .banner-home {
        padding-top: 64px;
    }

    .banner-home .carousel-item img {
        min-height: 390px;
    }

    .metricas-home .metrica {
        border-bottom: 1px solid var(--zd-line);
    }

    .site-section {
        padding: 78px 0;
    }

    .zd-statement {
        margin-bottom: 36px;
    }
}

@media screen and (max-width: 460px) {
    section,
    main section {
        margin-top: 0;
    }

    .banner-home {
        padding-top: 58px;
    }

    .banner-home .carousel-item img {
        min-height: 285px;
        max-height: 285px;
    }

    .banner-home .carousel-control-prev,
    .banner-home .carousel-control-next {
        width: 12%;
    }

    .site-section {
        padding: 62px 0;
    }

    .site-title {
        font-size: 36px;
        text-align: left;
    }

    .site-copy {
        font-size: 15px;
        text-align: left;
    }

    .metricas-home .metrica {
        min-height: 105px;
        padding: 22px 14px;
        text-align: center;
    }

    .metricas-home strong {
        font-size: 27px;
    }

    .zd-flow-item {
        grid-template-columns: 45px 1fr;
    }

    .zd-flow-item i {
        display: none;
    }

    .zd-cta h2 {
        font-size: 39px;
    }
}
