/* ==========================================================================
   CSS Design System - 51.771.120 RAFAEL DOS SANTOS (BM Verification Page)
   ========================================================================== */

:root {
    --primary-color: #0f2b5c;
    --primary-light: #1e40af;
    --primary-dark: #0a192f;
    --accent-color: #2563eb;
    --success-color: #059669;
    --success-light: #d1fae5;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-dark: #334155;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-light);
    color: #ffffff;
}

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

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: #ffffff;
    border-color: var(--primary-light);
    color: var(--primary-light);
}

.btn-hero-primary {
    background-color: #2563eb;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-hero-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    font-size: 1.05rem;
    backdrop-filter: blur(10px);
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.btn-secondary {
    background-color: #0f172a;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #334155;
}

.btn-outline-dark {
    border-color: #0f172a;
    color: #0f172a;
}

.btn-outline-dark:hover {
    background-color: #0f172a;
    color: #ffffff;
}

/* Header & Nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}

.company-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-light);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #091930 0%, #153e75 50%, #0f172a 100%);
    color: #ffffff;
    padding: 80px 0 90px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(5, 150, 105, 0.2);
    border: 1px solid rgba(5, 150, 105, 0.5);
    color: #34d399;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    border-radius: 50%;
    display: inline-block;
}

.green-pulse {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
    text-align: left;
}

.info-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.card-value {
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Generic Section Styles */
.section-padding {
    padding: 80px 0;
}

.section-light {
    background-color: #ffffff;
}

.section-header {
    margin-bottom: 48px;
}

.section-subtitle {
    display: block;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent-color));
    margin: 16px auto 0;
    border-radius: 2px;
}

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

/* Company Section */
.company-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.overview-box {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.overview-box:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.overview-box h3 {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.overview-box h3 i {
    color: var(--primary-light);
}

.overview-box p {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-main);
    font-weight: 500;
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li i {
    color: var(--success-color);
    background-color: var(--success-light);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.fact-sheet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}

.fact-item {
    text-align: center;
    padding: 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.fact-item:last-child {
    border-right: none;
}

.fact-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 4px;
}

.fact-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Document Section Styles (Authentic Receita Federal Look) */
.doc-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 16px;
}

.doc-status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--success-color);
    font-size: 0.95rem;
}

.doc-buttons {
    display: flex;
    gap: 12px;
}

.cnpj-document-wrapper {
    background-color: #ffffff;
    border: 2px solid #333333;
    padding: 20px;
    font-family: Arial, Helvetica, sans-serif;
    color: #000000;
    box-shadow: var(--shadow-xl);
    max-width: 960px;
    margin: 0 auto;
}

.cnpj-document-header-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #333333;
    margin-bottom: 12px;
    font-family: monospace;
}

.cnpj-card-box {
    border: 2px solid #000000;
    padding: 12px;
    background-color: #ffffff;
}

.cnpj-header {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 2px solid #000000;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.brasao-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cnpj-header-titles {
    text-align: center;
    flex-grow: 1;
}

.cnpj-header-titles h1 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

.cnpj-header-titles h2 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 4px;
}

.cnpj-header-titles h3 {
    font-size: 13px;
    font-weight: bold;
}

/* CNPJ Table Grid */
.cnpj-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cnpj-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.cnpj-field {
    border: 1px solid #000000;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #ffffff;
    min-height: 48px;
}

.flex-1 { flex: 1; }
.flex-2 { flex: 2; }
.flex-3 { flex: 3; }
.flex-4 { flex: 4; }

.field-title {
    font-size: 9px;
    font-weight: normal;
    color: #333333;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.field-content {
    font-size: 12px;
    font-weight: bold;
    color: #000000;
    text-transform: uppercase;
    word-break: break-word;
}

.field-sub {
    font-size: 10px;
    font-weight: bold;
    color: #000000;
}

.highlight-text {
    font-size: 13px;
}

.highlight-active {
    color: #047857;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cnpj-document-footer {
    margin-top: 16px;
    padding-top: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.normative-text {
    margin-bottom: 4px;
}

.issued-text {
    font-weight: normal;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.contact-card {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(15, 43, 92, 0.1));
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.contact-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.contact-link {
    display: inline-block;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.badge-address {
    display: inline-block;
    background-color: var(--bg-main);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-status {
    color: #34d399;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0f172a;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2000;
    border-left: 4px solid var(--success-color);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal h2 {
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.modal p {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* Print Rules for Document */
@media print {
    body * {
        visibility: hidden;
    }
    #cnpjDocument, #cnpjDocument * {
        visibility: visible;
    }
    #cnpjDocument {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
    }
    .cnpj-document-header-meta {
        display: flex !important;
    }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .fact-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 16px;
    }
    .fact-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .main-nav, .header-actions {
        display: none;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 20px;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
    }

    .mobile-toggle {
        display: block;
    }

    .row-2-cols, .row-3-cols, .row-4-cols {
        flex-direction: column;
    }

    .cnpj-header {
        flex-direction: column;
        text-align: center;
    }

    .doc-actions-bar {
        flex-direction: column;
        text-align: center;
    }
}
