/* ============================================================
   ESTILO MOBILE-FIRST — FRANCELINO TURISMO (SEO & SPEED)
   Google Fonts carregado via preload no header.php (sem @import)
   ============================================================ */

:root {
    --azul-profundo: #04061a;
    --azul-brand: #0E487B;
    --ouro: #fbbf24;
    --laranja: #FF5C00;
    --cinza-bg: #f8fafc;
    --header-mobile: 75px;
    --header-desktop: 110px;
    --safe-padding: 20px;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,0.06);
    --secondary-brand: #25D366; /* Verde WhatsApp */
}

/* RESET & BASE (MOBILE-FIRST) */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body { 
    background: var(--cinza-bg); 
    font-family: 'Open Sans', sans-serif; 
    color: #334155; 
    line-height: 1.6; 
    overflow-x: hidden;
    padding-top: var(--header-mobile); /* Base mobile */
    font-size: 16px;
}

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--safe-padding); }

/* ═══════════════════════════════════════════════════════════ */
/* HEADER RESPONSIVO (ESCALÁVEL)                              */
/* ═══════════════════════════════════════════════════════════ */
.main-header { 
    height: var(--header-mobile); 
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999; 
    display: flex; align-items: center; 
    background: rgba(4, 6, 26, 0.95); 
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }

.logo { display: flex; align-items: center; }
.logo img { height: 70px; width: auto; filter: brightness(0) invert(1); transition: 0.3s; }

/* Menu no mobile: simplificado */
.nav-menu { display: none; } /* Oculto por padrão no mobile para limpar o topo */

.btn-voltar { 
    background: var(--ouro); color: #000 !important; 
    padding: 8px 15px; border-radius: 10px; 
    font-weight: 800; font-family: Montserrat; text-decoration: none; 
    font-size: 0.7rem; text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(251,191,36,0.3);
}

/* ═══════════════════════════════════════════════════════════ */
/* HERO ACIMA DA DOBRA (MOBILE ATOMIZADO)                     */
/* ═══════════════════════════════════════════════════════════ */
.hero-premium { 
    width: 100%; height: 350px; 
    background-size: cover; background-position: center; 
    display: flex; align-items: center; position: relative;
    margin-bottom: 40px;
}
.hero-premium::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(4,6,26,0.88), rgba(4,6,26,0.7)); }

.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 20px; text-align: center; color: #fff; }
.hero-tag { background: var(--ouro); color: #000; padding: 4px 12px; border-radius: 5px; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.hero-content h1 { font-family: Montserrat; font-weight: 900; font-size: 2.2rem; line-height: 1.1; margin-bottom: 15px; text-transform: uppercase; letter-spacing: -1px; }
.hero-content p { font-size: 1rem; color: #fff; font-weight: 400; line-height: 1.4; }

/* ═══════════════════════════════════════════════════════════ */
/* GRID DE POSTS (SCANABLE MOBILE)                            */
/* ═══════════════════════════════════════════════════════════ */
.section-title-clean { margin-bottom: 30px; }
.section-title-clean h2 { font-family: Montserrat; font-weight: 900; font-size: 1.5rem; text-transform: uppercase; color: #1e293b; position: relative; padding-left: 15px; }
.section-title-clean h2::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--azul-brand); border-radius: 5px; }

.post-list-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }

.post-card { 
    background: #fff; border-radius: 25px; overflow: hidden; 
    box-shadow: var(--shadow); text-decoration: none; color: inherit; 
    display: flex; flex-direction: column; transition: 0.3s;
}
.post-card a { text-decoration: none; color: inherit; }

