/* shared.css — base compartilhada entre todas as páginas do Atlas de Dados Brasil */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-50:  #E1F5EE;
  --green-100: #9FE1CB;
  --green-400: #1D9E75;
  --green-600: #0F6E56;
  --green-800: #085041;
  --green-900: #04342C;
  --gray-50:   #F7F7F5;
  --gray-100:  #EFEFEC;
  --gray-300:  #D0CECC;
  --gray-500:  #888780;
  --gray-900:  #1A1A18;
  --white:     #FFFFFF;
  --font-display: 'Sora', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --max-w: 1100px;
  --max-w-text: 720px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 28px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-name {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--green-800); display: block;
}
.nav-logo-sub {
  font-size: 10px; font-weight: 500; color: var(--green-400);
  letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--gray-500); transition: color var(--transition); }
.nav-links a:hover { color: var(--green-800); }
.nav-links a.active { color: var(--green-800); font-weight: 500; }
.nav-cta {
  font-size: 13px; font-weight: 500; color: var(--green-800) !important;
  border: 1px solid var(--green-400); border-radius: var(--radius-sm);
  padding: 7px 18px; transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--green-800) !important; color: var(--white) !important; }

/* PAGE HERO (inner pages) */
.page-hero {
  background: var(--green-50);
  border-bottom: 1px solid var(--green-100);
  padding: 56px 28px 48px;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; }
.page-hero-label {
  font-size: 11px; font-weight: 500; color: var(--green-400);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px);
  font-weight: 600; color: var(--green-800); line-height: 1.2;
  margin-bottom: 12px; letter-spacing: -0.3px;
}
.page-hero p { font-size: 15px; color: var(--green-600); max-width: 560px; line-height: 1.7; }

/* MAIN CONTENT */
.page-content { max-width: var(--max-w); margin: 0 auto; padding: 56px 28px 80px; }
.text-content { max-width: var(--max-w-text); }

/* SECTION LABEL */
.section-label {
  font-size: 11px; font-weight: 500; color: var(--green-400);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}

/* TYPOGRAPHY HELPERS */
.prose h2 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--green-800); margin: 40px 0 12px; line-height: 1.3;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 15px; font-weight: 500; color: var(--gray-900);
  margin: 24px 0 8px;
}
.prose p { font-size: 14px; color: var(--gray-500); line-height: 1.8; margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-left: 18px; margin-bottom: 14px; }
.prose li { font-size: 14px; color: var(--gray-500); line-height: 1.75; margin-bottom: 6px; }
.prose strong { color: var(--gray-900); font-weight: 500; }
.prose a { color: var(--green-600); text-decoration: underline; text-underline-offset: 3px; }

/* DIVIDER */
.prose-divider { border: none; border-top: 1px solid var(--gray-100); margin: 40px 0; }

/* FOOTER */
footer { border-top: 1px solid var(--gray-100); padding: 24px 28px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: var(--gray-500); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { font-size: 12px; color: var(--gray-500); transition: color var(--transition); }
.footer-links a:hover { color: var(--green-800); }

/* LOGO SVG */
.logo-svg { width: 36px; height: 36px; flex-shrink: 0; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-content { padding: 40px 20px 60px; }
  .page-hero { padding: 40px 20px 36px; }
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-hero h1  { animation: fadeUp 0.45s ease both; }
.page-hero p   { animation: fadeUp 0.45s 0.1s ease both; }
.page-content  { animation: fadeUp 0.45s 0.15s ease both; }
