* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--cinza);
    color: var(--texto);
    overflow-x: hidden;
}
a { text-decoration: none; }
img { max-width: 100%; }
body.modal-open { overflow: hidden; }

/* Header */
.navbar-gbo {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(3, 3, 3, 0.96);
    border-bottom: 2px solid rgba(248, 180, 0, 0.5);
    padding: 12px 0;
    backdrop-filter: blur(10px);
}
.navbar-brand img { max-height: 72px; object-fit: contain; }
.navbar-nav .nav-link {
    color: var(--branco);
    font-weight: 700;
    font-size: 15px;
    margin: 0 10px;
    position: relative;
    transition: var(--transicao);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--amarelo); }
.navbar-nav .nav-link.active::after {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--amarelo);
    position: absolute;
    left: 50%;
    bottom: -8px;
    border-radius: 5px;
    transform: translateX(-50%);
}

/* Botões */
.btn-gbo,
.btn-catalogo,
.btn-ordenacao {
    border: none;
    border-radius: 8px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transicao);
}
.btn-gbo {
    background: var(--gradiente-amarelo);
    color: #111;
    padding: 12px 22px;
}
.btn-gbo:hover,
.btn-catalogo:hover,
.btn-ordenacao:hover,
.btn-ordenacao.active {
    color: #111;
    transform: translateY(-2px);
    box-shadow: var(--sombra-amarela);
}
.btn-catalogo {
    width: 100%;
    padding: 11px 16px;
    background: var(--amarelo);
    color: #111;
    font-size: 14px;
}
.btn-ordenacao {
    background: #111;
    color: var(--amarelo);
    padding: 8px 12px;
}
.btn-ordenacao.active { background: var(--amarelo); color: #111; }

/* Hero */
.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    color: var(--branco);
    position: relative;
    background-size: cover;
    background-position: center right;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 45%, rgba(248,180,0,.14), transparent 26%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    left: 43%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--amarelo), transparent);
    opacity: .75;
    transform: skewX(-22deg);
}
body[data-page="home"] .hero,
body[data-page="produtos"] .hero,
body[data-page="segmentos"] .hero,
body[data-page="sobre"] .hero {
    background-image: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.84) 38%, rgba(0,0,0,.25) 64%, rgba(0,0,0,.05)), url("../images/background_section_home.png");
}
body[data-page="contato"] .hero {
    background-image: linear-gradient(90deg, rgba(0,0,0,.96), rgba(0,0,0,.84) 38%, rgba(0,0,0,.25) 64%, rgba(0,0,0,.05)), url("../images/background_section_contato.png");
}
body:not([data-page="home"]) .hero { min-height: 460px; }
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    animation: fadeUp .75s ease both;
}
.hero-small {
    color: var(--branco);
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    margin-bottom: 10px;
}
.hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 24px;
}
body[data-page="produtos"] .hero h1 { font-size: clamp(36px, 4.7vw, 54px); }
.hero h1 span,
.section-title span,
.cta-strip h3 span,
.contact-info h3 span,
.form-area h2 span,
.about-home h3 span { color: var(--amarelo); }
.hero p {
    color: #f2f2f2;
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 28px;
}
.location-line {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
}

/* Seções */
.section-padding { padding: 62px 0; }
.section-title {
    color: #111;
    text-align: center;
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-subtitle {
    text-align: center;
    color: #666;
    max-width: 780px;
    margin: 0 auto 28px;
    font-size: 16px;
}
.title-line {
    width: 82px;
    height: 3px;
    background: var(--amarelo);
    margin: 0 auto 36px;
    border-radius: 10px;
    position: relative;
}
.title-line::after {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--amarelo);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 7px rgba(248,180,0,.16);
}

