/* ===================================================================
   KD TRANSPORTES — DESIGN EXECUTIVO FUTURISTA AZUL
   CSS Premium — Corporativo, Clean, Animado, Mobile-first
=================================================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.kd-body {
    font-family: "Inter", sans-serif;
    background: #0d1524;
    color: #e9eef5;
    overflow-x: hidden;
}

.kd-wrap {
    max-width: 1300px;
    margin: auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===================================================================
   HEADER
=================================================================== */

.kd-header {
    background: rgba(5, 12, 22, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-flex {
    height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kd-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1ea0ff;
}

.kd-logo { height: 52px; }

.kd-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.kd-nav a {
    opacity: .75;
    transition: .25s;
    font-weight: 500;
}

.kd-nav a:hover {
    opacity: 1;
    color: #1ea0ff;
}

/* ================= MOBILE BURGER ================= */

.kd-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.kd-burger span {
    width: 28px;
    height: 3px;
    background: #1ea0ff;
    border-radius: 4px;
    transition: .3s;
}

.kd-burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.kd-burger.active span:nth-child(2) {
    opacity: 0;
}
.kd-burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE MENU */
.kd-mobile {
    display: none;
    flex-direction: column;
    padding: 18px;
    background: #0a1320;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.kd-mobile a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.kd-mobile.open { display: flex; }

/* ===================================================================
   BUTTONS
=================================================================== */

.btn-primary {
    background: #1ea0ff;
    padding: 12px 28px;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    transition: .3s ease;
}

.btn-primary:hover { background: #0f82d9; }

.btn-outline {
    padding: 12px 28px;
    border: 2px solid #1ea0ff;
    color: #1ea0ff;
    border-radius: 10px;
    font-weight: 700;
    transition: .3s;
}

.btn-outline:hover {
    background: #1ea0ff;
    color: #fff;
}

/* ===================================================================
   HERO
=================================================================== */

.hero {
    padding: 110px 0 70px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-title {
    font-size: 2.9rem;
    font-weight: 900;
    line-height: 1.2;
}

.accent { color: #1ea0ff; }

.hero-sub {
    margin: 12px 0 28px;
    font-size: 1.2rem;
    opacity: .85;
}

.hero-actions { display: flex; gap: 20px; }

.hero-stats {
    margin-top: 34px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.hero-stats li {
    background: rgba(255,255,255,0.05);
    padding: 14px 18px;
    border-radius: 12px;
    text-align: center;
}

.hero-stats strong {
    color: #1ea0ff;
    font-size: 1.4rem;
}

/* mapa */
.hero-map { position: relative; }

.map-dot {
    width: 14px;
    height: 14px;
    background: #1ea0ff;
    border-radius: 50%;
    position: absolute;
    bottom: 28px;
    right: 40px;
}

.pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.35; }
}

/* ===================================================================
   SECTIONS
=================================================================== */

.kd-section { padding: 80px 0; }
.section-title { font-size: 2.3rem; margin-bottom: 22px; }
.big-text { font-size: 1.28rem; opacity: .85; max-width: 760px; }

/* ===================================================================
   GRIDS & CARDS
=================================================================== */

.cards-grid,
.contact-grid,
.brand-grid,
.product-grid,
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 24px;
    margin-top: 40px;
}

.card,
.contact-card,
.brand-card,
.product-card,
.about-card {
    background: rgba(255,255,255,0.05);
    padding: 22px;
    border-radius: 14px;
    transition: .3s ease;
}

.card:hover,
.contact-card:hover,
.brand-card:hover,
.product-card:hover,
.about-card:hover {
    background: rgba(255,255,255,0.10);
    transform: translateY(-5px);
}

/* ===================================================================
   MARCAS (CATÁLOGO)
=================================================================== */

.catalogo-marcas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.marca-card {
    background: #0F172A;
    border: 2px solid #1E40AF;
    padding: 2rem 1rem;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.marca-card img {
    width: 260px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 0 6px rgba(0, 100, 255, 0.3));
    transition: 0.3s ease;
}

.marca-card:hover {
    transform: translateY(-6px);
    border-color: #3B82F6;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.4);
}

.marca-card:hover img {
    transform: scale(1.07);
    filter: drop-shadow(0 0 12px rgba(59,130,246,0.5));
}

.marca-card span {
    margin-top: 0.6rem;
    font-weight: 700;
    color: #3B82F6;
    letter-spacing: 1px;
}

/* brilho futurista */
.marca-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(59,130,246,0.15), transparent);
    opacity: 0;
    transition: 0.4s ease;
}
.marca-card:hover::before { opacity: 1; }

/* ===================================================================
   HEADER DE CADA MARCA
=================================================================== */

.marca-header {
    padding: 4rem 0 3rem;
    text-align: center;
    background: linear-gradient(to bottom, #1E3A8A, #0F172A);
    border-bottom: 3px solid #3B82F6;
    margin-bottom: 2rem;
}

.marca-header .marca-logo {
    width: 340px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(59,130,246,0.45));
    margin-bottom: 1rem;
    transition: 0.3s ease;
}

.marca-header:hover .marca-logo { transform: scale(1.05); }

.marca-header h1 {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.marca-header p {
    font-size: 1.1rem;
    color: #93B4F6;
}

/* ===================================================================
   LISTA DE PRODUTOS
=================================================================== */

.produtos-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 3rem;
}

.produto-item {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    border: 2px solid #1E40AF;
    background: #0F172A;
    border-radius: 10px;
    transition: 0.3s ease;
}

.produto-item:hover {
    border-color: #3B82F6;
    transform: translateX(4px);
    box-shadow: 0 0 14px rgba(59,130,246,0.35);
}

.produto-nome { font-weight: 700; }
.produto-unidade { font-weight: 600; color: #60A5FA; }

/* ===================================================================
   FOOTER
=================================================================== */

.kd-footer {
    background: #0a1320;
    padding: 55px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}

.footer-logo {
    width: 70px;
    margin-bottom: 10px;
}

.kd-copy {
    margin-top: 30px;
    text-align: center;
    opacity: .55;
}

/* ===================================================================
   ANIMAÇÕES — REVEAL
=================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   RESPONSIVIDADE
=================================================================== */

@media (max-width: 900px) {
    .kd-nav { display: none; }
    .kd-burger { display: flex; }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 600px) {

    .marca-card img { width: 200px; }
    .marca-header .marca-logo { width: 240px; }

    .marca-header h1 { font-size: 1.8rem; }

    .produto-item {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .hero-title { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
}

/* Centralização perfeita para logos das marcas */
.marca-header {
    text-align: center;
}

.marca-header .marca-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    transform-origin: center;
}

/* ============================================================
   BK DISTRIBUIDORA — SEÇÃO EXCLUSIVA
   Futurista • Profissional • Azul KD
============================================================ */

.bk-section {
    padding: 90px 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.6), rgba(10,19,32,1));
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* Brilho sutil futurista no fundo */
.bk-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(30,160,255,0.18), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}

.bk-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    gap: 50px;
}

.bk-left {
    text-align: center;
}

/* LOGO DESTACADA */
.bk-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 16px rgba(59,130,246,0.55));
    transition: .35s ease;
}

