/* ============================================
   MAPA INFORMA — style.css
   Mobile-first | Figtree + IBM Plex Sans
   Ciano Profundo + Cinza Quente
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* --- VARIÁVEIS --- */
:root {
  --primary: #0891B2;
  --primary-light: #CFFAFE;
  --primary-dark: #155E75;
  --secondary: #57534E;
  --secondary-light: #F5F5F4;
  --accent: #0891B2;
  --accent-hover: #0E7490;
  --text-primary: #1C1917;
  --text-secondary: #78716C;
  --bg: #FFFFFF;
  --bg-alt: #FAFAF9;
  --bg-highlight: #ECFEFF;
  --border: #D6D3D1;
  --alert-bg: #FEF2F2;
  --alert-border: #DC2626;
  --radius: 12px;
  --font-title: 'Figtree', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; color: var(--text-primary); }

/* --- UTILITIES --- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* --- BANNER TOPO (VERMELHO) --- */
.banner-alert {
  background: var(--alert-bg);
  border-bottom: 2px solid var(--alert-border);
  padding: 10px 16px;
  text-align: center;
  font-size: 13px;
  color: #991B1B;
  line-height: 1.5;
}
.banner-alert strong { font-weight: 600; }

/* --- HEADER --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-link svg { height: 44px; width: auto; }
.header-sub {
  display: none;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Hamburger */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: .3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Nav */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.main-nav.open { display: flex; flex-direction: column; gap: 4px; }
.main-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-primary);
}
.main-nav a:hover, .main-nav a.active { background: var(--bg-highlight); color: var(--primary); }

/* --- HERO --- */
.hero {
  padding: 48px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 28px;
}
.hero-btns { display: flex; flex-direction: column; gap: 12px; max-width: 320px; margin: 0 auto; }

/* --- BOTÕES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
  min-height: 48px;
  text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--bg-highlight); color: var(--primary); }
.btn-danger { background: var(--alert-border); color: #fff; }
.btn-danger:hover { background: #B91C1C; color: #fff; }
.btn-block { width: 100%; }

/* --- SECTIONS --- */
.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }
.section-highlight { background: var(--bg-highlight); }
.section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section > .container > p:first-of-type {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* --- CARD ANTI-PHISHING --- */
.antiphishing {
  background: var(--bg-highlight);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 20px;
  margin: 0 auto;
  max-width: 680px;
}
.antiphishing h2 { font-size: 20px; margin-bottom: 12px; }
.antiphishing p { margin-bottom: 16px; color: var(--text-primary); font-size: 15px; }

/* --- CARDS GRID --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: box-shadow .2s, border-color .2s;
}
.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(8,145,178,.1);
}
.card-icon {
  font-size: 20px;
  margin-bottom: 8px;
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.card-link:hover { color: var(--accent-hover); }

/* --- FORMULÁRIO --- */
.form-section { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 48px;
  background: var(--bg);
  color: var(--text-primary);
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,145,178,.15);
}
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.form-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
}
.form-check label { font-size: 14px; color: var(--text-secondary); }
.form-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: 8px;
}

/* --- LINKS OFICIAIS --- */
.official-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.official-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.official-link span { font-weight: 600; }
.official-link small { color: var(--text-secondary); font-size: 13px; }

