/* Variáveis de Cores */
:root {
    --primary-blue: #1e3a8a;           /* Azul escuro */
    --secondary-gray: #6b7280;         /* Cinza concreto */
    --accent-yellow: #facc15;          /* Amarelo construção */
    --white: #ffffff;
    --light-gray: #f2f4f8;             /* Um tom mais claro para BG de seções */
    --dark-text: #2c3e50;              /* Texto principal mais escuro */
    --light-text: #555555;             /* Texto secundário */
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.2);
}

/* Reset básico e Box Sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Body Styles */
body {
    font-family: 'Inter', sans-serif; /* Corpo do texto */
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth; /* Rolagem suave para âncoras */
    overflow-x: hidden; /* Evita scroll horizontal indesejado */
}

/* Títulos */
h1, h2, h3, h4 {
    font-family: 'Roboto Slab', sans-serif; /* Títulos */
    color: var(--primary-blue);
    margin-bottom: 0.8em;
    line-height: 1.2; /* Melhora a legibilidade em várias linhas */
}

h1 { font-size: 3.2em; text-align: center; }
h2 { font-size: 2.5em; text-align: center; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

a:hover {
    color: var(--accent-yellow);
}

/* Container para centralizar conteúdo */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Seções Gerais */
section {
    padding: 80px 0;
    margin-bottom: 0;
    position: relative; /* Para animações de scroll reveal */
}

section:nth-of-type(even) { /* background para seções alternadas */
    background-color: var(--light-gray);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: var(--light-text);
}

/* Título de Seção com underline */
h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 60px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100px;
    height: 5px;
    background-color: var(--accent-yellow);
    border-radius: 3px;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px; /* Cantos mais arredondados */
    text-decoration: none;
    font-weight: 700; /* Mais negrito */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.05em;
    text-align: center;
    box-shadow: 0 4px 10px var(--shadow-light); /* Sombra padrão */
}

.btn-primary {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: #e0b400; /* Um tom ligeiramente mais escuro de amarelo */
    transform: translateY(-3px); /* Efeito de "levantar" mais pronunciado */
    box-shadow: 0 8px 15px var(--shadow-medium); /* Sombra maior no hover */
}

.btn-secondary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #1a327a; /* Um tom ligeiramente mais escuro de azul */
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--shadow-medium);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    padding: 12px 28px; /* Ajustado para borda */
    box-shadow: none; /* Sem sombra padrão */
}

.btn-tertiary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--shadow-medium); /* Adiciona sombra no hover */
}

.btn-newsletter {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 5px;
    box-shadow: none; /* Sem sombra padrão */
}

.btn-newsletter:hover {
    background-color: #e0b400;
    transform: translateY(-2px);
}

/* Header */
.main-header {
    background-color: var(--primary-blue);
    padding: 20px 0;
    box-shadow: 0 2px 8px var(--shadow-medium);
    position: sticky; /* Usa sticky para melhor comportamento */
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-header.sticky {
    /* Mantém o estilo base, a classe sticky pode ser usada para um efeito mais sutil se necessário */
    /* Ex: background-color: rgba(30, 58, 138, 0.95); */
    padding: 15px 0; /* Diminui um pouco o padding quando sticky */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--white);
    font-weight: bold;
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: inherit; /* Herda a cor do .logo */
    text-decoration: none;
    font-size: 1.8em;
}

.logo-icon {
    margin-right: 10px;
    color: var(--accent-yellow);
    font-size: 1.2em;
}

.logo-growth-icon {
    margin-left: 5px;
    color: var(--accent-yellow);
    font-size: 0.8em;
}

.logo-text {
    font-family: 'Roboto Slab', sans-serif;
    font-size: 1em;
    line-height: 1; /* Garante que o texto não quebre */
}

/* Navegação Principal */
.main-nav .nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav .nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--accent-yellow);
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after {
    width: 100%;
}

.main-nav .nav-list a:hover {
    color: var(--accent-yellow);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2em;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: var(--accent-yellow);
    width: 0%;
    transition: width 0.1s linear; /* Transição rápida para a barra de progresso */
    z-index: 1001; /* Acima do header */
}


