/* === FONTE BRASILEIRA — style.css === */
/* Mobile-first, pesquisador/analista, grafite + esmeralda */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif; color: #0F172A; background: #fff; line-height: 1.7; min-height: 100vh; display: flex; flex-direction: column; font-size: 16px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; font-size: 16px; }
h1, h2, h3, .section-title { font-family: 'Rubik', -apple-system, sans-serif; }

:root {
  --primary: #1E293B;
  --primary-light: #475569;
  --secondary: #059669;
  --secondary-light: #D1FAE5;
  --accent: #059669;
  --accent-hover: #047857;
  --text: #0F172A;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --bg-highlight: #ECFDF5;
  --border: #E2E8F0;
  --alert-bg: #FEF2F2;
  --alert-border: #DC2626;
  --alert-text: #991B1B;
  --info-bg: #ECFDF5;
  --info-border: #6EE7B7;
  --info-text: #065F46;
  --warn-bg: #FFFBEB;
  --warn-border: #FCD34D;
  --warn-text: #854D0E;
  --success-bg: #F0FDF4;
  --success-border: #86EFAC;
  --success-text: #166534;
  --radius: 8px;
}

/* === MOBILE BASE === */
.container { width: 100%; padding: 0 16px; }
.text-center { text-align: center; }
.flex-1 { flex: 1; }

/* === ALERT BANNER === */
.alert-banner { background: var(--alert-bg); border-bottom: 2px solid var(--alert-border); color: var(--alert-text); font-size: 13px; text-align: center; padding: 8px 14px; font-weight: 500; font-family: 'Rubik', sans-serif; line-height: 1.5; }

/* === HEADER === */
.header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Rubik', sans-serif; font-size: 17px; font-weight: 700; color: var(--primary); }
.logo-icon { width: 30px; height: 30px; background: var(--primary); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.logo-sub { display: none; font-size: 11px; color: var(--text-muted); font-weight: 400; font-family: 'Karla', sans-serif; }
.nav { display: none; }
.menu-btn { background: none; border: none; padding: 8px; cursor: pointer; color: var(--text-light); }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: #fff; }
.mobile-nav.active { display: block; }
.mobile-nav a { display: block; padding: 14px 16px; font-size: 15px; font-weight: 500; color: var(--text-light); border-bottom: 1px solid #f1f5f9; font-family: 'Rubik', sans-serif; }
.mobile-nav a:hover { background: var(--bg-alt); color: var(--secondary); }

/* === HERO === */
.hero { background: #fff; padding: 40px 16px 44px; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 26px; font-weight: 700; line-height: 1.2; margin-bottom: 12px; color: var(--text); }
.hero p { font-size: 16px; color: var(--text-light); margin-bottom: 24px; }
.hero-btns { display: flex; flex-direction: column; gap: 12px; }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: var(--radius); font-family: 'Rubik', sans-serif; font-weight: 600; font-size: 16px; transition: all 0.2s; border: none; cursor: pointer; width: 100%; }
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0F172A; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--bg-alt); }
.btn-danger { background: var(--alert-border); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-full { width: 100%; }

/* === SECTIONS === */
.section { padding: 48px 16px; }
.section-alt { background: var(--bg-alt); }
.section-highlight { background: var(--bg-highlight); }
.section-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.section-desc { color: var(--text-light); margin-bottom: 32px; font-size: 15px; }

/* === CAME FROM AD BOX === */
.ad-box { background: var(--bg-highlight); border: 2px solid var(--secondary); border-radius: var(--radius); padding: 20px; margin-bottom: 0; }
.ad-box h2 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.ad-box p { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }

/* === CARDS === */
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; transition: all 0.2s; }
.card:hover { box-shadow: 0 2px 12px rgba(5,150,105,0.06); border-color: var(--secondary); }
.card-icon { font-size: 22px; margin-bottom: 6px; }
.card h3 { font-family: 'Rubik', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.card:hover h3 { color: var(--secondary); }
.card p { font-size: 13px; color: var(--text-light); }
.card-meta { font-size: 11px; color: var(--text-muted); margin-top: 6px; font-family: 'Rubik', sans-serif; }
.card-h { display: flex; align-items: flex-start; gap: 12px; }
.card-h .card-icon { margin-bottom: 0; flex-shrink: 0; }
.card-tag { display: inline-block; font-size: 10px; font-weight: 600; color: var(--secondary); background: var(--secondary-light); padding: 2px 8px; border-radius: 4px; margin-bottom: 6px; font-family: 'Rubik', sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.link-arrow { color: var(--secondary); font-weight: 600; font-size: 13px; margin-top: 8px; display: inline-block; font-family: 'Rubik', sans-serif; }
.link-arrow:hover { text-decoration: underline; }

/* === OFFICIAL LINKS === */
.gov-links { display: grid; grid-template-columns: 1fr; gap: 8px; }
.gov-link { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; color: var(--text-light); transition: border-color 0.2s; }
.gov-link:hover { border-color: var(--secondary); }
.gov-link strong { color: var(--text); font-family: 'Rubik', sans-serif; }

/* === TRUST === */
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-center: center; }
.trust-item { text-align: center; }
.trust-icon { font-size: 22px; margin-bottom: 4px; }
.trust-label { font-family: 'Rubik', sans-serif; color: var(--text-light); font-size: 12px; font-weight: 500; }

/* === FORM === */
.form-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 4px; font-family: 'Rubik', sans-serif; }
.form-input { width: 100%; min-height: 48px; padding: 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 16px; outline: none; transition: all 0.2s; background: #fff; -webkit-appearance: none; }
.form-input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(5,150,105,0.1); }
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.form-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--secondary); flex-shrink: 0; }
.form-check label { font-size: 14px; color: var(--text-light); }
.form-check a { color: var(--secondary); text-decoration: underline; }
.form-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; font-family: 'Rubik', sans-serif; }

