/* ============================================================
   cnpj.css — BuscaCNPJ Gratis
   Design Premium V2.0 — 2026-03-07
   ============================================================ */

:root {
  --primary: #2563eb;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --secondary: #6366f1;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-dark: rgba(30, 41, 59, 0.8);
  --text: #1e293b;
  --text-muted: #64748b;
  --border: rgba(226, 232, 240, 0.8);
  --border-focus: #3b82f6;
  --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 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: rgba(15, 23, 42, 0.9);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(30, 41, 59, 0.8);
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
  }
}

/* ── Reset & Core ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Gradients */
body::before {
  content: ''; position: fixed; top: -10%; right: -5%; width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  z-index: -1; pointer-events: none; filter: blur(60px);
}
body::after {
  content: ''; position: fixed; bottom: -5%; left: -5%; width: 30vw; height: 30vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  z-index: -1; pointer-events: none; filter: blur(60px);
}

/* ── Typography ── */
h1, h2, h3 { letter-spacing: -0.025em; font-weight: 800; color: var(--text); }

/* ── Header ── */
header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--surface); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
}
.logo { 
  font-size: 1.6rem; font-weight: 900; color: var(--text); 
  text-decoration: none; display: flex; align-items: center; 
  letter-spacing: -0.04em; gap: 2px;
}
.logo span { color: var(--primary); }
nav { display: flex; gap: 2.5rem; align-items: center; }
nav a { 
  color: var(--text-muted); text-decoration: none; 
  font-weight: 700; transition: all 0.2s; font-size: 0.95rem; 
  letter-spacing: -0.01em; position: relative;
}
nav a:hover { color: var(--primary); }

/* ── Home Page Special Styles ── */
.home-page { 
  display: flex; flex-direction: column; min-height: 100vh; 
}
.home-hero {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 20px; text-align: center;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 100%);
  margin-top: -64px; /* Compensação do header */
}
.home-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); margin-bottom: 1.5rem; line-height: 1.1; }
.home-hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 3rem; }

.search-container {
  max-width: 700px; width: 100%; margin: 0 auto; position: relative;
  background: var(--glass-bg); padding: 10px; border-radius: 24px;
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  display: flex; gap: 10px; backdrop-filter: blur(24px);
}
.search-container input {
  flex: 1; border: none; background: transparent; padding: 16px 18px;
  font-size: 1rem; color: var(--text); outline: none; font-family: inherit;
}
.search-container input::placeholder {
  font-size: 0.95rem; color: var(--text-muted); opacity: 0.8;
}
.search-container button {
  background: var(--primary); color: white; border: none; padding: 0 32px;
  border-radius: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s;
}
.search-container button:hover { background: var(--primary-hover); transform: scale(1.02); }

/* Card Grid on Home */
.recent-grid {
  max-width: 1200px; margin: 0 auto 100px; padding: 40px 20px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px;
}
.company-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 24px; text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px;
}
.company-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.company-card strong { font-size: 1.1rem; color: var(--text); display: block; }
.company-card span { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; font-family: monospace; }

/* ── Detail Page Layout ── */
/* ── Status Badges ── */
.badge {
  display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.badge.ba { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; } /* Ativa */
.badge.bb { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; } /* Baixada/Inapta */
.badge.bo { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; } /* Outros/Suspensa */

@media (prefers-color-scheme: dark) {
  .badge.ba { background: rgba(21, 128, 61, 0.2); color: #4ade80; border-color: rgba(74, 222, 128, 0.3); }
  .badge.bb { background: rgba(185, 28, 28, 0.2); color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
  .badge.bo { background: rgba(146, 64, 14, 0.2); color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); }
}

/* ── Breadcrumbs ── */
.bc {
  display: flex; align-items: center; gap: 8px; margin-bottom: 32px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted);
}
.bc a {
  color: var(--text-muted); text-decoration: none; transition: color 0.2s;
  padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,0.03);
}
.bc a:hover { color: var(--primary); background: rgba(37, 99, 235, 0.05); }

@media (prefers-color-scheme: dark) {
  .bc a { background: rgba(255,255,255,0.05); }
}

.page-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 20px 120px; }

