/* --- VARIAVEIS E ESTILOS GERAIS --- */
:root {
    --azul: #0D2C54;
    --amarelo: #ffcc01;
    --branco: #FFFFFF;
    --preto: #212529;
    --cinza-claro: #f8f9fa;
    --font-poppins: 'Poppins', sans-serif;
    --font-spartan: 'League Spartan', sans-serif;
    --font-telegraf: 'Poppins', sans-serif; /* Fallback para Telegraf */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-poppins);
    color: var(--preto);
    background-color: var(--branco);
    padding-top: 80px; /* Espaço para o cabeçalho fixo */
    /* --- CORREÇÃO PARA ANCORAGEM DO CABEÇALHO FIXO --- */
section[id] {
    scroll-margin-top: 80px; /* Valor IGUAL à altura do seu cabeçalho */
}
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- CABEÇALHO --- */
/* --- CABEÇALHO CORRIGIDO --- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--azul);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#header .container {
    display: flex;
    justify-content: space-between; /* Esta linha separa os itens */
    align-items: center;
    width: 100%; /* Garante que o container ocupe todo o espaço do header */
    height: 100%; /* Garante o alinhamento vertical */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


#header .logo img {
    height: 50px; /* Ajuste a altura da sua logo */
}

#header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

#header nav a {
    color: var(--amarelo);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

#header nav a:hover {
    color: var(--branco);
}

.btn-afiliado {
    background-color: var(--amarelo);
    color: var(--cinza-claro) !important;
    padding: 10px 20px;
    border-radius: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-afiliado:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* --- SEÇÃO HERO --- */
.hero {
    background: linear-gradient(rgba(13, 44, 84, 0.7), rgba(13, 44, 84, 0.7)), url('imagens/luciocombraçolevantado.jpg') no-repeat center center/cover;
    height: calc(100vh - 80px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    max-width: 950px;
}

.hero-title {
    font-family: var(--font-telegraf);
    font-size: 3.8rem;
    color: var(--branco);
    line-height: 1.3;
    margin-bottom: 40px;
}

.btn-cta {
    font-family: var(--font-poppins);
    background-color: var(--amarelo);
    color: var(--azul);
    font-size: 1.7rem;
    padding: 20px 45px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* --- SEÇÃO SERVIÇOS --- */
#servicos {
    padding: 50px 0;
    background-color: var(--cinza-claro);
}

#servicos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.servico-card {
    background: var(--branco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.servico-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.servico-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--azul);
}

.servico-card p {
    flex-grow: 1;
    margin-bottom: 20px;
}

.servico-cta {
    color: var(--azul);
    text-decoration: none;
    font-weight: bold;
}

.servico-cta:hover {
    text-decoration: underline;
}

/* --- SEÇÃO DE DEPOIMENTOS (ATUALIZADO COM TÍTULO) --- */
#depoimentos {
    padding: 80px 0;
    background-color: var(--branco);
}

#depoimentos h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--azul);
}

.depoimentos-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.depoimentos-wrapper::-webkit-scrollbar {
    display: none;
}

.depoimento-card {
    flex: 0 0 80%;
    max-width: 450px;
    scroll-snap-align: center;
    background-color: var(--cinza-claro);
    border-left: 5px solid var(--amarelo);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
}

/* --- SEÇÃO PORTFOLIO DE CLIENTES (COM CARDS) --- */
#portfolio {
    padding: 80px 0;
    /* Mudamos o fundo da seção para cinza, para os cards brancos se destacarem */
    background-color: var(--cinza-claro); 
    overflow: hidden;
}

#portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--azul);
}

