/* ============================================================
   Painel Cidadão — style.css
   cidadaoonline.info | Amm Transportes LTDA — CNPJ: 49.987.923/0001-78
   ============================================================ */

:root {
  --primary: #1e40af;
  --accent: #65a30d;
  --alert-bg: #1a2e6e;
  --bg-light: #eff6ff;
  --text: #0f172a;
  --font-heading: 'Albert Sans', sans-serif;
  --font-body: 'Lexend', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(30, 64, 175, 0.10);
  --shadow-md: 0 4px 24px rgba(30, 64, 175, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text);
  line-height: 1.7;
}

/* Skip Nav */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  font-family: var(--font-heading);
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ===================== DISCLAIMER TOPO ===================== */
.esclarecimento-topo {
  background: var(--alert-bg);
  color: #ffffff;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  font-family: var(--font-body);
}
.esclarecimento-topo strong { color: #fde68a; }

/* ===================== HEADER ===================== */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(30,64,175,0.25);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo span { color: #bfdbfe; }

.insignia-autonoma {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 4px 10px;
  font-size: 0.7rem;
  line-height: 1.3;
  white-space: nowrap;
  gap: 1px;
}
.insignia-autonoma span:first-child { font-weight: 700; color: #bbf7d0; font-size: 0.72rem; }
.insignia-autonoma span:last-child { color: #bfdbfe; }

/* Mobile menu toggle */
#menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
}
#menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Nav */
#main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav ul li a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 5px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

/* ===================== NOTA FINANCIAMENTO ===================== */
.nota-financiamento {
  background: #dbeafe;
  border-bottom: 2px solid var(--primary);
  padding: 8px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #1e3a8a;
}
.nota-financiamento a { color: var(--primary); font-weight: 600; }

/* ===================== CONTAINER ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== SECTIONS ===================== */
section { padding: 64px 0; }
section:nth-child(even) { background: #fff; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.3; color: var(--primary); }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 12px; }
a { color: var(--primary); }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--primary) 60%, #1d4ed8 100%);
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 16px; text-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.hero p { color: #bfdbfe; font-size: 1.05rem; max-width: 600px; margin: 0 auto 28px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(101,163,13,0.3);
}
.btn-primary:hover { background: #4d7c0f; transform: translateY(-2px); }
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
}

/* ===================== TRANSP (Transparency) ===================== */
.transp { background: #fff; }
.transp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.transp-card {
  background: var(--bg-light);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 24px;
}
.transp-card h3 { color: var(--primary); margin-bottom: 12px; }
.transp-card ul { list-style: none; padding: 0; }
.transp-card ul li { padding: 6px 0; border-bottom: 1px solid #e0e7ef; font-size: 0.9rem; }
.transp-card ul li:last-child { border-bottom: none; }
.nao-item { color: #dc2626; font-weight: 600; }
.nao-item::before { content: "✗ "; }
.sim-item::before { content: "✓ "; color: var(--accent); }

/* ===================== CARDS (Serviços) ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
.service-card {
  background: #fff;
  border: 2px solid #dbeafe;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: block;
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card .card-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
}
.service-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 8px; }
.service-card p { color: #475569; font-size: 0.85rem; margin: 0; }

/* ===================== GOLPES ===================== */
.golpes { background: var(--bg-light); }
.golpes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.golpe-item {
  background: #fff;
  border-left: 4px solid #dc2626;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
}
.golpe-item h4 { color: #dc2626; font-size: 0.9rem; margin-bottom: 6px; }
.golpe-item p { font-size: 0.82rem; color: #475569; margin: 0; }

/* ===================== CANAIS OFICIAIS ===================== */
.canais { background: #fff; }
.canais-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.canal-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.canal-item:hover { border-color: var(--primary); }
.canal-item .canal-icon { font-size: 1.6rem; }
.canal-item .canal-info strong { display: block; font-family: var(--font-heading); font-size: 0.9rem; color: var(--primary); }
.canal-item .canal-info span { font-size: 0.75rem; color: #64748b; }

/* ===================== FAQ ===================== */
.faq { background: var(--bg-light); }
.faq-list { max-width: 800px; margin: 28px auto 0; }
.faq-item {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-question::after { content: "+"; font-size: 1.3rem; flex-shrink: 0; transition: transform 0.3s; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
  font-size: 0.9rem;
  color: #334155;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 20px 16px; }

/* ===================== REQ ===================== */
.req { background: #fff; }
.req-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.req-item {
  text-align: center;
  background: var(--bg-light);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 20px 12px;
}
.req-item .req-icon { font-size: 2rem; margin-bottom: 8px; display: block; }
.req-item p { font-size: 0.82rem; color: #334155; margin: 0; }

/* ===================== ESCLARECIMENTO PUBLICO ===================== */
.esclarecimento-publico {
  background: #fff3cd;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.esclarecimento-publico h3 { color: #92400e; margin-bottom: 8px; }
.esclarecimento-publico p { color: #78350f; margin: 0; font-size: 0.92rem; }

/* ===================== INDICADOR PAGINA (Breadcrumb) ===================== */
.indicador-pagina {
  background: #dbeafe;
  padding: 10px 0;
  border-bottom: 1px solid #bfdbfe;
}
.indicador-pagina ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}
.indicador-pagina ol li::after { content: " /"; color: #64748b; margin-left: 8px; }
.indicador-pagina ol li:last-child::after { content: ""; }
.indicador-pagina ol li a { color: var(--primary); text-decoration: none; }
.indicador-pagina ol li span { color: #475569; font-weight: 600; }

/* ===================== ORIGEM DADOS ===================== */
.origem-dados {
  background: var(--bg-light);
  border: 1px solid #dbeafe;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
}
.origem-dados h3 { color: var(--primary); margin-bottom: 12px; }
.origem-dados ul { list-style: none; }
.origem-dados ul li { padding: 4px 0; font-size: 0.88rem; }
.origem-dados ul li a { color: var(--primary); font-weight: 600; }

/* ===================== PAGE CONTENT ===================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
  padding: 48px 0 40px;
}
.page-hero h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.page-hero p { color: #bfdbfe; margin: 8px 0 0; font-size: 0.95rem; }

.content-wrap { padding: 48px 0; }
.content-wrap h2 { font-size: 1.25rem; color: var(--primary); margin: 32px 0 12px; padding-bottom: 6px; border-bottom: 2px solid #dbeafe; }
.content-wrap h3 { font-size: 1rem; color: #1e3a8a; margin: 20px 0 8px; }
.content-wrap ul, .content-wrap ol { padding-left: 24px; margin-bottom: 14px; }
.content-wrap li { margin-bottom: 6px; font-size: 0.92rem; }
.content-wrap p { font-size: 0.92rem; color: #334155; }
.content-wrap strong { color: var(--text); }

/* ===================== INFO BOX ===================== */
.info-box-danger {
  background: #fef2f2;
  border: 2px solid #dc2626;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}
.info-box-danger h4 { color: #dc2626; margin-bottom: 8px; }
.info-box-danger p { color: #7f1d1d; font-size: 0.88rem; margin: 0; }
.info-box-blue {
  background: #eff6ff;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 20px 0;
}
.info-box-blue h4 { color: var(--primary); margin-bottom: 8px; }
.info-box-blue p { color: #1e3a8a; font-size: 0.88rem; margin: 0; }

/* ===================== CONTACT FORM ===================== */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.contact-card { background: #fff; border: 1px solid #dbeafe; border-radius: var(--radius); padding: 24px; }
.contact-card h3 { color: var(--primary); margin-bottom: 12px; }
.contact-card p { font-size: 0.9rem; color: #334155; margin-bottom: 8px; }
.contact-card a { color: var(--primary); font-weight: 600; }

/* ===================== FICHA EMPRESA ===================== */
.ficha-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.ficha-table th, .ficha-table td { padding: 10px 14px; border: 1px solid #dbeafe; font-size: 0.88rem; text-align: left; }
.ficha-table th { background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 600; }
.ficha-table tr:nth-child(even) td { background: var(--bg-light); }
.nao-compete { list-style: none; padding: 0; }
.nao-compete li { padding: 8px 0; border-bottom: 1px solid #e0e7ef; font-size: 0.9rem; color: #334155; }
.nao-compete li::before { content: "❌ "; }

/* ===================== FOOTER ===================== */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col p { font-size: 0.82rem; line-height: 1.7; color: #64748b; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #94a3b8; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #bfdbfe; }
.footer-divider { border: none; border-top: 1px solid #1e293b; margin-bottom: 20px; }
.footer-bottom { text-align: center; font-size: 0.78rem; color: #475569; }
.footer-bottom strong { color: #94a3b8; }

/* ===================== COOKIE BANNER ===================== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 24px;
  z-index: 9998;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
#cookie-banner p { font-size: 0.85rem; margin: 0; flex: 1; min-width: 200px; }
#cookie-banner a { color: #bfdbfe; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-buttons button {
  padding: 8px 18px;
  border: none;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
#cookie-rejeitar { background: #334155; color: #e2e8f0; }
#cookie-rejeitar:hover { background: #475569; }
#cookie-somente-base { background: #1e40af; color: #fff; }
#cookie-somente-base:hover { background: #1d4ed8; }
#cookie-confirmar { background: var(--accent); color: #fff; }
#cookie-confirmar:hover { background: #4d7c0f; }

/* ===================== BACK TO TOP ===================== */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--shadow-md);
  transition: background 0.2s, transform 0.2s;
}
#back-to-top:hover { background: #1d4ed8; transform: translateY(-3px); }

/* ===================== FADE IN ===================== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===================== 404 ===================== */
.not-found { text-align: center; padding: 100px 20px; }
.not-found .code-404 { font-size: 6rem; font-family: var(--font-heading); font-weight: 700; color: #dbeafe; line-height: 1; }
.not-found h1 { color: var(--primary); margin: 16px 0 12px; }
.not-found p { color: #475569; max-width: 400px; margin: 0 auto 28px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .golpes-grid { grid-template-columns: 1fr 1fr; }
  .canais-list { grid-template-columns: 1fr 1fr; }
  .req-grid { grid-template-columns: repeat(3, 1fr); }
  .transp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #menu-toggle { display: flex; }
  #main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #1e3a8a;
    padding: 12px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; padding: 0 12px; }
  #main-nav ul li a { display: block; padding: 10px 14px; }

  .header-inner { position: relative; }
  .insignia-autonoma { display: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .golpes-grid { grid-template-columns: 1fr; }
  .canais-list { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-info { grid-template-columns: 1fr; }

  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-buttons { width: 100%; }
  .cookie-buttons button { flex: 1; }
}

@media (max-width: 480px) {
  .req-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.5rem; }
}
