/*
Theme Name: Connexa Tecnologia
Theme URI: https://connexatecnologia.com.br
Author: CONNEXA TECNOLOGIA LTDA
Author URI: https://connexatecnologia.com.br
Description: Tema institucional para verificação de empresa. Layout enxuto e moderno em dark mode com gradientes roxo/rosa, mostrando dados oficiais da Receita Federal.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: connexa-tecnologia
Tags: business, one-page, dark, responsive, custom-colors
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #141420;
    --bg-card: #1a1a2e;
    --bg-card-hover: #20203a;

    --gradient-start: #8b5cf6;
    --gradient-end: #ec4899;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);

    --text-primary: #ffffff;
    --text-secondary: #a8a8b3;
    --text-tertiary: #6b6b7d;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);

    --success: #10b981;
    --whatsapp: #25d366;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background effects */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.site-header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.site-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
.site-logo-light { opacity: 0.6; font-weight: 400; }
.site-logo-cnpj {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-left: 8px;
    padding-left: 8px;
    border-left: 1px solid var(--border);
}

.site-nav { display: flex; gap: 32px; }
.site-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--text-primary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 768px) {
    .site-logo-cnpj { display: none; }
    .site-nav { display: none; }
    .site-nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .menu-toggle { display: block; }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}
.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    background: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ===== HERO ===== */
.hero {
    padding: 140px 0 80px;
    text-align: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge-icon { font-size: 1rem; }

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

/* ===== QUICK CARDS (3 cards rapidos) ===== */
.quick-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 950px;
    margin: 0 auto;
}
.quick-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
}
.quick-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.quick-card-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    font-weight: 600;
    margin-bottom: 10px;
}
.quick-card-value {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gradient-start);
    font-weight: 700;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
    text-align: center;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 56px;
    text-align: center;
    line-height: 1.6;
}
.section-header { text-align: center; }

/* ===== SERVICES SECTION ===== */
.services-main {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.services-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.services-main-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: var(--radius);
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
    position: relative;
    z-index: 1;
}
.services-main-icon svg { width: 28px; height: 28px; }
.services-main-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}
.services-main-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.services-list-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    list-style: none;
}
.services-list li {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition);
}
.services-list li:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-hover);
    color: var(--text-primary);
}
.services-list li::before {
    content: '✓';
    color: var(--gradient-start);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}
.about-text strong { color: var(--text-primary); }

.data-cards {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    gap: 16px;
}
.data-row:hover { border-color: var(--border-hover); }
.data-row-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
}
.data-row-value {
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
}
.badge-success-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}
.stat-box:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}
.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: 1fr; }
    .data-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .data-row-value { text-align: left; }
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.05) 100%);
}
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.contact-box h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 12px;
}
.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 1.05rem;
}
.contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 24px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.6;
}
.footer-col a { color: var(--text-secondary); transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }

.footer-brand-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 14px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== WHATSAPP FLOAT BUTTON ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 99;
    transition: var(--transition);
    color: white;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg { width: 32px; height: 32px; }

/* ===== ANIMATIONS ===== */
/* Progressive enhancement: elementos so ficam invisiveis se JS carregou.
   Se JS falhar/demorar, conteudo aparece normal sem animacao. */
.reveal {
    opacity: 1;
    transform: none;
}
body.js-loaded .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
body.js-loaded .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== UTILITIES ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
