/* css/style.css */

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.top-bar {
    background-color: #111;
    color: #fff;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar i {
    margin-right: 5px;
}

header {
    background-color: #333;
  	position: sticky; /* Faz o elemento "grudar" na tela */
    top: 0;           /* Define a posição do "grude", no caso, o topo */
    z-index: 1000;    /* Garante que o menu fique SOBRE todo o outro conteúdo */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo img {
    height: 60px;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav li { /* Alterado de nav ul li para nav li para maior especificidade */
    margin-left: 20px;
}

nav li a { /* Alterado de nav ul li a para nav li a */
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav li a:hover {
    color: #ff6600;
}

.social-icons a {
    color: #fff;
    margin-left: 10px;
    text-decoration: none;
}

/*
====================================
ESTILOS PARA O CONTEÚDO PRINCIPAL (MAIN)
====================================
*/

main {
    width: 100%;
}

/* Estilos Gerais de Seção */
.section-title {
    text-align: center;
    font-size: 2.2em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 500;
}

/* =========== HERO SECTION =========== */
.hero {
    background-color: #2c3e50; /* Cor de fundo escura, caso a imagem não carregue */
    /* Você pode adicionar uma imagem de fundo aqui */
    /* background-image: url('../img/hero-background.jpg'); */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 400;
}

.btn-primary {
    background-color: #ff6600;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #e65c00;
}

/* =========== SERVICES SECTION =========== */
.services-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-basis: 300px; /* Largura base de cada card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 3em;
    color: #ff6600;
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.service-description {
    font-size: 1em;
    color: #666;
    line-height: 1.6;
}

/* =========== FEATURES SECTION =========== */
.features-section {
    padding: 60px 20px;
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    flex-wrap: wrap;
}

.feature-item {
    flex-basis: 280px;
}

.feature-icon {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #333;
}

.feature-item p {
    color: #666;
    line-height: 1.5;
}


/* =========== CTA SECTION =========== */
.cta-section {
    background-color: #333;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.cta-content h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid #fff;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #333;
}

/*
====================================
ESTILOS PARA O BOTÃO FLUTUANTE E MODAL WHATSAPP
====================================
*/

/* Estilo do Botão Flutuante (FAB) */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366; /* Cor oficial do WhatsApp */
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1010; /* Z-index alto para ficar sobre tudo */
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* Overlay do Modal (fundo escuro) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Começa escondido */
    justify-content: center;
    align-items: center;
    z-index: 1020; /* Z-index maior que o botão */
}

/* Conteúdo do Modal (a caixa branca) */
.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.8em;
}

/* Botão de Fechar do Modal (o 'X') */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
}

/* Estilo do Formulário */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Garante que o padding não aumente a largura */
}

.btn-whatsapp-submit {
    width: 100%;
    padding: 15px;
    background-color: #25D366;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-whatsapp-submit:hover {
    background-color: #1EAE54;
}

/* O container do Popup */
.whatsapp-popup-container {
    /* Posicionamento */
    position: fixed;
    right: 30px; /* Alinhado com o botão flutuante */
    bottom: 100px; /* 30px (distância do botão) + 60px (altura do botão) + 10px (espaço) */
    width: 90%;
    max-width: 360px; /* Largura máxima do popup */
    z-index: 1020;

    /* Aparência */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    
    /* Efeito de Transição (para aparecer suavemente) */
    visibility: hidden; /* Começa totalmente invisível */
    opacity: 0;
    transform: translateY(20px); /* Começa um pouco para baixo */
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

/* Classe 'show' que o JavaScript vai adicionar para mostrar o popup */
.whatsapp-popup-container.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0); /* Volta para a posição original */
}

/* O conteúdo interno (apenas para garantir que ocupe o espaço) */
.whatsapp-popup-container .modal-content {
    padding: 25px;
    box-shadow: none; /* Remove a sombra duplicada, se houver */
    max-width: none; /* Remove a largura máxima, pois já está no container */
    position: relative;
    background: none; /* O fundo agora é do container */
}

/* Ajustes no botão de fechar para o novo layout */
.whatsapp-popup-container .close-modal {
    top: 5px;
    right: 10px;
    font-size: 24px;
}

/* Os estilos do formulário (.form-group, .btn-whatsapp-submit, etc.) podem ser mantidos como estão. */

/*
====================================
ESTILOS PARA A PÁGINA DE DOWNLOADS
====================================
*/

/* Cabeçalho da Página */
.page-header {
    background-color: #f4f4f4;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}
.page-header h1 {
    margin: 0;
    font-size: 2.5em;
    color: #333;
}
.page-header p {
    font-size: 1.1em;
    color: #666;
    max-width: 600px;
    margin: 10px auto 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Seção de Filtros */
.filters-section {
    padding: 30px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}
.filter-controls {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-controls input[type="search"],
.filter-controls select {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.filter-controls input[type="search"] {
    flex-grow: 1;
    max-width: 500px;
}
.filter-controls select {
    background-color: #f9f9f9;
}

/* Grid de Programas */
.program-list {
    padding: 40px 0;
}
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}
.program-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.program-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 5px;
}
.program-title {
    font-size: 1.4em;
    color: #333;
    margin: 0 0 10px;
}
.category-tag {
    display: inline-block;
    background-color: #eee;
    color: #555;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    margin-bottom: 15px;
}
.program-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    flex-grow: 1; /* Faz a descrição ocupar o espaço disponível */
    margin-bottom: 20px;
}
.btn-download {
    background-color: #ff6600;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}
.btn-download:hover {
    background-color: #e65c00;
}
.program-card.hide {
    display: none;
}
.no-results-message {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #888;
    grid-column: 1 / -1; /* Ocupa a largura total do grid */
}