/* --- GERAL E VARIÁVEIS (VERSÃO DEFINITIVA) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #2a9d8f; /* Verde do logo */
    --secondary-color: #264653; /* Azul escuro */
    --text-color: #333;
    --light-bg-color: #f8f9fa;
    --white-color: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--secondary-color);
    line-height: 1.3;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

.separator {
    height: 2px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 40px auto;
}

/* --- HEADER E NAVEGAÇÃO --- */
header {
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo img {
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
}

.nav-desktop a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-desktop a:hover {
    color: var(--primary-color);
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    background-color: var(--white-color);
    width: 100%;
    text-align: center;
    padding-bottom: 15px;
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    padding: 15px 0;
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    border-top: 1px solid #eee;
}

/* --- SEÇÕES --- */
main {
    padding-top: 80px; /* Altura do header */
}

.hero {
    background: linear-gradient(rgba(38, 70, 83, 0.8), rgba(38, 70, 83, 0.8)), url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--white-color);
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    color: var(--white-color);
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #238a7e;
    transform: translateY(-2px);
}

.content-section {
    padding: 80px 0;
}

.content-section ul {
    list-style: none;
    padding-left: 0;
}

.content-section ul li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.content-section ul li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* --- PORTFÓLIO --- */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--light-bg-color);
}

.portfolio-section > .container > p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.portfolio-caption {
    padding: 20px;
    text-align: center;
}

.portfolio-caption h4 {
    margin: 0;
    font-size: 1.2rem;
}

.portfolio-caption .view-case-study {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: block;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .view-case-study {
    opacity: 1;
}

/* --- SEÇÃO DE ORÇAMENTO (FORMULÁRIO) --- */
.quote-section {
    padding: 80px 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-container button[type="submit"] {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

/* --- CONTATO --- */
.contact-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.contact-section h2 {
    color: var(--white-color);
}

.contact-info {
    margin-top: 30px;
    font-size: 1.2rem;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    background-color: #1d3540;
    color: #ccc;
    padding: 30px 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* --- PÁGINA DE ESTUDO DE CASO --- */
.case-study-page .content-section {
    padding-top: 40px;
}

.case-study-main-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px auto;
    display: block;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.case-study-content {
    max-width: 800px;
    margin: 0 auto;
}

.case-study-content h3 {
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.case-study-content ul {
    list-style: none;
    padding-left: 0;
}

.case-study-content ul li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.case-study-content ul li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.cta-section {
    text-align: center;
    background-color: var(--light-bg-color);
    padding: 60px 20px;
    margin-top: 60px;
    border-radius: 8px;
}

/* --- PÁGINA DE PRODUTOS --- */
.products-section {
    padding: 80px 0;
}

.products-section .section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 0 auto;
    font-size: 1.1rem;
    color: #666;
}

.product-item {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.product-image {
    flex: 1;
    max-width: 40%;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
}

.product-details {
    flex: 1.5;
}

.product-details h3 {
    margin-top: 0;
    font-size: 1.8rem;
}

.product-details h4 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.product-details ul {
    list-style: none;
    padding-left: 0;
}

.product-details ul li {
    margin-bottom: 8px;
}

.product-cta {
    margin-top: 30px;
}


/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    h1, .hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }

    .nav-desktop {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        height: auto;
        padding: 80px 20px;
    }
    
    .form-container {
        padding: 25px;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }

    footer p {
        margin-bottom: 15px;
    }

    .social-links a {
        margin: 0 10px;
    }

    /* Responsividade da página de produtos */
    .product-item,
    .product-item:nth-child(odd) {
        flex-direction: column;
        padding: 25px;
    }

    .product-image {
        max-width: 100%;
    }
}
