/* NorthernEdge Legal Solutions - Footer Styles
 *
 * Enhanced footer styling with attention to accessibility, 
 * information hierarchy, and responsive design.
 * Last updated: 2025-03-06
 */

.site-footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--space-10) 0 var(--space-6);
  position: relative;
}

/* Add a subtle texture overlay to the footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('/images/texture-overlay.png');
  background-repeat: repeat;
  opacity: 0.05;
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-logo {
  max-width: 220px;
}

.footer-logo img {
  width: 100%;
  height: auto;
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size: var(--text-sm);
  margin-bottom: var(--space-5);
  opacity: 0.9;
  max-width: 240px;
  line-height: var(--lh-body);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4); /* Add some space above icons */
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color var(--transition-normal);
  color: var(--white); /* Ensure icon color is white */
  font-size: var(--text-md); /* Adjust icon size */
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--white); /* Keep icon color white on hover */
}

.social-icon i {
    line-height: 1; /* Helps center Font Awesome icons */
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: var(--space-4);
  font-size: var(--text-md);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
}

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

.footer-column li {
  margin-bottom: var(--space-2);
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  display: inline-block;
}

.footer-column a:hover {
  color: var(--white);
}

/* Subtle hover animation for footer links */
.footer-column a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width var(--transition-normal);
}

.footer-column a:hover::after {
  width: 100%;
}

.footer-column address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-4);
  line-height: var(--lh-body);
}

.copyright {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.copyright p {
  margin-bottom: var(--space-2);
}

.legal-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
  margin: 0 var(--space-2);
}

.legal-links a:hover {
  color: var(--white);
}

/* Back to top button */
.back-to-top {
  position: absolute;
  right: var(--space-6);
  bottom: var(--space-12);
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  box-shadow: var(--shadow-md);
  z-index: 90;
}

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

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.back-to-top:hover {
  background-color: var(--accent-dark);
  transform: translateY(-3px);
}

/* Newsletter Subscription */
.newsletter {
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
}

.newsletter h3 {
  margin-bottom: var(--space-4);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  padding: var(--space-2) var(--space-4);
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  background-color: var(--accent);
  color: var(--white);
  border: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--accent-dark);
}

/* Disclaimer */
.disclaimer {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-2);
}

/* Footer Bottom Area */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-5);
  margin-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-left: var(--space-4);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--white);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-6);
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    text-align: center;
  }
  
  .footer-logo {
    max-width: 180px;
    margin: 0 auto;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  
  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .back-to-top {
    right: var(--space-4);
    bottom: var(--space-8);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-bottom-links {
    margin-top: var(--space-4);
  }
  
  .footer-bottom-links a {
    margin: 0 var(--space-2);
  }
}
