/* ===========================
   Nova Regra do CNPJ – Estilos Principais
   =========================== */
:root {
  --brand: #C1272D;        /* vermelho editorial */
  --brand-600: #A32026;    /* variação escura (hover, foco) */
  --brand-700: #7E1A1E;    /* tom profundo (gradientes e títulos) */
  --accent: #F5C518;       /* amarelo destaque (tags, hover) */
  --brand-rgb: 193,39,45;  /* base para transparências */

  --bg: #FFFFFF;           /* fundo principal */
  --bg-muted: #FAFAFA;     /* blocos neutros (ex: FAQ, cards) */

  --ink-900: #1B1B1B;      /* texto principal (quase preto) */
  --ink-600: #555555;      /* subtítulos, metadados */

  --surface: #FFFFFF;      /* caixas, cards, inputs */

  --footer-bg: #111111;    /* rodapé escuro, sólido */
  --footer-ink: #E9E9E9;   /* texto no rodapé */
  --footer-muted: #B0B0B0; /* links e metadados no rodapé */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}

/* ===== Reset / Base ===== */
* { box-sizing: border-box }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans", sans-serif;
  color: var(--ink-900);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.w-100 { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid #e9eff4;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  padding: 10px 6px;
  color: var(--ink-600);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: .2s color, .2s border-bottom;
}
.nav-links a:hover {
  color: var(--ink-900);
  border-bottom: 3px solid var(--brand);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s box-shadow, .2s transform;
}
.btn-primary {
  background: var(--brand-600);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: rgba(var(--brand-rgb), .12);
  color: var(--brand-700);
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-muted { background: var(--bg-muted); }

.section-head {
  text-align: center;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 2rem;
  color: var(--brand-700);
  margin-bottom: 6px;
}
.section-head p { color: var(--ink-600); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #fff 50%, #eff6ff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: start;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(135deg, var(--brand-700), var(--brand));
  -webkit-background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--ink-600);
  max-width: 680px;
}
.actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

/* ===== Comparação CNPJ ===== */
.compare-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.compare-box .card {
  background: var(--surface);
  border: 1px solid #e9eff4;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
@media (max-width: 780px) {
  .compare-box { grid-template-columns: 1fr; }
}

/* ===== Validador & Gerador ===== */
.validador-box, .gerador-box {
  background: var(--surface);
  border: 1px solid #e9eff4;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  width: 50%;
  margin: 0 auto;  
}
.validador-box input,
.gerador-box input,
.gerador-box select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
  margin-bottom: 12px;
}
.validador-box input:focus,
.gerador-box input:focus,
.gerador-box select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .15);
}

/* ===== Blog Cards ===== */
.cards-hover .card {
  background: var(--surface);
  border: 1px solid #e9eff4;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.cards-hover .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(2,6,23,.1);
}

/* ===== FAQ ===== */
#faq details {
  border: 1px solid #e6e9f1;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 10px;
  transition: all .25s ease;
}
#faq summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  padding: 1rem;
  font-weight: 600;
  list-style: none;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary .mdi {
  transition: transform .25s ease;
}
#faq details[open] summary .mdi {
  transform: rotate(360deg);
}
#faq details > div {
  padding: 0 1rem 1rem;
  opacity: 0;
  max-height: 0;
  transition: max-height .3s ease, opacity .3s ease;
}
#faq details[open] > div {
  opacity: 1;
  max-height: 500px;
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 56px 0 20px;
  margin-top: 64px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-700), var(--brand));
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer h4 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 10px;
}
.footer-desc {
  color: var(--footer-muted);
  max-width: 380px;
  line-height: 1.6;
  font-size: .95rem;
  margin-top: 8px;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-list li { margin: 8px 0; }
.footer-list a {
  color: var(--footer-ink);
  transition: color .2s;
}
.footer-list a:hover { color: var(--brand); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--footer-muted);
}
.footer-legal a {
  color: var(--footer-muted);
  margin-left: 12px;
}
.footer-legal a:hover { color: var(--brand); }

@media (max-width:980px) {
  .hero-grid, .compare-box, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width:640px) {
  .footer-grid { text-align: center; }
  .footer-legal { flex-direction: column; gap: 10px; align-items: center; }
}

.consult-box{background:var(--surface);border:1px solid #e9eff4;border-radius:16px;padding:20px;box-shadow:var(--shadow)}
.consult-box h3{margin:0 0 6px}
.check-list{list-style:none;padding:0;margin:12px 0 18px}
.check-list li{display:flex;gap:8px;padding-left:22px;position:relative;margin:12px 0;color:var(--ink-700)}
.check-list li::before{content:"✔";position:absolute;left:0;color:var(--brand-700)}

#validador {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh; /* centraliza verticalmente */
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--ink-600);
}

.resultado-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
}

.generated-text {
  font-family: "Roboto Mono", monospace;
  font-size: 1.1rem;
  padding: 10px 16px;
  background: #f3f4f6;
  border-radius: 8px;
  border: 1px solid #e6e9f1;
  margin: 0;
  color: var(--ink-900);
  min-width: 260px;
  text-align: center;
}

.copy-btn {
  border: none;
  background: transparent;
  color: var(--ink-600);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color .2s, transform .2s;
}

.copy-btn:hover {
  color: var(--brand);
  transform: scale(1.1);
}

.copy-btn.copied {
  color: var(--brand);
}

/* 1) não force width:100% no checkbox */
.gerador-box input:not([type="checkbox"]),
.gerador-box select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font: inherit;
  margin-bottom: 12px;
}

.gerador-box input.btn, .validador-box input.btn {
  width: 50% !important;
  justify-self: center;
  margin-top: 12px;
}

@media (max-width: 680px) {
  .gerador-box input.btn {
    width: 100% !important;
    justify-self: stretch;
  }
}
/* 2) form como grid */
.gerador-box {
  display: grid;
  gap: 12px 12px; /* row-gap / col-gap */
}

/* 3) linha com select + checkbox + submit lado a lado */
.gerador-box .form-row.inline {
  display: grid;
  grid-template-columns: 1fr auto auto; /* select cresce, checkbox e submit ajustam */
  align-items: center;
  gap: 12px;
  margin: 0; /* remove espaços extras */
}

/* 4) select e submit com largura automática nessa linha */
.gerador-box .form-row.inline select {
  width: auto;          /* override do width:100% */
  min-width: 260px;     /* conforto visual */
  margin-bottom: 0;
}
.gerador-box .form-row.inline input[type="submit"] {
  width: auto;          /* override do width:100% */
  margin-bottom: 0;
  padding: 12px 20px;
}

/* 5) checkbox alinhado e sem quebrar linha */
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;  /* mantém "Com pontuação" na mesma linha */
  margin: 0;
  color: var(--ink-600);
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* 6) responsividade: empilhar em telas menores */
@media (max-width: 680px) {
  .gerador-box .form-row.inline {
    grid-template-columns: 1fr; /* tudo em coluna */
    align-items: stretch;
  }
  .gerador-box .form-row.inline select,
  .gerador-box .form-row.inline input[type="submit"] {
    width: 100%;
  }
}

.grid { display: grid; gap: 1rem; }
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.grid-special{display:grid;grid-template-columns:.6fr auto auto;gap:18px}

hr{border:none;border-top:1px solid #e9eff4;}