/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(30, 58, 138, 0.85), rgba(30, 58, 138, 0.85)), url('https://picsum.photos/id/237/1600/800') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Altura mínima para o hero */
}

.hero-section h1 {
    color: var(--white);
    font-size: 4em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 5px var(--shadow-strong);
}

.hero-section p {
    font-size: 1.4em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
    text-shadow: 1px 1px 3px var(--shadow-medium);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Animação de entrada para elementos do Hero */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-load.loaded {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-load.delay-1 { transition-delay: 0.2s; }
.animate-on-load.delay-2 { transition-delay: 0.4s; }


/* Seção Sobre Nós */
.about-us-section {
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    text-align: left;
    margin-bottom: 20px;
}
.about-text h2::after {
    left: 0;
    transform: translateX(0);
}

.about-text p {
    font-size: 1.1em;
    color: var(--light-text);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-light);
}

/* Seção de Produtos/Cursos */
.products-section {
    background-color: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajustado minmax */
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px); /* Efeito de "levantar" mais notável */
    box-shadow: 0 15px 30px var(--shadow-medium); /* Sombra mais forte no hover */
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.product-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-content h3 {
    font-size: 1.7em;
    margin-top: 0;
    color: var(--primary-blue);
}

.product-content p {
    color: var(--light-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-price {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: 20px;
}

.product-card .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
}

.view-all-products {
    text-align: center;
    margin-top: 20px;
}


/* Seção de Depoimentos */
.testimonials-section {
    background-color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ajustado minmax */
    gap: 30px;
}

.testimonial-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px var(--shadow-light);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--accent-yellow);
    box-shadow: 0 2px 8px var(--shadow-light); /* Sombra para avatares */
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-text);
    margin-bottom: 15px;
    flex-grow: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95em;
}

/* Main Content (Artigos) */
.main-content {
    flex-grow: 1;
    background-color: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajustado minmax */
    gap: 30px;
    margin-bottom: 40px;
}

.post-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.7em;
    margin-top: 0;
    color: var(--primary-blue);
}

.post-content p {
    color: var(--light-text);
    margin-bottom: 20px;
    flex-grow: 1;
}

.view-all-posts {
    text-align: center;
    margin-top: 20px;
}

/* Seção de Chamada para Newsletter (CTA forte) */
.cta-newsletter-section {
    background: linear-gradient(rgba(30, 58, 138, 0.92), rgba(30, 58, 138, 0.92)), url('https://picsum.photos/id/433/1600/600') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-newsletter-section h2 {
    color: var(--white);
    font-size: 2.8em;
    margin-bottom: 20px;
}
.cta-newsletter-section h2::after {
    background-color: var(--accent-yellow); /* Underline amarelo */
}

.cta-newsletter-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.newsletter-form-large {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.newsletter-form-large input[type="email"] {
    flex-grow: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-text);
    font-size: 1.1em;
    min-width: 250px;
    transition: all 0.3s ease; /* Transição para foco */
}

.newsletter-form-large input[type="email"]::placeholder {
    color: var(--secondary-gray);
}

.newsletter-form-large input[type="email"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-yellow); /* Anel de foco amarelo */
}

.btn-newsletter-large {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 8px;
    font-size: 1.1em;
    box-shadow: 0 4px 10px var(--shadow-light);
}

.btn-newsletter-large:hover {
    background-color: #e0b400;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px var(--shadow-medium);
}


/* Rodapé */
.main-footer {
    background-color: var(--secondary-gray);
    color: var(--white);
    padding: 50px 0 20px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    min-width: 220px;
}

.footer-section h4 {
    color: var(--accent-yellow);
    margin-bottom: 20px;
    font-size: 1.3em;
    text-align: left;
}

.footer-section p, .footer-section a {
    color: var(--white);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95em;
}

.footer-section p i, .footer-section a i {
    margin-right: 8px;
    color: var(--accent-yellow);
}

.footer-section ul {
    list-style: none;
}
.footer-section ul li {
    margin-bottom: 10px;
}
.footer-section ul li a:hover {
    text-decoration: underline;
}

