@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500;600;700&display=swap');
/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Cabin", sans-serif;
}

.ferramentas-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 1rem;
  background: #f7f7f700;
}
.search-form {
  display: flex;
  align-items: center;
  margin-left: 20px;
}
.social-icon {
  margin: 0 8px;
  display: none;
  font-size: 22px;
  color: #fff;
  transition: transform 0.2s, color 0.2s;
}

.social-icon:hover {
  transform: scale(1.2);
}

/* Ajuste do logo ChatGPT */
.chatgpt-icon {
  margin-top: 30px;
  height: 27px;
  filter: invert(100%); /* deixa branco para combinar */
  transition: transform 0.2s;
}

.social-icon:hover .chatgpt-icon {
  transform: scale(1.2);
  filter: invert(63%) sepia(91%) saturate(444%) hue-rotate(102deg) brightness(90%) contrast(92%);
  /* fica verde no hover (cor oficial OpenAI) */
}

.search-form input {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  height: 40px;
}

.search-form button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  border-left: none;
  background: #0073e6;
  color: white;
  cursor: pointer;
  height: 40px;
  border-radius: 0 20px 20px 0;
}

.ferramenta-card {
  flex: 1 1 220px;
  max-width: 260px;
  min-width: 180px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.ferramenta-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
}

.ferramenta-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.2rem 1rem;
  color: #222;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  gap: 1.2rem;
}

.ferramenta-card i {
  font-size: 2.8rem;
  color: #0077ff;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.ferramenta-card:hover i {
  color: #005bb5;
}
/* Compatibilidade com style.css: herda scroll-margin e order usados no index */
section { scroll-margin-top: 115px; }
#Inicio { scroll-margin-top: 110px; }

/* Mantém a ordem visual do header consistente com style.css */
header img { order: 1; }
.navbar { order: 2; }
.social-icon { order: 3; }
.search-form { order: 4; }

/* Regras de responsividade alinhadas ao style.css */
@media (max-width: 992px) {
  .search-form { order: 2; }
  .navbar { order: 3; }
  .search-form input { width: 140px; }
  header { flex-direction: row; align-items: center; justify-content: space-between; padding: 15px; }
  section { scroll-margin-top: 125px; }
  body { padding-top: 125px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 8px;
  }
  .nav-links.show { display: flex; }
  .menu-toggle { display: block; }
  .search-form input { width: 140px; }
  body { padding-top: 125px; }
  section { scroll-margin-top: 125px; }
}

@media (max-width: 600px) {
  body { padding-top: 120px; }
  section { scroll-margin-top: 125px; }
}

@media (min-width: 1024px) {
  .social-icon {
    display: inline-block;
  }
}

/* Aumenta legibilidade consistente com style.css (ajuste: diminuiu) */
html { font-size: 16px; } /* passou de 18px para 16px */
body { font-size: 1rem; line-height: 1.6; }

.nav-links a,
.footer-texto,
.btn-whatsapp,
.popup-content,
.popup-content p,
.popup-content h2,
.topic,
.feature h3,
.feature p,
.contato-info p {
  font-size: 1rem; /* passou de 1.05rem para 1rem */
}

/* Ajuste das imagens dentro do popup dos tópicos (permanece) */
#popupImage,
.popup-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
  object-fit: contain;
  max-height: calc(80vh - 160px);
}
.popup-content { overflow: auto; }