/* ===== Portal Serviço Fácil — style.css ===== */
/* Fontes: DM Sans (display) + Libre Franklin (headings) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Libre+Franklin:wght@400;500;600;700;800&display=swap');

/* ===== CUSTOM PROPERTIES ===== */
:root {
  --primary: #3c366b;
  --primary-dark: #2a2356;
  --primary-light: #5a52a0;
  --accent: #e53e3e;
  --accent-dark: #c53030;
  --alert-bg: #2a2356;
  --white: #ffffff;
  --gray-50: #f8f9fc;
  --gray-100: #eef0f6;
  --gray-200: #dde0eb;
  --gray-300: #b8bdd0;
  --gray-600: #626680;
  --gray-700: #454760;
  --gray-900: #1a1b2e;
  --text: #1a1b2e;
  --text-muted: #626680;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 8px rgba(60,54,107,0.10);
  --shadow-md: 0 4px 18px rgba(60,54,107,0.15);
  --transition: 0.2s ease;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-dark);
}

/* ===== SKIP NAV ===== */
.skip-nav {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  font-size: 0.9rem;
  transition: top 0.2s;
}
.skip-nav:focus { top: 0; }

/* ===== BARRA DE TRANSPARÊNCIA ===== */
.barra-transparencia {
  background: var(--alert-bg);
  color: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  padding: 7px 0;
  text-align: center;
  letter-spacing: 0.01em;
}
.barra-transparencia strong { color: #fff; font-weight: 600; }
.barra-transparencia a { color: rgba(255,255,255,0.80); text-decoration: underline; }
.barra-transparencia a:hover { color: #fff; }

/* ===== HEADER ===== */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(42,35,86,0.25);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.2;
}
.logo-text span { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.75; }

/* ===== MAIN NAV ===== */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== NOTA EDITORIAL ===== */
.nota-editorial {
  background: #fff8e1;
  border-left: 4px solid var(--accent);
  padding: 10px 16px;
  font-size: 0.82rem;
  color: #5a4200;
  margin-bottom: 0;
}
.nota-editorial strong { color: var(--accent-dark); }

/* ===== NOTA DE TRANSPARÊNCIA ===== */
.nota-transparencia {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 1.5rem 0;
}
.nota-transparencia .nt-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.nota-transparencia a { color: var(--primary); text-decoration: underline; }

/* ===== CONTAINER ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 3.5rem 0 3rem;
}
.hero-inner { max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.25;
}
.hero h1 em { font-style: normal; color: #f9c74f; }
.hero p {
  font-size: 1.05rem;
  opacity: 0.88;
  max-width: 600px;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
}
.cta-btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cta-btn.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(229,62,62,0.35);
}
.cta-btn.secondary {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}
.cta-btn.secondary:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #f9c74f;
}
.hero-stat span { font-size: 0.78rem; opacity: 0.80; }

/* ===== SECTIONS ===== */
section { padding: 3.5rem 0; }
.section-alt { background: var(--gray-50); }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); max-width: 580px; margin: 0 auto; font-size: 0.97rem; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 46px; height: 46px;
  background: var(--gray-100);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.card .card-link:hover { color: var(--accent); gap: 7px; }

/* ===== LINKS GRID ===== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.links-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.links-grid a:hover {
  border-color: var(--primary);
  background: var(--gray-50);
  color: var(--primary);
}
.links-grid a .link-icon { font-size: 1.15rem; flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--primary-dark);
  background: #fff;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  background: #fff;
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  counter-reset: step-counter;
}
.step-item {
  position: relative;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  counter-increment: step-counter;
}
.step-item::before {
  content: counter(step-counter);
  position: absolute;
  top: -12px;
  left: 1.25rem;
  background: var(--accent);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
}
.step-item h3 { font-size: 0.95rem; margin-bottom: 0.4rem; margin-top: 0.25rem; }
.step-item p { font-size: 0.85rem; color: var(--text-muted); }

/* ===== REQ GRID ===== */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.req-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}
.req-card h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.req-card ul { padding-left: 1rem; list-style: disc; }
.req-card ul li { font-size: 0.87rem; color: var(--text-muted); margin-bottom: 0.25rem; }

/* ===== LIMITES LIST ===== */
.limites-list { max-width: 700px; margin: 0 auto; }
.limites-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
  color: var(--text);
}
.limites-list li:last-child { border-bottom: none; }
.limites-list li .li-icon { flex-shrink: 0; font-size: 1rem; margin-top: 2px; }