/* Cards */
.brand-card,
.empresa-card,
.segment-card,
.solution-card,
.support-card,
.category-box,
.info-card,
.value-card,
.mv-card,
.about-text-box {
    height: 100%;
    border-radius: var(--raio-card);
    transition: var(--transicao);
}
.brand-card,
.empresa-card,
.segment-card,
.category-box,
.info-card,
.value-card,
.about-text-box {
    background: #fff;
    border: 1px solid var(--borda);
    box-shadow: var(--sombra-card);
}
.brand-card,
.empresa-card,
.segment-card,
.category-box,
.info-card,
.value-card { padding: 28px; }
.brand-card:hover,
.empresa-card:hover,
.segment-card:hover,
.solution-card:hover,
.support-card:hover,
.category-box:hover,
.info-card:hover,
.value-card:hover,
.mv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sombra-card-hover);
}
.brand-card img,
.empresa-card img { max-height: 82px; object-fit: contain; margin-bottom: 20px; }
.brand-card h3,
.empresa-card h3,
.segment-card h3,
.segment-card h4,
.category-box h4,
.info-card h3,
.value-card h3 {
    color: #111;
    font-weight: 900;
    margin-bottom: 10px;
}
.brand-card p,
.empresa-card p,
.segment-card p,
.category-box li,
.info-card p,
.info-card a,
.value-card p,
.about-text-box p {
    color: var(--texto-suave);
    line-height: 1.6;
    font-size: 15px;
}
.empresa-card { position: relative; text-align: center; overflow: hidden; }
.catalogo-chip {
    display: inline-block;
    background: rgba(248, 180, 0, .15);
    color: #8a6000;
    border: 1px solid rgba(248, 180, 0, .35);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 12px;
    margin-bottom: 16px;
}
.catalogo-icone-grupo,
.category-icon,
.info-icon,
.value-icon,
.segment-card > i,
.segment-icon {
    width: 72px;
    height: 72px;
    color: var(--amarelo);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin-bottom: 18px;
}
.catalogo-icone-grupo { margin-inline: auto; }
.solution-card,
.support-card,
.mv-card {
    background: var(--gradiente-escuro);
    color: #fff;
    border: 1px solid #242424;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0,0,0,.16);
    position: relative;
    overflow: hidden;
}
.solution-card::before,
.support-card::before,
.mv-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(248,180,0,.18), transparent 34%);
    opacity: 0;
    transition: var(--transicao);
}
.solution-card:hover::before,
.support-card:hover::before,
.mv-card:hover::before { opacity: 1; }
.solution-card > *, .support-card > *, .mv-card > * { position: relative; z-index: 1; }
.solution-card i,
.support-card i,
.mv-card i {
    color: var(--amarelo);
    font-size: 44px;
    margin-bottom: 18px;
}
.solution-card h4,
.support-card h4,
.mv-card h3 { color: #fff; font-weight: 900; margin-bottom: 10px; }
.solution-card p,
.support-card p,
.mv-card p { color: #ddd; line-height: 1.6; font-size: 15px; }
.category-box ul,
.segment-card ul { padding-left: 18px; margin-bottom: 0; }
.category-box li,
.segment-card li { margin-bottom: 6px; }

/* Carrossel de produtos da Home */
.catalogo-carousel-shell {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 22px;
}
.catalogo-carousel-track {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.catalogo-carousel-btn,
.btn-voltar-topo {
    border: none;
    border-radius: 50%;
    background: var(--amarelo);
    color: #111;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--sombra-amarela);
    transition: var(--transicao);
}
.catalogo-carousel-btn {
    width: 48px;
    height: 48px;
    font-size: 24px;
    flex-shrink: 0;
}
.catalogo-carousel-btn:hover,
.btn-voltar-topo:hover { background: var(--amarelo-2); transform: scale(1.06); }
.catalogo-card-link { cursor: pointer; min-height: 100%; }
.catalogo-hint {
    color: #9a6a00;
    font-weight: 900;
    font-size: 14px;
    margin-top: 14px;
}

/* Slider de marcas */
.brands-strip {
    background: #fff;
    border-radius: var(--raio-card);
    padding: 22px;
    box-shadow: var(--sombra-card);
    overflow: hidden;
}
.marcas-slider { width: 100%; overflow: hidden; position: relative; padding: 10px 0; }
.marcas-slider::before,
.marcas-slider::after {
    content: "";
    position: absolute;
    top: 0;
    width: 90px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.marcas-slider::before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.marcas-slider::after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.marcas-slider-track {
    display: flex;
    align-items: center;
    gap: 45px;
    width: max-content;
    animation: marcasSlider 24s linear infinite;
}
.marcas-slider:hover .marcas-slider-track { animation-play-state: paused; }
.marca-slider-item {
    min-width: 160px;
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.marca-slider-item img,
.brand-logo-small {
    max-width: 145px;
    max-height: 65px;
    object-fit: contain;
    transition: var(--transicao);
}
.marca-slider-item img:hover { transform: scale(1.06); }

/* Sobre */
.about-home,
.cta-strip,
.whatsapp-strip,
.contact-box,
.contact-main-box,
.numbers-strip {
    border-radius: var(--raio-card);
    overflow: hidden;
}
.about-home,
.cta-strip,
.whatsapp-strip,
.numbers-strip {
    background: var(--gradiente-escuro);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.about-home,
.cta-strip,
.whatsapp-strip {
    padding: 30px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.about-home img { max-width: 180px; }
.about-home h3,
.cta-strip h3,
.whatsapp-strip h3 { font-weight: 900; text-transform: uppercase; margin-bottom: 8px; }
.about-home p,
.cta-strip p,
.whatsapp-strip p { color: #ddd; margin-bottom: 0; }
.about-image {
    min-height: 440px;
    border-radius: var(--raio-card);
    background-image: linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.58)), url("../images/background_card_sobre.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 15px 40px rgba(0,0,0,.15);
    position: relative;
    overflow: hidden;
}
.about-image-badge {
    position: absolute;
    left: 25px;
    bottom: 25px;
    max-width: 330px;
    padding: 22px;
    background: rgba(5,5,5,.92);
    color: #fff;
    border-left: 5px solid var(--amarelo);
    border-radius: 12px;
}
.about-image-badge h3 { font-size: 22px; font-weight: 900; text-transform: uppercase; }
.about-image-badge p { color: #ddd; margin-bottom: 0; font-size: 14px; }
.about-text-box { padding: 36px; }
.about-text-box h2 { font-size: 34px; font-weight: 900; text-transform: uppercase; margin-bottom: 18px; }
.highlight-item { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.highlight-item i { color: var(--amarelo); font-size: 22px; flex-shrink: 0; }
.highlight-item strong { color: #111; }
.numbers-strip { padding: 35px; }
.number-box { text-align: center; }
.number-box i { color: var(--amarelo); font-size: 40px; margin-bottom: 12px; }
.number-box h3 { color: var(--amarelo); font-size: 30px; font-weight: 900; margin-bottom: 6px; }
.number-box p { color: #ddd; margin-bottom: 0; }

/* Contato */
.contact-box,
.contact-main-box { background: #080808; color: #fff; box-shadow: 0 15px 40px rgba(0,0,0,.18); }
.contact-info,
.form-area { height: 100%; padding: 36px; background: var(--gradiente-escuro); }
.contact-info h3,
.form-area h2 { font-weight: 900; text-transform: uppercase; margin-bottom: 14px; }
.contact-info p,
.form-area p { color: #ddd; }
.contact-item { display: flex; gap: 12px; margin-bottom: 15px; color: #eee; }
.contact-item i { color: var(--amarelo); font-size: 20px; }
.form-control,
.form-select {
    border-radius: 8px;
    padding: 13px 14px;
    border: 1px solid transparent;
}
.form-control:focus,
.form-select:focus {
    border-color: rgba(248,180,0,.55);
    box-shadow: 0 0 0 3px rgba(248,180,0,.22);
}
.contact-image {
    min-height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.7)), url("../images/background_section_contato.png") center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px;
}
.contact-image img { max-width: 320px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35)); }
.contact-image-content { position: absolute; left: 30px; right: 30px; bottom: 30px; }
.contact-image-content h3 { font-weight: 900; text-transform: uppercase; }
.map-box { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio-card); overflow: hidden; box-shadow: var(--sombra-card); }
#mapa { min-height: 340px; width: 100%; }
.map-info { padding: 22px; text-align: center; }
.map-info i { color: var(--amarelo); font-size: 36px; }
.map-info h3 { font-weight: 900; text-transform: uppercase; }

/* Modal catálogo */
.catalogo-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    background: rgba(0,0,0,.72);
    padding: 24px;
}
.catalogo-modal.is-open { display: flex; align-items: center; justify-content: center; }
.catalogo-modal-dialog { width: min(1100px, 100%); height: min(760px, 92vh); }
.catalogo-modal-content { height: 100%; background: #fff; border-radius: var(--raio-card); overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.34); }
.catalogo-modal-header { height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px; background: #080808; color: #fff; }
.catalogo-modal-title { margin: 0; font-weight: 900; }
.catalogo-modal-close { border: none; background: var(--amarelo); color: #111; width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; }
.catalogo-modal-body { height: calc(100% - 58px); }
.catalogo-modal-body iframe { width: 100%; height: 100%; border: 0; }

/* Botão topo */
.btn-voltar-topo {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    font-size: 24px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
}
.btn-voltar-topo.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Rodapé */
footer { background: #030303; color: #fff; padding: 46px 0 16px; border-top: 3px solid var(--amarelo); }
footer h5 { color: var(--amarelo); font-size: 17px; font-weight: 900; text-transform: uppercase; margin-bottom: 18px; }
footer p,
footer a { color: #ddd; font-size: 15px; }
footer a:hover { color: var(--amarelo); }
.footer-logo { max-width: 160px; margin-bottom: 15px; }
.social-icons a { width: 36px; height: 36px; border: 1px solid var(--amarelo); color: var(--amarelo); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; transition: var(--transicao); }
.social-icons a:hover { background: var(--amarelo); color: #111; }
.copyright { border-top: 1px solid #222; padding-top: 15px; margin-top: 25px; text-align: center; font-size: 14px; color: #aaa; }

/* Animações */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes marcasSlider { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Responsivo */
@media (max-width: 991px) {
    .navbar-nav .nav-link { margin: 4px 0; }
    .navbar-nav .nav-link.active::after { display: none; }
    .hero { min-height: auto; padding: 82px 0; background-position: center; }
    .hero::after { display: none; }
    .about-home,
    .cta-strip,
    .whatsapp-strip { flex-direction: column; text-align: center; }
    .contact-image { min-height: 360px; }
}
@media (max-width: 767px) {
    .section-padding { padding: 48px 0; }
    .catalogo-carousel-shell { gap: 10px; }
    .catalogo-carousel-track { grid-template-columns: 1fr; gap: 0; }
    .catalogo-carousel-btn { width: 44px; height: 44px; font-size: 22px; }
    .catalogo-carousel-shell .brand-card { min-height: 390px; padding: 28px 22px; display: flex; flex-direction: column; justify-content: center; }
    .catalogo-carousel-shell .brand-card img { max-width: 160px; max-height: 85px; margin-inline: auto; margin-bottom: 22px; }
    .catalogo-carousel-shell .brand-card h3 { font-size: 22px; line-height: 1.2; }
    .catalogo-carousel-shell .brand-card p { min-height: auto; font-size: 16px; }
}
@media (max-width: 575px) {
    .hero h1 { font-size: 34px; }
    .hero-small { font-size: 14px; }
    .section-title { font-size: 24px; }
    .contact-info,
    .form-area,
    .about-text-box { padding: 25px; }
    .about-image { min-height: 360px; }
    .about-image-badge { left: 18px; right: 18px; bottom: 18px; }
    .segment-card-header { flex-direction: column; text-align: center; }
    .marcas-slider-track { gap: 30px; animation-duration: 18s; }
    .marca-slider-item { min-width: 130px; }
    .marca-slider-item img { max-width: 120px; max-height: 55px; }
    .btn-voltar-topo { right: 16px; bottom: 16px; width: 48px; height: 48px; font-size: 22px; }
}

/* Ajuste cards da página Produtos */
body[data-page="produtos"] #listaEmpresasCatalogos {
    align-items: stretch;
}

body[data-page="produtos"] #listaEmpresasCatalogos > div {
    display: flex;
}

body[data-page="produtos"] .empresa-card {
    width: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

body[data-page="produtos"] .empresa-card img {
    width: 100%;
    max-width: 150px;
    height: 85px;
    object-fit: contain;
    margin-bottom: 18px;
}

body[data-page="produtos"] .catalogo-icone-grupo {
    width: 100%;
    max-width: 150px;
    height: 85px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

body[data-page="produtos"] .empresa-card h3 {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body[data-page="produtos"] .empresa-card p {
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 18px;
}

body[data-page="produtos"] .empresa-card .btn-catalogo {
    margin-top: auto;
}