/* RESET BÁSICO E CONFIGURAÇÕES GERAIS */

/* VARIÁVEIS GLOBAIS */
:root {
    --whatsapp-number: 5511999999999;
    --whatsapp-message: "Olá,%20Edna!%20Gostaria%20de%20saber%20mais%20sobre%20a%20Terapia%20TRG.";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c3e50;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #555;
}

.bg-light {
    background-color: #ffffff;
}

/* BOTÕES */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.3s ease;
}

.btn-header {
    background-color: #1abc9c;
}

.btn-header:hover {
    background-color: #16a085;
}

.btn-main {
    background-color: #3498db;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-main:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* BOTÃO WHATSAPP */
.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn-whatsapp:hover {
    background-color: #20c157;
    transform: translateY(-2px);
}

/* BOTÃO FLUTUANTE WHATSAPP */
.whatsapp-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #eff3f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(28, 179, 83, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-floating:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-floating svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* Animação de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(19, 124, 58, 0.4);
    }
    50% {
        box-shadow: 0 4px 12px rgba(49, 15, 128, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(21, 40, 146, 0.4);
    }
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .whatsapp-floating {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-floating svg {
        width: 28px;
        height: 28px;
    }
}

/* CABEÇALHO */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link { text-decoration: none; }

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
}
.logo-subtitle {
    font-size: 0.9rem;
    color: #3498db;
    display: block;
    font-weight: 400;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Ajuste para posicionar o botão de menu no canto superior direito */
.nav-toggle {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    z-index: 10;
    padding: 0.5rem;
    cursor: pointer;
}

/* Garantir que o menu esteja oculto por padrão */
.nav-list {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(44,62,80,0.07);
    padding: 1rem;
    z-index: 9;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.nav-list.open {
    display: flex;
    transform: translateX(0);
}

.nav-list li {
    margin: 1rem 0;
}

.nav-list a {
    font-size: 1.1rem;
    color: #34495e;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-list a:hover {
    background: #e8f5e8;
    color: #16a085;
}

/* SEÇÃO HERO */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('image/claire-finch-S5a9Rh3hkOc-unsplash.jpg') center center/cover no-repeat;
    color: #fff;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2rem auto;
}

/* SEÇÃO TRG - FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #1abc9c;
}

/* SEÇÃO BENEFÍCIOS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    font-size: 1.1rem;
    padding: 0.5rem;
}

/* SEÇÃO SOBRE */
.about-flex {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-text .section-title {
    text-align: left;
}
.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* SEÇÃO DEPOIMENTOS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-item {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid #1abc9c;
}
.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-item h4 {
    font-weight: 700;
    color: #333;
}

/* SEÇÃO CTA FINAL */
.cta-section {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
}
.cta-section .section-title, .cta-section .section-subtitle {
    color: #fff;
}
.cta-section .btn-main {
    background-color: #1abc9c;
}
.cta-section .btn-main:hover {
    background-color: #16a085;
}

/* RODAPÉ */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 2rem 0;
}


/* --- NOVOS ESTILOS PARA O BLOG --- */

/* UTILITÁRIOS */
.text-center {
    text-align: center;
}

/* ESTILOS DA SEÇÃO DE PREVIEW DO BLOG (HOME) */
.blog-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.post-card-content p {
    flex-grow: 1;
    color: #555;
    margin-bottom: 1rem;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.read-more:hover {
    text-decoration: underline;
}

/* ESTILOS DA PÁGINA DO BLOG (blog.html) */
.page-header {
    background-color: #2c3e50;
    text-align: center;
    padding: 4rem 0;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: #ecf0f1;
    font-size: 1.2rem;
}

/* ESTILOS DA PÁGINA DE POST ÚNICO (post.html) */
.single-post .container {
    max-width: 800px;
}

.single-post h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-meta {
    color: #777;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1abc9c;
}

.back-link {
    display: inline-block;
    margin-top: 3rem;
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}
.back-link:hover {
    text-decoration: underline;
}

/* --- RESPONSIVIDADE --- */
@media(max-width: 768px) {
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }

    .header .container { flex-direction: column; }
    .nav-menu { margin-top: 1rem; }
    .nav-menu li { margin: 0 0.5rem; }
    .btn-header { display: none; }

    .features-grid, .testimonials-grid, .blog-preview-grid { 
        grid-template-columns: 1fr; 
    }
    
    .benefits-grid { grid-template-columns: 1fr; }
    
    .about-flex { flex-direction: column; text-align: center; }
    .about-text .section-title { text-align: center; }
    .about-image { margin-bottom: 2rem; }

    .single-post h1 { font-size: 2.2rem; }
}

/* EFEITOS DE ANIMAÇÃO COM JAVASCRIPT (OPCIONAL) */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Classes reutilizáveis para animação fade-in nas abas */
.fade-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ajuste para garantir que vídeos redimensionados sejam exibidos corretamente */
.video-wrapper iframe, .video-wrapper video {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain; /* Ajuste para evitar cortes excessivos */
}

/* Garantir que vídeos verticais sejam centralizados corretamente */
.video-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* Fundo para contraste */
}