.bk-section:hover .bk-logo {
    transform: scale(1.05);
}

/* TEXTOS */
.bk-subtext {
    margin: 14px 0 30px;
    opacity: .75;
    line-height: 1.55;
    font-size: 1.05rem;
}

/* BOTÕES */
.bk-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ========================================
     RESPONSIVO — MOBILE
======================================== */

@media (max-width: 900px) {
    .bk-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bk-actions {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .bk-logo {
        max-width: 220px;
    }
}

/* ============================================================
   BK — HERO REIMAGINADO (Futurista, Profissional, Premium)
============================================================ */

.bk-hero {
    padding: 110px 0 90px;
    background: radial-gradient(circle at top right,#122644,#0d1524 60%);
    position: relative;
    overflow: hidden;
}

/* Partículas animadas de fundo */
.bk-hero::before,
.bk-hero::after {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    background: rgba(30,160,255,0.15);
    filter: blur(120px);
    border-radius: 50%;
    animation: floating 9s infinite ease-in-out;
}

.bk-hero::before {
    top: -120px;
    right: -80px;
}
.bk-hero::after {
    bottom: -120px;
    left: -80px;
    animation-delay: 3s;
}

@keyframes floating {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(40px) scale(1.15); }
    100% { transform: translateY(0px) scale(1); }
}

/* Grid Hero */
.bk-hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

/* Logo */
.bk-hero-logo {
    width: 340px;
    max-width: 95%;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 22px rgba(30,160,255,0.5));
    animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {
    0% { filter: drop-shadow(0 0 12px rgba(30,160,255,0.3)); }
    50% { filter: drop-shadow(0 0 26px rgba(30,160,255,0.65)); }
    100% { filter: drop-shadow(0 0 12px rgba(30,160,255,0.3)); }
}

/* Títulos */
.bk-hero-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1ea0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    animation: fadeUp .8s ease forwards;
    opacity: 0;
}

.bk-hero-sub {
    max-width: 550px;
    font-size: 1.2rem;
    opacity: .85;
    margin-bottom: 30px;
    animation: fadeUp 1s ease forwards .15s;
    opacity: 0;
}

@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* Botões */
.bk-hero-actions {
    display: flex;
    gap: 18px;
    animation: fadeUp 1.1s ease forwards .3s;
    opacity: 0;
}

.bk-hero-actions .btn-primary,
.bk-hero-actions .btn-outline {
    box-shadow: 0 0 14px rgba(30,160,255,0.35);
    transition: .3s ease, transform .3s ease;
}

.bk-hero-actions .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 20px rgba(30,160,255,0.6);
}

.bk-hero-actions .btn-outline:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 18px rgba(30,160,255,0.45);
}

