/* Brasil Serviços Info — style.css */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #475569;
  --accent: #7c3aed;
  --alert-bg: #334155;
  --bg-light: #f8fafc;
  --text: #0f172a;
  --font-heading: 'Figtree', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.13);
  --max-width: 1140px;
}

*, *::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: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ====== ALERTA TOPO ====== */
.alerta-info-topo {
  background: var(--alert-bg);
  color: #fff;
  padding: 8px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-family: var(--font-body);
  line-height: 1.5;
}
.alerta-info-topo strong { color: #fbbf24; }

/* ====== HEADER ====== */
header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-area { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.logo-text span { display: block; font-size: 0.72rem; font-weight: 400; opacity: 0.85; }

.distintivo-independente {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  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.72rem;
  line-height: 1.4;
}
.distintivo-independente span:first-child { color: #86efac; font-weight: 700; }
.distintivo-independente span:last-child { color: #e2e8f0; opacity: 0.9; }

#menu-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

#main-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
#main-nav ul li a {
  display: block;
  padding: 6px 12px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.18s, color 0.18s;
}
#main-nav ul li a:hover,
#main-nav ul li a.active {
  background: var(--accent);
  color: #fff;
}

/* ====== NOTA FINANCIAMENTO ====== */
.nota-financiamento {
  background: #ede9fe;
  border-left: 4px solid var(--accent);
  padding: 10px 20px;
  font-size: 0.84rem;
  text-align: center;
}
.nota-financiamento a { color: var(--accent); font-weight: 600; }

/* ====== CONTAINER ====== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== HERO ====== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #334155 60%, #1e293b 100%);
  color: #fff;
  padding: 72px 20px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 32px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #6d28d9; transform: translateY(-2px); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--accent); color: #fff; }

/* ====== SECTIONS ====== */
section { padding: 56px 20px; }
section:nth-child(even) { background: #fff; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-align: center;
}
.section-subtitle {
  text-align: center;
  color: #64748b;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 36px;
}
.section-divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 32px;
}

/* ====== CARDS ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 4px solid var(--accent);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.card p { font-size: 0.92rem; color: #475569; line-height: 1.6; margin-bottom: 16px; }
.card a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.card a:hover { text-decoration: underline; }

/* ====== REQUISITOS ====== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.req-item {
  background: #f1f5f9;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  border: 1px solid #e2e8f0;
}
.req-item .req-icon { font-size: 2rem; margin-bottom: 10px; display: block; }
.req-item h4 { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--primary); margin-bottom: 4px; }
.req-item p { font-size: 0.83rem; color: #64748b; }

/* ====== CANAIS OFICIAIS ====== */
.canais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.canal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.canal-card h4 { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.canal-card a { color: var(--accent); font-size: 0.88rem; font-weight: 600; word-break: break-all; text-decoration: none; }
.canal-card a:hover { text-decoration: underline; }

/* ====== GOLPES ====== */
.golpes-section { background: #fef2f2; border-top: 3px solid #ef4444; }
.golpes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.golpe-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-left: 4px solid #ef4444;
}
.golpe-item h4 { font-weight: 700; color: #dc2626; margin-bottom: 8px; font-family: var(--font-heading); font-size: 0.95rem; }
.golpe-item p { font-size: 0.88rem; color: #475569; }

/* ====== FAQ ====== */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: #f1f5f9; }
.faq-question .faq-icon { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner { padding: 0 24px 18px; font-size: 0.93rem; color: #475569; line-height: 1.7; }

/* ====== TRANSP (Transparência) ====== */
.transp-section { background: var(--alert-bg); color: #f1f5f9; }
.transp-section .section-title { color: #e2e8f0; }
.transp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.transp-card {
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.13);
}
.transp-card h4 { font-family: var(--font-heading); font-weight: 700; color: #a5b4fc; margin-bottom: 10px; font-size: 0.95rem; }
.transp-card p, .transp-card li { font-size: 0.88rem; color: #cbd5e1; line-height: 1.7; }
.transp-card ul { list-style: none; }
.transp-card ul li::before { content: "✗ "; color: #f87171; font-weight: 700; }

/* ====== ALERTA INFORMATIVO (inner pages) ====== */
.alerta-informativo {
  background: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px auto;
  max-width: var(--max-width);
}
.alerta-informativo h3 { font-family: var(--font-heading); font-weight: 700; color: #92400e; margin-bottom: 8px; font-size: 1rem; }
.alerta-informativo p { color: #78350f; font-size: 0.9rem; }

/* ====== PERCURSO NAV (Breadcrumb) ====== */
.percurso-nav {
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}
.percurso-nav ol {
  list-style: none;
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  flex-wrap: wrap;
  align-items: center;
}
.percurso-nav ol li + li::before { content: "›"; color: #94a3b8; }
.percurso-nav ol li a { color: var(--accent); text-decoration: none; font-weight: 500; }
.percurso-nav ol li span { color: #64748b; }

/* ====== BASE OFICIAL ====== */
.base-oficial {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px auto;
  max-width: var(--max-width);
}
.base-oficial h3 { font-family: var(--font-heading); font-weight: 700; color: #166534; margin-bottom: 14px; }
.base-oficial ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.base-oficial ul li a { color: #15803d; font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.base-oficial ul li a:hover { text-decoration: underline; }
.base-oficial ul li::before { content: "🔗 "; }

/* ====== PAGE CONTENT ====== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #334155 100%);
  color: #fff;
  padding: 48px 20px;
  text-align: center;
}
.page-header h1 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 10px; }
.page-header p { opacity: 0.88; font-size: 1rem; max-width: 560px; margin: 0 auto; }

.content-area {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.content-area h2 { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: var(--primary); margin: 36px 0 14px; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; }
.content-area h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 24px 0 10px; }
.content-area p { margin-bottom: 14px; color: #374151; }
.content-area ul, .content-area ol { margin: 12px 0 16px 20px; color: #374151; }
.content-area li { margin-bottom: 8px; line-height: 1.65; }
.content-area a { color: var(--accent); font-weight: 600; }

.info-box {
  background: #f0f4ff;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #374151;
}
.info-box strong { color: var(--primary); }

/* ====== CONTATO ====== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.contact-card {
  background: #f8fafc;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid #e2e8f0;
}
.contact-card h3 { font-family: var(--font-heading); font-weight: 700; color: var(--primary); margin-bottom: 12px; font-size: 0.97rem; }
.contact-card p { font-size: 0.9rem; color: #475569; margin-bottom: 8px; }
.contact-card a { color: var(--accent); font-weight: 600; }

/* ====== PERFIL EMPRESA ====== */
.neg-list { list-style: none !important; margin-left: 0 !important; }
.neg-list li { padding: 8px 0; border-bottom: 1px solid #e2e8f0; font-size: 0.93rem; }
.neg-list li::before { content: "❌ "; }

/* ====== FOOTER ====== */
footer {
  background: var(--text);
  color: #94a3b8;
  padding: 48px 20px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-bottom: 32px;
}
.footer-col h4 { font-family: var(--font-heading); font-weight: 700; color: #e2e8f0; margin-bottom: 14px; font-size: 0.97rem; }
.footer-col p { font-size: 0.85rem; line-height: 1.7; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a { color: #94a3b8; font-size: 0.85rem; text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: #a5b4fc; }
.footer-cnpj { color: #c4b5fd; font-size: 0.82rem; margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 16px 20px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ====== COOKIE BANNER ====== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1e293b;
  color: #f1f5f9;
  padding: 16px 20px;
  z-index: 9999;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.3);
  display: none;
}
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
#cookie-banner p { font-size: 0.88rem; flex: 1; min-width: 200px; }
#cookie-banner a { color: #a5b4fc; font-weight: 600; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-buttons button {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: opacity 0.2s;
}
#cookie-cancelar { background: #475569; color: #fff; }
#cookie-obrigatorios { background: #64748b; color: #fff; }
#cookie-aceitar-todos { background: var(--accent); color: #fff; }
.cookie-buttons button:hover { opacity: 0.85; }

/* ====== BACK TO TOP ====== */
#back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 800;
  transition: background 0.2s, transform 0.15s;
}
#back-to-top:hover { background: #6d28d9; transform: translateY(-2px); }

/* ====== FADE IN ====== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ====== 404 ====== */
.error-page {
  text-align: center;
  padding: 80px 20px;
}
.error-page h1 { font-family: var(--font-heading); font-size: 5rem; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.error-page h2 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); margin-bottom: 14px; }
.error-page p { color: #64748b; margin-bottom: 28px; }

/* ====== TABLE ====== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
.data-table th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; font-family: var(--font-heading); }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; }
.data-table tr:nth-child(even) td { background: #f8fafc; }

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  #menu-toggle { display: block; }
  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    z-index: 800;
  }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; }
  #main-nav ul li a { padding: 10px 20px; border-radius: 0; }
  .header-inner { position: relative; }
  .distintivo-independente { display: none; }
  .cookie-inner { flex-direction: column; }
  .hero { padding: 48px 20px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
}
