/* --- CONFIGURAÇÕES GLOBAIS E VARIÁVEIS --- */
:root {
    --primary-color: #74B49B; /* Verde pastel principal */
    --secondary-color: #A8D8B9; /* Verde pastel mais claro */
    --dark-color: #3D5A50; /* Verde escuro para textos e destaques */
    --light-color: #F4F9F4; /* Fundo muito claro */
    --white-color: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    --header-height: 70px;
}

/* --- RESET E ESTILOS BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-family);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.7;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.3; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 1rem; color: var(--dark-color); }
p.section-intro { text-align: center; max-width: 700px; margin: 0 auto 3rem auto; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--dark-color); }
ul { list-style: none; }
section { padding: 80px 0; }

/* --- CABEÇALHO --- */
#main-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); background-color: var(--white-color); box-shadow: var(--shadow); transition: all 0.4s ease; }
#main-header .container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--dark-color); }
#main-nav ul { display: flex; gap: 30px; }
#main-nav a { font-weight: 600; color: var(--dark-color); position: relative; padding: 5px 0; }
#main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: width 0.3s ease; }
#main-nav a:hover::after, #main-nav a.active::after { width: 100%; }
#hamburger-btn { display: none; font-size: 1.5rem; background: none; border: none; color: var(--dark-color); cursor: pointer; }

/* --- SEÇÃO INÍCIO (HERO) COM VÍDEO --- */
#inicio { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white-color); overflow: hidden; }
#hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: 1; transform: translateX(-50%) translateY(-50%); }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 40, 30, 0.6); z-index: 2; }
.hero-content { position: relative; z-index: 3; }
.hero-content h1 { text-shadow: 2px 2px 10px rgba(0,0,0,0.5); margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.2rem; }
.cta-button { background-color: var(--primary-color); color: var(--white-color); padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; display: inline-block; border: 2px solid transparent; transition: all 0.3s ease; }
.cta-button:hover { background-color: var(--white-color); border-color: var(--white-color); color: var(--dark-color); transform: translateY(-3px); }

