/* Vendendo com IA — Portal Profissional */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Merriweather:wght@700;900&display=swap');

:root {
  --primary: #DC2626;
  --primary-dark: #B91C1C;
  --primary-light: #EF4444;
  --accent: #DC2626;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-dark: #111111;
  --bg-card: #FFFFFF;
  --text: #111111;
  --text-secondary: #555555;
  --text-light: #999999;
  --border: #E5E5E5;
  --border-light: #F0F0F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --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);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ========== HEADER ========== */
.header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}
.logo span { color: var(--primary); font-weight: 900; }

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-search {
  position: relative;
}

.header-search input {
  width: 220px;
  padding: 8px 36px 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: var(--font);
  background: var(--bg-alt);
  transition: all 0.2s;
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  width: 280px;
  background: var(--bg);
}

.header-search svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-light);
}

.header-subscribe {
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}

.header-subscribe:hover { background: var(--primary-dark); }

/* Navigation */
.nav {
  background: var(--bg-dark);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar { display: none; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.nav a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 44px;
  color: #D1D5DB;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: white; background: rgba(255,255,255,0.05); }
.nav a.active { color: white; border-bottom-color: var(--primary); }

/* ========== HERO SECTION ========== */
.hero {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.hero-main .tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-main h2 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  line-height: 1.25;
  color: white;
  margin-bottom: 12px;
}

.hero-main p {
  color: #D1D5DB;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 540px;
}

.hero-main .meta {
  margin-top: 16px;
  color: #9CA3AF;
  font-size: 0.8rem;
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-sidebar-card {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.hero-sidebar-card:hover { box-shadow: var(--shadow-md); }

.hero-sidebar-card .tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  width: fit-content;
}

.hero-sidebar-card h3 {
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-sidebar-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  flex: 1;
}

.hero-sidebar-card .meta {
  color: var(--text-light);
  font-size: 0.75rem;
  margin-top: 10px;
}

/* ========== CONTENT SECTIONS ========== */
.section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.section:last-child { border-bottom: none; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  transition: opacity 0.2s;
}

.section-more:hover { opacity: 0.7; }

/* Article Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Article Card */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  background: var(--bg-card);
}

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

.card-img {
  width: 100%;
  height: 180px;
  background-color: #EDE9FE;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-img .card-icon {
  font-size: 2.5rem;
  opacity: 0.15;
}

.card-img .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body { padding: 16px; }

.card-body h3 {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.72rem;
}

.card-meta span { display: flex; align-items: center; gap: 4px; }

/* Horizontal Card (for lists) */
.card-h {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.card-h:last-child { border-bottom: none; }

.card-h-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--border);
  min-width: 40px;
  line-height: 1;
}

.card-h-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.card-h-body h3:hover { color: var(--primary); }

.card-h-body p {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  background: linear-gradient(135deg, #1A1A1A, #2D2D2D);
  padding: 48px 0;
  text-align: center;
}

.newsletter h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter p {
  color: #C4B5FD;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 0.9rem;
  font-family: var(--font);
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--primary); }

.newsletter-form button {
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-form button:hover { background: var(--primary-dark); }

/* ========== FOOTER ========== */
.footer {
  background: var(--bg-dark);
  color: #9CA3AF;
  padding: 48px 0 24px;
}

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

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-top: 12px;
}

.footer h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer ul { list-style: none; }

.footer li { margin-bottom: 10px; }

.footer li a {
  font-size: 0.85rem;
  color: #9CA3AF;
  transition: color 0.2s;
}

.footer li a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a { color: #9CA3AF; transition: color 0.2s; }
.footer-bottom-links a:hover { color: white; }

/* ========== ARTICLE PAGE ========== */
.article-page { padding: 32px 0; }

.article-page .container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }

.article-page h1 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 16px;
  color: var(--text);
}

.article-page .article-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.article-page .article-meta-top .tag {
  background: var(--primary);
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.article-content { font-size: 1.05rem; line-height: 1.8; color: #374151; }

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.article-content p { margin-bottom: 1.25rem; }

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

.article-content li { margin-bottom: 0.5rem; }

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 1.5rem 0;
  background: #FEF2F2;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-content strong { color: var(--text); }

.article-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
}

/* CTA Box inside articles */
.cta-box {
  background: var(--primary);
  color: white;
  padding: 32px;
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
  text-align: center;
}

.cta-box h3 {
  color: white !important;
  font-size: 1.3rem;
  margin: 0 0 8px !important;
}

.cta-box p {
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 20px !important;
  font-size: 0.95rem;
}

.cta-box .btn {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-box .btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; }
  .hero-sidebar-card { min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .hero-main { min-height: 280px; padding: 24px; }
  .hero-main h2 { font-size: 1.4rem; }
  .hero-sidebar { flex-direction: column; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .article-page h1 { font-size: 1.7rem; }
  .nav-inner { gap: 0; }
  .nav a { padding: 0 12px; font-size: 0.72rem; }
}
