@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================================
   CSS Variables
   ============================================================ */
:root {
  --primary: #115e59;
  --primary-dark: #134e4a;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --secondary: #5f9ea0;
  --alert-bg: #134e4a;
  --bg: #ffffff;
  --bg-light: #f0fdfa;
  --text: #0c0a09;
  --text-muted: #57534e;
  --border: #d6d3d1;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* ============================================================
   Reset & Base
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', 'Space Grotesk', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   Accessibility
   ============================================================ */
.skip-nav {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 9999;
}

.skip-nav:focus {
  left: 0;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   Fade-in animation
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Aviso Editorial Topo (disclaimer bar — cannot be closed)
   ============================================================ */
.aviso-editorial-topo {
  background: var(--alert-bg);
  color: #fff;
  padding: 0.6rem 0;
  font-size: 0.82rem;
  text-align: center;
  border-bottom: 2px solid var(--accent);
}

.aviso-editorial-topo p {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  line-height: 1.5;
}

.aviso-editorial-topo strong {
  color: #fff;
}

/* ============================================================
   Header / site-header
   ============================================================ */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 0.9rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  flex: 1;
  min-width: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text strong {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
}

/* ============================================================
   Marca Independente (MELHORIA 3 — outline badge)
   ============================================================ */
.marca-independente {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  flex-shrink: 0;
}

.marca-texto {
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.marca-subtexto {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.7);
}

/* ============================================================
   Menu Toggle (hamburger)
   ============================================================ */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ============================================================
   Main Nav
   ============================================================ */
.main-nav {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.main-nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ============================================================
   Nota Financiamento
   ============================================================ */
.nota-financiamento {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
}

.nota-financiamento a {
  color: var(--accent);
}

/* ============================================================
   Caminho Pagina (breadcrumbs — MELHORIA 2)
   ============================================================ */
.caminho-pagina {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 0.55rem 0;
  font-size: 0.83rem;
}

.caminho-pagina .container {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.caminho-pagina a {
  color: var(--accent);
  text-decoration: none;
}

.caminho-pagina a:hover {
  text-decoration: underline;
}

.caminho-pagina span[aria-current] {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   Page Header
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

/* ============================================================
   Independencia Editorial (body disclaimer box)
   ============================================================ */
.independencia-editorial {
  background: #fff7ed;
  border: 2px solid #fb923c;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.independencia-editorial h3 {
  color: #c2410c;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.independencia-editorial p {
  color: #7c2d12;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   Fontes Gov (MELHORIA 1)
   ============================================================ */
.fontes-gov {
  background: #f0fdfa;
  border: 1.5px solid #99f6e4;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.fontes-gov h3 {
  color: #115e59;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.fontes-gov ul {
  list-style: none;
  padding: 0;
}

.fontes-gov li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.fontes-gov a {
  color: #0d9488;
  font-weight: 500;
}

.fontes-gov em {
  color: #57534e;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.5rem;
}

/* ============================================================
   Golpes Section
   ============================================================ */
.golpes-section {
  padding: 3rem 0;
  background: var(--bg);
}

.golpes-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.alerta-box {
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.alerta-box p {
  color: #7f1d1d;
  font-weight: 600;
  font-size: 0.95rem;
}

.sinais-fraude {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.sinal-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1rem;
}

.sinal-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.sinal-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   Cards Section
   ============================================================ */
.cards-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.cards-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* ============================================================
   Req Section
   ============================================================ */
.req-section {
  padding: 3rem 0;
  background: var(--bg);
}

.req-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.req-item {
  background: var(--bg-light);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
}

.req-item .req-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.req-item h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.req-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================================
   Canais Section
   ============================================================ */
.canais-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.canais-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.canais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.canal-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}

.canal-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.canal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.canal-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.canal-card span {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   Transp Section
   ============================================================ */
.transp-section {
  padding: 3rem 0;
  background: var(--bg);
}

.transp-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.transp-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.transp-box h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.nao-list {
  list-style: none;
  padding: 0;
}

.nao-list li {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nao-list li::before {
  content: '❌ ';
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-section {
  padding: 3rem 0;
  background: var(--bg-light);
}

.faq-section h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   Content Pages
   ============================================================ */
.content-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.content-wrap h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.content-wrap h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
}

.content-wrap p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.content-wrap ul,
.content-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-wrap li {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.content-wrap th {
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.content-wrap td {
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid var(--border);
}

.content-wrap tr:nth-child(even) td {
  background: var(--bg-light);
}

/* ============================================================
   Steps
   ============================================================ */
.steps {
  counter-reset: step;
  margin: 1.5rem 0;
}

.step-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 0;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand .site-logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
}

.cnpj-footer {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.55) !important;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.55);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   Cookie Banner
   ============================================================ */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  color: #fff;
  z-index: 9999;
  border-top: 3px solid var(--accent);
}

.cookie-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.cookie-text a {
  color: #5eead4;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-recuso {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.btn-indispensaveis {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.btn-permitir {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
}

/* ============================================================
   Back to Top
   ============================================================ */
#back-to-top {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 999;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .canais-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-inner {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 1.4rem;
  }
}