.success-box { background: var(--success-bg); border: 1px solid var(--success-border); border-radius: var(--radius); padding: 32px 20px; text-align: center; }
.success-box .icon { font-size: 36px; margin-bottom: 8px; }
.success-box h3 { font-family: 'Rubik', sans-serif; font-size: 18px; font-weight: 700; color: var(--success-text); margin-bottom: 6px; }
.success-box p { color: #047857; font-size: 14px; }
.hidden { display: none !important; }

/* === INFO/WARN === */
.info-box { background: var(--info-bg); border: 1px solid var(--info-border); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 20px; }
.info-box p { font-size: 14px; color: var(--info-text); margin: 0; font-family: 'Rubik', sans-serif; }
.warn-box { background: var(--warn-bg); border-left: 4px solid var(--warn-border); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 14px; margin-bottom: 20px; }
.warn-box p { font-size: 14px; color: var(--warn-text); margin: 0; font-family: 'Rubik', sans-serif; }

/* === ARTICLE === */
.article { padding: 32px 16px; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 14px; flex-wrap: wrap; font-family: 'Rubik', sans-serif; }
.breadcrumbs a:hover { color: var(--secondary); }
.article-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; font-family: 'Rubik', sans-serif; }
.article h1 { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.article h2 { font-size: 19px; font-weight: 700; margin-top: 28px; margin-bottom: 12px; }
.article p { color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }
.article ul, .article ol { margin-bottom: 12px; padding-left: 20px; }
.article li { list-style: disc; color: var(--text-light); line-height: 1.8; margin-bottom: 4px; }
.article ol li { list-style: decimal; }
.article a { color: var(--secondary); text-decoration: underline; }
.state-list { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 20px; }
.state-item { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.state-item strong { font-family: 'Rubik', sans-serif; color: var(--text); display: block; margin-bottom: 2px; font-size: 14px; }
.state-item span { font-size: 13px; color: var(--text-light); }
.state-item a { color: var(--secondary); font-size: 13px; }
.data-box { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.data-row { margin-bottom: 8px; }
.data-label { font-family: 'Rubik', sans-serif; font-weight: 600; color: #334155; font-size: 14px; display: block; }
.data-value { color: var(--text-light); font-size: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.faq-item h3 { font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.faq-item p { font-size: 13px; color: var(--text-light); margin: 0; }
.cta-box { background: var(--bg-highlight); border: 1px solid var(--info-border); border-radius: var(--radius); padding: 24px 18px; text-align: center; margin-top: 32px; }
.cta-box h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.cta-box p { color: var(--text-light); margin-bottom: 12px; font-size: 14px; }

/* === CONTACT === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.contact-icon { width: 34px; height: 34px; background: var(--bg-alt); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 15px; }
.contact-item strong { display: block; font-family: 'Rubik', sans-serif; color: #334155; margin-bottom: 1px; font-size: 13px; }
.contact-item span { color: var(--text-light); font-size: 13px; }

.steps { display: grid; grid-template-columns: 1fr; gap: 12px; }
.step { text-align: center; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--secondary); color: #fff; border-radius: 50%; font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.step h3 { font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.step p { font-size: 13px; color: var(--text-light); }

/* === FOOTER === */
.footer { background: #0F172A; color: #94A3B8; }
.footer-disclaimer { background: #1E293B; padding: 14px 16px; }
.footer-disclaimer p { font-size: 12px; color: #94A3B8; line-height: 1.7; }
.footer-inner { padding: 32px 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer h3 { font-family: 'Rubik', sans-serif; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.footer li { margin-bottom: 6px; }
.footer li a { font-size: 13px; color: #94A3B8; transition: color 0.2s; }
.footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1E293B; margin-top: 24px; padding-top: 16px; font-size: 11px; color: #64748B; line-height: 1.8; }

/* ===== TABLET (768px+) ===== */
@media (min-width: 768px) {
  .container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
  .header-inner { max-width: 720px; margin: 0 auto; }
  .nav { display: flex; align-items: center; gap: 18px; }
  .nav a { font-size: 13px; font-weight: 500; color: var(--text-light); font-family: 'Rubik', sans-serif; }
  .nav a:hover { color: var(--secondary); }
  .menu-btn { display: none; }
  .logo-sub { display: block; }
  .hero h1 { font-size: 32px; }
  .hero-btns { flex-direction: row; }
  .btn { width: auto; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: 26px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .state-list { grid-template-columns: repeat(2, 1fr); }
  .gov-links { grid-template-columns: repeat(2, 1fr); }
  .article h1 { font-size: 28px; }
}

/* ===== DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
  .container { max-width: 960px; }
  .header-inner { max-width: 960px; }
  .hero h1 { font-size: 38px; }
  .grid-cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 56px 20px; }
  .article { max-width: 740px; margin: 0 auto; }
  .article h1 { font-size: 32px; }
  .state-list { grid-template-columns: repeat(3, 1fr); }
  .gov-links { grid-template-columns: repeat(3, 1fr); }
  .data-row { display: flex; gap: 12px; }
}
