/* ===== GLOBAL ===== */

{
box-sizing: border-box;
}


body, html {
max-width: 100%;
overflow-x: hidden;
margin: 0;
padding: 0;
}

/* ===== CALCULADORA ===== */
.page-title {
text-align: center;
margin-bottom: 20px;
}

.explain {
text-align: center;
margin-bottom: 20px;
}

.info-final {
text-align: center;
margin-bottom: 20px;
}

.calc-box {
width: 100%;
max-width: 900px;
margin: 24px auto;
padding: 20px;
border: 1px solid #ddd;
border-radius: 14px;
background: #fff;
}

.inputs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
}

.input-group {
display: flex;
flex-direction: column;
gap: 6px;
}

.input-group input,
.input-group select {
width: 100%;
height: 44px;
padding: 0 12px;
font-size: 15px;
border: 1px solid #ccc;
border-radius: 8px;
}

.calc-btn {
margin-top: 20px;
width: 100%;
height: 48px;
font-size: 16px;
font-weight: bold;
background: #111;
color: #fff;
border: none;
border-radius: 10px;
cursor: pointer;
}

/* ===== RESULTADOS ===== */
.result {
text-align: center;
width: 100%;
max-width: 900px;
margin: 24px auto;
padding: 20px;
border-radius: 14px;
border: 1px solid #ddd;
background: #fff;
}
.result {
width: 100%;
max-width: 900px;
margin: 24px auto;
padding: 20px;
border-radius: 14px;
border: 1px solid #ddd;
background: #fff;
box-sizing: border-box;
text-align: center; /* centraliza conteúdo */
}

.result table {
width: 100%;
border-collapse: collapse;
text-align: center;
}

.result th,
.result td {
padding: 8px;
border: 1px solid #ddd;
text-align: center;
}

.table-wrap {
overflow-x: auto;
-webkit-overflow-scrolling: touch; /* suaviza rolagem no mobile */
}

canvas {
max-width: 100%;
height: auto !important;
}

/* ===== ANÚNCIOS ===== */
.ad {
width: 100%;
max-width: 900px;
min-height: 90px;
margin: 30px auto;
display: flex;
align-items: center;
justify-content: center;
background: #f2f2f2;
color: #777;
font-size: 14px;
border-radius: 8px;
}

/* ===== CENTRALIZAÇÃO DE TEXTOS EDUCATIVOS ===== */
.explain,
.info-final {
text-align: center;        / centraliza o conteúdo /
max-width: 900px;          / limita a largura para leitura confortável /
margin: 20px auto;         / centraliza horizontalmente e dá espaçamento vertical /
padding: 10px;             / leve padding para ficar bonito /
line-height: 1.6;          / melhora a leitura */
}

.explain ol,
.info-final ul {
text-align: left;          /* mantém listas alinhadas à esquerda dentro da seção centralizada /
display: inline-block;     / faz a lista respeitar a largura do max-width /
padding-left: 20px;        / deixa o recuo das listas */
}

.explain h2,
.info-final h2 {
text-align: center;        /* títulos centralizados /
margin-bottom: 15px;       / espaço abaixo do título */
}
.info-aplicacoes {
text-align: center;
max-width: 900px;
margin: 24px auto;
padding: 20px;
background: #f7f7f7;
border-radius: 12px;
box-sizing: border-box;
}

.info-aplicacoes h2,
.info-aplicacoes h3 {
margin-bottom: 12px;
}

.info-aplicacoes p {
margin-bottom: 16px;
line-height: 1.6;
}

