/*
* Next Chapter Recovery - Footer Component Styles
* Version: 1.0
*/

/* ===== Site Footer ===== */
.site-footer {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Footer Top */
.footer-top {
  padding: var(--spacing-xl) 0;
}

.footer-widgets {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.footer-widget {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
  margin-bottom: var(--spacing-lg);
}

.footer-logo {
  margin-bottom: var(--spacing-md);
}

.footer-logo img {
  height: 60px;
  width: auto;
}

.widget-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
  position: relative;
  padding-bottom: var(--spacing-sm);
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--color-primary);
}

/* Footer Links */
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links li a {
  color: var(--color-gray-300);
  transition: all var(--transition-fast);
}

.footer-links li a:hover,
.footer-links li a:focus {
  color: var(--color-primary);
  text-decoration: none;
}

/* Social Links */
.social-links {
  display: flex;
  margin-top: var(--spacing-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  margin-right: var(--spacing-sm);
  transition: all var(--transition-fast);
}

.social-links a:hover,
.social-links a:focus {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* Contact Information */
.footer-widget address {
  font-style: normal;
  margin-bottom: var(--spacing-md);
}

.footer-widget address p {
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: flex-start;
}

.footer-widget address p i {
  margin-right: var(--spacing-sm);
  color: var(--color-primary);
}

.footer-widget address p a {
  color: var(--color-gray-300);
  transition: all var(--transition-fast);
}

.footer-widget address p a:hover,
.footer-widget address p a:focus {
  color: var(--color-primary);
}

.footer-cta {
  margin-top: var(--spacing-md);
}

/* Footer Bottom */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--spacing-md) 0;
  font-size: 0.875rem;
}

.footer-bottom .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.copyright {
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.footer-bottom-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-bottom-links ul li {
  margin: 0 var(--spacing-sm);
}

.footer-bottom-links ul li a {
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.footer-bottom-links ul li a:hover,
.footer-bottom-links ul li a:focus {
  color: var(--color-primary);
}

/* Newsletter Form in Footer */
.footer-newsletter {
  margin-top: var(--spacing-md);
}

.footer-newsletter h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-white);
}

.footer-newsletter p {
  margin-bottom: var(--spacing-md);
  color: var(--color-gray-300);
}

.footer-newsletter .newsletter-form {
  display: flex;
  flex-wrap: wrap;
}

.footer-newsletter .form-control {
  flex: 1;
  min-width: 200px;
  margin-right: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

/* Responsive adjustments */
@media (min-width: 576px) {
  .footer-bottom .container {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .copyright {
    margin-bottom: 0;
    text-align: left;
  }
  
  .footer-bottom-links ul {
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .footer-widget {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .footer-widget {
    flex: 0 0 25%;
    max-width: 25%;
    margin-bottom: 0;
  }
}