/* =============================================
   PLANO CARREIRA — CSS Global
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cor-primaria: #1d4ed8;
  --cor-primaria-hover: #1e40af;
  --cor-secundaria: #0ea5e9;
  --cor-cta: #16a34a;
  --cor-cta-hover: #15803d;
  --cor-texto: #1e293b;
  --cor-texto-leve: #64748b;
  --cor-fundo: #f8fafc;
  --cor-branco: #ffffff;
  --cor-borda: #e2e8f0;
  --cor-destaque: #eff6ff;
  --fonte-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --raio-borda: 8px;
  --sombra: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --sombra-card: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --largura-max: 1100px;
  --altura-header: 60px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--fonte-base);
  color: var(--cor-texto);
  background: var(--cor-fundo);
  line-height: 1.6;
}

a { color: var(--cor-primaria); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---- HEADER ---- */

.site-header {
  background: var(--cor-branco);
  border-bottom: 1px solid var(--cor-borda);
  box-shadow: var(--sombra);
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

.header-inner {
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--altura-header);
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cor-primaria);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo span { color: var(--cor-secundaria); }
.logo:hover { text-decoration: none; }

/* Nav desktop */
.site-header nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cor-texto);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--cor-primaria);
  text-decoration: none;
}

/* Hamburger — oculto no desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cor-texto);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---- HERO / BANNER ---- */

.hero {
  background: linear-gradient(135deg, var(--cor-primaria) 0%, var(--cor-secundaria) 100%);
  color: var(--cor-branco);
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 1.75rem;
}

/* ---- BOTÕES ---- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--raio-borda);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primario {
  background: var(--cor-cta);
  color: var(--cor-branco);
}

.btn-primario:hover {
  background: var(--cor-cta-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secundario {
  background: #0284c7;
  color: #ffffff;
  border: 2px solid #0284c7;
}

.btn-secundario:hover {
  background: #0369a1;
  border-color: #0369a1;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-grande {
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
}

/* ---- BUSCA ---- */
.hero-busca {
  display: flex;
  max-width: 520px;
  margin: 0 auto;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.hero-busca input {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  font-size: 1rem;
  outline: none;
  color: #1e293b;
}
.hero-busca button {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 0 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.hero-busca button:hover { background: #15803d; }

/* ---- LAYOUT ---- */

.container {
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.secao { padding: 3rem 1.25rem; }
.secao-cinza { background: var(--cor-fundo); }
.secao-branca { background: var(--cor-branco); }

/* ---- CARDS ---- */

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--cor-branco);
  border: 1px solid var(--cor-borda);
  border-radius: var(--raio-borda);
  padding: 1.5rem;
  box-shadow: var(--sombra-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.card-icone {
  width: 48px;
  height: 48px;
  background: var(--cor-destaque);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--cor-texto);
}

.card p {
  font-size: 0.875rem;
  color: var(--cor-texto-leve);
  line-height: 1.5;
}

/* ---- CONTEÚDO TEXTUAL (posts/páginas) ---- */

.conteudo-texto {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.conteudo-texto h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1.25rem; line-height: 1.25; }
.conteudo-texto h2 { font-size: 1.35rem; margin: 2rem 0 0.75rem; color: var(--cor-primaria); }
.conteudo-texto h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.conteudo-texto p  { margin-bottom: 1rem; line-height: 1.75; }
.conteudo-texto ul,
.conteudo-texto ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.conteudo-texto li { margin-bottom: 0.4rem; line-height: 1.7; }
.conteudo-texto strong { color: var(--cor-texto); }

.caixa-destaque {
  background: var(--cor-destaque);
  border-left: 4px solid var(--cor-primaria);
  border-radius: 0 var(--raio-borda) var(--raio-borda) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.caixa-destaque p { margin: 0; font-size: 0.95rem; }

/* ---- CTA SECTION ---- */

.cta-box {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  color: white;
  border-radius: var(--raio-borda);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
}

.cta-box h2 { color: white; font-size: 1.4rem; margin-bottom: 0.75rem; }
.cta-box p  { opacity: 0.9; margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ---- BREADCRUMB ---- */

.breadcrumb {
  font-size: 0.8rem;
  color: var(--cor-texto-leve);
  padding: 0.75rem 0;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--cor-texto-leve); }
.breadcrumb a:hover { color: var(--cor-primaria); }
.breadcrumb span { color: var(--cor-texto-leve); }

/* ---- AVISO LEGAL ---- */

.aviso-legal {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--raio-borda);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.6;
}

/* ---- FOOTER ---- */

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 4rem;
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--largura-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: #94a3b8; transition: color 0.2s; }
.footer-col ul a:hover { color: #e2e8f0; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* ---- PAGINAÇÃO ---- */

.paginacao {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.paginacao a, .paginacao span {
  padding: 0.5rem 0.875rem;
  border-radius: var(--raio-borda);
  border: 1px solid var(--cor-borda);
  font-size: 0.875rem;
  color: var(--cor-texto);
  background: var(--cor-branco);
  transition: 0.2s;
}

.paginacao a:hover { background: var(--cor-destaque); text-decoration: none; }
.paginacao .ativo { background: var(--cor-primaria); color: white; border-color: var(--cor-primaria); }

/* ---- RESPONSIVO ---- */

/* Tablet: reduz gap do nav */
@media (max-width: 900px) {
  .nav-menu { gap: 1rem; }
}

/* Mobile: hamburger + menu dropdown fixo */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--altura-header);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cor-branco);
    border-bottom: 2px solid var(--cor-borda);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 1rem 1.25rem;
    gap: 0;
    z-index: 199;
  }

  .nav-menu.aberto { display: flex; }

  .nav-menu li { border-bottom: 1px solid var(--cor-borda); }
  .nav-menu li:last-child { border-bottom: none; }
  .nav-menu a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .hero { padding: 2.5rem 1rem; }
  .cta-box { padding: 2rem 1.25rem; }

  /* Footer: empilha em coluna única no mobile */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

@media (max-width: 480px) {
  .btn-grande { width: 100%; }
}
