/* ==========================================================================
   Tools page — scoped layout helpers.
   Every rule is nested under .page-tools so it cannot leak globally.
   Reuses shared tokens/components; only adds the logo-card grid + eyebrow hero.
   ========================================================================== */

/* -------------------------------------------------------------- Hero ------ */
.page-tools .tools-hero {
  padding-bottom: 64px;
}
.page-tools .tools-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* -------------------------------------------------------------- Sections -- */
.page-tools .tools-category {
  margin-bottom: 0.9em;
}

/* -------------------------------------------------------------- Grid ------ */
.page-tools .tools-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* -------------------------------------------------------------- Cards ----- */
.page-tools .tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 28px 26px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.page-tools .tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

/* On dark sections, give cards a translucent panel so logos read cleanly. */
.page-tools .section--dark .tool-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}
.page-tools .section--dark .tool-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

/* Logo chip — fixed box keeps every card aligned regardless of source ratio. */
.page-tools .tool-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.page-tools .tool-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-tools .tool-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.page-tools .tool-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* Text-only cards (logos that 404'd upstream): pad the top so the name does not
   sit flush against the card edge where a logo chip would otherwise be. */
.page-tools .tool-card--text {
  padding-top: 32px;
  padding-bottom: 32px;
  justify-content: center;
}

/* -------------------------------------------------------------- CTA ------- */
.page-tools .tools-cta-inner {
  max-width: 620px;
}
.page-tools .tools-cta-link {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--green);
}
.page-tools .tools-cta-link:hover {
  color: var(--green-dark);
}

/* -------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .page-tools .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .page-tools .tools-grid {
    grid-template-columns: 1fr;
  }
}
