/* ==========================================
   FOOTER V4 - Complete Modern Redesign
   Light grey background with wave accent
   ========================================== */

/* Fix white space issues */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
}

#page {
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer-v4 {
  background: #f5f7fa;
  color: #475569;
  padding: 0;
  position: relative;
  overflow: hidden;
  margin: 0 !important;
  border: none !important;
}

/* Wave decoration at top */
.footer-wave {
  position: relative;
  width: 100%;
  height: 80px;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  margin-bottom: -1px;
}

.footer-wave svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  color: #f5f7fa;
}

.site-footer-v4 .footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 32px 0;
  position: relative;
  z-index: 2;
}

/* Main footer content */
.site-footer-v4 .footer-main {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 80px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 2px solid #e2e8f0;
}

/* Brand Column */
.site-footer-v4 .footer-brand-col {
  display: flex;
  flex-direction: column;
}

.site-footer-v4 .footer-brand-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer-v4 .footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer-v4 .footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.site-footer-v4 .footer-logo-img {
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
}

.site-footer-v4 .footer-logo-icon {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.25));
}

.site-footer-v4 .footer-logo-text {
  font-size: 28px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.site-footer-v4 .footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
  max-width: 380px;
}

/* Newsletter */
.site-footer-v4 .footer-newsletter {
  margin-top: 8px;
}

.site-footer-v4 .newsletter-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer-v4 .newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 380px;
}

.site-footer-v4 .newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  transition: all 0.3s ease;
  outline: none;
}

.site-footer-v4 .newsletter-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.site-footer-v4 .newsletter-input::placeholder {
  color: #94a3b8;
}

.site-footer-v4 .newsletter-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.site-footer-v4 .newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.site-footer-v4 .newsletter-btn svg {
  transition: transform 0.3s ease;
}

.site-footer-v4 .newsletter-btn:hover svg {
  transform: translateX(2px);
}

/* Links Grid */
.site-footer-v4 .footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.site-footer-v4 .footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer-v4 .footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer-v4 .footer-links-list li {
  margin: 0;
}

.site-footer-v4 .footer-links-list a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
  position: relative;
}

.site-footer-v4 .footer-links-list a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: #6366f1;
  transition: width 0.3s ease;
}

.site-footer-v4 .footer-links-list a:hover {
  color: #6366f1;
  padding-left: 12px;
}

.site-footer-v4 .footer-links-list a:hover::before {
  width: 6px;
}

/* Footer Bottom */
.site-footer-v4 .footer-bottom {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  background: #ffffff;
  margin: 0 -32px;
  padding-left: 32px;
  padding-right: 32px;
  border-top: 1px solid #e2e8f0;
}

.site-footer-v4 .footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer-v4 .footer-copyright {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

.site-footer-v4 .footer-stats-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.site-footer-v4 .stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-weight: 600;
}

.site-footer-v4 .stat-item svg {
  color: #6366f1;
  flex-shrink: 0;
}

.site-footer-v4 .stat-divider {
  color: #cbd5e1;
}

/* Social Links */
.site-footer-v4 .footer-social-links {
  display: flex;
  gap: 10px;
}

.site-footer-v4 .footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.site-footer-v4 .footer-social-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-footer-v4 .footer-social-link svg {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.site-footer-v4 .footer-social-link:hover {
  border-color: #6366f1;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

.site-footer-v4 .footer-social-link:hover::before {
  opacity: 1;
}

.site-footer-v4 .footer-social-link:hover svg {
  color: #ffffff;
  transform: scale(1.1);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .site-footer-v4 .footer-main {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .site-footer-v4 .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .footer-wave {
    height: 60px;
  }
  
  .site-footer-v4 .footer-container {
    padding: 48px 24px 0;
  }
  
  .site-footer-v4 .footer-main {
    gap: 48px;
    margin-bottom: 40px;
    padding-bottom: 40px;
  }
  
  .site-footer-v4 .footer-logo-text {
    font-size: 24px;
  }
  
  .site-footer-v4 .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  
  .site-footer-v4 .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  
  .site-footer-v4 .footer-bottom-left {
    flex-direction: column;
    gap: 16px;
  }
  
  .site-footer-v4 .footer-stats-inline {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-wave {
    height: 40px;
  }
  
  .site-footer-v4 .footer-container {
    padding: 40px 20px 0;
  }
  
  .site-footer-v4 .footer-main {
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 32px;
  }
  
  .site-footer-v4 .footer-logo-wrapper {
    gap: 12px;
  }
  
  .site-footer-v4 .footer-logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .site-footer-v4 .footer-logo-text {
    font-size: 22px;
  }
  
  .site-footer-v4 .footer-tagline {
    font-size: 14px;
  }
  
  .site-footer-v4 .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }
  
  .site-footer-v4 .newsletter-btn {
    width: 100%;
    height: 48px;
  }
  
  .site-footer-v4 .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .site-footer-v4 .footer-bottom {
    padding: 24px 20px;
    margin: 0 -20px;
  }
  
  .site-footer-v4 .footer-stats-inline {
    flex-direction: column;
    gap: 12px;
  }
  
  .site-footer-v4 .stat-divider {
    display: none;
  }
  
  .site-footer-v4 .footer-social-links {
    justify-content: center;
  }
}