.social-icons a {
    display: inline-block;
    font-size: 2em;
    margin-right: 20px;
    color: var(--white);
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--accent-yellow);
    transform: translateY(-5px) scale(1.1); /* Efeito de "salto" e aumento */
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.25);
    color: var(--white);
    font-size: 1em;
    min-width: 180px;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 2px var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
}

/* Botão Voltar ao Topo */
#backToTopBtn {
    display: none; /* Escondido por padrão */
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-medium);
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    display: flex; /* Para centralizar o ícone */
    align-items: center;
    justify-content: center;
}

#backToTopBtn:hover {
    background-color: #e0b400;
    transform: translateY(-5px); /* Efeito de "salto" */
    box-shadow: 0 6px 15px var(--shadow-strong);
}

#backToTopBtn.show {
    display: flex; /* Garante que o flexbox funcione para centralizar */
    animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animações de Scroll Reveal */
.reveal-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* --- Design Responsivo --- */

/* Telas menores que 1024px (Laptops e Tablets maiores) */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 3.5em;
    }
    .hero-section p {
        font-size: 1.2em;
    }
    h2 {
        font-size: 2.2em;
    }
    h3 {
        font-size: 1.6em;
    }
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .about-text h2 {
        text-align: center;
    }
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Telas menores que 768px (Tablets e celulares) */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 15px;
        width: 100%;
        justify-content: space-between;
    }
    .logo a {
        font-size: 1.5em;
    }
    .menu-toggle {
        display: block;
    }
    .main-nav {
        width: 100%;
        text-align: center;
        position: relative; /* Para o menu flutuar corretamente */
    }
    .main-nav .nav-list {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out; /* Transição mais suave */
        background-color: rgba(30, 58, 138, 0.98);
        border-radius: 5px;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 15px var(--shadow-medium);
    }
    .main-nav .nav-list.active {
        max-height: 300px; /* Altura suficiente para o menu */
        padding: 15px 0;
    }
    .main-nav .nav-list li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }
    .main-nav .nav-list a {
        padding: 10px 0;
        font-size: 1.1em;
        width: 100%;
        display: block;
        text-align: center;
    }
    .main-nav .nav-list a::after {
        display: none; /* Desativa underline animado no mobile */
    }

    .hero-section {
        padding: 80px 15px;
        min-height: 500px;
    }
    .hero-section h1 {
        font-size: 2.8em;
    }
    .hero-section p {
        font-size: 1.1em;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 15px;
    }
    .btn {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    section {
        padding: 60px 0;
    }
    h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .about-us-section .about-image {
        order: -1; /* Move a imagem para cima do texto */
        margin-bottom: 30px;
    }
    .about-image img {
        max-width: 80%; /* Reduz a imagem para mobile */
    }

    .products-grid, .posts-grid, .testimonials-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }

    .newsletter-form-large {
        flex-direction: column;
        gap: 15px;
    }
    .newsletter-form-large input[type="email"],
    .btn-newsletter-large {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .cta-newsletter-section h2 {
        font-size: 2.2em;
    }
    .cta-newsletter-section p {
        font-size: 1em;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }
    .footer-section {
        width: 100%;
        min-width: unset;
    }
    .footer-section h4 {
        text-align: center;
    }
    .footer-section p, .footer-section a {
        text-align: center;
        display: block;
    }
    .footer-section ul {
        padding-left: 0;
    }
    .social-icons {
        margin-top: 15px;
    }
    .social-icons a {
        font-size: 1.8em;
        margin: 0 10px;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-form input[type="email"],
    .newsletter-form button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    #backToTopBtn {
        width: 45px;
        height: 45px;
        font-size: 1.3em;
        bottom: 20px;
        right: 20px;
    }
}

/* Telas muito pequenas (celulares em modo paisagem) */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section p {
        font-size: 0.95em;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.4em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .product-price {
        font-size: 1.4em;
    }
    .cta-newsletter-section h2 {
        font-size: 1.8em;
    }
    .cta-newsletter-section p {
        font-size: 1em;
    }
}