.info-aplicacoes a {
color: #111;
text-decoration: underline;
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
.calc-box {
margin: 16px 10px;
padding: 16px;
width: calc(100% - 20px);
}

.inputs {
grid-template-columns: 1fr; /* empilha inputs no mobile */
}

table {
font-size: 13px;
}

.table-wrap {
overflow-x: auto;
}

canvas {
width: 100% !important;
height: auto !important;
}

.ad {
margin: 20px 10px;
min-height: 60px;
}
}
.ad {
margin: 0 auto; /* centraliza horizontalmente /
}
#resultadoResumo {
display: none;         / inicialmente escondida /
text-align: center;
max-width: 900px;
margin: 20px auto;
padding: 20px;
background: #fff;      / fundo branco /
border: 1px solid #ccc;
border-radius: 12px;
z-index: 10;           / garante que fique acima de outros elementos /
}
/ Zera margens e padding padrão do navegador */
html, body {
margin: 0;
padding: 0;
width: 100%;
box-sizing: border-box;
}

/* Faz o rodapé ocupar toda a largura da tela /
footer {
width: 100%;
background-color: #111; / ou a cor que você usa /
color: #fff;
padding: 20px;
text-align: center;
}footer {
width: 100vw;          / garante largura total da tela /
max-width: 100%;       / evita limitar por algum max-width global /
background-color: #111;/ fundo preto /
color: #fff;
padding: 20px;
text-align: center;
margin: 0;             / remove margens /
box-sizing: border-box;/ inclui padding na largura total /
}.footer-content {
max-width: 900px;
margin: 0 auto;  / centraliza /
}header h1 a {
text-decoration: none; / remove sublinhado /
color: #111;           / cor do texto */
}

header h1 a:hover {
color: #5bc0eb;        /* muda a cor quando passa o mouse, opcional /
}
header {
display: flex;
align-items: center;
justify-content: center; / centraliza o título /
position: relative;      / necessário para os elementos absolutos dentro */
height: 60px;
background-color: #111;
}

/* Título clicável */
header .site-title {
margin: 0;
font-size: 24px;
}

header .site-title a {
color: #fff;
text-decoration: none;
}

/* Menu hambúrguer */
header .menu {
position: absolute;
left: 10px;
font-size: 28px;
cursor: pointer;
}

/* Menu links */
.menu-links {
display: none;
position: absolute;
top: 50px;
left: 10px;
background: #fff;
border: 1px solid #ccc;
border-radius: 6px;
z-index: 1000;
width: 220px;
}

.menu-links ul {
list-style: none;
padding: 0;
margin: 0;
}

.menu-links li {
border-bottom: 1px solid #eee;
}

.menu-links li a {
display: block;
padding: 10px;
color: #111;
text-decoration: none;
}

.menu-links li a:hover {
background-color: #f0f0f0;
}
.image-box {
text-align: center;
margin: 30px 0;
}

.image-box img {
max-width: 100%;
height: auto;
border-radius: 12px;
}
/* ===== CHECKBOX PADRÃO (Aviso + Férias vencidas) ===== */
.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
}

.checkbox-group input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}

.checkbox-group label,
.checkbox-group span {
font-size: 15px;
cursor: pointer;
}
/* ===== CHECKBOX NO PADRÃO DOS INPUTS ===== */
.checkbox-box {
display: flex;
align-items: center;
gap: 12px;
height: 44px;
padding: 0 12px;
border: 1px solid #ccc;
border-radius: 8px;
background: #fff;
cursor: pointer;
transition: border-color 0.2s, box-shadow 0.2s;
}

.checkbox-box:hover {
border-color: #111;
}

.checkbox-box input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}

.checkbox-box label {
font-size: 15px;
cursor: pointer;
user-select: none;
}

/* quando marcado /
.checkbox-box input[type="checkbox"]:checked + label {
font-weight: 600;
}
/ ===== HEADER ===== */
.topo {
background: #000;
color: #fff;
display: flex;
align-items: center;
padding: 12px 16px;
position: relative;
}

/* Botão hambúrguer */
.menu {
font-size: 26px;
cursor: pointer;
margin-right: 12px;
}

/* Título do site */
.site-title a {
color: #fff;
text-decoration: none;
font-size: 20px;
}

/* ===== MENU ===== */
.menu-links {
display: none;
position: absolute;
top: 100%;
left: 0;
width: 100%;
background: #111;
z-index: 1000;
}

.menu-links ul {
list-style: none;
margin: 0;
padding: 0;
}

.menu-links li a {
display: block;
padding: 12px 16px;
color: #fff;
text-decoration: none;
border-top: 1px solid #222;
}

