/* ========================================
   Section 12: Footer
   ======================================== */

.footer {
  background: var(--color-primary-dark);
  padding: 72px 0 0;
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col .logo {
  display: inline-flex;
}

.footer-desc {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-accent);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.4);
}

.contact-item svg {
  min-width: 16px;
  color: var(--color-accent);
}

.contact-item a { display: inline; padding: 0; }

/* Footer Brand Logos */
.footer-brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.footer-brand {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 10px !important;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast) !important;
  min-height: 44px;
}

.footer-brand:hover {
  background: rgba(255, 255, 255, 1) !important;
  border-color: rgba(255, 94, 0, 0.3);
}

.footer-brand img {
  max-width: 100%;
  max-height: 28px;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity var(--transition-fast);
}

.footer-brand:hover img {
  opacity: 0.85;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  display: inline;
  padding: 0;
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.25);
}

.footer-legal a:hover { color: var(--color-white); }

/* ─── WhatsApp Floating Button ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-primary);
  border-right: none;
}

/* Responsive */
@media (max-width: 768px) {
  .footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 28px; }
  .footer-col h4 { margin-bottom: 14px; }
  .footer-desc { margin-bottom: 16px; font-size: var(--fs-xs); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 16px 0; }
  .footer-brands-grid { gap: 6px; }
  .footer-brand { min-height: 36px !important; padding: 6px 8px !important; }
  .footer-brand img { max-height: 22px; }
}
