:root {
    --vermelho-escuro: #B22222;
    --cinza-escuro: #2D2D2D;
    --gradiente-vermelho: linear-gradient(45deg, #990000, #B22222);
    --verde-whatsapp: #25D366;
    --azul-visita: #1a56db;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    scroll-behavior: smooth;
    line-height: 1.6;
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.sticky-header {
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background-color: rgba(45, 45, 45, 0.92);
    backdrop-filter: blur(10px);
}

.navbar-toggler { border-color: rgba(255, 255, 255, 0.5); }
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}
.nav-link:hover { transform: translateY(-2px); color: white; }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 50%;
    background-color: #dc3545;
    transition: all 0.3s ease;
}
.nav-link:hover::after { width: 80%; left: 10%; }

/* ==========================================================================
   BOTÕES CTA
   ========================================================================== */
.btn-whatsapp {
    background: var(--verde-whatsapp);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: 2px solid var(--verde-whatsapp);
}
.btn-whatsapp:hover {
    background: #1EBE57;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

/* NOVO: Botão visitar loja física */
.btn-visitar-loja {
    background: var(--azul-visita);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border: 2px solid var(--azul-visita);
    text-decoration: none;
}
.btn-visitar-loja:hover {
    background: #1447c0;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.35);
}

.btn-light {
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero-section {
    background: url('img/bghome.jpg') center/cover no-repeat;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    background: rgba(10, 10, 10, 0.85);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}
.z-2 { z-index: 2; position: relative; }

/* Badge de credibilidade no hero */
.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(178, 34, 34, 0.25);
    border: 1px solid rgba(178, 34, 34, 0.5);
    color: #fca5a5;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Destaque colorido na headline */
.hero-destaque {
    color: #fca5a5;
}

/* Prova social no hero */
.hero-social-proof {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
}

/* Horário no hero */
.hero-horario {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* ==========================================================================
   CARDS DE SERVIÇOS E DIFERENCIAIS
   ========================================================================== */
.service-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--vermelho-escuro);
    padding-left: 1.5rem;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.service-card h5 {
    margin-top: 0.5rem;
    font-weight: 700;
    color: var(--cinza-escuro);
}

/* ==========================================================================
   SEÇÃO DE OFERTA
   ========================================================================== */
.offer-section {
    background-color: #fff8f8;
    border-top: 1px solid #f0d0d0;
    border-bottom: 1px solid #f0d0d0;
}

/* ==========================================================================
   ANIMAÇÃO DE ENTRADA
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-section {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* ==========================================================================
   DEPOIMENTOS
   ========================================================================== */
.testimonial-card {
    background: white;
    border-radius: 15px;
    height: 100%;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid var(--vermelho-escuro);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.testimonial-card::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: -10px; left: 10px;
    color: rgba(178, 34, 34, 0.1);
    font-family: Georgia, serif;
    z-index: 0;
}
.testimonial-card p { position: relative; z-index: 1; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { position: relative; overflow: hidden; }
footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 5px;
    background: var(--gradiente-vermelho);
}

/* ==========================================================================
   BOTÃO VOLTAR AO TOPO
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--vermelho-escuro);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); background-color: #990000; color: white; }

/* ==========================================================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px; right: 30px;
    background-color: var(--verde-whatsapp);
    color: white;
    width: 60px; height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
    z-index: 999;
    text-decoration: none;
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}
.floating-whatsapp.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    color: white;
}

/* ==========================================================================
   MENSAGEM BOAS-VINDAS FLUTUANTE
   ========================================================================== */
.floating-message {
    position: fixed;
    bottom: 100px; right: 30px;
    background-color: #fff;
    color: #333;
    padding: 1rem;
    border-radius: 10px;
    border-left: 5px solid var(--verde-whatsapp);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 998;
    max-width: 280px;
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-message:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }
.floating-message p { margin: 0.5rem 0; font-size: 0.95rem; line-height: 1.4; }
.floating-message p:last-child { margin-bottom: 0; }
.floating-message::after {
    content: '';
    position: absolute;
    bottom: -10px; right: 20px;
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 5px; right: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}
.close-btn:hover { color: #333; }

/* ==========================================================================
   LOADER DO MODAL
   ========================================================================== */
.loader-autoskap {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    width: 40px; height: 40px;
    animation: spin 1.5s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   FORMULÁRIO DO MODAL DE CAPTAÇÃO
   ========================================================================== */
#modalCaptacaoLead .modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

#formCaptacaoLead .form-control,
#formCaptacaoLead .form-select {
    border-radius: 10px;
    border: 1.5px solid #dee2e6;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-size: 1rem;
}
#formCaptacaoLead .form-control:focus,
#formCaptacaoLead .form-select:focus {
    border-color: var(--vermelho-escuro);
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.12);
}

.btn-submit-lead {
    background: var(--gradiente-vermelho);
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-submit-lead:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 34, 34, 0.35);
    color: white;
}