.clients-slider-wrapper {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.clients-slider {
    display: flex; /* Usamos Flexbox para alinhar os cards */
    gap: 30px; /* Espaçamento moderno entre os cards */
    padding: 20px 0; /* Espaçamento vertical para a sombra respirar */
    animation: scrollClients 30s linear infinite;
}

.clients-slider:hover {
    animation-play-state: paused;
}

/* AQUI ESTÁ A GRANDE MUDANÇA */
.client-column {
    background-color: var(--branco);
    width: 180px; /* DIMINUÍDO: para criar a base do retângulo vertical */
    height: 240px; /* ADICIONADO: para forçar a altura e criar o formato */
    flex-shrink: 0;
    padding: 20px; /* Ajustado para o novo tamanho */
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.client-column img {
    height: 90px; /* AUMENTADO: para a logo ficar mais proporcional no card alto */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

.client-column img {
    height: 80px; /* Altura da logo */
    width: auto;  /* Largura automática para não distorcer */
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

.client-name {
    font-weight: bold;
    color: var(--preto);
    font-size: 1rem;
    line-height: 1.3;
}

/* Animação de rolagem (sem alteração) */
@keyframes scrollClients {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}


/* --- SEÇÃO SOBRE --- */
#sobre {
    padding: 80px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}



/* NOVA REGRA PARA O TÍTULO/NOME DO CLIENTE */
.depoimento-autor-nome {
    font-size: 1.4rem;
    font-weight: 700; /* Negrito */
    color: var(--preto);
    margin-bottom: 15px; /* Espaço entre o nome e o depoimento */
}

.depoimento-texto {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Mantém o texto ocupando o espaço disponível */
}

/* REGRA ATUALIZADA PARA A EMPRESA */
.autor-empresa {
    font-size: 0.9rem;
    color: #777;
    margin-top: auto; /* Empurra para o final do card */
    font-weight: bold;
}

/* Ajustes para telas maiores */
@media (min-width: 992px) {
    .depoimento-card {
        flex-basis: 30%;
    }
}

/* --- SEÇÃO CONTATO --- */
#contato {
    padding: 80px 0;
}

#contato h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--azul);
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: var(--branco);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0 20px;
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

.email-info {
    margin-bottom: 20px;
}

.social-icons a {
    margin-right: 15px;
}
.social-icons img {
    border-radius: 50%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-poppins);
    font-size: 1rem;
}

.btn-form {
    background-color: var(--azul);
    color: var(--branco);
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-form:hover {
    background-color: #0b2241;
}

/* --- RODAPÉ --- */
footer {
    background-color: var(--azul);
    color: var(--branco);
    text-align: center;
    padding: 20px;
    margin-top: 100px;
}

/* --- RESPONSIVIDADE --- */

/* =================================== */
/* 6. PÁGINA DE ARTIGO INDIVIDUAL    */
/* (Adicione antes da seção 7 e 8)     */
/* =================================== */

.article-container {
    max-width: 850px; /* Largura ideal para leitura */
    margin: 0 auto;
    padding: 20px;
}

.article-header h1 {
    font-family: var(--font-spartan);
    font-size: 2.8rem;
    color: var(--azul);
    line-height: 1.2;
    margin-bottom: 15px;
}

.article-meta {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 30px;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
}

/* Estilo do corpo do artigo para boa legibilidade (com espaçamento reduzido) */
.article-content {
    font-size: 1.1rem;
    line-height: 1.7;  /* Reduzido de 1.8 para linhas um pouco mais próximas */
    color: #333;
}

.article-content p {
    margin-bottom: 1.2em; /* Reduzido de 1.5em para menos espaço após cada parágrafo */
}

.article-content h2,
.article-content h3 {
    font-family: var(--font-spartan);
    color: var(--azul);
    margin-top: 2em;      /* Reduzido de 2.5em para menos espaço acima dos subtítulos */
    margin-bottom: 0.8em; /* Reduzido de 1em para menos espaço abaixo dos subtítulos */
}

.article-content h2 { font-size: 2rem; }
.article-content h3 { font-size: 1.6rem; }

.article-content blockquote {
    margin: 1.5em 0; /* Reduzido de 2em para aproximar a citação do resto do texto */
    padding-left: 1.5em;
    border-left: 4px solid var(--amarelo);
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.2em; /* Ajustado para combinar com os parágrafos */
    padding-left: 1.5em;
}

/* Botões de compartilhamento */
.social-share {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-share span {
    font-weight: bold;
    color: var(--azul);
}

.share-btn {
    color: var(--branco);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-decoration: none;
}
.share-btn.whatsapp { background-color: #25D366; }
.share-btn.facebook { background-color: #1877F2; }
.share-btn.linkedin { background-color: #0A66C2; }

/* Link para voltar */
/* ======================================================== */

.voltar-link {
    display: inline-block;
    margin-top: 40px;
    
    /* Estilo do botão azul */
    background-color: var(--azul);
    color: var(--branco);
    padding: 12px 25px;
    border-radius: 5px;
    
    /* Aparência do texto */
    font-weight: bold;
    text-decoration: none; /* Remove o sublinhado do link */
    
    /* Animação suave para a mudança de cor */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Efeito ao passar o mouse por cima */
.voltar-link:hover {
    background-color: var(--amarelo);
    color: var(--preto); /* <-- Usando preto para melhor contraste */
}

@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .about-image {
        margin-top: 40px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    #header {
        position: relative; /* Deixa de ser fixo em telas pequenas */
        height: auto;
    }
    #header .container {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    #header nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        text-align: center;
    }
    .hero-title {
        font-size: 2rem;
    }
    .btn-cta {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
}



/* --- SEÇÃO DE DIFERENCIAIS --- */
#diferenciais {
    padding: 80px 0;
    background-color: var(--cinza-claro); /* Cor de fundo para destacar a seção */
}

/* Reutilizando o estilo de título de seção que já temos */
#diferenciais .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--azul);
}

.diferenciais-grid {
    display: grid;
    /* Cria 2 colunas de tamanho igual */
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; /* Espaçamento entre os cards */
}

.diferencial-card {
    background-color: var(--branco);
    padding: 35px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    text-align: center;
    border-top: 4px solid var(--amarelo); /* Detalhe visual com a cor da marca */
    transition: transform 0.3s, box-shadow 0.3s;
}

.diferencial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.diferencial-card h3 {
    font-size: 1.8rem;
    color: var(--azul);
    margin-bottom: 15px;
    font-family: var(--font-spartan); /* Usando uma fonte de destaque */
}

.diferencial-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* --- AJUSTE PARA CELULARES (RESPONSIVIDADE) --- */
@media (max-width: 768px) {
    .diferenciais-grid {
        /* Em telas pequenas, muda para apenas 1 coluna */
        grid-template-columns: 1fr;
    }

    .diferencial-card h3 {
        font-size: 1.5rem;
    }

    /* --- SEÇÃO CONTATO --- */
#contato {
    padding: 80px 0;
}

#contato h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3, .contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--azul);
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25D366;
    color: var(--branco);
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0 20px;
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

.email-info {
    margin-bottom: 20px;
}

.social-icons a {
    margin-right: 15px;
}
.social-icons img {
    border-radius: 50%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-poppins);
    font-size: 1rem;
}

.btn-form {
    background-color: var(--azul);
    color: var(--branco);
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-form:hover {
    background-color: #0b2241;
}

/* Estilo para a caixa de mensagem (textarea) ficar igual aos outros campos */
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-poppins);
    font-size: 1rem;
    resize: vertical; /* Opcional: Permite que o usuário aumente a altura da caixa */
}


    
}

/* ======================================================== */
/* Estilos da Notificação "Toast" com Barra de Progresso    */
/* ======================================================== */

/* A caixa da notificação */
#toast-notification {
    position: fixed; /* Fica flutuando na tela */
    top: 20px;
    right: 20px;
    background-color: #155724; /* Verde escuro (sucesso) */
    color: #d4edda; /* Texto verde claro */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 9999; /* Garante que fique acima de tudo */
    width: 320px;
    overflow: hidden; /* Esconde a parte da barra de progresso que "sai" da caixa */
    
    /* Animação de entrada e saída */
    transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Estado escondido */
#toast-notification.toast-hidden {
    opacity: 0;
    transform: translateY(-40px);
}

