/* ==========================================================================
   Footer & Floating Tools Styling - Lanbang B2B Theme
   ========================================================================== */

/* 1. Main Footer */
.site-footer {
  background-color: var(--dark);
  color: #a8a8a8;
  padding-top: 70px;
  border-top: 3px solid var(--primary);
  font-size: 0.9rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr 1.6fr;
  gap: 35px;
  padding-bottom: 50px;
}

.foot-col h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
  position: relative;
  padding-bottom: 10px;
}

.foot-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.foot-col ul li {
  margin-bottom: 10px;
}

.foot-col ul li a {
  color: #a8a8a8;
  transition: var(--transition);
  display: inline-block;
}

.foot-col ul li a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact p {
  margin-bottom: 12px;
  line-height: 1.5;
}

.footer-contact strong {
  color: #e0e0e0;
  margin-right: 5px;
}

/* 2. Copyright Bar */
.copyright-bar {
  background-color: #0c0c0c;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

.copyright-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background-color: #222;
  border-radius: 50%;
  color: #bbb;
  transition: var(--transition);
  font-size: 0.85rem;
}

.social-links a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* 3. Floating Right-Side Tools (WhatsApp, WeChat QR, Quote, Top) */
.bottom_tools {
  position: fixed;
  right: 25px;
  bottom: 60px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bottom_tools .tool_item {
  width: 48px;
  height: 48px;
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  color: var(--dark);
  border: 1px solid rgba(0,0,0,0.05);
}

.bottom_tools .tool_item:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.bottom_tools .tool_whatsapp {
  background-color: #25D366;
  color: var(--white);
}

.bottom_tools .tool_whatsapp:hover {
  background-color: #1eb956;
}

.bottom_tools .tool_quote {
  background-color: var(--primary);
  color: var(--white);
}

/* Slide-out Tooltip / QR Image */
.tool_popup {
  position: absolute;
  right: 60px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-sm);
  padding: 15px;
  width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  text-align: center;
  color: var(--dark);
}

.tool_popup::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 0 8px 8px;
  border-style: solid;
  border-color: transparent transparent transparent var(--white);
}

.tool_item:hover .tool_popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.tool_popup h5 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--primary);
}

.tool_popup p {
  font-size: 0.8rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.tool_popup .qr-box img {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  border: 1px solid var(--gray-300);
}

/* Scroll To Top Button */
#scrollup {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#scrollup.visible {
  display: flex;
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .bottom_tools {
    right: 15px;
    bottom: 30px;
  }
}
