/* ============================================
   Estilos do Site - Marcelo Consultoria Financeira
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --secondary: #5E35B1;
  --secondary-dark: #4527A0;
  --secondary-light: #7E57C2;
  --accent: #FF6F00;
  --accent-hover: #E65100;
  --bg: #f5f7fa;
  --bg-white: #ffffff;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --max-article: 900px;
  --max-grid: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  color: white;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-grid);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo span {
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--accent-hover);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   Container & Grid
   ============================================ */
.container {
  max-width: var(--max-grid);
  margin: 0 auto;
  padding: 60px 20px;
}

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

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.05rem;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* ============================================
   Article Cards
   ============================================ */
.article-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

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

.card-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
}

.card-image.blue { background: linear-gradient(135deg, #1565C0, #42A5F5); }
.card-image.purple { background: linear-gradient(135deg, #5E35B1, #7E57C2); }
.card-image.orange { background: linear-gradient(135deg, #E65100, #FF6F00); }
.card-image.teal { background: linear-gradient(135deg, #00695C, #26A69A); }
.card-image.indigo { background: linear-gradient(135deg, #283593, #5C6BC0); }
.card-image.pink { background: linear-gradient(135deg, #AD1457, #EC407A); }

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  background: rgba(21, 101, 192, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  width: fit-content;
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--text);
}

.card-body h3 a {
  color: inherit;
}

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

.card-body p {
  color: var(--text-light);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   Article Page Styles
   ============================================ */
.article-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 60px 20px 50px;
  text-align: center;
}

.article-header .disclaimer {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  max-width: var(--max-article);
  margin: 0 auto 16px;
  line-height: 1.3;
}

.article-meta {
  font-size: 0.9rem;
  opacity: 0.85;
}

.article-content {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px;
  margin-top: -30px;
  position: relative;
  z-index: 1;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--secondary);
  margin: 28px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  background: rgba(21, 101, 192, 0.05);
  padding: 16px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-light);
}

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

/* ============================================
   Related Articles
   ============================================ */
.related-articles {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 2px solid var(--border);
}

.related-articles h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
  border: none;
  padding: 0;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
}

.related-list li {
  background: var(--bg);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  transition: background 0.2s;
}

.related-list li:hover {
  background: rgba(21, 101, 192, 0.08);
}

.related-list a {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================
   Newsletter Section
   ============================================ */
.newsletter {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
}

.newsletter h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-form button {
  padding: 14px 32px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

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

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #0a1628;
  color: rgba(255,255,255,0.7);
  padding: 48px 20px 24px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--max-grid);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.footer-section p,
.footer-section li {
  font-size: 0.88rem;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: rgba(255,255,255,0.7);
}

.footer-section a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  max-width: var(--max-grid);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

.legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

/* ============================================
   Disclaimer Banner
   ============================================ */
.disclaimer-banner {
  background: #FFF3E0;
  border-left: 4px solid var(--accent);
  padding: 12px 20px;
  margin-bottom: 0;
  font-size: 0.88rem;
  color: #5D4037;
}

/* ============================================
   Privacy / Terms / About Pages
   ============================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
  color: white;
  padding: 50px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
}

.page-content {
  max-width: var(--max-article);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.page-content h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

.page-content h3 {
  font-size: 1.15rem;
  color: var(--secondary);
  margin: 24px 0 10px;
}

.page-content p {
  margin-bottom: 14px;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  padding-left: 24px;
  margin: 12px 0;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }
  .hero { padding: 50px 20px; }
  .articles-grid { grid-template-columns: 1fr; }
  .article-content { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .site-logo { font-size: 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: 100%; }
}
