
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIÁVEIS */
:root {
    --cor-primaria: #2c3f4d;
    --cor-secundaria: #eaf1f1;
    --cor-acento: #01afff;
    --cor-texto-escuro: #2c3f4d;
    --cor-texto-claro: #5a7a8f;
    --fonte-principal: 'Montserrat', sans-serif;
    --altura-header: 70px;
}

/* BASE */
body {
    font-family: var(--fonte-principal);
    background-color: #f5f8fa;
    color: var(--cor-texto-escuro);
    line-height: 1.7;
    padding-top: var(--altura-header);
}

html {
    scroll-behavior: smooth;
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(9, 13, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    height: var(--altura-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0s; /* Remove a animação de esconder */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--cor-secundaria);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--cor-acento);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--cor-secundaria);
    border-radius: 3px;
    transition: 0.3s;
}

/* HERO BLOG */
.blog-hero {
    background: linear-gradient(135deg, #175b88 0%, #004c83 50%, #139ddd 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    color: var(--cor-secundaria);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* CONTAINER */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* FILTROS */
.blog-filters {
    background-color: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.blog-filters .container {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--cor-acento);
}

.search-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--cor-texto-claro);
}

.categories-filter {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid #e0e0e0;
    background-color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.category-btn:hover {
    border-color: var(--cor-acento);
    color: var(--cor-acento);
}

.category-btn.active {
    background-color: var(--cor-acento);
    border-color: var(--cor-acento);
    color: white;
}

/* BLOG CONTENT */
.blog-content {
    padding: 4rem 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* POST CARD */
.post-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(1, 175, 255, 0.15);
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--cor-primaria), var(--cor-acento));
}

.post-content {
    padding: 1.8rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--cor-texto-claro);
}

.post-category {
    background-color: rgba(1, 175, 255, 0.1);
    color: var(--cor-acento);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
}

.post-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--cor-primaria);
    line-height: 1.4;
}

.post-excerpt {
    color: var(--cor-texto-claro);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.read-time {
    color: var(--cor-texto-claro);
    font-size: 0.9rem;
}

.read-more {
    color: var(--cor-acento);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 0.8rem;
}

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results h3 {
    font-size: 1.8rem;
    color: var(--cor-primaria);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--cor-texto-claro);
}

/* NEWSLETTER */
.newsletter-section {
    background: linear-gradient(135deg, var(--cor-primaria) 0%, #1a2a35 100%);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    color: var(--cor-secundaria);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-content p {
    color: rgba(234, 241, 241, 0.8);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background-color: var(--cor-acento);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #0891d4;
}

/* FOOTER */
footer {
    background-color: rgba(30, 45, 56, 0.95);
    padding: 2rem;
    text-align: center;
    color: var(--cor-secundaria);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(235, 241, 234, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
}

.social-icon:hover {
    background-color: var(--cor-acento);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--cor-secundaria);
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #01afff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--altura-header);
        flex-direction: column;
        background-color: rgba(9, 13, 15, 0.98);
        width: 100%;
        padding: 2rem;
        gap: 0;
        transition: left 0.3s;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1.1rem;
    }

    .blog-filters .container {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .categories-filter {
        justify-content: center;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 35px;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}
/* MODAL OVERLAY */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* CONTEÚDO DO MODAL */
.modal-content {
    background-color: white;
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    margin: 2rem auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* BOTÃO FECHAR */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background-color: var(--cor-acento);
    transform: rotate(90deg);
}

/* HEADER DO MODAL */
.modal-header {
    position: relative;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.modal-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 3rem 0;
    font-size: 0.9rem;
    color: var(--cor-texto-claro);
    flex-wrap: wrap;
}

.modal-header h1 {
    padding: 1rem 3rem 2rem;
    font-size: 2.5rem;
    color: var(--cor-primaria);
    line-height: 1.3;
}

/* CORPO DO MODAL */
.modal-body {
    padding: 0 3rem 3rem;
    color: var(--cor-texto-escuro);
    line-height: 1.8;
}

.modal-body h2 {
    color: var(--cor-primaria);
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.modal-body h3 {
    color: var(--cor-primaria);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.modal-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-body strong {
    color: var(--cor-primaria);
    font-weight: 600;
}

.modal-body ul,
.modal-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.modal-body li {
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.modal-body ul li {
    list-style-type: disc;
}

.modal-body ol li {
    list-style-type: decimal;
}

/* FOOTER DO MODAL */
.modal-footer {
    padding: 2rem 3rem 3rem;
    border-top: 1px solid #e0e0e0;
}

.btn-voltar {
    background-color: var(--cor-primaria);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-voltar:hover {
    background-color: var(--cor-acento);
    transform: translateX(-5px);
}

/* RESPONSIVO MODAL */
@media (max-width: 768px) {
    .post-modal {
        padding: 1rem 0.5rem;
    }

    .modal-content {
        margin: 1rem auto;
    }

    .modal-image {
        height: 250px;
    }

    .modal-header h1 {
        padding: 1rem 1.5rem 1.5rem;
        font-size: 1.8rem;
    }

    .modal-meta {
        padding: 1rem 1.5rem 0;
        font-size: 0.85rem;
    }

    .modal-body {
        padding: 0 1.5rem 2rem;
    }

    .modal-body h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .modal-body p {
        font-size: 1rem;
    }

    .modal-footer {
        padding: 1.5rem 1.5rem 2rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-image {
        height: 200px;
        border-radius: 12px 12px 0 0;
    }

    .modal-header h1 {
        font-size: 1.5rem;
    }

    .modal-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}
/* CONTATO SECTION */
.contato-section {
    background: linear-gradient(135deg, #2c3f4d 0%, #1a2a35 100%);
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.contato-content {
    max-width: 600px;
    margin: 0 auto;
}

.contato-content h2 {
    color: var(--cor-secundaria);
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contato-content p {
    color: rgba(234, 241, 241, 0.8);
    margin-bottom: 2rem;
    text-align: center;
}

.contato-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--cor-secundaria);
    font-weight: 500;
    font-size: 0.95rem;
}

form input,
form textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

form textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(234, 241, 241, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cor-acento);
    background-color: rgba(255, 255, 255, 0.15);
}

.contato-form button {
    padding: 1rem 2rem;
    background-color: var(--cor-acento);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    margin-top: 0.5rem;
    width: 100%;
}

.contato-form button:hover {
    background-color: #0891d4;
}

.contato-form button:disabled {
    background-color: #666;
    cursor: not-allowed;
}

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid #28a745;
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid #dc3545;

}
