/* Variáveis de Cores (Paleta da Logo) */
:root {
    --color-orange-dark: #C67B38; /* P e S */
    --color-blue-dark: #305A69; /* W e S */
    --color-white: #FFFFFF;
    --color-light-gray: #F4F4F4; /* Fundo secundário */
    --color-text-dark: #333333;
}

/* Base Geral */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif; /* Corpo de Texto */
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-white);
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif; /* Títulos */
    color: var(--color-blue-dark);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

a {
    text-decoration: none;
    color: var(--color-blue-dark);
    transition: color 0.3s;
}

a:hover {
    color: var(--color-orange-dark);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding-top: 60px; /* Padding original das seções */
    padding-bottom: 60px;
}

.background-light {
    background-color: var(--color-light-gray);
}

/* * CORREÇÃO DE ÂNCORA:
 * REMOVIDO: section[id] { padding-top: 80px; margin-top: -80px; }
 * MOTIVO: Quebrava a formatação do .section-padding
 * A PROPRIEDADE scroll-margin-top É A SOLUÇÃO MODERNA.
 */
section[id] {
    /* Define o espaço no topo que o navegador deve deixar ao rolar para o ID da seção. 
       Ajuste '80px' para a altura total do seu header + margem de segurança. */
    scroll-margin-top: 80px; 
}


/* Botões */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 10px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-orange-dark);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: #A36530; /* Um pouco mais escuro */
}

.btn-secondary {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: #264A57; /* Um pouco mais escuro */
}

/* Header e Navegação */
header {
    background-color: var(--color-white);
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex; 
    align-items: center;
    padding: 0; 
}

/* ESTILOS DO LOGO CORRIGIDOS E FORTALECIDOS */
header .logo img {
    max-height: 50px !important; /* Limite a altura da imagem para caber no cabeçalho */
    width: auto !important;      /* Garante que a largura se ajuste mantendo a proporção */
    height: auto !important;     /* Zera a altura caso exista alguma definição fixa em outro lugar */
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05); /* Efeito sutil no hover */
}


.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 600;
    padding: 5px 0;
    display: block;
    color: var(--color-blue-dark); /* Garante a cor normal do link */
}

.menu-toggle {
    display: none; /* Esconder no desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--color-blue-dark);
}

/* Hero Section */
.hero {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

/* Seção de Serviços (Grid) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    text-align: center;
}

.service-card {
    padding: 30px 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.service-card i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.icon-blue {
    color: var(--color-blue-dark);
}

.icon-orange {
    color: var(--color-orange-dark);
}

.service-card h3 {
    margin-bottom: 10px;
}

.link-details {
    margin-top: 15px;
    display: inline-block;
    font-weight: 600;
}

/* Detalhes de Cursos (Listas e Itens) */
.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.course-item {
    background-color: var(--color-light-gray);
    border: 1px solid var(--color-blue-dark);
    padding: 15px 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--color-blue-dark);
}

.course-item i {
    margin-right: 10px;
    color: var(--color-orange-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #666;
}

.list-bullet {
    list-style: none;
    max-width: 700px;
    margin: 0 auto 30px;
}

.list-bullet li {
    padding: 10px 0;
    font-size: 1.1rem;
    border-bottom: 1px dashed #ddd;
}

.list-bullet i {
    margin-right: 15px;
}

/* Outros Serviços (Features) */
.feature-grid {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.feature-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--color-orange-dark);
    margin-bottom: 10px;
}

/* --- PORTFÓLIO --- */
.portfolio-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: var(--color-white);
    color: var(--color-blue-dark);
    border: 1px solid var(--color-blue-dark);
    padding: 10px 20px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.3s, color 0.3s;
}

.filter-btn.active {
    background: var(--color-blue-dark);
    color: var(--color-white);
}

.filter-btn:hover:not(.active) {
    background: var(--color-light-gray);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(48, 90, 105, 0.85); /* Cor azul escuro com transparência */
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.overlay h3 {
    color: var(--color-white);
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.overlay p {
    color: #ccc;
}
/* --- FIM PORTFÓLIO --- */


/* Livros */
.book-gallery {
    display: flex;
    justify-content: center;
    gap: 40px; /* Espaço entre os livros */
    flex-wrap: wrap; /* Permite que os livros quebrem a linha em telas pequenas */
    margin-top: 30px;
}

.book-card {
    text-align: center;
    /* Reduza ou ajuste este valor. 150px é um bom tamanho para caber 5 livros com folga. */
    max-width: 150px; 
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* Sobre Mim (Flex e Timeline) */
.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 2;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 50%;
    border: 1px solid var(--color-orange-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item {
    border-left: 3px solid var(--color-blue-dark);
    padding-left: 20px;
    margin-bottom: 25px;
}

.timeline-item h3 {
    color: var(--color-blue-dark);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

/* Contato (Formulário) */
#contato form {
    max-width: 600px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.contact-info {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--color-orange-dark);
    margin-right: 10px;
}

/* Rodapé */
footer {
    background-color: var(--color-blue-dark);
    color: var(--color-white);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--color-white);
    margin: 0 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-orange-dark);
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    color: var(--color-white);
    font-size: 1.5rem;
    margin: 0 10px;
}

.social-icons a:hover {
    color: var(--color-orange-dark);
}

.copyright {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

/* --- RESPONSIVIDADE (MEDIA QUERIES) --- */

@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
    }
    .about-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    /* Navegação Mobile */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px; /* Altura do header */
        left: 0;
        background-color: var(--color-blue-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;
        text-align: center;
    }

    .nav-links a {
        color: var(--color-white);
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .menu-toggle {
        display: block;
    }

    .service-grid, .feature-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        text-align: left;
    }
    
    .course-list {
        flex-direction: column;
        align-items: center;
    }

    /* Portfólio Mobile */
    .portfolio-filter button {
        margin-bottom: 10px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .book-gallery {
        gap: 20px;
    }
    .book-card {
        max-width: 150px;
    }
}