.company-hero {
  background: var(--surface); border: 1px solid var(--border); border-radius: 32px;
  padding: 48px; margin-bottom: 40px; box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.company-hero::after {
  content: ''; position: absolute; top: 0; right: 0; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  pointer-events: none;
}

.copy-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.company-title { font-size: clamp(1.5rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 0.5rem; }

.btn-copy {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s; color: var(--text);
}
.btn-copy:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); transform: translateY(-2px); }
.btn-copy svg { width: 16px; height: 16px; opacity: 0.7; }

/* ── Sections ── */
.sec-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--primary); margin: 64px 0 24px; display: flex; align-items: center; gap: 12px; }
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.info-box { background: var(--surface); padding: 24px; border-radius: 18px; border: 1px solid var(--border); transition: all 0.3s; }
.info-box:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.info-box .data-label { display: block; font-size: 0.75rem; text-transform: uppercase; font-weight: 800; color: var(--text-muted); margin-bottom: 8px; }
.info-box p { font-size: 1.1rem; font-weight: 700; color: var(--text); }

/* ── Affiliate/Partners ── */
.partner-section {
  background: var(--bg-dark); color: white; border-radius: 40px; padding: 80px 40px;
  margin-top: 100px; position: relative; overflow: hidden; text-align: center;
}
.partner-section h2 { color: white; font-size: 2.5rem; margin-bottom: 1.5rem; }
.partner-section p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 3rem; }

.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; max-width: 1000px; margin: 0 auto; text-align: left; }
.partner-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px; padding: 40px; backdrop-filter: blur(10px); transition: all 0.3s;
}
.partner-card:hover { background: rgba(255,255,255,0.08); transform: scale(1.02); }
.partner-card h3 { color: white; margin-bottom: 1rem; }
.partner-price { font-size: 2.5rem; font-weight: 900; margin: 1.5rem 0; color: #fff; }
.partner-price span { font-size: 1rem; opacity: 0.6; }

.btn-cta {
  background: white; color: black; padding: 16px 32px; border-radius: 16px;
  text-decoration: none; font-weight: 800; display: inline-block; transition: all 0.2s;
}
.btn-cta:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }

/* ── Cambly Hybrid Banner ── */
.cambly-banner-card {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px;
    background: #ffffff !important; border-radius: 24px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); align-items: center;
    text-align: left; margin: 40px auto; color: #1a1a1a !important;
    max-width: 1000px;
}
.cambly-content { padding: 40px; }
.cambly-logo { height: 24px; width: auto; margin-bottom: 20px; display: block; }
.cambly-title { 
    font-family: 'Inter', sans-serif; font-size: 1.8rem !important; 
    font-weight: 800; line-height: 1.2; color: #1a1a1a !important; 
    margin: 0 0 12px !important;
}
.cambly-text { 
    font-size: 1rem !important; color: #333333 !important; 
    margin-bottom: 20px !important; line-height: 1.5 !important;
    font-weight: 400 !important;
    display: block !important; visibility: visible !important;
}
.cambly-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.cambly-price { font-size: 1.6rem; font-weight: 900; color: #1a1a1a !important; }
.cambly-price span { font-size: 0.8rem; opacity: 0.7; color: #666 !important; }
.cambly-badge { 
    background: #ff4757; color: white !important; padding: 4px 10px; 
    border-radius: 6px; font-size: 0.7rem; font-weight: 700; 
    text-transform: uppercase; 
}
.cambly-cta { 
    display: inline-block; background: #FFCB3C; color: #1a1a1a !important; 
    padding: 14px 28px; border-radius: 50px; font-weight: 800; 
    font-size: 1rem; text-decoration: none; transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(255, 203, 60, 0.3); text-align: center;
}
.cambly-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255, 203, 60, 0.4); }
.cambly-image-side { min-height: 400px; background-size: cover; background-position: center; }

@media (max-width: 800px) {
    .cambly-banner-card { grid-template-columns: 1fr; gap: 0; margin: 20px 0; }
    .cambly-image-side { order: -1; min-height: 220px; border-radius: 0; }
    .cambly-content { padding: 30px 20px; text-align: center; }
    .cambly-title { font-size: 1.5rem !important; }
    .cambly-text { font-size: 0.95rem !important; }
    .cambly-logo { margin: 0 auto 15px; }
}

