/* =========================================
   1. VARIÁVEIS E RESET
   ========================================= */
:root {
    --color-primary: #004B23;
    --color-secondary: #2F3E46;
    --color-accent: #52B788;
    --color-light: #E9ECEF;
    --color-ice-green: #F2F9F4;
    --color-white: #ffffff;
    --color-text: #333333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: #f9f9f9;
    line-height: 1.6;
    scroll-behavior: smooth;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. BOTÕES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
    text-align: center;
}
.btn-primary { background-color: var(--color-primary); color: var(--color-white); border: 2px solid var(--color-primary); }
.btn-primary:hover { background-color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-2px); }
.btn-dark { background-color: #000000; color: #ffffff; border: 2px solid #000000; padding: 10px 25px; }
.btn-dark:hover { background-color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline { background-color: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background-color: var(--color-primary); color: var(--color-white); }

/* =========================================
   3. HEADER E HAMBURGUER
   ========================================= */
.header {
    background-color: var(--color-white);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img { height: 45px; width: auto; }

.nav-menu ul { display: flex; gap: 40px; }
.nav-menu a { color: #1a1a1a; font-weight: 500; position: relative; }
.nav-menu a:hover { color: var(--color-primary); }
.nav-menu a::after {
    content: ''; display: block; width: 0; height: 2px;
    background: var(--color-primary); transition: width 0.3s;
    position: absolute; bottom: -5px;
}
.nav-menu a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 20px; }

.hamburger { display: none; cursor: pointer; }
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-primary);
}

.lang-selector { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.flag-icon { width: 24px; border-radius: 2px; }
.arrow-icon { font-size: 0.8rem; }

/* =========================================
   4-7. HERO E SERVIÇOS
   ========================================= */
.hero { background-color: var(--color-ice-green); color: var(--color-secondary); padding: 140px 0 100px 0; text-align: center; }
.hero-title { font-size: 3rem; margin-bottom: 20px; }
.highlight { color: var(--color-primary); font-weight: 800; }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; color: #555; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; }

.services {
    padding: 100px 0 40px 0; /* Reduzimos o espaço de baixo para 40px */
    background-color: var(--color-white);
}
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; color: var(--color-primary); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 40px 30px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.3s; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 75, 35, 0.1); }
.card-icon { margin-bottom: 25px; height: 90px; display: flex; justify-content: center; align-items: center; }
.card-icon img { max-height: 100%; max-width: 90px; }
.card-topics { display: flex; flex-direction: column; gap: 10px; margin-top: 20px;}
.card-topics li { background-color: #F1F3F5; color: var(--color-secondary); padding: 10px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; }

/* =========================================
   8. CASOS DE SUCESSO (ESTRUTURA NOVA)
   ========================================= */
.cases { padding: 100px 0; background-color: var(--color-ice-green); }

.case-container-main {
    background: var(--color-white);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.05);
}

.case-item { margin-bottom: 40px; }

.case-tag {
    display: inline-block;
    background-color: var(--color-ice-green);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.case-title { font-size: 1.8rem; margin-bottom: 25px; color: var(--color-secondary); }

.case-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

/* Efeito Zig-Zag */
.case-content.reverse { flex-direction: row-reverse; }

.case-text { flex: 1.2; min-width: 300px; }
.case-text p { margin-bottom: 20px; font-weight: 500; }
.case-text ul { margin-bottom: 25px; }
.case-text li { margin-bottom: 12px; position: relative; padding-left: 25px; }
.case-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.case-quote {
    font-style: italic;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    color: #555;
    font-size: 0.95rem;
    margin-top: 20px;
}

.case-image { flex: 1; min-width: 300px; text-align: center; }
.case-image img {
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.case-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 60px 0;
}

/* =========================================
   9. SOBRE E FOOTER
   ========================================= */
.about { padding: 80px 0; background-color: var(--color-light); }
.about-container { display: flex; align-items: center; gap: 50px; flex-wrap: wrap; }
.about-text { flex: 1; }
.about-stats { flex: 1; display: flex; gap: 20px; }
.stat-item { background: var(--color-white); padding: 30px; border-radius: 10px; text-align: center; flex: 1; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--color-accent); }

.cta-footer { background-color: var(--color-ice-green); padding: 80px 0; text-align: center; }

footer { background-color: var(--color-primary); color: var(--color-white); padding: 30px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: white; font-size: 0.9rem; }

/* =========================================
   10. RESPONSIVIDADE
   ========================================= */
@media (max-width: 992px) {
    .case-content, .case-content.reverse { flex-direction: column; text-align: center; }
    .case-text li { text-align: left; }
    .case-quote { text-align: left; }
}

@media (max-width: 768px) {
    .hamburger { display: block; z-index: 1002; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu {
        position: fixed; left: -100%; top: 0;
        background-color: var(--color-white);
        width: 100%; height: 100vh;
        transition: 0.3s; z-index: 1001; padding-top: 100px;
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 30px; }
    .header-right { display: none; }
    
    .case-container-main { padding: 30px 20px; }
    .hero-title { font-size: 2rem; }
}

/* Centralização garantida dos botões 'Saiba Mais' */
.case-link {
    display: block;           /* Transforma em bloco para aceitar margin auto */
    width: fit-content;       /* Ocupa apenas o tamanho do texto interno */
    margin: 25px auto 0;      /* 25px em cima, e 'auto' nas laterais para centralizar */
    
    background-color: var(--color-primary);
    color: var(--color-white) !important;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 75, 35, 0.1);
    white-space: nowrap;
}

.case-link:hover {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 75, 35, 0.2);
}