/* Reset mínimo e Tipografia */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Open Sans', sans-serif; color: #0A2C5D; background: #fff; }
h1, h2, h3, .nav__link { font-family: 'Montserrat', sans-serif; }
#text { text-align: center; display: flex; justify-content: center; }

html {
  scroll-behavior: smooth;
}

/* Seções Gerais e Hero */
.section { padding: 3rem 0; }
.section--light { background-color: #f4f4f4; }
.hero--pvc, .hero--sobre, .hero--contato {
    background-color: #0A2C5D; height: 300px; display: flex; align-items: center; 
    justify-content: center; color: white; text-align: center;
}
.hero--contato {border-top: 4px solid #B02126;}

.hero--pvc { background: url('img/forro-pvc-banner.jpg') center/cover no-repeat; color: #0A2C5D;}
.hero__content h1 { font-size: 2.5rem; font-weight: bold; }
.hero__content p { font-size: 1.2rem; }

/* Benefícios e Galeria */
.benefits { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }
.benefit-item { flex: 1 1 200px; }
.gallery { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.gallery img {
    flex: 1 1 300px; max-width: 100%; height: 400px; object-fit: cover;
    border-radius: 8px; transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery img:hover { transform: scale(1.03); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* CTA (Call to Action) */
.cta { background-color: #0A2C5D; color: white; padding: 3rem 0; text-align: center; border-top: 4px solid #B02126; }
.cta__btn {
    display: inline-block; margin-top: 1rem; padding: 0.8rem 1.5rem;
    background-color: #25D366; color: white; border-radius: 5px; text-decoration: none; font-weight: bold;
}

/* Depoimentos e Links */
.testimonial { font-style: italic; font-size: 1.2rem; border-left: 4px solid #0A2C5D; padding-left: 1rem; margin-top: 2rem; }
.testimonial footer { font-size: 0.9rem; color: #555; margin-top: 0.5rem; }
.comment-link {
    display: inline-block; margin-left: 10px; font-style: normal; font-size: 0.85rem;
    color: #0A2C5D; text-decoration: none; transition: color 0.3s ease;
}
.comment-link:hover { color: #B02126; text-decoration: underline; }

/* Seção de Contato */
.contact-info { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.contact-details, .contact-form { flex: 1; min-width: 280px; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 0.8rem; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; }
.contact-form button { background-color: #0A2C5D; color: white; border: none; padding: 0.9rem; font-weight: bold; border-radius: 5px; cursor: pointer; }

/* Estilos do Chat e WhatsApp */
#whatsapp-chat {
    position: fixed; bottom: 20px; right: 20px; background-color: #25d366; color: white;
    padding: 12px 20px; border-radius: 50px; display: flex; align-items: center;
    font-size: 16px; cursor: pointer; z-index: 1000; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25); transition: all 0.3s ease;
}
#whatsapp-chat:hover { transform: scale(1.05); }
#whatsapp-chat i { font-size: 24px; margin-right: 10px; }

#chat-button {
    position: fixed; bottom: 90px; right: 20px; background-color: #25d366; color: white;
    border-radius: 50%; width: 55px; height: 55px; display: flex; align-items: center; justify-content: center;
    font-size: 26px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; z-index: 1000;
}
#chat-button:hover { transform: scale(1.05); }

#chat-box {
    position: fixed; bottom: 160px; right: 20px; width: 380px; height: 400px; background: white;
    border-radius: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); display: none; flex-direction: column;
    overflow: hidden; z-index: 1000; font-family: 'Open Sans', sans-serif;
}
.chat-header { background: #0A2C5D; color: white; padding: 10px 15px; font-weight: bold; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; padding: 10px; overflow-y: auto; background: #f4f4f4; }
.chat-footer { display: flex; padding: 10px; background: #fff; border-top: 1px solid #ddd; }
.chat-footer input { flex: 1; padding: 8px; border-radius: 6px; border: 1px solid #ccc; margin-right: 6px; }
.chat-footer button { background: #0A2C5D; border: none; color: white; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.user-message, .bot-message { margin-bottom: 10px; padding: 10px; max-width: 80%; border-radius: 8px; clear: both; }
.user-message { background-color: #dcf8c6; align-self: flex-end; margin-left: auto; }
.bot-message { background-color: #ffffff; align-self: flex-start; margin-right: auto; }
.whats-btn { background-color: #25d366 !important; }

.chat-options-container { margin-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.chat-option-btn {
    background-color: #ffffff; border: 2px solid #25d366; color: #25d366; padding: 8px 12px;
    border-radius: 15px; cursor: pointer; font-weight: bold; font-size: 14px; text-align: left;
    transition: background-color 0.3s, color 0.3s;
}
.chat-option-btn:hover { background-color: #25d366; color: #ffffff; }

/* ===== ANIMAÇÕES E EFEITOS VISUAIS ===== */
.cta__btn, .footer__button, .contact-form button[type="submit"] { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.cta__btn:hover, .footer__button:hover, .contact-form button[type="submit"]:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }

.animate-on-scroll {
    opacity: 0; will-change: transform, opacity;
    transition: opacity 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.animate-slide-right { transform: translateX(50px); }
.animate-scale-up { transform: scale(0.95); }
.animate-fade-in { transform: translateY(20px); }
.animate-on-scroll.is-visible { opacity: 1; transform: translateX(0) translateY(0) scale(1); }

.carousel-container.animate-on-load { opacity: 0; animation: fadeInAnimation 1.2s 0.3s ease-out forwards; }
@keyframes fadeInAnimation { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 600px) {
    #whatsapp-chat .chat-text { display: none; }
    #whatsapp-chat { padding: 12px; border-radius: 50%; }
    #whatsapp-chat i { margin-right: 0; }
}

/* ===== ESTILOS PARA MÉTRICAS (VERSÃO MELHORADA) ===== */

/* Nova classe para seções com fundo escuro */
.section--dark {
    border-top: 4px solid #B02126;
    background-color: #0A2C5D;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: stretch; /* Alinha os itens para terem a mesma altura */
    flex-wrap: wrap;
    gap: 20px;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
    color: #fff; /* Cor da fonte padrão para branco */
    min-width: 200px;
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fff; /* Ícones em branco */
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff; /* Números em branco */
}

.stat-item p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9); /* Branco com um pouco de transparência */
}

/* Estilo especial para o Selo de Garantia */
.warranty-seal {
    border: 2px solid #FFD700; /* Borda dourada para destaque */
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05); /* Leve brilho de fundo */
}

.warranty-seal .stars {
    margin-bottom: 1rem;
}

.warranty-seal .stars i {
    font-size: 1.5rem;
    color: #FFD700; /* Estrelas douradas */
    margin: 0 2px;
}

.warranty-seal h3 {
    color: #FFD700; /* Número da garantia em dourado para combinar */
}

/* 2. Estilos da Seção de FAQ */
.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
    border-top: 1px solid #eee;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-question span {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #0A2C5D;
}

.faq-question i {
    font-size: 1.2rem;
    color: #0A2C5D;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.faq-answer p {
    padding: 0 10px 20px;
    line-height: 1.6;
}

/* Estilos quando o FAQ está ativo (aberto) */
.faq-item.active .faq-answer {
    max-height: 300px; /* Um valor alto para caber o conteúdo */
    padding-bottom: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(135deg); /* Gira o '+' para parecer um 'x' */
}