/* ===== ALERTA FRAUDE ===== */
.alerta-fraude {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.alerta-fraude h3 {
  color: var(--accent-dark);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alerta-fraude p, .alerta-fraude li {
  font-size: 0.88rem;
  color: #742a2a;
  line-height: 1.6;
}
.alerta-fraude ul { padding-left: 1.2rem; list-style: disc; margin-top: 0.5rem; }
.alerta-fraude ul li { margin-bottom: 0.25rem; }

/* ===== TRANSPARÊNCIA BOX ===== */
.transparencia-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}
.transparencia-box h2 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}
.transparencia-box p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ===== NÃO LIST ===== */
.nao-list { list-style: none; padding: 0; }
.nao-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--gray-100);
}
.nao-list li:last-child { border-bottom: none; }
.nao-list li::before {
  content: '✕';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-wrap {
  background: var(--gray-100);
  padding: 9px 0;
  font-size: 0.8rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 4px; color: var(--text-muted); }
.breadcrumb li a { color: var(--primary); }
.breadcrumb li a:hover { color: var(--accent); }
.breadcrumb li + li::before { content: '/'; color: var(--gray-300); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 2.5rem 0 2rem;
  color: #fff;
}
.page-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; margin-bottom: 0.4rem; }
.page-header p { opacity: 0.82; font-size: 0.97rem; }

/* ===== CONTENT PAGE ===== */
.content-wrap {
  max-width: 820px;
  margin: 0 auto;
}
.content-section { margin-bottom: 2.5rem; }
.content-section h2 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}
.content-section h3 { font-size: 1rem; color: var(--primary); margin: 1rem 0 0.4rem; }
.content-section p { font-size: 0.93rem; color: var(--text); margin-bottom: 0.75rem; line-height: 1.7; }
.content-section ul, .content-section ol { padding-left: 1.4rem; margin-bottom: 0.75rem; }
.content-section li { font-size: 0.92rem; color: var(--text); margin-bottom: 0.3rem; line-height: 1.6; }
.content-section ul { list-style: disc; }
.content-section ol { list-style: decimal; }
.content-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 1rem 0;
}
.content-section th {
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  font-family: 'Libre Franklin', sans-serif;
}
.content-section td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}
.content-section tr:nth-child(even) td { background: var(--gray-50); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.80);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-text { color: #fff; }
.footer-brand p {
  font-size: 0.82rem;
  margin-top: 0.75rem;
  line-height: 1.6;
  opacity: 0.75;
}
.footer-brand .cnpj-footer {
  font-size: 0.78rem;
  margin-top: 0.5rem;
  opacity: 0.65;
}
.footer-col h4 {
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.78rem;
  opacity: 0.60;
}

/* ===== BACK TO TOP ===== */
#back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 800;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  transition: background var(--transition), transform var(--transition);
}
#back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: #fff;
  border-top: 3px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(42,35,86,0.18);
  padding: 1.25rem 0;
  display: none;
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 220px; }
.cookie-text p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.cookie-text a { color: var(--primary); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.btn-nao-aceito {
  padding: 8px 16px;
  border: 1px solid var(--gray-300);
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.83rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
}
.btn-nao-aceito:hover { border-color: var(--accent); color: var(--accent); }
.btn-so-essenciais {
  padding: 8px 16px;
  border: 1px solid var(--primary-light);
  background: #fff;
  border-radius: var(--radius);
  font-size: 0.83rem;
  cursor: pointer;
  color: var(--primary);
  transition: all var(--transition);
}
.btn-so-essenciais:hover { background: var(--gray-100); }
.btn-concordo {
  padding: 8px 18px;
  border: none;
  background: var(--primary);
  border-radius: var(--radius);
  font-size: 0.83rem;
  cursor: pointer;
  color: #fff;
  font-weight: 600;
  transition: background var(--transition);
}
.btn-concordo:hover { background: var(--primary-light); }

/* ===== FADE IN ===== */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.45s ease, transform 0.45s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ===== 404 ===== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.25rem;
}
.error-page h1 {
  font-size: 5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.error-page h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.error-page p { color: var(--text-muted); margin-bottom: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 2px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 14px; font-size: 0.95rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-stats { gap: 1.25rem; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; }
  .cookie-actions { width: 100%; justify-content: flex-end; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
