/* =========================================================
   PORTATRECOS — ESTILO DA HOME
   ========================================================= */

/* =========================================================
   RESET & VARIÁVEIS
   ========================================================= */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --accent: #d97706;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
}

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


/* =========================================================
   1. NAVEGAÇÃO SUPERIOR
   ========================================================= */

nav {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-flex;     /* Ativa o alinhamento flexvel */
  align-items: center;     /* Centraliza a imagem e o texto na vertical */
  gap: 8px;                /* Cria o espaçamento ideal entre o ícone e a palavra */

  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.logo .highlight {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links li a {
  display: inline-flex;
  align-items: center;
}


/* =========================================================
   BOTÃO BLOG
   ========================================================= */

.btn-blog {
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.btn-blog:hover {
  background-color: var(--primary-hover) !important;
}


/* =========================================================
   2. HERO / CABEÇALHO DA HOME
   ========================================================= */

.hero {
  text-align: center;
  padding: 55px 20px 35px;
  max-width: 850px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.3rem;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 14px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 720px;
  margin: 0 auto;
}

.hero-tagline {
  font-size: 1.15rem !important;
  font-weight: 500;
  color: var(--text) !important;
}

.hero-intro {
  margin-top: 12px;
  font-size: 0.98rem !important;
  color: #64748b !important;
}

h1.hero-title {
  color: var(--primary); /* Cor principal */
  font-size: 2.2rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

h1.hero-title span {
  color: var(--accent); /* Cor do destaque */
  font-size: 2.2rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

/* =========================================================
   3. CONTAINER PRINCIPAL
   ========================================================= */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
  width: 100%;
}


/* =========================================================
   4. CABEÇALHOS DE SEÇÃO
   ========================================================= */

.section-heading,
.topics-heading {
  text-align: center;
  margin-bottom: 28px;
}

.section-heading h2,
.topics-heading h2 {
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-heading p,
.topics-heading p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 750px;
  margin: 0 auto;
}


/* =========================================================
   5. CONTEÚDOS RECENTES
   ========================================================= */

.recent-content {
  width: 100%;
  margin-top: 20px;
}


/* =========================================================
   6. GRADE DOS ARTIGOS
   ========================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px -4px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
}

.blog-read-more {
  display: inline-block;
  margin-top: 15px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.blog-read-more:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}


/* =========================================================
   BOTÃO DA SEÇÃO
   ========================================================= */

.section-button {
  text-align: center;
  margin-top: 28px;
}


/* =========================================================
   7. EXPLORE POR ASSUNTO
   ========================================================= */

.topics-section {
  width: 100%;
  margin-top: 65px;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  border-color: #cbd5e1;
}

.topic-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.topic-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.topic-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.topic-action {
  margin-top: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}


/* =========================================================
   8. CTA — FERRAMENTAS
   ========================================================= */

.tools-cta {
  width: 100%;
  max-width: 900px;
  margin: 65px auto 20px;
  padding: 35px 25px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.tools-cta h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--text);
}

.tools-cta p {
  max-width: 720px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.btn-tools {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-tools:hover {
  background: var(--primary-hover);
}


/* =========================================================
   9. BLOCO DE ANÚNCIO
   ========================================================= */

.ad-banner {
  display: none !important;
}


/* =========================================================
   10. RODAPÉ
   ========================================================= */

footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  width: 100%;
  margin-top: 40px;
  padding: 25px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 30px 20px;
  text-align: center;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.dot-separator {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.footer-copy p {
  color: #94a3b8;
  font-size: 0.85rem;
  margin: 0;
}


/* =========================================================
   11. RESPONSIVIDADE — TABLETS
   ========================================================= */

@media (max-width: 900px) {

  nav {
    padding: 14px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card {
    width: 100%;
  }

  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   12. RESPONSIVIDADE — CELULARES
   ========================================================= */

@media (max-width: 768px) {

  /* HERO */

  .hero {
    width: 100%;
    padding: 40px 20px 25px;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-tagline {
    font-size: 1rem !important;
  }

  .hero-intro {
    font-size: 0.92rem !important;
    line-height: 1.55;
  }


  /* NAVEGAÇÃO */

  nav {
    padding: 12px 16px;
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .nav-links {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .btn-blog {
    padding: 8px 12px;
  }


  /* CONTEÚDO */

  main {
    width: 100%;
    padding: 15px;
  }


  /* CABEÇALHOS */

  .section-heading,
  .topics-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .topics-heading h2 {
    font-size: 1.4rem;
  }

  .section-heading p,
  .topics-heading p {
    font-size: 0.92rem;
    line-height: 1.6;
  }


  /* BLOG */

  .recent-content {
    margin-top: 10px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card {
    width: 100%;
    padding: 18px;
    border-radius: 10px;
  }

  .blog-card h3 {
    font-size: 1.05rem;
    line-height: 1.45;
    margin-bottom: 9px;
  }

  .blog-card p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .blog-read-more {
    margin-top: 14px;
    font-size: 0.85rem;
  }

  .section-button {
    margin-top: 24px;
  }


  /* ASSUNTOS */

  .topics-section {
    margin-top: 45px;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-card {
    padding: 18px;
  }

  .topic-title {
    font-size: 1.05rem;
  }

  .topic-desc {
    font-size: 0.9rem;
  }


  /* CTA FERRAMENTAS */

  .tools-cta {
    width: 100%;
    margin-top: 45px;
    margin-bottom: 15px;
    padding: 28px 18px;
    border-radius: 10px;
  }

  .tools-cta h2 {
    font-size: 1.35rem;
  }

  .tools-cta p {
    width: 100%;
    max-width: none;
    font-size: 0.92rem;
  }


  /* FOOTER */

  footer,
  .site-footer {
    padding: 24px 16px !important;
    text-align: center;
  }

  .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px;
  }

  .footer-links .separator,
  .dot-separator {
    display: none !important;
  }

  .footer-links a {
    display: block;
    font-size: 0.95rem;
  }

  .footer-copy p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

}


/* =========================================================
   13. CELULARES MUITO PEQUENOS
   ========================================================= */

@media (max-width: 420px) {

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 1.65rem;
  }

  main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topics-section {
    margin-top: 40px;
  }

  .topic-card {
    padding: 16px;
  }

  .tools-cta {
    padding: 25px 16px;
  }

  .section-heading h2,
  .topics-heading h2 {
    font-size: 1.3rem;
  }

  .btn-blog {
    padding: 8px 11px;
    font-size: 0.85rem;
  }

}