/* Imagem da direita — cartão com parallax */
.bk-hero-bg {
    height: 340px;
    border-radius: 18px;
    background: linear-gradient(145deg,#1a2b48,#0d1628);
    position: relative;
    overflow: hidden;
    animation: fadeUp 1s ease forwards .3s;
    opacity: 0;
    box-shadow: 0 0 25px rgba(30,160,255,0.25);
}

.bk-hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/assets/bk-pattern.png') center/cover;
    opacity: .08;
    animation: bgMove 12s linear infinite;
}

@keyframes bgMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-260px); }
}

/* ============================================================
   SOBRE A BK — Seção de texto premium
============================================================ */

.about-bk {
    max-width: 850px;
    text-align: center;
}

.about-bk .section-title {
    font-size: 2.4rem;
    margin-bottom: 20px;
}

.about-bk p {
    line-height: 1.65;
}

/* ============================================================
   MARCAS — Hover avançado
============================================================ */

.bk-brand-grid .brand-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    transition: .35s ease;
}

.bk-brand-grid .brand-card img {
    transition: .35s ease;
}

.bk-brand-grid .brand-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(30,160,255,0.45);
    border-color: #3B82F6;
}

.bk-brand-grid .brand-card:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 18px rgba(30,160,255,0.5));
}

/* Luz diagonal futurista */
.bk-brand-grid .brand-card::before {
    content: "";
    position: absolute;
    width: 180%;
    height: 40%;
    top: -120%;
    left: -40%;
    background: rgba(30,160,255,0.25);
    transform: rotate(25deg);
    transition: .4s ease;
}

.bk-brand-grid .brand-card:hover::before {
    top: 120%;
}

/* ============================================================
   CTA FINAL — animação sutil
============================================================ */

.bk-cta-box {
    text-align: center;
    animation: fadeUp 1s ease;
}

.bk-cta-box .btn-primary {
    margin-top: 20px;
    padding: 14px 34px;
    font-size: 1.05rem;
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 900px) {
    .bk-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bk-hero-bg {
        height: 250px;
        margin-top: 30px;
    }
}

@media (max-width: 600px) {
    .bk-hero-logo {
        width: 230px;
    }

    .bk-hero-title {
        font-size: 2.2rem;
    }
}

/* ============================================================
   BK — CALL TO ACTION (CTA) FINAL — Ajustado e Premium
============================================================ */

.bk-cta {
    margin-top: 60px;
    padding: 90px 0;
    text-align: center;
    background: linear-gradient(
        180deg,
        rgba(30,160,255,0.08),
        rgba(13,21,36,0.6)
    );
    border-top: 1px solid rgba(30,160,255,0.15);
    border-bottom: 1px solid rgba(30,160,255,0.10);
    position: relative;
    overflow: hidden;
}

/* brilho suave no fundo */
.bk-cta::before {
    content: "";
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(30,160,255,0.25), transparent 60%);
    filter: blur(80px);
    z-index: 0;
}

/* conteúdo */
.bk-cta-box {
    max-width: 760px;
    margin: auto;
    position: relative;
    z-index: 2; /* fica acima do brilho */
}

.bk-cta-box .section-title {
    color: #1ea0ff;
    margin-bottom: 18px;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.bk-cta-box .big-text {
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* botão */
.bk-cta-box .btn-primary {
    padding: 14px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
    transition: .3s ease, transform .3s ease;
    box-shadow: 0 0 16px rgba(30,160,255,0.35);
}

.bk-cta-box .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 26px rgba(30,160,255,0.6);
}

/* responsivo */
@media (max-width: 600px) {

    .bk-cta {
        padding: 70px 0;
    }

    .bk-cta-box .section-title {
        font-size: 1.7rem;
    }

    .bk-cta-box .big-text {
        font-size: 1.05rem;
    }

    .bk-cta-box .btn-primary {
        width: 100%;
        padding: 14px;
    }
}

/* ============================================================
   FOOTER PROFISSIONAL — KD TRANSPORTES
============================================================ */

.kd-footer {
    background: #0a1320;
    padding: 60px 0 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Colunas */
.footer-col {
    min-width: 200px;
}

.footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Logo */
.footer-logo {
    height: 55px;
    filter: drop-shadow(0 0 8px rgba(30,160,255,0.25));
    margin-bottom: 14px;
}

/* Descrição */
.footer-desc {
    font-size: .95rem;
    opacity: .7;
    line-height: 1.5;
}

/* Listas */
.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    padding: 6px 0;
    font-size: .95rem;
    opacity: .8;
}

.footer-list li span {
    opacity: .75;
}

/* COPYRIGHT */
.kd-copy {
    text-align: center;
    padding-top: 14px;
    font-size: .85rem;
    opacity: .45;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* MOBILE */
@media(max-width: 600px) {
    .footer-grid {
        gap: 24px;
    }

    .footer-logo {
        height: 48px;
    }
}