.post-card img { width: 100%; height: 220px; object-fit: cover; }
.post-card-content { padding: 25px; }
.post-card-content span { background: #f1f5f9; color: var(--azul-brand); padding: 5px 12px; border-radius: 8px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.post-card-content h3 { font-family: Montserrat; font-size: 1.25rem; font-weight: 850; line-height: 1.3; margin-bottom: 12px; color: #0f172a; }
.post-card-content p { font-size: 0.9rem; color: #475569; line-height: 1.6; margin-bottom: 20px; }
.post-card-cta { font-family: Montserrat; font-weight: 900; color: var(--azul-brand); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

/* ═══════════════════════════════════════════════════════════ */
/* SINGLE POST (MOBILE OPTIMIZED)                            */
/* ═══════════════════════════════════════════════════════════ */
.single-post-container { padding: 25px !important; border-radius: 0 !important; box-shadow: none !important; }
.single-post-container p { margin-bottom: 25px; font-size: 1.05rem; }
.single-post-container h2 { font-family: Montserrat; font-weight: 900; font-size: 1.8rem; margin: 40px 0 20px; line-height: 1.2; color: #0f172a; }

/* Correção: Centralizar e limitar imagens que estouram no Mobile/Desktop */
.single-post-container img, 
.single-post-container video, 
.single-post-container iframe { 
    max-width: 100% !important; 
    height: auto !important; 
    display: block !important; 
    margin: 30px auto !important; 
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* WhatsApp CTA Mobile First */
.whatsapp-channel-card { background: #0c0a09; border-radius: 20px; padding: 30px; color: #fff; text-align: center; margin-top: 50px; }
.wa-card-image { display: none; } /* Oculto no mobile para velocidade */
.wa-card-body h3 { font-family: Montserrat; font-weight: 900; font-size: 1.4rem; margin-bottom: 15px; }
.wa-card-body p { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin-bottom: 25px; }
.wa-btn-canal { 
    background: #25D366; color: #fff !important; width: 100%; justify-content: center;
    padding: 20px; border-radius: 12px; font-weight: 900; font-size: 1rem; 
    height: 60px; /* Touch target superior a 48px */
}

/* ═══════════════════════════════════════════════════════════ */
/* TABLE OF CONTENTS (INDICE AUTOMÁTICO)                      */
/* ═══════════════════════════════════════════════════════════ */
.toc-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    border-left: 5px solid var(--azul-brand);
}
.toc-title {
    font-family: Montserrat;
    font-weight: 800;
    font-size: 0.9rem;
    color: #1e293b;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 12px; position: relative; padding-left: 20px; }
.toc-list li::before { content: "→"; position: absolute; left: 0; color: var(--azul-brand); font-weight: 900; }
.toc-list a {
    color: var(--azul-brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.2s;
}
.toc-list a:hover { color: var(--laranja); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════ */
/* SIDEBAR DE OFERTA STICKY                                   */
/* ═══════════════════════════════════════════════════════════ */
.post-layout-grid { display: flex; flex-direction: column; gap: 40px; }

.offer-sticky-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.offer-card-img { width: 100%; height: 200px; object-fit: cover; background: #eee; }

.offer-card-body { padding: 25px; }

.offer-meta-box {
    background: #fff;
    border: 1px solid var(--ouro);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.offer-meta-item { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; color: #475569; }
.offer-meta-item i { color: #1e293b; width: 14px; }
.status-badge { color: #dc2626; font-weight: 800; text-transform: uppercase; }

.offer-price-area { margin-bottom: 25px; }
.offer-price-area small { font-size: 0.75rem; color: #475569; text-transform: uppercase; letter-spacing: 1px; }
.offer-price-main { font-family: Montserrat; font-weight: 900; font-size: 2.2rem; color: #1e293b; display: block; line-height: 1; margin: 5px 0; }
.offer-price-installments { font-size: 0.8rem; color: #475569; }

.btn-offer-primary { 
    background: #25D366; color: #fff !important; 
    display: flex; align-items: center; justify-content: center;
    padding: 18px; border-radius: 14px; 
    font-family: Montserrat; font-weight: 900; font-size: 1.1rem; 
    text-decoration: none; text-transform: uppercase; 
    transition: 0.3s; margin-bottom: 12px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}
.btn-offer-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.3); }

.btn-offer-secondary {
    border: 1.5px solid #25D366; color: #25D366 !important;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px; border-radius: 14px;
    font-family: Montserrat; font-weight: 800; font-size: 0.85rem;
    text-decoration: none; text-transform: uppercase;
    transition: 0.2s;
}
.btn-offer-secondary:hover { background: rgba(37, 211, 102, 0.05); }

.offer-social-footer { 
    margin-top: 25px; padding-top: 20px; border-top: 1px solid #f1f5f9; 
    text-align: center;
}
.offer-social-footer span { font-size: 0.7rem; color: #475569; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 15px; }
.offer-social-icons { display: flex; justify-content: center; gap: 12px; }
.offer-social-icons a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-size: 1.1rem; }
.social-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }
.social-tk { background: #000; }
.social-yt { background: #ff0000; }

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER & BUTTONS                                           */
/* ═══════════════════════════════════════════════════════════ */
.main-footer { background: var(--azul-profundo); padding: 60px 0 30px; color: #fff; text-align: center; }
.footer-brand-logo { height: 60px; width: auto; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer-tagline { font-family: Montserrat; font-weight: 600; font-size: 0.9rem; color: #b8c5d4; margin-bottom: 30px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; }
.social-links a { width: 48px; height: 48px; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.1); }

.floating-wa { width: 55px !important; height: 55px !important; bottom: 20px !important; right: 20px !important; }

/* ═══════════════════════════════════════════════════════════ */
/* DESKTOP ENHANCEMENTS (MIN-WIDTH: 992PX)                    */
/* ═══════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
    body { padding-top: var(--header-desktop); font-size: 18px; }
    .container { padding: 0 50px; }
    
    .main-header { height: var(--header-desktop); }
    .logo img { height: 110px; }
    .nav-menu { display: flex; gap: 30px; align-items: center; } /* Mostra o menu no desktop com espaçamento */
    
    .pure-text-link { 
        color: #e2e8f0 !important; 
        text-decoration: none !important; 
        font-family: 'Montserrat', sans-serif; 
        font-weight: 800; 
        font-size: 0.9rem; 
        text-transform: uppercase; 
        letter-spacing: 1px;
        transition: 0.3s;
    }
    .pure-text-link:hover { color: var(--ouro) !important; }

    .btn-voltar { padding: 12px 30px; font-size: 0.85rem; }
    
    .hero-premium { height: 500px; }
    .hero-content h1 { font-size: 4rem; }
    .hero-content p { font-size: 1.3rem; }
    
    .post-list-grid { grid-template-columns: repeat(3, 1fr); }
    .post-card img { height: 260px; }
    
    .single-post-container { padding: 60px !important; border-radius: 30px !important; box-shadow: var(--shadow) !important; }
    
    .whatsapp-channel-card { display: grid; grid-template-columns: 1fr 1.2fr; text-align: left; padding: 0; overflow: hidden; }
    .wa-card-image { display: block; min-height: 400px; background-image: url('https://images.unsplash.com/photo-1542332213-9b5a5a3fad35?auto=format&fit=crop&w=1200'); background-size: cover; background-position: center; }
    .wa-card-body { padding: 60px; }
    .wa-card-body h3 { font-size: 2.2rem; }
    .wa-btn-canal { width: fit-content; }

    /* Layout Desktop: Blog Post + Sidebar */
    .post-layout-grid { 
        display: grid; 
        grid-template-columns: 1fr 340px; 
        gap: 40px; 
        align-items: start; 
    }
    
    .sticky-sidebar {
        position: sticky;
        top: 130px; /* Alinhado após o cabeçalho desktop */
        z-index: 10;
    }
    
    .single-post-container { margin: 0 !important; width: 100% !important; max-width: none !important; }
    
    .main-footer { padding: 100px 0 0; }
    .footer-brand-logo { height: 100px; }
    .footer-tagline { font-size: 1.2rem; }
}

/* 🛡️ BLOQUEIO DE ÍCONES (PURE TEXT LINK) */
.pure-text-link i, .pure-text-link svg, .pure-text-link::before { display: none !important; width: 0 !important; }
