/* Importação de Fontes (Exemplo: Google Fonts - Open Sans) */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

/* Variáveis de Cores */
:root {
    --primary-color: #007bff; /* Azul (Ex: para botões, destaques) */
    --secondary-color: #28a745; /* Verde (Ex: para CTAs secundários) */
    --dark-blue: #0A192F; /* Azul escuro, quase preto (para fundo, textos) */
    --light-gray: #f8f9fa; /* Cinza claro (para seções de fundo) */
    --gray: #6c757d; /* Cinza médio (para textos secundários) */
    --white: #ffffff;
    --text-color: #333;
    --heading-color: #000;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Rolagem suave para âncoras */
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

ul {
    list-style: none;
}

/* Títulos de Seção */
.section-title {
    font-size: 2.5em;
    color: var(--heading-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2em;
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--dark-blue);
    border-color: var(--dark-blue);
    color: var(--white);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo img {
    height: 50px; /* Ajuste conforme necessário */
    max-width: 200px;
}

.navbar ul {
    display: flex;
}

.navbar ul li {
    margin-left: 30px;
}

.navbar ul li a {
    color: var(--heading-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Esconde por padrão em desktop */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--heading-color);
}

/* HERO Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://via.placeholder.com/1920x800/0A192F/FFFFFF?text=Fundo+Tecnologico') no-repeat center center/cover;
    /* Substitua a URL da imagem de placeholder pela sua imagem de fundo real */
    color: var(--white);
    text-align: center;
    padding: 150px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh; /* Altura mínima para a seção Hero */
}

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Seções Gerais */
.section {
    padding: 80px 0;
}

.section:nth-child(even) { /* Para alternar cores de fundo das seções */
    background-color: var(--light-gray);
}

/* Quem Somos */
.quem-somos-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.detail-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.detail-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.6em;
}

/* Soluções e Diferenciais (Grid Padrão) */
.solucoes-grid,
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.solucao-card,
.diferencial-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solucao-card:hover,
.diferencial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.solucao-card .icon,
.diferencial-item .icon {
    font-size: 3.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.solucao-card h3,
.diferencial-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.solucao-card p,
.diferencial-item p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Depoimentos */
.depoimentos .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.depoimento-card {
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    text-align: center;
}

.depoimento-foto {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--primary-color);
}

.depoimento-texto {
    font-size: 1.3em;
    line-height: 1.8;
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 25px;
}

.depoimento-autor {
    font-weight: 600;
    color: var(--heading-color);
    font-size: 1.1em;
}


/* Contato */
.contato-content {
    display: flex;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha */
    gap: 40px;
    margin-top: 50px;
}

.contato-form,
.contato-info {
    flex: 1;
    min-width: 300px; /* Garante que não fiquem muito estreitos */
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contato-form h3,
.contato-info h3 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--heading-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-group textarea {
    resize: vertical; /* Permite redimensionamento vertical */
}

.contato-info p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-color);
}

.contato-info p .fas,
.contato-info p .fab {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2em;
}

.map-container {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden; /* Garante que o iframe não saia dos limites */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.map-container iframe {
    border-radius: 8px; /* Aplicar borda arredondada também ao iframe */
}

/* Rodapé */
.footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo img {
    height: 40px; /* Ajuste o tamanho da logo no rodapé */
    filter: brightness(0) invert(1); /* Deixa a logo branca para melhor contraste */
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav ul li {
    margin: 0 15px;
}

.footer-nav ul li a {
    color: var(--white);
    font-weight: 400;
}

.footer-nav ul li a:hover {
    color: var(--primary-color);
}

.footer-social a {
    color: var(--white);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.footer-bottom p {
    margin-bottom: 5px;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: underline;
}

/* ================== Media Queries para Responsividade ================== */

/* Para Tablets (768px a 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3em;
    }
    .hero-subtitle {
        font-size: 1.3em;
    }
    .solucoes-grid,
    .diferenciais-grid,
    .quem-somos-details {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .header .logo img {
        height: 45px;
    }
    .navbar ul li {
        margin-left: 20px;
    }
    .contato-form,
    .contato-info {
        padding: 30px;
    }
}

/* Para Celulares (até 767px) */
@media (max-width: 767px) {
    .header .navbar {
        display: none; /* Esconde a navbar em telas pequenas */
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 80px; /* Abaixo do header */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .header .navbar.active {
        display: flex; /* Mostra quando o menu estiver ativo */
    }

    .header .navbar ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .header .navbar ul li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block; /* Mostra o botão do menu hamburguer */
    }

    .hero {
        padding: 100px 0;
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 2em;
    }

    .section-subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .solucoes-grid,
    .diferenciais-grid,
    .quem-somos-details {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }

    .contato-content {
        flex-direction: column; /* Colunas empilhadas no contato */
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .footer-nav ul li {
        margin: 0;
    }
}