.menu-links li a:hover {
background: #222;
}

/* quando clicar */
.menu-links.active {
display: block;
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
.menu {
display: none;
}

.menu-links {
display: block;
position: static;
background: transparent;
margin-left: auto;
}

.menu-links ul {
display: flex;
}

.menu-links li a {
border: none;
padding: 0 12px;
}
}
/* ===== RESET BÁSICO ===== */

{
box-sizing: border-box;
margin: 0;
padding: 0;
}


body {
font-family: Arial, sans-serif;
background: #fff;
color: #111;
}

/* ===== HEADER ===== */
.topo {
background: #111;
color: #fff;
height: 60px;
display: flex;
align-items: center;
padding: 0 16px;
position: relative;
}

/* Botão hambúrguer */
.menu {
font-size: 26px;
cursor: pointer;
margin-right: 12px;
}

/* Título */
.site-title {
flex: 1;
text-align: center;
}

.site-title a {
color: #fff;
text-decoration: none;
font-size: 20px;
}

/* ===== MENU DROPDOWN ===== */
.menu-links {
display: none;
position: absolute;
top: 60px;
left: 0;
width: 220px;
background: #fff;
border: 1px solid #ddd;
z-index: 1000;
}

.menu-links ul {
list-style: none;
}

.menu-links li {
border-bottom: 1px solid #eee;
}

.menu-links li a {
display: block;
padding: 12px 16px;
color: #111;
text-decoration: none;
}

.menu-links li a:hover {
background: #f0f0f0;
}

/* quando clicar no hambúrguer */
.menu-links.active {
display: block;
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
.menu {
display: none;
}

.topo {
justify-content: center;
}

.menu-links {
display: block;
position: static;
width: auto;
background: transparent;
border: none;
margin-left: auto;
}

.menu-links ul {
display: flex;
gap: 12px;
}

.menu-links li {
border: none;
}

.menu-links li a {
color: #fff;
padding: 0 8px;
}

.menu-links li a:hover {
background: none;
text-decoration: underline;
}
}
/* 1️⃣ Zerar margens e padding da página */
html, body {
margin: 0;
padding: 0;
}

/* 2️⃣ Estilo do footer /
footer {
background-color: black; / fundo preto /
color: white;           / texto branco /
width: 100%;            / ocupa toda a largura da tela /
text-align: center;     / centraliza o texto /
padding: 20px 0;        / espaço em cima e embaixo /
box-sizing: border-box; / garante que padding não quebre a largura */
}

/* 3️⃣ Links do footer /
footer a {
color: white;           / link branco /
text-decoration: underline; / opcional, sublinha */
}

.chart-box {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
}

.chart-box canvas {
  width: 100%;
  height: 300px; /* define altura fixa */
}
/* Para deixar ainda melhor: */
.centralizado {
  display: flex;
  justify-content: center;
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}
body {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Inter', sans-serif;
  line-height: 1.7;      /* MAIOR que o normal */
  font-size: 17px;       /* Ligeiramente maior */
  color: #2d3748;        /* Cinza-azulado específico */
}

.container {
  background: #fafbfc;   /* Fundo levemente cinza */
  border-radius: 12px;   /* Cantos arredondados */
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);  /* Sombra sutil */
}
.calculadora-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 20px 0;
}

h1, h2 {
  font-weight: 600;
  color: #1a202c;
  line-height: 1.3;
}
/* Cabeçalho esticado até as bordas */
header {
  width: 100vw;          /* 100% da largura da VIEWPORT */
  margin-left: calc(-50vw + 50%);  /* Tira do container centralizado */
  position: relative;    /* Mantém no fluxo normal */
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Rodapé esticado até as bordas */
footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Remove padding/margin do body só pros extremos */
header, footer {
  background: #1a202c;  /* Cor sólida sem transparência */
  padding: 20px 40px;   /* Padding interno normal */
}
.calculadoras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px auto;
  max-width: 1200px;
}

.card-calculadora {
  background: #0D1B2A;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card-calculadora:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card-calculadora .icon {
  font-size: 40px;
  margin-bottom: 15px;
}