/* --- ESTILOS PARA CARDS DE SOLUÇÃO NA HOME --- */
.solutions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 4rem; }
.solution-card-link { text-decoration: none; color: inherit; display: block; }
.solution-card { background-color: var(--white-color); padding: 30px; border-radius: 10px; text-align: center; box-shadow: var(--shadow); transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.solution-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.solution-card .icon-wrapper { background-color: var(--secondary-color); color: var(--white-color); width: 70px; height: 70px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; font-size: 2rem; }
.solution-card h3 { color: var(--dark-color); margin-bottom: 15px; }
.solution-card .learn-more { font-weight: 600; color: var(--primary-color); margin-top: 15px; display: inline-block; transition: transform 0.3s ease; }
.solution-card:hover .learn-more { transform: translateX(5px); }
.trilha-one-highlight { background: linear-gradient(45deg, var(--dark-color), var(--primary-color)); color: var(--white-color); padding: 40px; border-radius: 10px; text-align: center; margin-top: 4rem; }
.trilha-one-highlight h3 { color: var(--white-color); margin-bottom: 1rem; }
.trilha-one-highlight .cta-button { margin-top: 1.5rem; background-color: var(--secondary-color); color: var(--dark-color); }
.trilha-one-highlight .cta-button:hover { background-color: var(--white-color); border-color: transparent; }

/* --- SEÇÃO DE CHAMADA PARA AÇÃO (CTA) FINAL --- */
#cta-final { background-color: var(--dark-color); color: var(--white-color); text-align: center; }
#cta-final h2 { color: var(--white-color); }
#cta-final .cta-button { background-color: var(--primary-color); color: var(--white-color); }
#cta-final .cta-button:hover { background-color: var(--secondary-color); color: var(--dark-color); }

/* --- ESTILOS PARA PÁGINAS DE SOLUÇÃO --- */
.solution-hero { padding: 120px 0 80px 0; color: var(--white-color); text-align: center; background-size: cover; background-position: center; }
.solution-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.solution-hero p { font-size: 1.2rem; }
.solution-details { padding: 80px 0; }
.feature-section { display: flex; align-items: center; gap: 50px; margin-bottom: 5rem; }
.feature-section:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-image { flex: 1; }
.feature-image img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
h2.section-title { text-align: center; margin-bottom: 3rem; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.benefit-item { text-align: center; }
.benefit-item i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 1rem; }

/* --- ESTILOS PARA PÁGINA DE CONTATO --- */
#contato-page { padding: 120px 0 80px 0; background-color: var(--light-color); }
.contact-wrapper { display: flex; gap: 50px; margin-top: 3rem; }
.contact-form { flex: 2; }
.contact-info { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: var(--font-family); font-size: 1rem; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); }
.submit-button { width: 100%; padding: 15px; background-color: var(--dark-color); color: var(--white-color); border: none; border-radius: 5px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.submit-button:hover { background-color: var(--primary-color); }
.contact-info h3 { color: var(--dark-color); margin-bottom: 1.5rem; }
.contact-info ul li { display: flex; align-items: center; gap: 15px; margin-bottom: 1rem; }
.contact-info i { font-size: 1.2rem; color: var(--primary-color); }
.map-placeholder { margin-top: 2rem; border-radius: 8px; overflow: hidden; height: 200px; box-shadow: var(--shadow); }

/* --- RODAPÉ --- */
footer { background-color: var(--dark-color); color: var(--light-color); padding: 40px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.footer-content .logo { color: var(--white-color); }
.social-links a { color: var(--white-color); font-size: 1.5rem; margin: 0 10px; transition: color 0.3s ease, transform 0.3s ease; }
.social-links a:hover { color: var(--secondary-color); transform: translateY(-5px); }

/* --- DESIGN RESPONSIVO --- */
@media (max-width: 768px) {
    #main-nav { position: fixed; top: var(--header-height); right: 0; width: 100%; max-width: 300px; height: calc(100vh - var(--header-height)); background-color: var(--white-color); transform: translateX(100%); transition: transform 0.4s ease-in-out; padding-top: 2rem; z-index: 1000; }
    #main-nav.active { transform: translateX(0); }
    #main-nav ul { flex-direction: column; align-items: center; gap: 20px; }
    #main-nav a { font-size: 1.2rem; }
    #hamburger-btn { display: block; z-index: 1001; }
    .feature-section, .feature-section:nth-child(even) { flex-direction: column; }
    .contact-wrapper { flex-direction: column; }
}

/* --- ESTILOS ADICIONAIS PARA OS HEROS DAS PÁGINAS DE SOLUÇÃO --- */
/* Isso torna o HTML mais limpo e fácil de manter */

#hero-genexus {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=1470&auto=format&fit=crop);
}

#hero-db {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(https://images.unsplash.com/photo-1593720219276-0b1eacd0aef4?q=80&w=1461&auto=format&fit=crop);
}

#hero-bi {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(https://images.unsplash.com/photo-1551288049-bebda4e28f81?q=80&w=1470&auto=format&fit=crop);
}

#hero-trilhaone {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url(https://trilhasistemas.com.br/trilha/assets/images/head_one.jpg);
}

/* --- ESTILOS ADICIONAIS PARA LISTAS COM ÍCONES --- */
/* Garante o alinhamento correto dos ícones na lista da página TrilhaOne */
.fa-ul {
    list-style-type: none;
    margin-left: 2em; /* Adiciona espaço para os ícones */
    padding-left: 0;
}

.fa-ul li {
    margin-bottom: 1rem;
}

.fa-li {
    left: -2em;
    position: absolute;
    text-align: center;
    width: 2em;
    color: var(--primary-color);
}

/* --- ESTILOS ATUALIZADOS PARA PÁGINA DE CONTATO SIMPLIFICADA --- */

#contato-page .contact-wrapper {
    display: none; /* Esconde a div antiga para evitar conflitos */
}

.contact-card {
    max-width: 600px;
    margin: 3rem auto 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-card h3 {
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
}

.contact-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.contact-card li {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.contact-card li i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: var(--light-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card li span {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    margin-bottom: 2px;
}

.contact-card li a, .contact-card li p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-color);
    text-decoration: none;
}

.contact-card li a:hover {
    text-decoration: underline;
}

.social-links-contact {
    margin-top: 3rem;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.social-links-contact a {
    color: var(--dark-color);
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}