/* ============================================
   BLOG - Nautilus Geotecnologia
   Estilos para páginas do blog
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --azul-marinho: #1B3A6B;
    --verde-oliva: #6B7F3B;
    --verde-oliva-hover: #5a6c32;
    --bege-creme: #F5EDE0;
    --branco: #FFFFFF;
    --texto-escuro: #2C2C2C;
    --cinza-medio: #6C757D;
}

html { overflow-x: hidden; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--texto-escuro);
    line-height: 1.6;
    background: var(--branco);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--azul-marinho);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */

header {
    position: fixed; top: 0; left: 0; right: 0;
    background: var(--branco);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000; padding: 15px 0;
}

.header-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-brand { display: flex; align-items: center; gap: 15px; }

.logo img { height: 70px; }

.header-brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.header-brand-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 2.3rem;
    color: var(--azul-marinho);
    letter-spacing: 1px;
}

.header-brand-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--verde-oliva);
    letter-spacing: 3px;
}

.header-crea { font-size: 0.85rem; color: var(--azul-marinho); font-weight: 600; }

.btn-header {
    background: var(--verde-oliva); color: var(--branco);
    padding: 10px 20px; border-radius: 5px; font-weight: 600;
    transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap;
}

.btn-header:hover { background: var(--verde-oliva-hover); transform: translateY(-2px); }

/* HERO DO BLOG */

