/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", Georgia, serif;
}

body {
    background-color: #f2f4f8;
    color: #1c1c1c;
    line-height: 1.6;
    padding-top: 80px; /* evita pulo com header fixo */
}

/* CONTAINER PADRÃO */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */

.header {
    background-color: #ffffff;
    border-bottom: 2px solid #c9a14a;
    padding: 14px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: bold;
    color: #0a1f44;
}

.logo img {
    height: 40px;
}

/* MENU */
.nav a {
    margin-left: 22px;
    text-decoration: none;
    color: #0a1f44;
    font-size: 15px;
    font-weight: bold;
}

.nav a:hover {
    color: #c9a14a;
}

/* ================= MENU MOBILE ================= */

.menu-btn {
    display: none;
    background-color: #ffffff;
    border: 2px solid #0a1f44;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    color: #0a1f44;
    border-radius: 2px;
}

.menu-btn:hover {
    background-color: #c9a14a;
    color: #0a1f44;
}

/* ================= HERO SECTION ================= */

.hero {
    background: linear-gradient(120deg, #0a1f44, #1f3b7a);
    color: #ffffff;
    padding: 90px 0;
}

.hero h1 {
    font-size: 42px;
    max-width: 700px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 650px;
    margin-bottom: 25px;
}

/* BOTÃO PRINCIPAL */
.btn-primary {
    display: inline-block;
    background-color: #c9a14a;
    color: #0a1f44;
    padding: 12px 26px;
    font-weight: bold;
    border-radius: 3px;
    text-decoration: none;
    font-size: 15px;
}

.btn-primary:hover {
    background-color: #b08b3d;
}

/* ================= FEATURES ================= */

.features {
    padding: 60px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.feature-box {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 4px;
    border-left: 4px solid #c9a14a;
    box-shadow: 0 5px 18px rgba(0,0,0,0.05);
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0a1f44;
}

.feature-box p {
    font-size: 16px;
}

/* ================= ABOUT ================= */

.about {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #ddd;
}

.about h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #0a1f44;
}

.about p {
    max-width: 850px;
    font-size: 17px;
}

/* ================= BLOG ================= */

.blog {
    padding: 60px 0;
}

.blog h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #0a1f44;
}

.blog-card {
    background-color: #ffffff;
    padding: 22px;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
    transition: 0.2s;
}

.blog-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.blog-card h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 15px;
    margin-bottom: 12px;
}

.blog-card a {
    text-decoration: none;
    font-weight: bold;
    color: #1f3b7a;
}

.blog-card a:hover {
    color: #c9a14a;
}

/* ================= CONSULTING CTA ================= */

.consulting {
    background-color: #0a1f44;
    color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.consulting h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.consulting p {
    font-size: 18px;
    margin-bottom: 18px;
}

.btn-secondary {
    background-color: #c9a14a;
    color: #0a1f44;
    padding: 12px 30px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
}

.btn-secondary:hover {
    background-color: #b08b3d;
}

/* ================= FOOTER ================= */

.footer {
    background-color: #0b1428;
    color: #cccccc;
    padding: 60px 0 20px;
}

.footer h3 {
    color: #ffffff;
    margin-bottom: 12px;
    font-size: 18px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 6px;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    font-size: 15px;
}

.footer a:hover {
    color: #c9a14a;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    border-top: 1px solid #222;
    padding-top: 15px;
}

/* ================= HEADER FIXO ================= */

.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ================= BOTÃO VOLTAR AO TOPO ================= */

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #0a1f44;
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    font-size: 16px;
    cursor: pointer;
    display: none;
    border-radius: 3px;
    font-weight: bold;
}

.back-to-top:hover {
    background-color: #c9a14a;
}

/* ================= ANIMAÇÃO FADE ================= */

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= RESPONSIVO ================= */

@media (max-width: 900px) {
    .header .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav {
        text-align: center;
    }

    .nav a {
        margin: 0 10px;
        font-size: 14px;
    }

    .hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 800px) {
    .menu-btn {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        background-color: #ffffff;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid #ddd;
        text-align: center;
    }

    .nav a {
        padding: 10px 0;
        display: block;
        font-size: 16px;
    }

    .nav.nav-open {
        display: flex;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }
}

/* ================= BLOG PÁGINA INICIAL ================= */

.blog-posts {
    padding: 60px 0;
    background-color: #f2f4f8;
}

.blog-header {
    text-align: center;
    margin-bottom: 40px;
}

.blog-header h1 {
    font-size: 38px;
    color: #0a1f44;
    border-bottom: 2px solid #c9a14a;
    display: inline-block;
    padding-bottom: 10px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-left: 4px solid #c9a14a;
    border-radius: 4px;
    padding: 25px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(10,31,68,0.1);
}

.post-card h2 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #0a1f44;
}

.post-card h2 a {
    text-decoration: none;
    color: #0a1f44;
}

.post-card h2 a:hover {
    color: #c9a14a;
}

.post-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.post-card p {
    font-size: 16px;
    color: #1c1c1c;
    margin-bottom: 20px;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    background-color: #0a1f44;
    color: #ffffff;
    padding: 8px 18px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    border-radius: 3px;
    transition: 0.2s;
}

.read-more:hover {
    background-color: #c9a14a;
    color: #0a1f44;
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 15px;
    border: 1px solid #e1e1e1;
}

/* ================= PÁGINA DO POST INDIVIDUAL ================= */

.single-post {
    background: #ffffff;
    padding: 40px;
    border-radius: 4px;
    border-left: 4px solid #c9a14a;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin: 40px 0;
}

.single-post h1 {
    font-size: 36px;
    color: #0a1f44;
    margin-bottom: 15px;
    line-height: 1.2;
}

.single-post .post-meta {
    font-size: 15px;
    color: #666;
    padding-bottom: 15px;
    margin-bottom: 25px;
    border-bottom: 1px solid #e1e1e1;
}

.single-post .post-image {
    margin-bottom: 30px;
}

.single-post .post-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
}

.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: #1c1c1c;
}

.post-content h2, 
.post-content h3 {
    color: #0a1f44;
    margin: 25px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    margin: 20px 0;
}

.back-to-blog {
    display: inline-block;
    margin-bottom: 20px;
    color: #0a1f44;
    text-decoration: none;
    font-weight: bold;
}

.back-to-blog:hover {
    color: #c9a14a;
}

/* ================= SEM POSTS ================= */

.no-posts {
    text-align: center;
    padding: 60px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    color: #666;
}

.no-posts p {
    font-size: 18px;
}

/* ================= RESPONSIVO BLOG ================= */

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .single-post {
        padding: 25px;
    }
    
    .single-post h1 {
        font-size: 28px;
    }
    
    .blog-header h1 {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .post-card {
        padding: 20px;
    }
    
    .single-post {
        padding: 20px;
    }
}