/* Site footer, floating buttons & mobile contact bar
   (frontend/includes/footer.blade.php). Moved out of an inline <style>. */

.footer {
  background: linear-gradient(to right, #020024, #090979);
  color: #e2e8f0;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.footer-main {
  padding: 50px 20px 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo + Social + Paragraph */
.footer-brand {
  grid-column: 1 / -1;
  margin-bottom: 30px;
}

.footer-brand-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

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

.social-link {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  /* `all` also tried to animate background-image, which cannot tween, so
     the Instagram gradient snapped in mid-hover. Name the properties. */
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* One brand colour per network, chosen to stay legible on the dark navy
   footer. X and TikTok are black in their own brand guides, which would
   vanish here, so they invert to a light chip with dark ink instead.
   Only five of the eight used to light up at all; the three that stayed
   grey were what made the row look inconsistent on hover. */
.social-link.whatsapp {
  --sc-brand: #25d366;
}

.social-link.facebook {
  --sc-brand: #1877f2;
}

.social-link.instagram {
  --sc-brand: #e1306c;
}

.social-link.twitter {
  --sc-brand: #f1f5f9;
  --sc-brand-ink: #0f172a;
}

.social-link.linkedin {
  --sc-brand: #0a66c2;
}

.social-link.youtube {
  --sc-brand: #ff0000;
}

.social-link.tiktok {
  --sc-brand: #f1f5f9;
  --sc-brand-ink: #0f172a;
}

.social-link.pinterest {
  --sc-brand: #e60023;
}

/* Hover is gated on devices that really hover: on a touch screen the state
   used to stick after a tap. The -3px lift is gone — eight icons popping
   out of the row read as noise rather than as feedback. A quiet colour
   fill says the same thing without moving the layout around. */
@media (hover: hover) {
  .social-link:hover {
    background: var(--sc-brand, rgba(255, 255, 255, 0.22));
    color: var(--sc-brand-ink, #fff);
    /* style.css has a global `a:hover { transition: 0.3s }` (all). */
    transition: background-color 0.25s ease, color 0.25s ease;
  }
}

.social-link:focus-visible {
  background: var(--sc-brand, rgba(255, 255, 255, 0.22));
  color: var(--sc-brand-ink, #fff);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer-description {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 15px;
  color: #94a3b8;
}

/* Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background: #0077cc;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 15.5px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.footer-link:hover {
  color: #0077cc;
  transform: translateX(5px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  font-size: 0.9rem;
  color: #94a3b8;
}

.copyright a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright a:hover {
  color: #60a5fa;
}

/* WhatsApp & Back to top */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background: #25D366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-btn.pulse {
  animation: pulseAnimation 1s ease-in-out;
}

@keyframes pulseAnimation {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  }
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Responsive Desktop stays same, Mobile adjustments */
@media (max-width: 768px) {

  .footer-main {
    padding: 40px 16px 30px;
  }

  /* Two columns top, Quick Links full width below */
  .footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
    margin-top: 20px;
  }

  .footer-brand-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .footer-heading {
    margin-bottom: 10px;
    font-size: 1rem;
  }

  .footer-link {
    font-size: 13px;
  }

  .footer-description {
    margin-bottom: 20px;
  }

  .whatsapp-btn {
    bottom: 80px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 26px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .footer-heading {
    font-size: 0.95rem;
  }

  .footer-link {
    font-size: 13px;
  }

  .social-link {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .whatsapp-btn {
    bottom: 70px;
    right: 15px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .back-to-top {
    /* Sits above the fixed quick-contact bar (see .sc-mobile-bar) */
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 17px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .mobile-only ul.footer-links-m {
    list-style: none;
    /* remove bullets */
    display: flex;
    /* display in a row */
    gap: 20px;
    /* spacing between items */
    padding: 0;
    /* remove default padding */
    margin: 0;
    /* remove default margin */
  }

  .mobile-only ul.footer-links-m li {
    display: inline;
    /* inline for safety */
  }
}
