:root {
    --primary-color: #223754;
    --secondary-color: #ff9800; 
    --text-color: #333;
    --light-bg: #f5f5f5;
    --dark-bg: #212121;
    --white: #ffffff;    
    --max-width: 1000px;
    --whats-color: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.2;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ------------------------------------------- */
/* 1. HEADER */
/* ------------------------------------------- */
header {
    background-color: var(--dark-bg);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-img {
    height: 35px; /* Tamanho ideal para visualização em celular */
    width: auto;
    border-radius: 15px;
    display: block;
}

/* Menu Mobile (Padrão) */
.nav-menu {
    display: none; /* Esconde no mobile por padrão */
    position: absolute;
    top: 60px; /* Ajuste para baixo do header */
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    padding-bottom: 10px;
}

.nav-menu.active {
    display: block;
}

.nav-menu ul {
    list-style: none;
    text-align: center;
}

.nav-menu ul li {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    display: block; /* Visível no mobile */
}

/* ------------------------------------------- */
/* 2. HERO SECTION */
/* ------------------------------------------- */
.hero-section {
    background: url('assets/background.png'); 
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--secondary-color);
}

.hero-section p {
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Botões CTA */
.cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.primary-cta {
    background-color: var(--whats-color);
    color: var(--white);
    border: 2px solid var(--whats-color);
}

.primary-cta:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.secondary-cta {
    background-color: var(--whats-color);
    color: var(--white);
    border: 2px solid var(--whats-color);
}

.secondary-cta:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* ------------------------------------------- */
/* 3, 4, 5. CONTENT SECTIONS */
/* ------------------------------------------- */
.content-section {
    padding: 50px 0;
    text-align: center;
}

.content-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

.content-section ul {
    list-style: none;
    padding: 0;
}

.content-section ul li {
    background-color: var(--light-bg);
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 15px;
    border-radius: 4px;
}

.highlight-bg {
    background-color: #d4d4d6;
}

/* Layout de imagem e texto para seções */
.image-text-section {
    display: flex;
    flex-direction: column; /* Colunas empilhadas no mobile */
    align-items: center;
    gap: 30px; /* Espaçamento entre imagem e texto */
    margin-bottom: 40px; /* Espaçamento entre blocos de seção */
}

.image-text-section .text-content {
    flex: 1; /* Permite que o texto ocupe o espaço disponível */
}

.image-text-section .image-content {
    flex: 1; /* Permite que a imagem ocupe o espaço disponível */
    max-width: 100%; /* Garante que a imagem não ultrapasse a largura do container */
}

.section-image {
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-petros {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card {
    background-color: var(--white);
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.automations-card .logos {
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center;
    gap: 15px; 
    margin-top: 20px;
}

.automations-card .logos .rep-img {
    height: 70px;
    border-radius: 5px;
    width: auto;
    margin: 0; 
}

/* CTA FINAL */
.cta-final-bg {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-final-bg h3 {
    color: var(--white);
    margin-bottom: 20px;
}

/* ------------------------------------------- */
/* 7. FOOTER */
/* ------------------------------------------- */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

footer p {
    margin: 5px 0;
}

/* Links Sociais no Rodapé */
.social-links {
    margin-bottom: 15px;
}

.social-links a {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* ------------------------------------------- */
/* MEDIA QUERIES (DESKTOP) - Ajustes para telas maiores */
/* ------------------------------------------- */
@media (min-width: 768px) {
    /* Header Desktop */
    .menu-toggle {
        display: none; /* Esconde o botão de menu */
    }

    .nav-menu {
        display: block; /* Mostra o menu */
        position: static;
        width: auto;
        padding-bottom: 0;
    }

    .nav-menu ul {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .nav-menu ul li {
        border-top: none;
        padding: 0;
    }
    
    /* Esconde os links sociais do menu na versão Desktop, priorizando o rodapé */
    .nav-menu ul li:nth-last-child(3), 
    .nav-menu ul li:nth-last-child(2) {
        display: none;
    }

    .logo-img {
        height: 45px; /* Aumenta o tamanho da logo no desktop */
    }

    /* Hero Section Desktop */
    .hero-section h2 {
        font-size: 3rem;
    }

    /* Layout de 2 colunas para produtos/diferencial */
    .content-section ul, .logos {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }

    .content-section ul li {
        flex: 1 1 calc(50% - 10px); /* 2 colunas */
    }

    .product-card {
        display: block; /* Remove o display flex padrão do product-card para mobile */
        flex-direction: row; /* Volta a ser row no desktop */
    }

    /* Layout de imagem e texto para desktop */
    .image-text-section {
        flex-direction: row; /* Lado a lado no desktop */
        text-align: left; /* Alinha o texto à esquerda */
    }

    .image-text-section.reverse-order {
        flex-direction: row-reverse; /* Inverte a ordem para imagem à direita */
    }

    .image-text-section .text-content {
        text-align: left; /* Garante alinhamento à esquerda para o texto */
    }

    .image-text-section h3, .image-text-section h4 {
        text-align: left; /* Alinha títulos à esquerda */
    }

    .automations-card .logos {
        justify-content: flex-start; /* Alinha logos à esquerda no desktop */
    }
}