/* ARQUIVO: css/estilos.css
   DESCRIÇÃO: Estilos globais para o site BC Pinturas e Murais
*/

/* --- 1. RESET E CONFIGURAÇÕES GLOBAIS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: #FFFBF5;
    width: 100%;
    position: relative;
    padding-top: 90px; /* Espaço para o menu fixo */
}

/* Wrapper para evitar rolagem horizontal em mobile */
.page-wrapper { overflow-x: hidden; width: 100%; }

/* --- 2. HEADER E NAVEGAÇÃO --- */
header {
    background: #FFFFFF;
    position: fixed; top: 0; left: 0; width: 100%; height: 85px;
    z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex; align-items: center;
}

nav {
    max-width: 1660px; width: 100%; margin: 0 auto; padding: 0 2rem;
    display: flex; justify-content: space-between; align-items: center;
}

.logo img { max-height: 45px; width: auto; display: block; }

nav ul { list-style: none; display: flex; gap: 2rem; }

nav a {
    color: #263CD9; text-decoration: none; transition: color 0.3s;
    font-weight: 700; cursor: pointer;
}
nav a:hover { color: #be5227; }

/* Menu Mobile Toggle */
.mobile-menu-toggle { display: none; background: none; border: none; color: #263CD9; font-size: 1.5rem; cursor: pointer; }

/* --- 3. COMPONENTES DA HOME (Bento, Serviços, etc) --- */

/* Hero Bento Grid */
.hero-bento { padding: 3rem; width: 100%; margin-bottom: 2rem; }
.bento-container {
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 1.5rem;
    height: 750px; max-width: 1600px; margin: 0 auto;
}
.bento-card {
    position: relative; border-radius: 20px; overflow: hidden; text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s ease; cursor: pointer; display: block;
}
.bento-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; transition: transform 0.6s ease; z-index: 1;
}
.bento-card:hover .bento-bg-img { transform: scale(1.03); }
.bento-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80%;
    background: linear-gradient(to top, rgba(0, 6, 24, 1) 0%, rgba(33, 0, 71, 0.5) 45%, transparent 100%); z-index: 2;
}
.bento-content {
    position: absolute; bottom: 0; left: 0; padding: 2.5rem; z-index: 3; width: 100%;
    color: white; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; text-align: left;
}
.bento-title {
    font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin: 0.5rem 0;
    color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.bento-subtitle {
    font-size: 1.1rem; opacity: 0.95; font-weight: 400; margin-bottom: 1rem; color: #ecf0f1; max-width: 90%;
}
.bento-cta-button {
    background: #cea651; color: white; padding: 0.8rem 1.5rem; border-radius: 50px;
    font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(98, 75, 51, 0.4);
}
.bento-cta-button:after { content: "➜"; font-size: 1.1rem; }
.bento-card:hover .bento-cta-button { background: #8F683B; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(98, 75, 51, 0.6); }
.btn-secondary { background: rgb(211, 130, 84); color: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.bento-card:hover .btn-secondary { background: #f8f9fa; color: #624B33; }
.bento-column-split { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.bento-small-card { flex: 1; position: relative; border-radius: 20px; overflow: hidden; }
.bento-small-card .bento-content { padding: 2rem; }
.bento-small-card .bento-title { font-size: 1.6rem; }
.bento-small-card .bento-cta-button { padding: 0.6rem 1.2rem; font-size: 0.85rem; }

/* Imagens Bento (Placeholders ou Reais) */
.bg-entrega { background-image: url('../imagens/entrega-bento.jpg'); }
.bg-mural { background-image: url('../imagens/mural-DBZ-bento.jpg'); }
.bg-corporativo { background-image: url('../imagens/mural-corp-bento.jpg'); }
.bg-blog { background-image: url('../imagens/mural-res-empr-bento.jpg'); }

/* Sobre */
.about { background: #FFFFFF; padding: 4rem 2rem; }
.about-content { max-width: 1600px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8rem; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 0.5rem; color: #263CD9; }
.about-text h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: #624B33; font-weight: 600; }
.differentials { background: #FFFBF5; padding: 2rem; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.differentials li { padding: 0.8rem 0; padding-left: 2rem; position: relative; list-style: none; }
.differentials li:before { content: "⭐"; position: absolute; left: 0; }

/* Serviços */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 3rem; color: #263CD9; }
.services { padding: 4rem 2rem; background: #F5EDE4; }
.services-container { max-width: 1600px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }
.service-card {
    background: #FFFFFF; padding: 3rem; border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.02); display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.service-icon img { height: 60px; width: auto; display: block; object-fit: contain; margin-bottom: 1.5rem; }
.service-card h3 { font-size: 2rem; margin-bottom: 1rem; color: #263CD9; }
.service-card p { color: #7f8c8d; font-size: 1.1rem; margin-bottom: 2rem; }
.service-list { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.service-list li { margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: #34495e; font-size: 1.05rem; }
.service-list li span.icon-check { color: #263CD9; font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.service-footer { margin-top: auto; padding-top: 1.5rem; border-top: 1px solid #eee; color: #2c3e50; font-weight: 700; font-size: 1rem; line-height: 1.5; }
.service-footer strong { color: #263CD9; font-size: 1.2rem; display: block; margin-bottom: 0.3rem; }

/* Portfolio & Lightbox */
.portfolio { width: 100%; padding: 4rem 3rem; background: #FFFBF5; }
.portfolio-grid-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.portfolio-image-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 16/9; box-shadow: 0 5px 20px rgba(0,0,0,0.1); border-radius: 20px; }
.portfolio-image-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.portfolio-image-item:hover img { transform: scale(1.05); }

.lightbox {
    display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 26, 41, 0.95); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 90%; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 30px; right: 50px; font-size: 50px; color: white; cursor: pointer; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 50px; color: white; cursor: pointer; padding: 20px; }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* FAQ Accordion (Home) */
.faq-section { background: #FFFFFF; padding: 4rem 2rem; }
.faq-container { max-width: 1600px; margin: 0 auto; }
.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.faq-category { padding: 1.5rem; border-radius: 20px; height: 100%; }
.faq-category:nth-child(1) { background-color: #eef7ff; }
.faq-category:nth-child(2) { background-color: #fff4e6; }
.faq-category:nth-child(3) { background-color: #f0fdf4; }
.faq-category-title { font-size: 1.6rem; color: #624B33; margin-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 0.8rem; font-weight: 700; display: flex; align-items: center; gap: 0.8rem; }
.faq-category-title img { height: 35px; width: auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.05); margin-bottom: 0.5rem; }
.faq-item:last-child { border-bottom: none; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 1.2rem 0; font-size: 1.1rem; font-weight: 700; color: #2c3e50; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: 'Cairo', sans-serif; transition: color 0.3s; }
.faq-question:hover, .faq-question.active { color: #263CD9; }
.faq-icon { font-size: 1.5rem; transition: transform 0.3s; color: #cea651; font-weight: 300; }
.faq-question.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; padding-right: 0.5rem; }
.faq-answer p { padding-bottom: 1.5rem; color: #5c6b7f; font-size: 1rem; line-height: 1.6; }

/* Blog Section (Na Home) */
.blog-section { background: #F5EDE4; padding: 4rem 2rem; }
.blog-container { max-width: 1600px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2rem; }
.blog-card { background: #FFFFFF; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: transform 0.3s ease; border: 1px solid #eee; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.blog-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.blog-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; }
.cat-entrega { color: #624B33; }
.cat-mural { color: #9b59b6; }
.cat-b2b { color: #263CD9; }
.blog-title { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 0.8rem; color: #263CD9; }
.blog-excerpt { font-size: 0.95rem; color: #7f8c8d; margin-bottom: 1.5rem; flex-grow: 1; }
.blog-link { text-decoration: none; font-weight: 700; font-size: 0.9rem; color: #624B33; display: flex; align-items: center; gap: 5px; margin-top: auto; }

/* --- 4. ESTILOS ESPECÍFICOS DE ARTIGOS/BLOG (Páginas Internas) --- */
.blog-header { background: #263CD9; color: white; padding: 4rem 2rem; text-align: center; }
.blog-hero-img { width: 100%; height: auto; max-height: 500px; object-fit: cover; border-radius: 16px; margin-bottom: 3rem; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.blog-meta { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; display: inline-block; background: rgba(255,255,255,0.2); padding: 0.3rem 0.8rem; border-radius: 50px; }
.blog-page-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.2; max-width: 900px; margin-left: auto; margin-right: auto; }
.blog-page-subtitle { font-size: 1.2rem; font-weight: 400; opacity: 0.9; max-width: 800px; margin: 0 auto; }
.article-container { max-width: 800px; margin: 0 auto; padding: 4rem 2rem; background: #FFFBF5; }
.article-content { font-size: 1.15rem; color: #34495e; line-height: 1.8; }
.article-content h2 { color: #263CD9; font-size: 1.8rem; margin-top: 3rem; margin-bottom: 1.5rem; font-weight: 800; }
.article-content h3 { color: #624B33; font-size: 1.4rem; margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; }
.article-content p { margin-bottom: 1.5rem; }

/* Listas em Artigos */
.check-list, .cross-list, .standard-list { list-style: none; margin-bottom: 2rem; background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #eee; }
.check-list li, .cross-list li, .standard-list li { margin-bottom: 1rem; padding-left: 2rem; position: relative; }
.check-list li::before { content: '✓'; color: #27ae60; font-weight: bold; position: absolute; left: 0; top: 0; }
.cross-list li::before { content: '✕'; color: #c0392b; font-weight: bold; position: absolute; left: 0; top: 0; }
.standard-list li { padding-left: 1.5rem; }
.standard-list li::before { content: '•'; color: #263CD9; font-size: 1.5rem; position: absolute; left: 0; top: -5px; }

/* Caixas de Destaque */
.comparison-box { background: #eef7ff; border-left: 5px solid #263CD9; padding: 1.5rem; margin: 2rem 0; border-radius: 0 8px 8px 0; }
.comparison-title { font-weight: 800; color: #263CD9; display: block; margin-bottom: 0.5rem; }
.tip-box { background: #fff4e6; border: 1px dashed #ccafa3; padding: 1.5rem; border-radius: 8px; margin: 2rem 0; }
.tip-box strong { color: #be5227; }

/* Passo a Passo / Benefícios */
.process-step { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; align-items: flex-start; background-color: #f0fdf4; border-radius: 16px; padding: 1.5rem; box-shadow: 0 2px 5px rgba(0,0,0,0.02); border: 1px solid #bbf7d0; }
.step-number { background: #263CD9; color: white; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; margin-top: 5px; }

/* FAQ Box em Artigos */
.faq-box-article { background-color: #ffffff; border-radius: 12px; padding: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05); margin-top: 2rem; border: 1px solid #eee; }

/* --- 5. FORMULÁRIO E CONTATO --- */
.contact { background: linear-gradient(135deg, #005e8a 0%, #003553 100%); color: white; padding: 4rem 2rem; }
.contact-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-method { display: flex; align-items: center; gap: 1rem; background: rgba(0, 60, 94, 0.644); padding: 1.5rem; border-radius: 8px; text-decoration: none; color: white; transition: background 0.3s; margin-bottom: 1rem; }
.contact-method:hover { background: rgba(0, 60, 94, 0.9); }
.contact-icon-img { width: 35px; height: 35px; object-fit: contain; }
.contact-form { background: #FFFBF5; padding: 2rem; border-radius: 10px; color: #2c3e50; }
.contact-form h3 { color: #263CD9; margin-bottom: 1.5rem; font-size: 1.8rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.8rem; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; font-size: 1rem; }
.conditional-group { display: none; background: #f0f7ff; padding: 1rem; border-radius: 8px; border-left: 4px solid #263CD9; margin-bottom: 1.5rem; animation: fadeIn 0.4s ease-in-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.submit-button { background: #00e5ec; color: rgb(0, 38, 143); padding: 1rem 2rem; border: none; border-radius: 5px; font-size: 1rem; font-weight: bold; cursor: pointer; width: 100%; transition: background 0.3s; }
.submit-button:hover { background: #263CD9; color: #ffffff; }
.cta-section-title { font-size: 2.2rem; margin-bottom: 1rem; color: #fff; }

/* Tooltip */
.tooltip-container { position: relative; display: inline-block; cursor: pointer; margin-left: 5px; vertical-align: middle; }
.tooltip-icon { color: #7f8c8d; font-size: 1rem; }
.tooltip-text { visibility: hidden; width: 220px; background-color: #ffffff; color: #2c3e50; text-align: center; border-radius: 6px; padding: 10px; position: absolute; z-index: 10; bottom: 135%; left: 50%; margin-left: -110px; opacity: 0; transition: opacity 0.3s; font-size: 0.85rem; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.3); line-height: 1.4; }
.tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #ffffff transparent transparent transparent; }
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }

/* --- 6. FOOTER E FLOATING --- */
footer { background: #263CD9; color: white; padding: 2rem; text-align: center; }
.social-links { margin: 1rem 0; display: flex; justify-content: center; gap: 2rem; }
.social-links a { color: white; font-size: 1.5rem; text-decoration: none; }
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 20px rgba(0,0,0,0.3); z-index: 999; transition: transform 0.3s; background: transparent; }
.whatsapp-float img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.whatsapp-float:hover { transform: scale(1.1); }

/* --- 7. RESPONSIVIDADE --- */
@media (max-width: 1024px) {
    .bento-container { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 450px 450px; }
    .bento-column-split { grid-column: span 2; flex-direction: row; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    nav ul { display: none; }
    .mobile-menu-toggle { display: block; }
    .logo img { max-height: none; max-width: 60vw; height: auto; }
    .section-title { font-size: 1.7rem; margin-bottom: 2rem; }
    .about-text h2 { font-size: 1.7rem; }
    .bento-title { font-size: 1.5rem; }
    .hero-bento, .portfolio, .services { padding: 2rem 1rem; }
    .bento-container { grid-template-columns: 1fr; grid-template-rows: auto; gap: 1rem; }
    .bento-column-split { flex-direction: column; grid-column: auto; }
    .bento-card, .bento-small-card { min-height: 400px; }
    .bento-cta-button { width: 100%; justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .portfolio-grid-images { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; gap: 3rem; }
    .blog-page-title { font-size: 1.8rem; }
    .article-container { padding: 2rem 1.5rem; }
    .process-step { flex-direction: column; gap: 0.5rem; }
}



/* Faz a caixa da imagem ocupar o espaço que sobra na lateral */
.about-image-container {
    flex: 1; 
    min-width: 300px; /* Garante um tamanho mínimo */
    display: flex;
    justify-content: center; /* Centraliza a imagem no espaço dela */
    align-items: center; /* Centraliza verticalmente em relação ao texto */
}

/* Garante que em celulares a imagem fique 100% e com margem */
@media (max-width: 768px) {
    .about-image-container {
        width: 100%;
        margin-top: 30px;
    }
}