/* Estilos gerais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('imagens/fundo.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: -1;
}

/* Header */
header {
    background-color: #062042;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}
header img {
    max-height: 80%;
    height: auto;
    max-width: 80%;
    width: auto;
}

/* Nav */
nav {
    display: flex;
    align-items: center;
}
nav a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    background: linear-gradient(135deg, #44942c, #44942c);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.3s;
}
nav a:hover {
    background: linear-gradient(135deg, #44942c, #44942c);
    transform: translateY(-3px);
}

/* Main */
main {
    flex: 1;
    padding: 2rem;
    background-color: transparent;
}
section {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    border-radius: 5px;
}

/* Footer */
footer {
    background-color: #062042;
    color: white;
    text-align: center;
    padding: 1rem;
}

/* Estilos para cabeçalhos com fundo verde */
.header-green {
    background-color: #44942c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

/* Estilos para Missão, Visão e Negócio */
#missao-visao-negocio {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.card {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 1rem;
}
.card i {
    font-size: 2rem;
    color: #44942c;
    margin-bottom: 10px;
}
.card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #062042;
}
.card p {
    color: #333;
}

/* Estilos para serviços */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.service-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
}
.service-card i {
    font-size: 2rem;
    color: #44942c;
    margin-bottom: 10px;
}
.service-card h3 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #062042;
}
.service-card p {
    color: #333;
}

/* Estilos para formulários de contato e trabalhe conosco */
.form-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}
.form-container .form-group {
    margin-bottom: 1rem;
}
.form-container label {
    font-weight: bold;
    color: #062042;
    display: flex;
    align-items: center;
}
.form-container label i {
    margin-right: 10px;
}
.form-container input, .form-container textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
}
.form-container button {
    background-color: #44942c;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.form-container button:hover {
    background-color: #44942c;
}

/* Centralizar textos */
.centralized-text {
    text-align: center;
    font-size: 1.1rem;
    color: #062042;
    margin-bottom: 2rem;
}

/* Estilos para mensagens de feedback */
.message {
    display: none;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Estilos para Princípios */
#principios {
    margin-top: 2rem;
}
.principles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.principle-card {
    flex: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 300px;
}
.principle-card i {
    font-size: 2rem;
    color: #44942c;
    margin-bottom: 10px;
}
.principle-card h4 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #062042;
}
.principle-card p {
    color: #333;
    font-size: 1rem;
}

/* Estilos para o rodapé */
footer {
    background-color: #062042;
    color: white;
    text-align: center;
    padding: 0.5rem 0;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0.5rem 0;
    font-size: 0.8rem;
}
.footer-section {
    flex: 1;
    padding: 0 0.5rem;
    text-align: center;
    min-width: 200px;
}
.footer-section h4 {
    margin-bottom: 5px;
    color: #44942c;
}
.footer-section p, .footer-section a {
    color: white;
    text-decoration: none;
}
.footer-section a:hover {
    text-decoration: underline;
}
.footer-section i {
    font-size: 1.2rem;
    margin-right: 5px;
}
.footer-section a {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilos responsivos */
@media (max-width: 1200px) {
    main, section {
        padding: 1rem;
    }
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 10px;
        text-align: center;
    }
    header img {
        max-width: 60%;
    }
    nav {
        flex-direction: column;
        margin-top: 10px;
    }
    nav a {
        margin: 5px 0;
    }
    main {
        padding: 1rem;
    }
    section {
        padding: 1rem;
    }
    .services-container {
        grid-template-columns: 1fr;
    }
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .gallery-item {
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    .gallery-item img {
        border-bottom: 1px solid #44942c;
    }
    .gallery-item p {
        font-size: 0.9rem;
    }
}

/* Estilos para galeria de fotos */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px;
}
.gallery-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 2px solid #44942c;
}
.gallery-item p {
    margin: 15px 10px;
    font-size: 1rem;
    color: #333;
    padding: 0 10px;
}

/* Lightbox / Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    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;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}
#caption {
    margin: 10px auto;
    text-align: center;
    color: #f1f1f1;
    font-size: 1.1rem;
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}
.close:hover,
.close:focus {
    color: #bbb;
}

/* Navegação por setas */
.modal::after, .modal::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    z-index: 10000;
}
.modal::before {
    content: "\f104"; /* ícone da seta para esquerda */
    left: 20px;
}
.modal::after {
    content: "\f105"; /* ícone da seta para direita */
    right: 20px;
}

.modal:hover::before,
.modal:hover::after {
    opacity: 1;
}

/* Zoom */
.modal-content.zoomed {
    transform: scale(1.8);
    transition: transform 0.3s;
    cursor: zoom-out;
}
.modal-content {
    transition: transform 0.3s;
    cursor: zoom-in;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    font-size: 2rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    z-index: 10001;
    transform: translateY(-50%);
    transition: background-color 0.3s;
}
.nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.nav-arrow.prev {
    left: 20px;
}
.nav-arrow.next {
    right: 20px;
}
