/* ==========================================================================
   1. Variáveis Globais e Reset
   ========================================================================== */

/* :root é onde definimos nossas variáveis de cores para o site inteiro */
:root {
    --cor-principal: #0d5d50;
    --cor-secundaria: #6fae75;
    --cor-texto-claro: #fff;
    --cor-texto-escuro: #333;
    --cor-fundo-claro: #f8f8f8;
    --cor-fundo-escuro: #263238;
    --cor-borda: #e0e0e0;
}

/* Reset básico para remover margens e preenchimentos padrão */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--cor-texto-escuro);
    background-color: white;
    /* Fundo geral do site */
    margin: 0;
    padding: 0;
}

/* Utilitário para centralizar conteúdo */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ==========================================================================
   2. Layout Principal (Header e Footer)
   ========================================================================== */

/* --- Cabeçalho --- */
header {
    background-color: var(--cor-principal);
    color: var(--cor-texto-claro);
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo img {
    max-height: 60px;
    background-color: var(--cor-texto-claro);
    border-radius: 50%;
}

.logo p {
    font-size: 20px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--cor-texto-claro);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--cor-secundaria);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icons {

    display: flex;
    gap: 10px;
}

.social-icons a {
    color: var(--cor-texto-claro);
    font-size: 18px;
    transition: color 0.3s ease;

}

.social-icons a:hover {
    color: var(--cor-secundaria);
}

/* --- Rodapé --- */
footer {
    background-color: var(--cor-fundo-escuro);
    color: #e0e0e0;
    padding: 50px 0 20px 0;
    font-size: 0.9em;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--cor-secundaria);
    margin-bottom: 20px;
    font-size: 1.3em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--cor-secundaria);
}

.contact-info p {
    margin-bottom: 10px;
}

.social-icons-footer a {
    color: #e0e0e0;
    font-size: 1.4em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.social-icons-footer a:hover {
    color: var(--cor-secundaria);
}

.crea-info {
    text-align: right;
}

.crea-info .quote {
    font-style: italic;
    margin-top: 15px;
    line-height: 1.5;
}

.crea-info .quote-reference {
    font-size: 0.8em;
    margin-top: 5px;
    opacity: 0.8;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #455a64;
    color: #b0bec5;
    font-size: 0.85em;

}

.copyright a {
    text-decoration: none;
    color: #b0bec5;
    cursor: default;
}

/* ==========================================================================
   3. Estilos de Seções Genéricas
   ========================================================================== */
section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
}

section h2 {
    text-align: center;
    color: var(--cor-principal);
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--cor-secundaria);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* ==========================================================================
   4. Componentes Reutilizáveis (Botões, Formulários)
   ========================================================================== */

/* --- Botões --- */
.btn-cliente {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-claro) !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-cliente:hover {
    background-color: #8ac08d;
}

.btn-call-to-action,
.btn-action-serv-tre {
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-claro);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn-call-to-action:hover,
.btn-action-serv-tre:hover {
    background-color: #8ac08d;
    transform: translateY(-3px);
}

.btn-submit {
    background-color: var(--cor-principal);
    color: var(--cor-texto-claro);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
    width: 100%;
}

.btn-submit:hover {
    background-color: #1a7a6b;
    transform: translateY(-2px);
}

/* --- Formulários --- */
/* Estilos unificados para todos os formulários */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--cor-secundaria);
    outline: none;
    box-shadow: 0 0 0 3px rgba(111, 174, 117, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85em;
    color: #777;
}

.form-actions {
    margin-top: 30px;
    border-top: 1px solid var(--cor-borda);
    padding-top: 25px;
}


/* ==========================================================================
   5. Estilos de Seções Específicas
   ========================================================================== */

/* --- Banner Principal --- */
.hero-banner {
    background-color: #ffffff;
    text-align: center;
    padding: 50px 0;
}

