/* === CONFIGURAÇÕES GLOBAIS E VARIÁVEIS === */
:root {
    --dark-blue: #212f4c;
    --yellow: #FFC900;
    --gray: #f8f8f8;
    --text-color: #333;
}
body { font-family: sans-serif; margin: 0; color: var(--text-color); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
.page-section { padding: 4rem 0; }
.clear{ clear: both;}

/* === CABEÇALHO (TOPO E MENU) === */
.site-header { box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.header-top { background-color: #fff; padding: 1rem 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { max-width: 100%; }
.search-area form { display: flex; border: 1px solid #ccc; border-radius: 20px; overflow: hidden; }
.search-area input { border: none; padding: 0.5rem 1rem; outline: none; }
.search-area button { border: none; background: none; padding: 0 1rem; cursor: pointer; color: #888; }
.contact-area { display: flex; align-items: center; gap: 1.5rem; }
.social-icons { display: flex; gap: 1rem; }
.social-icons a { color: var(--dark-blue); font-size: 1.2rem; text-decoration: none; }
.whatsapp-link { display: flex; align-items: center; gap: 0.5rem; color: var(--text-color); text-decoration: none; font-weight: bold; }
.whatsapp-link .fa-whatsapp { color: #25D366; font-size: 1.5rem; }
.header-nav { background-color: var(--dark-blue); }
.header-nav .container { display: flex; justify-content: center; }
.header-nav ul { margin: 0; padding: 0; list-style: none; display: flex; }
.header-nav a { display: block; padding: 10px; color: #fff; text-decoration: none; font-weight: 400; text-transform: uppercase; font-size: 0.9rem; }
.header-nav a.active, .header-nav a:hover { color: var(--yellow); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--dark-blue); }
@media (max-width: 900px) { .search-area { display: none; } }
@media (max-width: 768px) {
    .header-top .container { flex-wrap: wrap; }
    .contact-area { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-nav { display: none; position: absolute; top: 82px; left: 0; width: 100%; background-color: var(--dark-blue); z-index: 100; }
    .header-nav.is-open { display: block; }
    .header-nav ul { flex-direction: column; width: 100%; }
    .header-nav ul a { border-bottom: 1px solid rgba(255,255,255,0.1); text-align: center; }
}

/* === PAGINA HOME === */
/* TITULO */
.section-title-bar { background-color: #e5e5e5; color: var(--dark-blue); padding: 15px 0; text-align: center; text-transform: uppercase; }
.section-title-bar h2 { margin: 0; font-size: 24px; font-weight: 600; }

.title-bar { background-color: var(--yellow); color: #fff; padding: 5px 0; text-align: center; text-transform: uppercase; }
.title-bar h2 { margin: 0; font-size: 18px; font-weight: 600; color: var(--dark-blue); }

.parallax-title-bar { padding: 150px 20px; position: relative;background-size: cover; background-position: center center; background-repeat: no-repeat; background-attachment: fixed; }
.parallax-title-bar h2 {
    display: inline-block; /* Permite que o fundo se ajuste ao texto */
    background-color: rgba(33, 47, 76, 0.7); /* --dark-blue com 70% de transparência */
    color: #fff;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

/* BANNER */
.hero-slider { position: relative; width: 100%; min-height: 250px; background-color: #f0f0f0; }
.hero-slider img{ width: 100%;}
.hero-slider .splide__slide { line-height: 0; }
.hero-slider .splide__arrow { background: rgba(10, 29, 58, 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(--yellow); transform: scale(1.1); border: 1px solid rgba(0,0,0,0.4); }

/* INTRO HOME */
.intro-section { background-color: var(--gray); background-image: url('../../uploads/introbg.png'); background-repeat: repeat; }
.intro-grid { display: flex; align-items: center; gap: 3rem; }
.intro-graphic { flex: 1; text-align: center; }
.intro-graphic img { max-width: 250px; }
.intro-checklist { flex: 2; }
.intro-checklist ul { list-style: none; padding: 0; margin: 0 0 2rem 0; }
.intro-checklist li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; font-size: 1.1rem; color: #555; }
.intro-checklist .fa-check { color: var(--yellow); font-size: 1.2rem; margin-top: 4px; }
.btn-main { background-color: var(--dark-blue); color: #fff; padding: 0.8rem 2rem; text-decoration: none; font-weight: bold; border-radius: 5px; }
@media (max-width: 768px) { .intro-grid { flex-direction: column; } .intro-checklist { text-align: center; } .intro-checklist li { text-align: left; } }

/* SOLUCAO HOME CAROUSEL */
.solutions-section { padding: 0 0 4rem 0; }
.solutions-section .container{ padding-top: 3rem; }
.solution-card { display: block; text-decoration: none; border: 1px solid #e0e0e0; overflow: hidden; background-color: #fff; position: relative; }
.solution-card-title { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem; /* Adiciona um espaçamento para o texto não colar nas bordas */
    box-sizing: border-box; /* Garante que o padding não aumente o tamanho total */
}
.solution-card-title h3 { margin: 0; font-size: 18px; text-align: center; font-weight: 500; background-color: rgba(33, 47, 76, 0.7); /* --dark-blue com 70% de transparência */ color: #fff; padding: 0.5rem 1rem; border-radius: 4px; }
.solution-card-image { padding: 0; display: flex; align-items: center; justify-content: center; height: 300px;overflow: hidden; }
.solution-card-image img { width: 100%; height: 100%; object-fit: cover; }
.solutions-section .splide__arrow, .projects-section .splide__arrow, .clients-section .splide__arrow { top: 40%; }

/* PROJETO HOME CAROUSEL */

.projects-section { padding: 0 0 4rem 0; background-color: var(--gray); }
.projects-section .container{ padding-top: 3rem; }
.project-card { display: block; text-decoration: none; border: 1px solid #e0e0e0; overflow: hidden; background-color: #fff; position: relative; }
.project-card-title { 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}
.project-card-title h3 { margin: 0; font-size: 18px; text-align: center; font-weight: 500; background-color: rgba(33, 47, 76, 0.7); color: #fff; padding: 0.5rem 1rem; border-radius: 4px; }
.project-card-image { padding: 0; display: flex; align-items: center; justify-content: center; height: 300px;overflow: hidden; }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; }

/* CLIENTE HOME CAROUSEL */
.clients-section { padding: 0 0 4rem 0; }
.clients-section .container { padding-top: 3rem; }
.client-card-image { padding: 15px; display: flex; align-items: center; justify-content: center; height: 180px;overflow: hidden; border: 2px solid #e0e0e0; }
.client-card-image img { max-width: 100%; }

/* === RODAPÉ (FOOTER) === */
.site-footer { color: #fff; }
.footer-title-bar { background-color: #e5e5e5; color: var(--dark-blue); padding: 15px 0; text-align: center; text-transform: uppercase; }
.footer-title-bar h2 { margin: 0; font-size: 24px; font-weight: 600; }
.footer-main { background-color: var(--gray); color: var(--text-color); padding: 3rem 0; }
.footer-row { display: flex; flex-wrap: wrap; gap: 2rem; }
.footer-col { flex: 1; min-width: 300px; }
.footer-logo { margin-bottom: 1rem; }
.contact-info { /* Diminuímos a largura da coluna de contato */
    flex: 0 0 30%;
}
.project-proposal { /* Aumentamos a largura da coluna de proposta */
    flex: 0 0 60%;
}
.contact-info .whatsapp-link, .contact-info .social-icons { margin-bottom: 1rem; }
.project-proposal h4 { font-size: 1.2rem; margin-top: 0; color: var(--dark-blue); }
.proposal-columns { display: flex; gap: 1.5rem; }
.proposal-col { flex: 1; }
.btn-footer { display: inline-block; background-color: var(--dark-blue); color: #fff; padding: 0.8rem 1.5rem; text-decoration: none; font-weight: bold; border-radius: 5px; margin-top: 1rem; }
.footer-divider { border: none; border-top: 1px solid #ddd; margin: 20px 0; }
.client-area h4 { width: 100%; text-align: center; font-size: 1.2rem; color: var(--dark-blue); margin: 0; padding: 0; }
.login-forms { width: 100%; display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.login-form { background-color: #fff; padding: 1.5rem; border: 1px solid #ddd; border-radius: 8px; text-align: center; width: 250px; }
.login-form label { display: block; margin-bottom: 1rem; font-weight: bold; }
.login-form input { width: 100%; box-sizing: border-box; padding: 0.7rem; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 0.5rem; }
.login-form button { width: 100%; background-color: var(--dark-blue); color: #fff; border: none; padding: 0.7rem; cursor: pointer; border-radius: 4px; }
.footer-bottom { background-color: #fff; color: #666; padding: 1rem 0; font-size: 0.8rem; }
.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) {
    .proposal-columns { flex-direction: column; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
}

/* ... (todo o CSS que já fizemos para cabeçalho, rodapé e home) ... */


/* ======================================================
   ### ESTILOS PARA PÁGINAS INTERNAS ###
   ====================================================== */
.pagina{ padding: 0;background-color: #fff; }
.pagina .pagina-banner { width: 100%; display: inline-block; z-index: -1; }
.pagina .meio{ line-height: 1.8; font-size: 16px; max-width: 1000px; margin: 0 auto; padding: 20px; background: #FFF; z-index: 2;margin-top: -50px; position: relative; }

.page-wrapper {
    padding: 30px 20px 40px;
    background-color: #fff;
}
.solucoes-grid,
.projetos-grid {
    display: grid;
    /* Cria uma grelha responsiva que se ajusta automaticamente */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem; /* Espaçamento entre os cartões */
}
.clientes-page .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.clientes-grid {
    display: grid;
    /* Grelha responsiva com 2 a 4 colunas, dependendo do espaço */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem; /* Espaçamento entre os logos */
}
.cliente-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    transition: box-shadow 0.3s, transform 0.3s;
}

.cliente-logo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cliente-logo-item img {
    max-width: 100%;
    /* Reutilizamos o mesmo efeito da página inicial */
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.cliente-logo-item:hover img {
    filter: grayscale(0);
}

/* ======================================================
   ### ESTILOS PARA PÁGINAS DE DETALHE E BUSCA ###
   ====================================================== */

/* --- PÁGINA DE DETALHE (Solução/Projeto) --- */
.detail-page .container {
    padding: 10px;
}
.detail-image {
    max-width: 40%;
    float: left;
    margin: 0 20px 20px 0;
}
.detail-text {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 100%;
    margin: 0 auto;
}

.search-divider {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #eee;
}

/* NOVO CÓDIGO PARA A GRELHA DE RESULTADOS */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}


/* ... (todo o CSS que já fizemos) ... */


/* ======================================================
   ### ESTILOS PARA A PÁGINA DE CONTATO ###
   ====================================================== */

.contact-page .container {
    padding: 20px;
    max-width: 1000px; /* Container um pouco menor para o formulário */
    text-align: center;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Cria 3 colunas */
    gap: 1.5rem; /* Espaçamento entre os campos */
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
}
.recaptcha-group {
    display: flex;
    justify-content: center;
}
.form-group-submit {
    text-align: center;
}
.contact-form button {
    background-color: var(--dark-blue);
    color: #fff;
    padding: 0.8rem 3rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
}
.form-message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
}
.form-message.success { color: green; background-color: #e9fde9; }
.form-message.error { color: red; background-color: #fde9e9; }


/* Responsividade para o formulário de contato */
@media (max-width: 768px) {
    .contact-form-grid {
        grid-template-columns: 1fr; /* As 3 colunas viram 1 só */
        gap: 0;
    }
}