/* === CONFIGURAÇÕES GLOBAIS E VARIÁVEIS === */
:root {
    --dark-blue: #004473;
    --blue: #14567e;
    --light-blue: #5b8fac;
    --red: #e2001a;
    --gray: #f4f6f8;
    --text-color: #333;
}
body { font-family: 'Segoe UI', Arial, sans-serif; margin: 0; color: var(--text-color); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
.page-section { padding: 3rem 0; }
.clear{ clear: both;}
h1, h2, h3, h4 { color: var(--dark-blue); }

/* === CABEÇALHO (TOPO E MENU) === */
header {
    position: relative;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 1rem;
    flex-wrap: wrap;
}

/* Logo, slogan e selo 24h mantidos no tamanho original da imagem */

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: auto;
}

.social-icons { display: flex; gap: 12px; }
.social-icons a {
    text-decoration: none;
    color: var(--dark-blue);
    font-size: 20px;
    transition: color 0.3s;
}
.social-icons a:hover { color: var(--red); }

.top-bar-phones { display: flex; align-items: center; gap: 1rem; }
.top-bar-phones .whatsapp-number {
    color: var(--dark-blue);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.top-bar-phones .whatsapp-number i { color: #25D366; font-size: 1.2rem; }

/* --- BARRA DE NAVEGAÇÃO --- */
.nav-bar {
    background-color: var(--dark-blue);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu li { position: relative; }

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
    font-size: 15px;
    padding: 14px 18px;
    display: block;
    line-height: 20px;
}

.nav-menu a:hover { color: #a9c6d8; }

/* --- DROPDOWN (SUBMENU) --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--blue);
    min-width: 180px;
    top: 100%;
    left: 0;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dropdown-content a:hover { background-color: var(--dark-blue); color: #fff; }
.dropdown:hover .dropdown-content { display: block; }

/* --- MENU MOBILE --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark-blue);
    font-size: 28px;
    cursor: pointer;
    z-index: 999;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background-color: var(--dark-blue);
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    z-index: 1001;
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
}

.mobile-nav.active { right: 0; }

.mobile-nav-header { padding: 20px 20px 0 20px; text-align: right; }

.mobile-nav-close { background: none; border: none; color: #fff; font-size: 30px; cursor: pointer; }

.mobile-nav ul { list-style: none; padding: 0; margin: 0; }

.mobile-nav a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
}

.mobile-nav a:hover { background-color: var(--blue); }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}
.mobile-nav-overlay.active { display: block; }

@media (max-width: 900px) {
    .top-bar-phones .plantao-badge { display: none; }
    .nav-bar { display: none; }
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 18px;
        right: 20px;
        z-index: 1002;
    }
    .top-bar { justify-content: center; text-align: center; }
    .top-bar-right { margin: 0 auto; }
}
@media (max-width: 600px) {
    .top-bar .slogan-wrapper { display: none; }
}

/* === BANNER (HOME) === */
.hero-slider { position: relative; width: 100%; min-height: 200px; background-color: #f0f0f0; }
.hero-slider img { width: 100%; }
.hero-slider .splide__slide { line-height: 0; }
.hero-slider .splide__arrow { background: rgba(0, 68, 115, 0.7); width: 3rem; height: 3rem; }
.hero-slider .splide__arrow svg { fill: #fff; }
.hero-slider .splide__pagination { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1; }
.hero-slider .splide__pagination__page { background: rgba(255, 255, 255, 0.7); width: 12px; height: 12px; margin: 0 6px; opacity: 1; border: 1px solid rgba(0,0,0,0.2); }
.hero-slider .splide__pagination__page.is-active { background: var(--red); transform: scale(1.1); border: 1px solid rgba(0,0,0,0.4); }

/* === INTRO (HOME / IMAGEM + TEXTO) === */
.intro-section { background-color: #F6F6F6; }
/* display:flow-root contém a margem negativa da imagem dentro deste bloco,
   sem deixar o fundo cinza da seção "colapsar" junto - só a imagem sobe. */
.intro-section .intro-inner { max-width: 900px; margin: 0 auto; display: flow-root; }
.intro-image-full { margin: -120px 0 2rem 0; }
.intro-image-full img { width: 100%; border-radius: 4px; position: relative; z-index: 2; border: 20px solid #F6F6F6; }
.intro-content h3 { color: var(--dark-blue); font-size: 1.4rem; margin-top: 0; }
.intro-content p { line-height: 1.8; color: #555; }
@media (max-width: 800px) {
    .intro-image-full { margin-top: -60px; }
}

/* === GRELHAS DE PRODUTOS / SERVIÇOS / LOCAÇÃO (CARDS) === */
.section-heading { text-align: center; font-weight: 700; margin-bottom: 2rem; font-size: 1.5rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.produtos-carousel, .clientes-carousel { padding: 0 2.5rem; }

.card-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    border: 1px solid #dfe4e8;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.card-item:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.card-item .card-title {
    background: #fff;
    color: var(--dark-blue);
    font-weight: 700;
    text-align: center;
    padding: 14px 10px;
    font-size: 1.05rem;
    line-height: 1.3;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(1.3em * 2 + 28px);
}
.card-item .card-image { aspect-ratio: 4 / 3; overflow: hidden; }
.card-item .card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-item .card-footer {
    text-align: center;
    padding: 12px;
    color: #555;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
}

@media (max-width: 992px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-grid { grid-template-columns: 1fr; } .produtos-carousel, .clientes-carousel { padding: 0 1.5rem; } }

.clientes-carousel .card-item, .clientes-carousel .cliente-item {
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* === TÍTULO DE PÁGINA INTERNA (Produtos / Locação) === */
.page-header-banner {
    background: linear-gradient(135deg, #e7ebee 0%, #cfd8de 100%);
    padding: 3rem 0;
}
.page-header-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.page-header-banner h1 { font-size: 2rem; margin: 0 0 0.3rem 0; }
.page-header-banner h2 { font-size: 1.5rem; margin: 0; font-weight: 400; color: var(--blue); }
.page-header-banner .page-header-image { max-width: 320px; flex: 0 0 320px; }
.page-header-banner .page-header-image img { border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* Banner full width (página de detalhe de Serviço) */
.full-width-banner { line-height: 0; }
.full-width-banner img { width: 100%; display: block; }

/* Barra de título escura (Empresa) */
.title-bar-dark {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin: -2.5rem 0 2rem 0;
    position: relative;
}

/* === PÁGINA DE DETALHE (Produto / Serviço / Locação) === */
.detail-page .container { padding: 2.5rem 1rem; }
.detail-content { display: flex; gap: 2.5rem; align-items: flex-start; }
.detail-gallery { flex: 0 0 340px; }
.detail-gallery .detail-main-image { margin: 40px 0 10px; border-radius: 4px; overflow: hidden; }
.detail-gallery .detail-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-gallery .detail-thumbs img { border-radius: 4px; aspect-ratio: 1/1; object-fit: cover; }
.detail-text { flex: 1; color: #555; line-height: 1.8; font-size: 1.05rem; }
.detail-text h2 { margin-top: 0; }
.detail-text .lista-3-colunas ul { columns: 1; }
.detail-text .lista-3-colunas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.detail-text .lista-3-colunas ul { list-style: none; padding: 0; margin: 0; }
.detail-text .lista-3-colunas li { padding: 3px 0; border-bottom: 1px dashed #e2e2e2; font-size: 0.95rem; }
.btn-tecnico {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--dark-blue);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.5rem;
}
.btn-tecnico:hover { background-color: var(--blue); }
.btn-tecnico i { color: #25D366; font-size: 1.2rem; }

@media (max-width: 800px) {
    .detail-content { flex-direction: column; }
    .detail-gallery { flex: none; width: 100%; }
    .detail-text .lista-3-colunas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
    .detail-text .lista-3-colunas { grid-template-columns: 1fr; }
}

/* === CTA "COMPROMISSO COM A PERFORMANCE" (parallax, todas as páginas) === */
.cta-parallax {
    background-image: url('../../uploads/imagem_paralax.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 1rem;
    text-align: center;;
}
.cta-parallax .cta-box {
    background-color: rgba(0, 68, 115, 0.85);
    color: #fff;
    display: inline-block;
    padding: 1.5rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    max-width: 700px;
}
@media (max-width: 768px) {
    .cta-parallax { background-attachment: scroll; padding: 3rem 1rem; }
    .cta-parallax .cta-box { font-size: 1.05rem; padding: 1.2rem 1.5rem; }
}

/* === PÁGINA CONTATO === */
.contato-page .container { padding: 2.5rem 1rem; }
.contato-endereco-row { display: flex; gap: 2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 2rem; }
.contato-endereco-row img { flex: 0 0 420px; border-radius: 4px; }
.contato-endereco-row .endereco-texto { line-height: 1.8; }
.contato-mapa iframe { width: 100%; height: 420px; border: 0; border-radius: 4px; }

/* === RODAPÉ (FOOTER) === */
.site-footer { color: var(--text-color); }
.footer-title-bar { background-color: var(--dark-blue); padding: 1rem 0; text-align: center; text-transform: uppercase; }
.footer-title-bar h2 { margin: 0; font-size: 1.4rem; font-weight: 400; color: #fff; padding: 10px 0; }
.footer-main { background-color: #F6F6F6; color: var(--text-color); padding: 3rem 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: space-between; }

.footer-col-info { flex: 1; min-width: 280px; }
.footer-col-form { flex: 0 1 380px; min-width: 280px; max-width: 380px; }

.footer-logo-social { margin-bottom: 1.2rem; }
.footer-logo-row { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 0.8rem; }

.footer-plantao { display: flex; align-items: center; gap: 10px; margin: 1rem 0; }
.footer-plantao .whatsapp-number { color: var(--dark-blue); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.footer-plantao .whatsapp-number i { color: #25D366; font-size: 1.3rem; }

.footer-address { font-size: 0.9rem; line-height: 1.7; display: flex; gap: 10px; align-items: flex-start; color: var(--text-color); }
.footer-address i { margin-top: 4px; color: var(--dark-blue); }

.footer-voltar-topo { color: var(--dark-blue); opacity: 0.85; font-size: 0.85rem; text-decoration: none; display: inline-block; margin-top: 1rem; }

.site-footer .social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background-color: var(--dark-blue);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-bottom: 1rem;
}
.site-footer .social-icons a:hover { opacity: 0.8; }

.footer-form h4 { color: var(--dark-blue); margin-top: 0; font-weight: 400; }
.contact-form-footer input[type="text"],
.contact-form-footer input[type="email"],
.contact-form-footer input[type="tel"],
.contact-form-footer textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    font-family: inherit;
}
.contact-form-footer ::placeholder { color: #777; opacity: 1; }
.contact-form-footer button {
    background-color: var(--dark-blue);
    color: #fff;
    border: 0;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}
.contact-form-footer button:hover { background-color: #092944; }
.contact-form-footer .form-message { padding: 0.8rem; border-radius: 4px; margin-bottom: 10px; text-align: center; font-size: 0.9rem; }
.contact-form-footer .form-message.success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }
.contact-form-footer .form-message.error { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }

.footer-bottom { background-color: #fff; color: var(--text-color); padding: 1rem 0; font-size: 0.8rem; border-top: 1px solid #eee; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-seals { display: flex; align-items: center; gap: 1rem; }
.footer-logo-small { max-height: 25px; }

@media (max-width: 768px) {
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .footer-row { text-align: center; }
    .footer-logo-row, .footer-plantao, .footer-address { justify-content: center; }
    .footer-col-form { max-width: 100%; }
    .contato-endereco-row img { flex: none; width: 100%; }
}

/* === BOTÃO VOLTAR AO TOPO E WHATSAPP FLUTUANTE === */
.back-to-top-btn {
    position: fixed; bottom: 30px; right: 30px;
    background-color: var(--dark-blue); color: #fff;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; font-size: 1.2rem; z-index: 1000;
    border: none; cursor: pointer; opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}
.back-to-top-btn.show { opacity: 1; visibility: visible; }
.back-to-top-btn:hover { background-color: var(--blue); }

.whatsapp-floating-btn {
    position: fixed; bottom: 90px; right: 30px;
    background-color: #25D366; color: white;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    text-decoration: none; font-size: 2rem; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-floating-btn:hover { transform: scale(1.1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

/* === BUSCA === */
.search-results-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.search-divider { margin: 2rem 0; border: 0; border-top: 1px solid #eee; }
@media (max-width: 992px) { .search-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .search-results-grid { grid-template-columns: 1fr; } }

.page-wrapper { padding: 2rem 0 3rem; background-color: #fff; }
