/* =========================================================
   PORTATRECOS — PÁGINA DE FERRAMENTAS
   ========================================================= */

/* =========================================================
   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
   ========================================================= */

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;
}


/* =========================================================
   LINK ATIVO
   ========================================================= */

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


/* =========================================================
   2. HERO
   ========================================================= */

.hero {
  text-align: center;
  padding: 50px 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-intro {
  margin-top: 12px;
  font-size: 0.98rem !important;
  color: #64748b !important;
}


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

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


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

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


/* =========================================================
   5. CATEGORIAS
   ========================================================= */

.tool-category {
  margin: 35px 0 55px;
  scroll-margin-top: 90px;
}

.category-heading {
  margin-bottom: 18px;
}

.category-heading h2 {
  font-size: 1.4rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.category-heading h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
}

.category-heading p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.92rem;
}


/* =========================================================
   6. GRADE DE FERRAMENTAS
   ========================================================= */

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


/* =========================================================
   7. CARDS
   ========================================================= */

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  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;
}

.tool-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.05);

  border-color: #cbd5e1;
}

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

.tool-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.4;
}

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

.tool-action {
  margin-top: 15px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}


/* =========================================================
   8. BLOCO FINAL
   ========================================================= */

.tools-footer {
  width: 100%;
  max-width: 900px;
  margin: 10px auto 30px;
  padding: 35px 25px;

  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;

  text-align: center;
}

.tools-footer h2 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text);
}

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

.back-home {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-home:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}


/* =========================================================
   9. RODAPÉ
   ========================================================= */

footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  width: 100%;
  margin-top: 20px;
  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;
}


/* =========================================================
   10. TABLETS
   ========================================================= */

@media (max-width: 1000px) {

  .nav-links {
    gap: 16px;
  }

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

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

}


/* =========================================================
   11. CELULARES
   ========================================================= */

@media (max-width: 768px) {

  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: 12px;
    flex-wrap: wrap;
  }

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


  /* 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-intro {
    font-size: 0.92rem !important;
    line-height: 1.55;
  }


  /* MAIN */

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


  /* CATEGORIAS */

  .tool-category {
    margin-top: 30px;
    margin-bottom: 42px;
  }

  .category-heading {
    margin-bottom: 15px;
  }

  .category-heading h2 {
    font-size: 1.25rem;
  }

  .category-heading p {
    font-size: 0.9rem;
    line-height: 1.55;
  }


  /* GRID */

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


  /* CARDS */

  .tool-card {
    padding: 18px;
  }

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

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


  /* BLOCO FINAL */

  .tools-footer {
    margin-top: 0;
    padding: 28px 18px;
    border-radius: 10px;
  }

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

  .tools-footer p {
    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;
  }

}


/* =========================================================
   12. CELULARES 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;
  }

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

}