/* --- ESTILOS GERAIS E VARIÁVEIS --- */
:root {
    --primary-color: #ff4800; /* Laranja/Vermelho */
    --secondary-color: #4a4a4a; /* Cinza escuro */
    --text-color: #333;
    --bg-color: #ffffff;
    --light-gray-bg: #f8f9fa;
    --white-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}
section:nth-child(even) {
    background-color: var(--light-gray-bg);
}

h1, h2, h3, h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--secondary-color);
}

/* --- CABEÇALHO E NAVEGAÇÃO --- */
header {
    background-color: var(--white-color);
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex; /* Para alinhar verticalmente, se necessário */
    align-items: center; /* Para alinhar verticalmente, se necessário */
}

.logo img {
    max-height: 70px; /* Aumentamos a altura máxima do logo */
}

@media (max-width: 768px) {
    .logo {
        justify-content: center; /* Centraliza o logo na versão mobile */
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

/* --- SEÇÃO HERO --- */
#hero {
    position: relative; 
    /* A MUDANÇA ESTÁ AQUI: Usamos um caminho relativo que funciona com o Grav */
    background-image: url('../images/hero-background.jpg'); 
    background-size: cover; 
    background-position: center center; 
    color: var(--white-color);
    text-align: center;
    padding: 120px 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 28px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c42d38;
    transform: translateY(-3px);
}

/* --- SEÇÃO DE SERVIÇOS --- */
.service-category {
    margin-top: 50px;
    text-align: center;
}
.service-category:first-child {
    margin-top: 20px;
}
.service-category h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
.service-card {
    background-color: var(--white-color);
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}
.service-card h4 {
    color: var(--primary-color);
}

/* --- HOVER CORRIGIDO (TÉCNICA DO WRAPPER) --- */
.card-content {
    transition: transform 0.3s ease;
}
.service-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}
.service-card:hover .card-content {
    transform: translateY(-10px);
}
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    stroke: var(--primary-color);
    stroke-width: 1.5;
    fill: none;
    transition: stroke 0.3s ease;
}
.service-card:hover .service-icon {
    stroke: var(--secondary-color);
}

/* --- SEÇÃO SOBRE NÓS --- */
#about {
    text-align: center;
}

/* --- SEÇÃO DEPOIMENTOS --- */
/* --- ESTILOS PARA DEPOIMENTOS (VERSÃO CORRIGIDA FINAL) --- */
#testimonials {
    background-color: var(--secondary-color);
    color: var(--white-color);
}
#testimonials h2 {
    color: var(--white-color);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
}

/* AQUI ESTÁ A CORREÇÃO PRINCIPAL */
.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    /* Adicionamos um "espaçamento interno" para a aspa se encaixar */
    padding-top: 15px;
    padding-left: 35px;
}

.testimonial-card .quote::before {
    content: '“';
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.4;
    line-height: 1; /* Mantemos isso para evitar que a aspa afete a altura do texto */
    
    position: absolute;
    top: 0;      /* Posiciona a aspa no topo do espaço que criamos */
    left: 0;     /* Posiciona a aspa à esquerda do espaço que criamos */
    /* Z-INDEX FOI REMOVIDO */
}

.testimonial-card .author {
    font-weight: 600;
    text-align: right;
}
.testimonial-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}
.testimonial-card:hover .card-content {
    transform: translateY(-10px);
}

/* --- SEÇÃO DE CONTATO --- */
#contact {
    background-color: var(--light-gray-bg);
}
#contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--secondary-color);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* --- RODAPÉ --- */
footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding-top: 60px;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}
.footer-container h4 {
    color: var(--white-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.footer-container p, .footer-container a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
}
.footer-links ul {
    list-style: none;
}
.footer-container a:hover {
    color: var(--primary-color);
    transition: color 0.3s ease;
}
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #5a5a5a;
    font-size: 0.9rem;
}

/* --- BOTÃO WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    color: var(--white-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
.whatsapp-float svg {
    stroke: var(--white-color);
    width: 32px;
    height: 32px;
}

/* --- MENU HAMBURGUER E RESPONSIVO --- */
.menu-hamburger {
    display: none;
    cursor: pointer;
}
.menu-hamburger .linha {
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 6px 0;
    transition: 0.4s;
}

/* --- ESTILOS APRIMORADOS PARA O BLOG --- */

/* --- PÁGINA DE LISTAGEM DO BLOG --- */
#blog-list .subtitle {
    text-align: center;
    max-width: 600px;
    margin: -10px auto 50px;
    color: #666;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* O card principal (container) */
.article-card {
    background: var(--white-color);
    border: 1px solid #eee;
    border-radius: 12px; /* Bordas um pouco mais arredondadas */
    overflow: hidden; /* Garante que a imagem respeite as bordas */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; /* Essencial para o layout interno */
    flex-direction: column; /* Organiza o conteúdo em coluna */
}

.article-card:hover {
    transform: translateY(-8px); /* Efeito de levantar mais sutil */
    box-shadow: 0 12px 25px rgba(0,0,0,0.08); /* Sombra mais pronunciada */
}

/* A imagem de destaque do post */
.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    border-bottom: 1px solid #eee; /* Linha sutil de separação */
}

/* Container para o conteúdo de texto do card */
.article-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Faz este container ocupar todo o espaço vertical disponível */
}

/* Título do post (H4) */
.article-card-content h4 {
    color: var(--primary-color);
    font-size: 1.25rem; /* Título um pouco maior */
    margin-bottom: 8px;
}

.article-card-content h4 a {
    text-decoration: none;
    color: inherit; /* Herda a cor azul do H4 */
    transition: color 0.3s ease;
}

.article-card-content h4 a:hover {
    color: var(--secondary-color); /* Título fica laranja no hover */
}

/* Data de publicação */
.article-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 15px;
}

/* Resumo do post (parágrafo) */
.article-card-content p {
    flex-grow: 1; /* Truque de mestre: empurra o "Leia Mais" para o final do card */
    color: #555;
    margin-bottom: 20px;
}

/* Link "Leia Mais" */
.read-more-btn {
    display: inline-block;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    text-decoration: none;
    transform: translateX(5px); /* Efeito de seta sutil ao passar o mouse */
}

/* --- ESTILOS PARA PÁGINA DO ARTIGO INDIVIDUAL --- */
.article-section {
    padding: 60px 0;
}
.article-container {
    max-width: 800px; /* Limita a largura do texto para melhor leitura */
}
.article-header {
    text-align: center;
    margin-bottom: 40px;
}
.article-header h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.article-meta {
    color: #888;
    font-style: italic;
}
.article-main-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 40px;
}
.article-content h2, .article-content h3 {
    color: var(--primary-color);
    margin-top: 40px;
}
.article-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
}
.back-to-blog-btn {
    display: inline-block;
    margin-top: 40px;
    font-weight: 600;
    text-decoration: none;
    color: var(--secondary-color);
}
.back-to-blog-btn:hover {
    text-decoration: underline;
}

.article-card-date {
    font-size: 0.85rem;
    color: #888;
    margin: -15px 0 10px 0;
}
.read-more-btn {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    #hero h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    
    header .container {
        flex-direction: row;
    }
    .menu-hamburger {
        display: block;
    }
    nav {
        position: fixed;
        top: 71px;
        right: 0;
        background-color: var(--white-color);
        width: 80vw;
        height: 100vh;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
    }
    nav ul li {
        margin: 20px 0;
    }
    nav.nav-active {
        transform: translateX(0);
    }
}