/* Estado visível */
#toast-notification.toast-visible {
    opacity: 1;
    transform: translateY(0);
}

/* A barra de progresso no rodapé da notificação */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background-color: var(--amarelo); /* Cor da barra */
    animation: shrink 5s linear forwards; /* <-- A MÁGICA ACONTECE AQUI */
}

/* Animação que faz a barra diminuir de 100% para 0% em 5 segundos */
@keyframes shrink {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

main { background-color: #fff; }
.article-container { max-width: 850px; margin: 0 auto; padding-top: 40px; }
.article-header h1 { font-family: var(--font-spartan); font-size: 2.8rem; color: var(--azul); line-height: 1.2; margin-bottom: 15px; }
.article-meta { font-size: 0.9rem; color: #555; margin-bottom: 30px; }
.featured-image { width: 100%; height: auto; border-radius: 8px; margin-bottom: 40px; }
.article-content { font-size: 1.1rem; line-height: 1.7; color: #333; }
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-size: 2rem; margin-top: 2em; margin-bottom: 0.8em; }
.article-content h3 { font-size: 1.6rem; margin-top: 2em; margin-bottom: 0.8em; }
.article-content blockquote { margin: 1.5em 0; padding-left: 1.5em; border-left: 4px solid var(--amarelo); font-style: italic; }
.social-share { margin-top: 40px; padding-top: 20px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 15px; }
.voltar-link { display: inline-block; margin-top: 40px; font-weight: bold; color: var(--azul); text-decoration: none; }

@media (max-width: 768px) {
    .article-header h1 { font-size: 2rem; }
}