/**
 * Footer Styles - Premium Redesign
 * Speed Protection - Astra Child Theme
 */

/* =========================================
   FOOTER STRUCTURE
   ========================================= */

.sp-footer {
  background-color: var(--sp-dark);
  color: var(--sp-white);
  padding-top: var(--sp-spacing-xl);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sp-footer .ast-container {
  position: relative;
  z-index: 2;
}

/* =========================================
   FOOTER TOP — BRAND & VALUE
   ========================================= */

.sp-footer-top {
  padding-bottom: var(--sp-spacing-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.sp-footer-brand-logo {
  max-width: 250px;
  height: auto;
}

.sp-footer-brand-logo img {
  filter: brightness(0) invert(1);
}

.sp-footer-tagline {
  font-size: 1.1rem;
  color: var(--sp-text-lighter);
  max-width: 400px;
  line-height: 1.6;
}

/* Watermark */
.sp-footer-watermark {
  position: absolute;
  top: 0;
  right: -50px;
  width: 500px;
  height: 500px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

.sp-footer-watermark svg {
  width: 100%;
  height: 100%;
  fill: var(--sp-white);
}

/* =========================================
   FOOTER MAIN — NAVIGATION GRID
   ========================================= */

.sp-footer-main {
  padding: var(--sp-spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

/* Widget Styles */
.sp-footer-widget {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sp-footer-widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sp-primary);
  margin-bottom: 5px;
}

.sp-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-footer-menu li a {
  color: var(--sp-text-lighter);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--sp-transition);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.sp-footer-menu li a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--sp-primary);
  transition: width 0.3s var(--ease-in-out);
}

.sp-footer-menu li a:hover {
  color: var(--sp-white);
  padding-left: 5px;
}

.sp-footer-menu li a:hover::after {
  width: 100%;
}

/* Contact Column Specifics */
.sp-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-footer-contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.sp-footer-contact-icon {
  color: var(--sp-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.sp-footer-contact-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-footer-contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sp-text-muted);
}

.sp-footer-contact-value {
  color: var(--sp-white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--sp-transition);
}

.sp-footer-contact-value:hover {
  color: var(--sp-primary);
}

/* WhatsApp CTA */
.sp-footer-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
  color: #25d366;
  padding: 12px 20px;
  border-radius: var(--sp-radius-sm);
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: var(--sp-transition);
}

.sp-footer-whatsapp:hover {
  background: #25d366;
  color: var(--sp-white);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

/* =========================================
   FOOTER TRUST STRIP
   ========================================= */

.sp-footer-trust {
  padding: 40px 0;
  background: rgba(255, 255, 255, 0.02);
}

.sp-footer-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.sp-footer-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sp-footer-trust-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
  opacity: 0.8;
  transition: var(--sp-transition);
}

.sp-footer-trust-item:hover .sp-footer-trust-icon {
  opacity: 1;
  transform: scale(1.1);
}

.sp-footer-trust-text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sp-text-lighter);
}

/* =========================================
   FOOTER BOTTOM — LEGAL & SOCIAL
   ========================================= */

.sp-footer-bottom {
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sp-footer-copyright {
  font-size: 0.9rem;
  color: var(--sp-text-muted);
}

.sp-footer-socials {
  display: flex;
  gap: 15px;
}

.sp-footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sp-white);
  text-decoration: none;
  transition: var(--sp-transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-footer-social-link:hover {
  background: var(--sp-primary);
  border-color: var(--sp-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 77, 0, 0.3);
}

.sp-footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
  .sp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .sp-footer-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sp-footer-top {
    text-align: center;
    align-items: center;
  }

  .sp-footer-tagline {
    margin: 0 auto;
  }

  .sp-footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sp-footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sp-footer-trust-grid {
    grid-template-columns: 1fr;
  }
}