.hero-banner img.banner {
    width: 400px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-banner h2 {
    color: var(--cor-principal);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-banner p {
    color: #555;
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto;
}

/* --- Resumo dos Serviços --- */
.services-summary .service-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.service-item {
    background-color: var(--cor-fundo-claro);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: var(--cor-principal);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.service-item p {
    color: #666;
    font-size: 1.1em;
}

.service-icon {
    color: var(--cor-secundaria);
    margin-bottom: 20px;
    display: block;
    text-align: center;
}

/* --- Quem Somos, Detalhes de Serviços/Treinamentos --- */
.who-we-are p,
.detailed-services p,
.detailed-trainings p {
    font-size: 1.1em;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 20px auto;
    text-align: justify;
}

.detailed-services .service-detail-item,
.detailed-trainings .training-detail-item {
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f9f9f9;
    border-left: 5px solid var(--cor-secundaria);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.detailed-services h3,
.detailed-trainings h3 {
    color: var(--cor-principal);
    margin-bottom: 10px;
    font-size: 1.6em;
}

.btn-div-ser-tre {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Banners de Chamada (Cursos, Colaboradores) --- */
.courses-banner,
.collaborator-cta-section {
    color: var(--cor-texto-claro);
    text-align: center;
    padding: 80px 0;
}

.courses-banner h2,
.collaborator-cta-section h2 {
    color: var(--cor-texto-claro);
    font-size: 2.8em;
    margin-bottom: 20px;
}

.courses-banner h2::after,
.collaborator-cta-section h2::after {
    display: none;
}

.courses-banner p,
.collaborator-cta-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.courses-banner {
    background: linear-gradient(rgba(13, 93, 80, 0.85), rgba(13, 93, 80, 0.85)), url('../images/banner-cursos-bg.jpg') no-repeat center center/cover;
}

.collaborator-cta-section {
    background: linear-gradient(rgba(13, 93, 80, 0.9), rgba(13, 93, 80, 0.9)), url('../images/banner-colaborador-bg.jpg') no-repeat center center/cover;
}

/* --- Carrossel de Portfólio (Swiper) --- */
.swiper {
    width: 100%;
    height: 100%;
    padding-bottom: 50px;
    overflow: hidden;
    margin-bottom: 100px;
}

.portfolio-carousel .carousel-item {
    text-align: center;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-carousel .carousel-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.swiper-pagination {
    position: absolute;
    bottom: 10px;
}

.swiper-pagination-bullet {
    width: 25px;
    height: 4px;
    border-radius: 2px;
    background-color: #ccc;
    opacity: 1;
    transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: var(--cor-secundaria);
}

.swiper-slide {
    margin-bottom: 40px;
}

/* --- Seção de Clientes --- */
.clients-section .client-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.clients-section .client-logos img {
    max-height: 80px;
    max-width: 180px;
    width: auto;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.clients-section .client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- Formulário de Contato --- */
.contact-form-section {
    background-color: var(--cor-fundo-claro);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 0px;
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* ==========================================================================
   6. Módulos Especiais (Banner de Cookies, Formulário de Cadastro)
   ========================================================================== */

/* --- Banner de Cookies --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--cor-fundo-escuro);
    color: #e0e0e0;
    padding: 20px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

#cookie-banner.visible {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.9em;
}

.cookie-banner-content a {
    color: var(--cor-secundaria);
    text-decoration: underline;
}

.btn-cookie {
    background-color: var(--cor-secundaria);
    color: var(--cor-fundo-escuro);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.btn-cookie:hover {
    background-color: #8ac08d;
}

/* --- Formulário Multi-Etapas --- */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background-color: var(--cor-borda);
    z-index: 1;
}

.progress-bar .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 80px;
}

.progress-bar .step .step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--cor-borda);
    color: var(--cor-texto-claro);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    transition: background-color 0.4s ease;
    margin-bottom: 15px;
}

.progress-bar .step p {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-top: 5px;
}

.progress-bar .step.active .step-icon {
    background-color: var(--cor-principal);
}

.progress-bar .step.active p {
    color: var(--cor-principal);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    border-top: 1px solid var(--cor-borda);
    padding-top: 20px;
}

/* --- Acordeão de Termos Legais --- */
#term-triggers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.term-trigger {
    padding: 15px;
    background-color: var(--cor-fundo-claro);
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.term-trigger:hover,
.term-trigger.active {
    background-color: #e9f3e9;
    border-color: var(--cor-secundaria);
}

.term-trigger label {
    margin: 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.term-trigger input[type="checkbox"] {
    margin-right: 15px;
    transform: scale(1.2);
}

#term-contents {
    margin-top: 20px;
}

.term-content-box {
    display: none;
}

.term-box {
    height: 300px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
}

.titulo-cadastro-colab {

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d5d50;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 10px;
    font-size: 20px;

}




/* ==========================================================================
   6. Designer da pagina de login 
   ========================================================================== */

#principal-section-login {
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.login-logo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.login-logo img {
    width: 140px;
}

.login-container h1 {
    color: #0d5d50;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.login-container form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.login-container form button {
    width: 100%;
    padding: 12px;
    background-color: #0d5d50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.login-container form button:hover {
    background-color: #1a7a6b;
}

.login-links {
    margin-top: 20px;
    font-size: 0.9em;
}

.login-links a {
    color: #0d5d50;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.message {
    color: #d9534f;
    margin-bottom: 15px;
}

/* Para erros */
.message.success {
    color: #27ae60;
}

.btn-voltar-login {

    display: flex;

}

.btn-voltar-login a {
    text-decoration: none;
    color: #0d5d50;
}

#cnpj-div {
    margin-top: 10px;
    font-size: 12px;
}



.mobile-header {
    display: none;
}


/* ==========================================================================
   7. Responsividade
   ========================================================================== */

@media (max-width: 768px) {

    .pc-header {
        display: none;
    }

    .toggle-btn {
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: white;
        margin-top: 5px;
        -webkit-tap-highlight-color: transparent;

    }


    .hero-banner img {
        display: flex;
    }

    .hero-banner h2 {
        font-size: 40px;
    }

    .logo p {
        font-size: 18px;
        margin-top: 5px;
        font-weight: 600;

    }

    .hero-banner {
        margin-bottom: 0px;
        padding: 4px 1px;
    }

    .header-opc {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-actions {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 10px;

    }

    .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;

    }

    .mobile-header-opc1 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        padding: 5px;
    }

    .main-nav ul {
        flex-direction: row;
        margin-top: 10px;
        gap: 20px;
        align-items: center;

    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .social-icons {
        display: flex;
        flex-direction: row;
        margin-top: 0;
        gap: 20px;
    }

    .btn-cliente {
        margin-top: 0px;
    }

    .services-summary .service-items {
        flex-direction: column;
        align-items: center;
    }

    .service-item {
        width: 90%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .crea-info {
        text-align: center;
    }

    .contact-form {
        width: 90%;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .collaborator-cta-section,
    .courses-banner {
        display: flex;
        height: 450px;
        padding: 10px 0px;
        justify-content: space-between;
        border-radius: 0px;

        align-items: center;

    }

    .collaborator-cta-section h2 {
        font-size: 30px;
    }

    .collaborator-cta-section,
    .courses-banner h2 {
        font-size: 30px;
        width: 100%;
    }

    .collaborator-cta-section p {
        font-size: 16px;
    }

    .collaborator-cta-section a {
        font-size: 16px;
    }

    .courses-banner p {
        font-size: 16px;
    }
}

#backToTop {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-claro);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: #5a9961;
    transform: scale(1.1);
}

#whatsappBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--cor-secundaria);
    color: var(--cor-texto-claro);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}

#whatsappBtn:hover {
    background-color: #5a9961;
    transform: scale(1.1);
}