/* --- Reset e Configurações Globais --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

h1, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1a1a1a;
    text-transform: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Cabeçalho Fixo (Sticky Header) --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 1rem; /* Padding Reduzido (Mobile) */
    transition: background-color 0.4s ease-out, padding 0.4s ease-out;
    background-color: transparent;
}

.main-header.scrolled {
    background-color: rgba(56, 94, 98, 0.95); /* #385E62 com opacidade */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-principal {
    max-width: 90px; /* Logo Menor (Mobile) */
    transition: max-width 0.4s ease-out;
}

/* --- Menu Desktop --- */
.desktop-nav {
    display: none;
}

.desktop-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 1.8rem; /* Espaçamento ajustado */
    font-size: 0.95rem; /* Levemente menor */
    font-weight: 600;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #ccc;
}

/* --- Menu Hamburger (Mobile) --- */
.menu-hamburger {
    cursor: pointer;
    padding: 5px; /* Padding Menor */
    z-index: 1001;
}

.menu-hamburger span {
    display: block;
    width: 22px; /* Barras Menores */
    height: 2px;
    background-color: #fff;
    margin: 4px 0; /* Espaçamento Ajustado */
    transition: 0.4s;
}

/* --- Menu Lateral Mobile --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -70%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 5rem;
    transition: right 0.4s ease-in-out; /* Transição mais suave */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    color: #385E62;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.9rem 1.5rem;
    border-bottom: 1px solid #eee;
    width: 100%;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.close-menu-btn {
    position: absolute;
    top: 10px; /* Mais perto do topo */
    right: 15px; /* Mais perto da lateral */
    background: none;
    border: none;
    font-size: 2.2rem; /* Tamanho ajustado */
    color: #aaa;
    cursor: pointer;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0s 0.4s;
}
.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s, visibility 0s;
}


/* --- Seção Hero (Início) --- */
.hero-section {
    height: 100vh;
    background-image: url('imagens/coco_01.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #385E62;
    opacity: 0.85;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 1px;
    line-height: 1.2;
}

.header-content h2 {
    font-size: 1.2rem;
    margin-top: 1rem;
    font-weight: 400;
    text-transform: none;
}

.texto-apoio {
    max-width: 90%;
    margin: 1.5rem auto 0 auto;
    font-size: 1rem;
}

.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.5rem;
    z-index: 3;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -15px); }
    60% { transform: translate(-50%, -8px); }
}

/* --- Seções Gerais --- */
#sobre { background-color: #fdfdfd; }
#sobre .container { padding-bottom: 6rem; }
.sobre-texto p {
    font-size: 1.1rem;
    margin-bottom: 1rem; /* Espaço entre parágrafos */
}
.sobre-texto p:last-child {
    margin-bottom: 0; /* Remove margem do último parágrafo */
}
.sobre-texto .destaque { color: #385E62; font-weight: bold; }
.sobre-imagem img { border-radius: 5px; margin-top: 1.5rem; }

#servicos { background-color: #385E62; }
#servicos h3 { color: #fff; text-align: left; }
.servicos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Espaçamento entre os cards */
}
.servico-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 5px;
}
.servico-card h4 { font-size: 1.6rem; margin-bottom: 1rem; color: #385E62; }

#projetos { background-color: #f9f9f9; }
#projetos h3 { text-align: left; }
.projetos-grid {
     display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.projeto-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.projeto-card:hover { transform: translateY(-10px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.projeto-card img { width: 100%; height: 250px; object-fit: cover; }
.projeto-info { padding: 1.5rem; }
.projeto-info h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }

#equipe { background-color: #fff; }
.equipe-info p, .equipe-info li { margin-bottom: 1rem; }
.equipe-info ul { list-style-position: inside; padding-left: 1rem; }

/* --- Rodapé (Footer) --- */
footer {
    background-color: #2b2b2b;
    color: #fff;
    padding: 4rem 2rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: center; /* Centralizado por padrão */
    text-align: center; /* Centralizado por padrão */
}

.footer-logo img {
    max-width: 150px;
    margin-bottom: 1rem; /* Espaço abaixo do logo no mobile */
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%; /* Ocupa largura para alinhar */
}

.contato-info a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center; /* Centraliza no mobile por padrão */
}

.contato-info a:hover {
    color: #ccc;
}

.contato-info i {
    font-size: 1.5rem;
    margin-right: 12px;
    color: #385E62;
    width: 30px;
    text-align: center;
}

.footer-address {
    margin-top: 1rem;
    width: 100%; /* Ocupa largura para alinhar */
}
.footer-address p {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.4;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
}

.copyright p {
    font-size: 0.9rem;
    color: #aaa;
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 30px;
    right: 30px;
    background-color: #385E62;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s;
}
.whatsapp-float:hover {
    background-color: #2a4649;
}


/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    position: relative;
    /* Adicionado para funcionalidade de swipe */
    touch-action: manipulation; /* Otimiza para toque */
}
#modal-image {
    width: 100%;
    height: auto;
    user-select: none; /* Evita seleção de imagem ao deslizar */
    -webkit-user-drag: none; /* Evita arrastar imagem */
}
.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
}
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
.prev {
    left: 0;
}
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* --- Media Queries --- */

/* Ajustes para Telas Pequenas (Mobile) - Rodapé */
@media (max-width: 991px) {
    .footer-content {
        align-items: flex-start; /* Alinha tudo à esquerda */
        text-align: left; /* Alinha texto à esquerda */
    }
    .footer-logo img {
        margin-bottom: 2rem; /* Mais espaço abaixo do logo */
        margin-left: 0; /* Garante alinhamento esquerdo */
        margin-right: auto; /* Garante alinhamento esquerdo */
    }
    .contato-info a {
        justify-content: flex-start; /* Alinha itens do contato à esquerda */
    }
    .footer-address {
        text-align: left; /* Alinha endereço à esquerda */
    }
}


/* Ajustes para Telas Maiores (Desktop) */
@media (min-width: 992px) {
    .main-header { padding: 1.1rem 2rem; } /* Padding Desktop Reduzido */
    .logo-principal { max-width: 120px; } /* Logo Desktop */

    .menu-hamburger { display: none; }
    .desktop-nav { display: block; }
    .mobile-nav { display: none; }

    .header-content h1 { font-size: 4.5rem; }
    .header-content h2 { font-size: 1.5rem; }
    .texto-apoio { max-width: 600px; font-size: 1.1rem; }

    .sobre-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4rem;
    }
    .sobre-imagem img { margin-top: 0; }
    .sobre-texto { flex: 1; }
    .sobre-imagem { flex: 1; }

    .servicos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .projetos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .equipe-content {
        display: flex;
        flex-direction: row;
        gap: 3rem;
    }
    .equipe-titulo { flex: 1; }
    .equipe-info { flex: 1; }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
}