/* ==========================================================================
   STYLE.CSS ATUALIZADO E ORGANIZADO - SOFTCUSTOM
   ========================================================================== */

/* --------------------------------------------------------------------------
   [1] CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #0073e6;
    --secondary-color: #00a859;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --white-color: #ffffff;
    --font-family: 'Roboto', sans-serif;
    --font-head: #d1d1d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body, html {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--light-color);
    color: var(--dark-color);
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   [2] LAYOUT PRINCIPAL (CABEÇALHO, RODAPÉ)
   -------------------------------------------------------------------------- */
.main-header {
    background: #222;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo-img {
    max-height: 90px;
    width: auto;
    display: block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--font-head);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.main-footer {
    background: #222;
    color: #ccc;
    padding: 3rem 0 1rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a, .footer-bottom a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover, .footer-bottom a:hover {
    color: var(--primary-color);
}

.social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 1rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   [3] COMPONENTES REUTILIZÁVEIS (BOTÕES, MODAL)
   -------------------------------------------------------------------------- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #005bb5;
}

.button-go {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.button-go:hover {
    background-color: #005bb5;
}

.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    font-weight: 500;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-family);
}

.contact-form button {
    width: 100%;
    margin-top: 10px;
    border: none;
}

/* --------------------------------------------------------------------------
   [4] SEÇÕES DA PÁGINA INICIAL
   -------------------------------------------------------------------------- */
.banner {
    position: relative;
    width: 100%;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    overflow: hidden;
}

.banner-video, .banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner-content div {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.clients-section {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.clients-section p {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 2.5rem;
    color: #888;
}

.solutions-section {
    padding: 4rem 0;
    text-align: center;
}

.solutions-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background: #222;
    border-radius: 8px;
    padding: 2rem;
    max-width: 350px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--font-head);
}

.card div {
    color: var(--font-head);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-banner {
    background: var(--light-color);
    padding: 4rem 0;
    text-align: center;
}

.cta-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-banner div {
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   [5] PÁGINAS INTERNAS (POSTS, QUEM SOMOS, ETC.)
   -------------------------------------------------------------------------- */
article {
    margin: 4rem auto;
    max-width: 900px;
    background-color: #fff;
    padding: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

article section {
    margin-bottom: 2.5rem;
}

.post-completo h1 {
    overflow-wrap: break-word;
    word-break: break-all;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.post-conteudo img,
.post-conteudo video {
    max-width: 100%;
    height: auto;
}

.post-conteudo iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.voltar {
    background-color: var(--primary-color);
    position: absolute;
    top: 120px;
    left: 5%;
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    z-index: 50;
}

/* --------------------------------------------------------------------------
   [6] ESTILOS RESPONSIVOS E MENU MOBILE
   -------------------------------------------------------------------------- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--font-head);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .logo, .cta-button {
        margin: 0 20px;
    }
    
    /* Ajustes para o banner em mobile */
    .banner {
        height: 60vh;
    }

    .banner-content h1 {
        font-size: 1.8rem;
        padding: 0 15px;
    }

    .banner-content div {
        font-size: 1rem;
        padding: 0 15px;
    }

    .cards-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 90%;
    }

    .client-logos {
        flex-wrap: wrap;
        gap: 20px;
        font-size: 2rem;
    }

    .footer-grid, .footer-bottom {
        text-align: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .voltar {
        top: 90px;
    }
}

/* Ajustes adicionais para telas muito pequenas */
@media (max-width: 480px) {
    .banner {
        height: 50vh;
    }
    
    .banner-content h1 {
        font-size: 1.5rem;
    }
}

/* Garante que textos longos sem espaços quebrem a linha no conteúdo do post */
.post-conteudo {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* =================
   Seção Quem Somos
   ================= */
.page-section {
    padding: 80px 20px;
    text-align: center;
}

.page-section .section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}

.page-section .section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #555;
}

.quem-somos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.quem-somos-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.quem-somos-item h3 {
    font-size: 1.6rem;
    color: #0073e6;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quem-somos-item h3 i {
    font-size: 1.4rem;
}

.quem-somos-item div p {
    font-size: 1rem;
    line-height: 1.7;
    color: #666;
}

/* Estilos para a Seção de Clientes */
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.client-logos a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.client-logos a:hover {
    transform: scale(1.1);
}

.client-logos img {
    max-height: 100px;
    width: auto;
    max-width: 150px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.client-logos a:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.back-to-top {
    text-decoration: none;
    color: inherit;
}