/* --- Reset Básico e Variáveis --- */
:root {
    --primary-color: #00A859; /* Verde TecSul */
    --secondary-color: #007BFF; /* Azul Inovação */
    --dark-color: #2c3e50; /* Cinza Escuro (Texto) */
    --light-color: #ecf0f1; /* Cinza Claro (Fundos) */
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 80px 0;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.gray-bg {
    background-color: var(--light-color);
}

/* --- Cabeçalho e Navegação --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--white-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--secondary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    color: var(--white-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Seção Hero --- */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://images.pexels.com/photos/18056157/pexels-photo-18056157.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white-color);
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button-main {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button-main:hover {
    background-color: #008245;
    transform: translateY(-3px);
}

/* --- Seção Sobre Nós --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Seção de Serviços --- */
.service-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.12);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card .card-content {
    padding: 30px;
    text-align: center;
}

.service-card .fas {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

/* --- Seção de Projetos --- */
.project-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: var(--white-color);
    transition: transform 0.3s ease;
}
.project-card:hover {
    transform: translateY(-5px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
}

.project-info p {
    margin-top: 10px;
}

/* --- Seção Calculadoras --- */
.calculator-container {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.calculator {
    background: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 45%;
}

.calculator h4 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.calculator form {
    display: flex;
    flex-direction: column;
}

.calculator label {
    margin-bottom: 8px;
    font-weight: 500;
}

.calculator input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* --- Seção Blog --- */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.blog-post-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h4 {
    font-size: 1.2rem;
}

.blog-content p {
    margin: 10px 0;
    flex-grow: 1;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.blog-content a:hover {
    text-decoration: underline;
}

/* --- Seção Contato --- */
.contact-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px;
}
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.contact-form input, .contact-form textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
}

/* --- Rodapé --- */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 30px 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.footer-logo img {
    height: 30px;
}
.footer-social a {
    color: var(--white-color);
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s ease;
}
.footer-social a:hover {
    color: var(--primary-color);
}

/* --- Responsividade --- */
@media (max-width: 992px) {
    .content-section h2 { font-size: 2.2rem; }
    .service-cards, .project-cards, .blog-posts { grid-template-columns: 1fr 1fr; }
    .about-content { flex-direction: column; }
    .calculator-container { flex-direction: column; align-items: center; }
    .calculator { width: 80%; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 65px;
        left: 0;
        background-color: var(--white-color);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .menu-toggle { display: block; }
    
    .hero-content h2 { font-size: 2.5rem; }
    .service-cards, .project-cards, .blog-posts { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 20px; }
}