/* ==========================================================================
   footer.css — site footer
   Self-contained, includes its own responsive rules.
   ========================================================================== */

.tp-footer {
  background: #f7f8f7;
  border-top: 1px solid var(--tp-border);
  padding-top: 3rem;
}

.tp-footer__brand-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.tp-footer__logo { width: 34px; height: 34px; }

.tp-footer__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tp-text);
  line-height: 1.1;
}

.tp-footer__tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--tp-green);
  font-weight: 500;
}

.tp-footer__about {
  margin: 1rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--tp-muted);
  max-width: 24em;
}

/* social */
.tp-footer__social {
  display: flex;
  gap: 0.6rem;
}

.tp-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eceeec;
  transition: background 0.15s ease, transform 0.15s ease;
}

.tp-footer__social a:hover {
  background: #d9efe1;
  transform: translateY(-2px);
}

.tp-footer__social img { width: 18px; height: 18px; }

/* columns */
.tp-footer__col-title {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--tp-text);
}

.tp-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.tp-footer__links a {
  font-size: 0.9rem;
  color: var(--tp-muted);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.tp-footer__links a:hover {
  color: var(--tp-green);
  padding-left: 3px;
}

/* contact */
.tp-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.tp-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--tp-muted);
}

.tp-footer__contact img {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
}

/* let long email / address wrap inside the column instead of overflowing */
.tp-footer__contact a,
.tp-footer__contact span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tp-footer__contact a {
  color: var(--tp-muted);
  transition: color 0.15s ease;
}

.tp-footer__contact a:hover { color: var(--tp-green); }

/* bottom bar */
.tp-footer__bottom {
  margin-top: 2.5rem;
  border-top: 1px solid var(--tp-border);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.tp-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--tp-muted);
}

.tp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.tp-footer__legal a {
  font-size: 0.85rem;
  color: var(--tp-muted);
  transition: color 0.15s ease;
}

.tp-footer__legal a:hover { color: var(--tp-green); }

/* ==========================================================================
   Footer column widths on desktop:
   narrower Quick Links, wider Contact Us (others keep room for long items)
   ========================================================================== */
@media (min-width: 992px) {
  .tp-footer .row > [class*="col-"]:nth-child(1) { flex: 0 0 29%; max-width: 29%; width: 29%; }  /* brand   */
  .tp-footer .row > [class*="col-"]:nth-child(2) { flex: 0 0 12%; max-width: 12%; width: 12%; }  /* Quick   */
  .tp-footer .row > [class*="col-"]:nth-child(3) { flex: 0 0 17%; max-width: 17%; width: 17%; }  /* Categs  */
  .tp-footer .row > [class*="col-"]:nth-child(4) { flex: 0 0 17%; max-width: 17%; width: 17%; }  /* Tools   */
  .tp-footer .row > [class*="col-"]:nth-child(5) { flex: 0 0 25%; max-width: 25%; width: 25%; }  /* Contact */
}

/* ==========================================================================
   Responsive — footer
   ========================================================================== */
@media (max-width: 575.98px) {
  .tp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