.blog-hero {
    margin-top: 100px;
    background: linear-gradient(135deg, var(--azul-marinho) 0%, #2c5282 100%);
    color: var(--branco);
    padding: 80px 20px;
    text-align: center;
}

.blog-hero h1 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    color: var(--branco);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-hero p { font-size: 1.2rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* LISTA DE ARTIGOS */

.blog-list { max-width: 900px; margin: 60px auto; padding: 0 20px; }

.blog-card {
    background: var(--branco);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.blog-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }

.blog-card h2 { 
    font-size: 1.5rem; 
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-card h2 a { color: var(--azul-marinho); text-decoration: none; }

.blog-card h2 a:hover { color: #2c5282; text-decoration: underline; }

.blog-card time { display: block; color: var(--cinza-medio); font-size: 0.9rem; margin-bottom: 15px; }

.blog-card p { color: var(--texto-escuro); line-height: 1.6; margin-bottom: 15px; }

.blog-card .btn {
    display: inline-block;
    background: var(--verde-oliva);
    color: var(--branco);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.blog-card .btn:hover { background: var(--verde-oliva-hover); }

/* ARTIGO INDIVIDUAL */

.article-container { 
    max-width: 800px; 
    margin: 120px auto 40px; 
    padding: 0 20px;
    width: 100%;
}

.article-header { 
    margin-bottom: 40px; 
    padding-bottom: 20px; 
    border-bottom: 2px solid #e0e0e0; 
    text-align: center; 
}

.article-header h1 { 
    font-size: 2.2rem; 
    color: var(--azul-marinho); 
    margin-bottom: 15px; 
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-meta { 
    display: flex; 
    gap: 20px; 
    color: var(--cinza-medio); 
    font-size: 0.9rem; 
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
    text-align: center;
}

.article-content { 
    font-size: 1.1rem; 
    line-height: 1.8; 
    color: var(--texto-escuro);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content h2 {
    font-size: 1.6rem; color: var(--azul-marinho);
    margin-top: 40px; margin-bottom: 20px;
    padding-bottom: 10px; border-bottom: 1px solid #e0e0e0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content h3 { 
    font-size: 1.3rem; color: #2c5282; 
    margin-top: 30px; margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-content p { margin-bottom: 20px; }

.article-content ul, .article-content ol { margin-bottom: 20px; padding-left: 30px; }

.article-content li { margin-bottom: 10px; }

.article-content table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-content table thead { display: table; width: 100%; }
.article-content table tbody { display: table; width: 100%; }
.article-content table tr { display: table-row; }
.article-content table th, .article-content table td { 
    display: table-cell;
    border: 1px solid #e0e0e0; 
    padding: 12px; 
    text-align: left;
}

.article-content table th { background: var(--azul-marinho); color: var(--branco); }

.article-content blockquote {
    border-left: 4px solid var(--azul-marinho);
    padding: 15px 20px; margin: 20px 0;
    background: #f5f5f5; font-style: italic;
}

.article-content img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 8px; 
    margin: 20px 0;
    display: block;
}

/* CTA DO ARTIGO */

.article-cta {
    background: linear-gradient(135deg, var(--azul-marinho) 0%, #2c5282 100%);
    color: var(--branco); padding: 40px; border-radius: 8px;
    text-align: center; margin: 40px 0;
}

.article-cta h3 { 
    font-size: 1.5rem; 
    margin-bottom: 15px; 
    color: var(--branco);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-cta p { margin-bottom: 20px; opacity: 0.9; }

.article-cta .btn {
    display: inline-block; background: var(--branco); color: var(--azul-marinho);
    padding: 12px 30px; border-radius: 5px; text-decoration: none;
    font-weight: 700; transition: transform 0.3s ease;
}

.article-cta .btn:hover { transform: scale(1.05); }

/* AUTOR DO ARTIGO */

.article-author {
    display: flex; align-items: center; gap: 15px;
    padding: 20px; background: #f5f5f5; border-radius: 8px; margin: 40px 0;
}

.article-author img { width: 60px; height: 60px; border-radius: 50%; }

.article-author-info { font-size: 0.9rem; color: var(--cinza-medio); }

.article-author-info strong { display: block; color: var(--texto-escuro); font-size: 1rem; }

/* FOOTER */

footer { background: var(--azul-marinho); color: var(--branco); padding: 40px 20px 20px; }

.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; margin-bottom: 30px;
}

.footer-col h4 { color: var(--branco); margin-bottom: 1rem; }

.footer-col a { display: block; margin-bottom: 0.5rem; transition: color 0.3s; }

.footer-col a:hover { color: var(--bege-creme); }

.footer-bottom {
    text-align: center; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.9rem;
}

/* WHATSAPP FLOAT */

.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25D366; color: var(--branco);
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999; transition: all 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

/* LGPD BANNER */

.lgpd-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--azul-marinho); color: var(--branco);
    padding: 20px; z-index: 998; display: none;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}

.lgpd-banner.show { display: block; }

.lgpd-content {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; gap: 20px; flex-wrap: wrap;
}

.lgpd-content p { flex: 1; margin: 0; font-size: 0.9rem; }

.lgpd-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.lgpd-btn {
    padding: 10px 20px; border: none; border-radius: 5px;
    font-weight: 600; cursor: pointer; transition: all 0.3s;
}

.lgpd-btn.aceitar { background: var(--verde-oliva); color: var(--branco); }

.lgpd-btn.rejeitar { background: transparent; color: var(--branco); border: 1px solid var(--branco); }

.lgpd-btn.personalizar { background: var(--bege-creme); color: var(--azul-marinho); }

/* SEÇÃO BLOG NA HOME */

.blog-section {
    padding: 80px 20px;
    background: var(--bege-creme);
}

.blog-section .section-title {
    text-align: center;
    margin-bottom: 10px;
}

.blog-section .section-subtitle {
    text-align: center;
    color: var(--cinza-medio);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card-home {
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.blog-card-content {
    padding: 30px;
}

.blog-card-content time {
    display: block;
    color: var(--cinza-medio);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card-content h3 a {
    color: var(--azul-marinho);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-content h3 a:hover {
    color: var(--verde-oliva);
}

.blog-card-content p {
    color: var(--texto-escuro);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-blog {
    display: inline-block;
    color: var(--verde-oliva);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.btn-blog:hover {
    color: var(--verde-oliva-hover);
}

.blog-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-blog-all {
    display: inline-block;
    background: var(--verde-oliva);
    color: var(--branco);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-blog-all:hover {
    background: var(--verde-oliva-hover);
}

/* ============================================
   RESPONSIVO - MOBILE
   ============================================ */

@media (max-width: 768px) {
    /* Header */
    .header-crea { display: none; }
    .header-brand-name { font-size: 1rem; }
    .header-brand-sub { font-size: 0.65rem; }
    header { padding: 10px 0; }
    .logo img { height: 40px; }
    .btn-header { padding: 8px 14px; font-size: 0.85rem; }
    .header-content { padding: 0 15px; }
    
    /* Blog Hero */
    .blog-hero { margin-top: 70px; padding: 40px 15px; }
    .blog-hero h1 { font-size: 1.8rem; }
    .blog-hero p { font-size: 1rem; }
    
    /* Blog List */
    .blog-list { padding: 0 15px; margin: 30px auto; }
    .blog-card { padding: 20px; margin-bottom: 20px; }
    .blog-card h2 { font-size: 1.3rem; }
    .blog-card p { font-size: 0.95rem; }
    
    /* Article Container */
    .article-container { 
        margin-top: 80px; 
        padding: 0 15px;
        width: 100%;
    }
    
    /* Article Header */
    .article-header { margin-bottom: 25px; padding-bottom: 15px; }
    .article-header h1 { font-size: 1.5rem; line-height: 1.4; }
    
    /* Article Meta */
    .article-meta { 
        flex-direction: column; 
        gap: 8px;
        align-items: center;
        text-align: center;
        font-size: 0.85rem;
    }
    
    /* Article Content */
    .article-content { font-size: 1rem; line-height: 1.7; }
    .article-content h2 { font-size: 1.3rem; margin-top: 25px; margin-bottom: 15px; }
    .article-content h3 { font-size: 1.15rem; margin-top: 20px; margin-bottom: 12px; }
    .article-content p { margin-bottom: 15px; font-size: 0.95rem; }
    .article-content ul, .article-content ol { padding-left: 20px; margin-bottom: 15px; }
    .article-content li { margin-bottom: 8px; font-size: 0.95rem; }
    
    /* Tabelas - RESPONSIVAS COM SCROLL */
    .article-content table { 
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 15px 0;
    }
    .article-content table thead { display: table; width: 100%; table-layout: fixed; }
    .article-content table tbody { display: table; width: 100%; table-layout: fixed; }
    .article-content table tr { display: table-row; }
    .article-content table th, 
    .article-content table td { 
        display: table-cell;
        padding: 8px 6px; 
        font-size: 0.85rem;
    }
    
    /* Blockquote */
    .article-content blockquote { 
        padding: 12px 15px; 
        margin: 15px 0;
        font-size: 0.95rem;
        border-left-width: 3px;
    }
    
    /* Article CTA */
    .article-cta { padding: 25px 15px; margin: 25px 0; }
    .article-cta h3 { font-size: 1.2rem; margin-bottom: 12px; }
    .article-cta p { font-size: 0.9rem; margin-bottom: 15px; }
    .article-cta .btn { padding: 10px 25px; font-size: 0.9rem; }
    
    /* Article Author */
    .article-author { 
        flex-direction: column; 
        text-align: center;
        padding: 15px;
        margin: 25px 0;
    }
    .article-author img { width: 50px; height: 50px; }
    .article-author-info { font-size: 0.85rem; }
    
    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 20px; }
    .footer-col h4 { font-size: 1.1rem; }
    .footer-col a { font-size: 0.9rem; }
    .footer-bottom { font-size: 0.8rem; padding: 15px 10px; }
    footer { padding: 30px 15px 15px; }
    
    /* WhatsApp Float */
    .whatsapp-float { width: 50px; height: 50px; bottom: 15px; right: 15px; font-size: 1.5rem; }
    
    /* LGPD Banner */
    .lgpd-banner { padding: 15px; }
    .lgpd-content { flex-direction: column; text-align: center; gap: 15px; }
    .lgpd-content p { font-size: 0.8rem; }
    .lgpd-buttons { justify-content: center; width: 100%; }
    .lgpd-btn { padding: 8px 16px; font-size: 0.8rem; }
    
    /* Blog Section Home */
    .blog-section { padding: 40px 15px; }
    .blog-grid { grid-template-columns: 1fr; gap: 15px; }
    .blog-card-home { margin-bottom: 15px; }
    .blog-card-content { padding: 20px; }
    .blog-card-content h3 { font-size: 1.1rem; }
    .blog-card-content p { font-size: 0.9rem; }
    .blog-card-content time { font-size: 0.8rem; }
    .blog-cta { margin-top: 25px; }
    .btn-blog-all { padding: 10px 25px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
    /* Telas muito pequenas */
    .article-container { padding: 0 12px; }
    .article-header h1 { font-size: 1.3rem; }
    .article-content h2 { font-size: 1.2rem; }
    .article-content h3 { font-size: 1.05rem; }
    .article-content p { font-size: 0.9rem; }
    .blog-hero h1 { font-size: 1.5rem; }
    .blog-hero p { font-size: 0.9rem; }
    .blog-card h2 { font-size: 1.15rem; }
    .blog-card-content { padding: 15px; }
    .article-cta { padding: 20px 12px; }
    .article-cta h3 { font-size: 1.1rem; }
}