/* Botão de destino final (passo 3) — herda estilo do canal,
   mas com animação de entrada para chamar atenção */
#btn-destino-final {
    animation: pulsarCTA 1.8s ease-in-out infinite;
}
@keyframes pulsarCTA {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    50%       { box-shadow: 0 0 0 10px rgba(37,211,102,0); }
}
/* Para canal loja (azul) ajusta a cor do pulso */
#btn-destino-final.btn-visitar-loja {
    animation: pulsarCTALoja 1.8s ease-in-out infinite;
}
@keyframes pulsarCTALoja {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26,86,219,0.35); }
    50%       { box-shadow: 0 0 0 10px rgba(26,86,219,0); }
}

/* ==========================================================================
   RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 768px) {
    .hero-section { padding: 80px 0; }
    .display-4   { font-size: 2.2rem; }
    .back-to-top { bottom: 15px; left: 15px; }
    .floating-whatsapp { bottom: 20px; right: 20px; }
}

/* ==========================================================================
   MODO ESCURO
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    body.auto-dark-mode { background-color: #121212; color: #f0f0f0; }
    body.auto-dark-mode .sticky-header { background-color: rgba(18, 18, 18, 0.95); }
    body.auto-dark-mode .service-card,
    body.auto-dark-mode .testimonial-card {
        background-color: #1e1e1e;
        color: #f0f0f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    body.auto-dark-mode .service-card h5,
    body.auto-dark-mode .accordion-button { color: #f0f0f0; }
    body.auto-dark-mode .bg-light { background-color: #1a1a1a !important; }
    body.auto-dark-mode .offer-section { background-color: #2a1a1a; border-color: #442a2a; }
    body.auto-dark-mode .accordion-item {
        background-color: #1e1e1e;
        border-color: rgba(255, 255, 255, 0.1);
    }
    body.auto-dark-mode .accordion-body { color: #ccc; }
    body.auto-dark-mode .accordion-button::after { filter: invert(1) grayscale(100%) brightness(200%); }
    body.auto-dark-mode #modalCaptacaoLead .modal-content {
        background-color: #1e1e1e;
        color: #f0f0f0;
    }
    body.auto-dark-mode #formCaptacaoLead .form-control,
    body.auto-dark-mode #formCaptacaoLead .form-select {
        background-color: #2d2d2d;
        border-color: #444;
        color: #f0f0f0;
    }
    body.auto-dark-mode #formCaptacaoLead label { color: #ccc; }
    body.auto-dark-mode .floating-message { background-color: #1e1e1e; color: #f0f0f0; }
    body.auto-dark-mode .floating-message::after { border-color: #1e1e1e transparent transparent transparent; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-header {
    padding: 80px 0;
    position: relative;
    color: white;
    background-size: cover;
    background-position: center;
}
.blog-content-area { background-color: #fff; }
.entry-title { color: var(--cinza-escuro); }
.entry-meta { font-size: 0.9rem; }
.entry-meta a { text-decoration: none; color: var(--vermelho-escuro); font-weight: 500; }
.entry-meta a:hover { text-decoration: underline; }
.entry-content { line-height: 1.75; font-size: 1.1rem; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2rem; margin-bottom: 1rem; font-weight: 700; color: var(--cinza-escuro); }
.entry-content p { margin-bottom: 1.25rem; }
.entry-content a { color: var(--vermelho-escuro); text-decoration: underline; }
.entry-content blockquote {
    border-left: 4px solid var(--vermelho-escuro);
    padding-left: 1.5rem;
    font-style: italic;
    color: #6c757d;
    margin: 2rem 0;
}
.entry-content img { max-width: 100%; height: auto; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.post-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid var(--vermelho-escuro);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.post-card:hover { transform: translateY(-10px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); }
.post-card-thumbnail { display: block; }
.post-card-thumbnail img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-card .entry-title a { color: var(--cinza-escuro); text-decoration: none; }
.post-card .entry-title a:hover { color: var(--vermelho-escuro); }
.post-card .entry-summary p { margin-bottom: 0; font-size: 0.95rem; }

.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.pagination .page-numbers { display: inline-block; padding: 0.5rem 1rem; border: 1px solid #dee2e6; border-radius: 0.25rem; text-decoration: none; color: var(--vermelho-escuro); }
.pagination .page-numbers:hover { background-color: #f8f9fa; }
.pagination .page-numbers.current { background-color: var(--vermelho-escuro); color: white; border-color: var(--vermelho-escuro); }

/* Blog CTA Banner */
.blog-cta-banner {
    background-color: #f7f7f7;
    border-left: 5px solid var(--vermelho-escuro);
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.blog-cta-banner .cta-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.blog-cta-banner h3 { font-weight: 700; color: var(--cinza-escuro); margin-bottom: 0.5rem; }
.blog-cta-banner p { color: #555; max-width: 600px; margin-left: auto; margin-right: auto; margin-bottom: 1.5rem; }
.blog-cta-banner .btn-cta-banner {
    background: var(--verde-whatsapp);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: none;
}
.blog-cta-banner .btn-cta-banner:hover { background: #1EBE57; transform: scale(1.05); box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3); }
.blog-cta-banner small { display: block; margin-top: 1rem; color: #777; }

/* ==========================================================================
   MODO ESCURO — BLOG
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    body.auto-dark-mode .blog-content-area { background-color: #121212; }
    body.auto-dark-mode .entry-title,
    body.auto-dark-mode .entry-content h2,
    body.auto-dark-mode .entry-content h3,
    body.auto-dark-mode .entry-content h4 { color: #f0f0f0; }
    body.auto-dark-mode .post-card { background-color: #1e1e1e; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
    body.auto-dark-mode .post-card .entry-title a { color: #f0f0f0; }
    body.auto-dark-mode .post-card .entry-title a:hover { color: #ff5c5c; }
    body.auto-dark-mode .entry-meta,
    body.auto-dark-mode .entry-summary { color: #adb5bd; }
    body.auto-dark-mode .pagination .page-numbers { border-color: rgba(255,255,255,0.2); color: #ff5c5c; }
    body.auto-dark-mode .pagination .page-numbers:hover { background-color: #1e1e1e; }
    body.auto-dark-mode .pagination .page-numbers.current { background-color: #ff5c5c; border-color: #ff5c5c; color: #121212; }
    body.auto-dark-mode .blog-cta-banner { background-color: #1e1e1e; border-color: #ff5c5c; }
    body.auto-dark-mode .blog-cta-banner h3 { color: #f0f0f0; }
    body.auto-dark-mode .blog-cta-banner p,
    body.auto-dark-mode .blog-cta-banner small { color: #adb5bd; }
}