/*
Theme Name: Loja do Para-brisa Blog
Theme URI: https://blog.lojadoparabrisa.com.br/
Author: Washington & Gemini
Author URI: https://www.lojadoparabrisa.com.br/
Description: Tema personalizado, rápido e otimizado para SEO para o blog da Loja do Para-brisa.
Version: 1.7
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Text Domain: lojadoparabrisablog
*/

/* --- Reset Básico e Variáveis de Cor --- */
:root {
    --cor-principal: #004aad; /* Azul da sua logo */
    --cor-secundaria: #00a859; /* Verde do seu site */
    --cor-texto: #333333;
    --cor-fundo: #f8f9fa;
    --cor-branco: #ffffff;
    --sombra-suave: 0 4px 15px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Barra do Topo --- */
.top-bar {
    background-color: var(--cor-principal);
    height: 10px; /* Altura da barra azul */
    width: 100%;
}

/* --- Estrutura e Layout --- */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--cor-principal);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--cor-secundaria);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* --- Cabeçalho (header.php) --- */
.site-header {
    background-color: var(--cor-branco);
    padding: 15px 0;
    box-shadow: var(--sombra-suave);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--cor-principal);
    border-bottom-color: var(--cor-principal);
}

/* --- Estilos do Menu Mobile --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--cor-texto);
    cursor: pointer;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #222;
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: right 0.4s ease-in-out;
    padding: 80px 30px 30px;
    overflow-y: auto;
}

.mobile-menu-panel.is-open {
    right: 0;
}

.mobile-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-navigation li {
    margin-bottom: 10px;
}

.mobile-navigation a {
    color: var(--cor-branco);
    font-size: 1.2rem;
    padding: 10px 0;
    display: block;
    transition: color 0.3s ease;
}

.mobile-navigation a:hover {
    color: var(--cor-principal);
}


/* --- Seção Hero (front-page.php) --- */
.hero-section {
    position: relative;
    height: 300px;
    max-height: 40vh;
    overflow: hidden;
    color: var(--cor-branco);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-carousel .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-carousel .slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    animation: fadeInDown 1s ease-out;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Lista de Artigos (front-page.php, index.php) --- */
.articles-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.article-card {
    background: var(--cor-branco);
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.article-card:hover .article-content h2 a {
    color: var(--cor-principal);
}

.article-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    height: 200px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}

.article-category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--cor-principal);
    color: var(--cor-branco);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.article-card:hover .article-category-tag {
    background-color: var(--cor-secundaria);
}

.article-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-content h2 a {
    color: var(--cor-texto);
    transition: color 0.3s ease;
}

.article-excerpt {
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.8rem;
    color: #777;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* --- Página de Post (single.php) --- */
.post-hero-section {
    position: relative;
    height: 300px;
    max-height: 40vh;
    color: var(--cor-branco);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.post-hero-section .hero-overlay {
    z-index: 1;
}

.post-hero-section .container {
    position: relative;
    z-index: 2;
}

.post-hero-section .post-header .post-title {
    color: var(--cor-branco);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.post-hero-section .post-header .post-meta {
    color: rgba(255, 255, 255, 0.9);
}

.single-post-container {
    background: var(--cor-branco);
}

.post-header.no-image {
    text-align: center;
    padding: 80px 0 40px;
}

.post-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
}

.post-content-wrapper {
    max-width: 750px;
    margin: 0 auto;
    padding: 80px 0;
}

.post-content-wrapper h2, .post-content-wrapper h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content-wrapper p, .post-content-wrapper ul, .post-content-wrapper ol {
    margin-bottom: 20px;
}


/* --- Rodapé (footer.php) --- */
.site-footer {
    background-color: #222;
    color: #ccc;
    padding: 80px 0 20px 0;
    font-size: 15px;
    line-height: 1.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-column h4 {
    color: var(--cor-branco);
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--cor-principal);
}

.footer-column p {
    color: #aaa;
}

.footer-column .footer-logo img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    background: none; /* Remove o fundo branco */
    padding: 0; /* Remove o espaçamento */
    border-radius: 8px;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
}

.footer-contact-info li {
    margin-bottom: 12px;
    color: #aaa;
}

.footer-contact-info a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: var(--cor-branco);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* --- Botão Flutuante WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

.whatsapp-svg-icon {
    width: 32px;
    height: 32px;
}


/* --- Animações --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .main-navigation { 
        display: none; 
    }
    .mobile-menu-toggle {
        display: block;
    }

    .hero-content h1, .post-hero-section .post-title { font-size: 2rem; }
    .post-title { font-size: 2.2rem; }
    
    .footer-grid {
        text-align: center;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-column .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}
