/* Variáveis de Cores */
:root {
    --primary-color: #003366; /* Azul Marinho */
    --secondary-color: #008080; /* Verde Esmeralda */
    --accent-color: #B8860B; /* Dourado Suave (para detalhes) */
    --background-light: #F0F0F0; /* Cinza Claro */
    --text-dark: #333333; /* Cinza Escuro para texto */
    --text-light: #FFFFFF; /* Branco para texto em fundos escuros */
    --neutral-bg-soft: #F5F5DC; /* Bege (para fundos mais suaves) */
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}
.detail-text ul {
    /* list-style: none; */ /* Comente ou remova esta linha */
    padding-left: 0;
    margin-bottom: 20px;
}


/* Header */
.header {
    background-color: var(--text-light);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--secondary-color);
}

.contact-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-info a {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.contact-info a i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.menu-toggle {
    display: none; /* Escondido por padrão em telas maiores */
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background-color: var(--background-light);
    padding: 80px 0;
    text-align: center;
}

.hero-section .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-content .btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-right: 15px;
    margin-bottom: 10px; /* Para responsividade */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #002244; /* Azul Marinho mais escuro */
    border-color: #002244;
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--text-light); /* Fundo branco para destacar */
    padding: 80px 0;
    text-align: center;
}

.portfolio-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grid responsivo */
    gap: 30px;
}

.portfolio-item {
    background-color: var(--background-light); /* Fundo cinza claro para os cartões */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.portfolio-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.portfolio-item p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.portfolio-item .result-highlight {
    display: block;
    font-weight: 600;
    color: var(--secondary-color); /* Verde Esmeralda para o destaque do resultado */
    margin-bottom: 20px;
    font-size: 17px;
}

.portfolio-item .btn-small {
    padding: 10px 20px;
    font-size: 14px;
    background-color: var(--secondary-color); /* Botão verde esmeralda */
    color: var(--text-light);
    border: 2px solid var(--secondary-color);
}

.portfolio-item .btn-small:hover {
    background-color: #006666; /* Verde Esmeralda mais escuro */
    border-color: #006666;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer p {
    margin: 0;
}

.footer .social-links a {
    color: var(--text-light);
    font-size: 20px;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer .social-links a:hover {
    color: var(--secondary-color);
}

/* Responsividade */
@media (max-width: 992px) {
    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-image {
        order: -1; /* Coloca a imagem acima do texto em mobile */
        margin-bottom: 30px;
    }

    .header .nav {
        order: 1; /* Para o menu ficar abaixo do logo e contato */
        width: 100%;
        margin-top: 15px;
    }

    .header .nav ul {
        flex-direction: column;
        display: none; /* Escondido por padrão em mobile */
        width: 100%;
        text-align: center;
        background-color: var(--text-light);
        border-top: 1px solid #e0e0e0;
        padding-top: 10px;
    }

    .header .nav ul.active {
        display: flex; /* Mostra o menu quando ativo */
    }

    .header .nav ul li {
        margin: 10px 0;
    }

    .header .contact-info {
        display: none; /* Esconde info de contato no header em mobile para simplificar */
    }

    .menu-toggle {
        display: block; /* Mostra o botão de menu em mobile */
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .footer .social-links {
        margin-top: 10px;
    }

    .portfolio-section h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-content .btn {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas muito pequenas */
    }
}

/* Project Detail Page Styles */
.project-hero {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 80px 0 60px;
    text-align: center;
}

.project-hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.1;
}

.project-hero-content .subtitle {
    font-size: 22px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.project-meta {
    font-size: 16px;
    opacity: 0.8;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.project-meta i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.project-details-section {
    padding: 80px 0;
    background-color: var(--text-light);
}

.detail-block {
    margin-bottom: 60px;
}

.detail-block h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.detail-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.detail-content-wrapper.reverse-order {
    flex-direction: row-reverse;
}

.detail-text {
    flex: 1;
}

.detail-text p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.detail-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.detail-text ul li {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.detail-text ul li i {
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 5px;
}

.detail-image {
    flex: 1;
    text-align: center;
}

.detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.results-block {
    background-color: var(--neutral-bg-soft); /* Bege suave para destacar resultados */
    padding: 50px;
    border-radius: 10px;
}

.results-block h2 {
    color: var(--primary-color);
}

.quote {
    font-style: italic;
    font-size: 18px;
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-top: 30px;
}

.cta-project-end {
    text-align: center;
    background-color: var(--background-light);
    padding: 60px 40px;
    border-radius: 10px;
    margin-top: 80px;
}

.cta-project-end h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cta-project-end p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Responsividade para a página de detalhes do projeto */
@media (max-width: 992px) {
    .project-hero-content h1 {
        font-size: 42px;
    }
    .project-hero-content .subtitle {
        font-size: 18px;
    }
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
    .detail-content-wrapper,
    .detail-content-wrapper.reverse-order {
        flex-direction: column;
        text-align: center;
    }
    .detail-block h2 {
        font-size: 30px;
    }
    .detail-text, .detail-image {
        max-width: 100%;
    }
    .detail-text ul {
        text-align: left;
    }
    .results-block {
        padding: 30px;
    }
    .cta-project-end h3 {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .project-hero-content h1 {
        font-size: 32px;
    }
    .project-hero-content .subtitle {
        font-size: 16px;
    }
    .detail-block h2 {
        font-size: 26px;
    }
    .detail-text p, .detail-text ul li {
        font-size: 16px;
    }
    .quote {
        font-size: 16px;
    }
    .cta-project-end h3 {
        font-size: 22px;
    }
}