/* --- BADGES --- */
.badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 480px;
  margin: 32px auto 0;
  text-align: center;
}
.badge-item {
  padding: 16px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
}
.badge-item strong { display: block; font-size: 18px; margin-bottom: 4px; }

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 16px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* --- ARTICLE --- */
.article-badge {
  display: inline-block;
  background: var(--bg-highlight);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--primary-dark);
  margin: 16px 0 24px;
}
.article-content { max-width: 720px; }
.article-content h1 {
  font-size: 24px;
  margin-bottom: 12px;
}
.article-content .meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}
.article-content h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.article-content h2:first-of-type { border-top: none; padding-top: 0; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol {
  margin: 0 0 16px 0;
  padding-left: 20px;
}
.article-content li {
  list-style: disc;
  margin-bottom: 8px;
  font-size: 15px;
}
.article-content ol li { list-style: decimal; }

/* Checklist */
.checklist { padding-left: 0; }
.checklist li {
  list-style: none;
  padding: 6px 0;
  font-size: 15px;
}
.checklist li::before { content: "☐ "; }

/* Steps */
.steps { padding-left: 0; counter-reset: step; }
.steps li {
  list-style: none;
  padding: 10px 0 10px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.steps li::before {
  counter-increment: step;
  content: "PONTO " counter(step) " → ";
  font-weight: 600;
  color: var(--primary);
}

/* Table as cards */
.state-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0;
}
.state-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.state-card strong { font-size: 14px; }
.state-card a { font-size: 13px; font-weight: 500; }

/* Alert box */
.alert-box {
  background: var(--alert-bg);
  border-left: 4px solid var(--alert-border);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 24px 0;
}
.alert-box p { margin-bottom: 8px; }
.alert-box ol { padding-left: 20px; }
.alert-box li { list-style: decimal; font-size: 15px; color: #991B1B; }

/* Article CTA */
.article-cta {
  background: var(--bg-highlight);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-top: 36px;
  text-align: center;
}
.article-cta p { font-size: 16px; font-weight: 500; margin-bottom: 16px; }

/* --- QUEM ORIENTA / INSTITUCIONAL --- */
.inst-section { margin-bottom: 36px; }
.inst-section h2 { font-size: 20px; margin-bottom: 12px; }
.inst-section p { margin-bottom: 12px; }
.inst-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}
.inst-step {
  padding: 20px;
  background: var(--bg-highlight);
  border-radius: var(--radius);
}
.inst-step strong { color: var(--primary); display: block; margin-bottom: 4px; }
.nao-list li {
  list-style: none;
  padding: 6px 0;
  font-size: 15px;
  color: #991B1B;
}

/* --- CONTATO --- */
.contact-info { margin: 16px 0; }
.contact-info p { margin-bottom: 8px; font-size: 15px; }

/* --- FOOTER --- */
.site-footer {
  background: #292524;
  color: #A8A29E;
  padding: 48px 0 24px;
  font-size: 14px;
}
.footer-logo {
  margin-bottom: 32px;
}
.footer-logo svg {
  height: 44px;
  width: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-col h4 {
  color: #F5F5F4;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: #A8A29E;
  padding: 4px 0;
  font-size: 13px;
}
.footer-col a:hover { color: #67E8F9; }
.footer-disclaimer {
  border-top: 1px solid #44403C;
  padding-top: 24px;
  font-size: 12px;
  line-height: 1.7;
  color: #78716C;
  text-align: center;
}
.footer-disclaimer p { margin-bottom: 8px; }
.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #57534E;
  margin-top: 20px;
}

/* --- DESKTOP (768px+) --- */
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .header-sub { display: block; }
  .menu-toggle { display: none; }
  .main-nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    align-items: center;
  }
  .main-nav a { padding: 8px 14px; font-size: 14px; white-space: nowrap; }

  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
  .hero-btns { flex-direction: row; max-width: none; justify-content: center; }

  .section { padding: 64px 0; }
  .section h2 { font-size: 26px; }

  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .official-links { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(4, 1fr); max-width: 640px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .state-cards { grid-template-columns: repeat(2, 1fr); }
  .inst-steps { grid-template-columns: repeat(3, 1fr); }
}

/* --- LARGE DESKTOP (1024px+) --- */
@media (min-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .article-content h1 { font-size: 30px; }
}

/* --- PRINT --- */
@media print {
  .banner-alert, .site-header, .menu-toggle, .main-nav, .site-footer { display: none; }
  body { font-size: 12pt; }
}
