/* ===== BLOG NORDESTE FERRAMENTAS ===== */
/* CSS principal do blog com paleta laranja + azul royal */
/* INTEGRADO DIRETAMENTE NO SITE PRINCIPAL */

/* ===== VARIÁVEIS CSS ===== */
:root {
    /* Cores principais */
    --primary-orange: #FF6B35;
    --primary-blue: #1E3A8A;
    --secondary-orange: #FF8A65;
    --secondary-blue: #3B82F6;
    
    /* Cores neutras */
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray: #64748B;
    --dark-gray: #334155;
    
    /* Cores de estado */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Tipografia */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Bordas */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET E BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* ===== UTILITÁRIOS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.highlight {
    color: var(--primary-orange);
}

/* ===== BOTÕES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: var(--font-medium);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
    min-width: 140px;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.company-name {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--primary-blue);
    margin: 0;
}

.company-tagline {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--primary-orange);
    background: var(--light-gray);
}

.nav-link.active {
    color: var(--primary-orange);
    background: var(--light-gray);
}

.portal-btn {
    background: var(--primary-orange);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: var(--font-semibold);
}

.portal-btn:hover {
    background: var(--secondary-orange);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 0 var(--spacing-2xl);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    margin-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== SEÇÕES GERAIS ===== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-bold);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BLOG SECTION ===== */
.blog {
    padding: var(--spacing-2xl) 0;
    background: var(--light-gray);
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.category-btn {
    background: var(--white);
    border: 2px solid var(--light-gray);
    color: var(--gray);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: var(--font-medium);
}

.category-btn:hover,
.category-btn.active {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: var(--spacing-lg);
}

.blog-card-category {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--white);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: var(--font-medium);
    margin-bottom: var(--spacing-sm);
}

.blog-card-title {
    font-size: 1.3rem;
    font-weight: var(--font-semibold);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.blog-card-excerpt {
    color: var(--gray);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--gray);
}

.blog-actions {
    text-align: center;
}

/* ===== EQUIPAMENTOS SECTION ===== */
.equipamentos {
    padding: var(--spacing-2xl) 0;
}

.equipamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.equipamento-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.equipamento-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.equipamento-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
}

.equipamento-card h3 {
    font-size: 1.3rem;
    font-weight: var(--font-semibold);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-sm);
}

.equipamento-card p {
    color: var(--gray);
    line-height: 1.6;
}

.equipamentos-actions {
    text-align: center;
}

/* ===== SOBRE SECTION ===== */
.sobre {
    padding: var(--spacing-2xl) 0;
    background: var(--light-gray);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.sobre-description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

.sobre-features {
    margin-bottom: var(--spacing-xl);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.feature i {
    color: var(--success);
    font-size: 1.2rem;
}

.sobre-image {
    text-align: center;
}

.sobre-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

/* ===== CONTATO SECTION ===== */
.contato {
    padding: var(--spacing-2xl) 0;
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
}

.contato-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contato-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.contato-item i {
    color: var(--primary-orange);
    font-size: 1.5rem;
    margin-top: 2px;
}

.contato-item h4 {
    font-size: 1.1rem;
    font-weight: var(--font-semibold);
    color: var(--dark-gray);
    margin-bottom: var(--spacing-xs);
}

.contato-item p {
    color: var(--gray);
    line-height: 1.6;
}

.contato-form {
    background: var(--light-gray);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo h3 {
    font-size: 1.3rem;
    font-weight: var(--font-semibold);
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: var(--font-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--primary-blue);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contato-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .blog-categories {
        justify-content: center;
    }
    
    .equipamentos-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== SCROLL SUAVE ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ESTADOS DE HOVER ===== */
.nav-link:hover,
.btn:hover,
.category-btn:hover {
    transform: translateY(-2px);
}

/* ===== FOCUS VISIBLE ===== */
.btn:focus-visible,
.nav-link:focus-visible,
.category-btn:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ===== MODAL DO BLOG INTEGRADO ===== */
.post-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 2rem auto;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-xl);
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.modal-header h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    font-weight: var(--font-bold);
    margin-bottom: var(--spacing-sm);
}

.close-btn {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--light-gray);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-btn:hover {
    background: var(--error);
    color: var(--white);
    transform: scale(1.1);
}

.post-full-content {
    line-height: 1.8;
    color: var(--dark-gray);
    font-size: 1.1rem;
}

.post-full-content h1,
.post-full-content h2,
.post-full-content h3,
.post-full-content h4,
.post-full-content h5,
.post-full-content h6 {
    margin: var(--spacing-lg) 0 var(--spacing-md);
    color: var(--primary-blue);
    font-weight: var(--font-semibold);
}

.post-full-content p {
    margin-bottom: var(--spacing-md);
}

.post-full-content ul,
.post-full-content ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.post-full-content li {
    margin-bottom: var(--spacing-xs);
}

/* ===== MELHORIAS DO BLOG INTEGRADO ===== */
.loading-posts {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-posts {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--gray);
}

.no-posts i {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
    color: var(--primary-orange);
}

.blog-error {
    text-align: center;
    padding: var(--spacing-lg);
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.blog-error i {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.post-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.post-ai {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: var(--font-medium);
}

.tag-more {
    background: var(--light-gray);
    color: var(--gray);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: var(--font-medium);
}

.read-more-btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== RESPONSIVIDADE DO MODAL ===== */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        padding: var(--spacing-md);
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .close-btn {
        top: var(--spacing-sm);
        right: var(--spacing-sm);
    }
}