/* ── Novo Banner Cambly da ViniciusCodes ── */
.promo-banner { background: linear-gradient(135deg, #fffbeb, #fef3c7); border: 1px solid #fde68a; border-radius: 20px; margin: 40px 0 64px; display: grid; grid-template-columns: 1.2fr 0.8fr; box-shadow: var(--shadow-sm); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; font-family: 'Inter', sans-serif; }
.promo-banner:hover { box-shadow: var(--shadow-md); border-color: var(--border-focus); transform: translateY(-2px); }
.promo-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.promo-image { background-image: url('https://images.unsplash.com/photo-1516321497487-e288fb19713f?auto=format&fit=crop&q=80&w=800'); background-size: cover; background-position: center; min-height: 300px; }
.promo-brand { display: flex; align-items: center; margin-bottom: 24px; }
.promo-brand img { height: 28px; width: auto; }
@media (prefers-color-scheme: dark) { .promo-brand img { filter: brightness(0) invert(1); } }
.promo-banner h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; color: var(--text); line-height: 1.2; letter-spacing: -0.02em; }
.promo-banner p { color: var(--text-muted); margin-bottom: 24px; font-size: 1.05rem; line-height: 1.6; }
.promo-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 32px; }
.promo-price .amount { font-size: 2.2rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.promo-price .term { font-size: 0.95rem; color: var(--text-muted); font-weight: 500; }
.promo-price .badge { background: #fee2e2; color: #b91c1c; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; margin-left: 8px; }
.promo-cta { background: #fca311; color: #111; text-decoration: none; padding: 16px 32px; border-radius: 100px; font-weight: 700; transition: all 0.3s; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 10px; width: fit-content; border: none; cursor: pointer; }
.promo-cta:hover { transform: scale(1.02); background: #f59e0b; }
@media (prefers-color-scheme: dark) { 
    .promo-price .badge { background: rgba(239, 68, 68, 0.2); color: #fca5a5; } 
    .promo-banner { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(217, 119, 6, 0.15)); border-color: rgba(245, 158, 11, 0.2); }
}
@media (max-width: 768px) { 
    .promo-banner { grid-template-columns: 1fr; margin: 32px 0; border-radius: 16px; }
    .promo-image { order: -1; min-height: 180px; }
    .promo-content { padding: 32px 24px; }
    .promo-banner h3 { font-size: 1.5rem; margin-bottom: 12px; }
    .promo-price { margin-bottom: 24px; flex-wrap: wrap; }
    .promo-cta { width: 100%; justify-content: center; }
}

/* ── Footer ── */
footer { padding: 80px 20px; border-top: 1px solid var(--border); text-align: center; }
footer nav { justify-content: center; margin-bottom: 2rem; }
footer p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 1rem; text-align: center; }
  nav { gap: 1.2rem; flex-wrap: wrap; justify-content: center; width: 100%; }
  
  .home-hero { margin-top: 0; padding: 40px 20px; }
  .home-hero h1 { font-size: 2.2rem; }
  .home-hero p { font-size: 1rem; margin-bottom: 2rem; }
  
  .search-container { flex-direction: column; padding: 12px; border-radius: 20px; gap: 8px; }
  .search-container input { padding: 14px; text-align: center; font-size: 16px; }
  .search-container button { padding: 16px; width: 100%; border-radius: 12px; }

  .company-hero { padding: 32px 20px; text-align: center; }
  .copy-group { justify-content: center; gap: 10px; }
  .btn-copy { flex: 1 1 100%; justify-content: center; padding: 14px; font-size: 0.95rem; }
  
  .badge { margin: 0 auto 20px; }
  .bc { flex-wrap: wrap; justify-content: center; line-height: 1.6; }
  
  .info-grid { grid-template-columns: 1fr; gap: 16px; }
  .info-box { grid-column: 1 / -1 !important; padding: 20px; }
  .info-box p { word-break: break-word; }
  
  .sec-title { text-align: center; justify-content: center; margin: 48px 0 20px; }
  
  .partner-section { padding: 60px 20px; }
  .page-wrap { padding: 20px 20px 80px; }
  .bc { margin-bottom: 20px; }
}
