/* static/css/components/footer.css */
/* Footer styles */

footer {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-content {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  gap: 32px;
}

.footer-column {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  padding-right: 0;
}

.footer-brand {
  flex: 1;
}

.footer-brand p {
  max-width: 300px;
  text-wrap: balance;
}

.footer-credentials {
  flex: 1;
}

.footer-column h3 {
  color: var(--text-white);
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
  display: flex;
  align-items: center;
}

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

.footer-column p {
  margin-bottom: var(--space-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--bg-medium);
}

.footer-column a {
  display: block;
  color: var(--bg-medium);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-btn {
  display: inline-block;
  background: white;
  color: var(--primary-dark) !important;
  text-decoration: none;
  padding: 11px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}

.footer-cta-btn:hover {
  background: var(--primary, #3a7bd5);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(58,123,213,0.4);
  text-decoration: none !important;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Footer Logo */
.footer-logo-img {
  max-width: 120px;
  max-height: 120px;
  width: 36px;
  height: 36px;
  margin-right: var(--space-xs);
  object-fit: contain;
  border-radius: 30%; /* Rounded borders */
  padding: 2px;
}

/* Social Media Icons */
.social-icons {
  display: flex;
  margin-top: var(--space-md);
}

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

.social-icons a:hover {
  background-color: var(--primary);
}

.social-icons img {
  width: 16px;
  height: 16px;
}

/* Instagram link styling */
.instagram-link {
  display: flex !important;
  align-items: center;
  gap: var(--space-sm);
  width: auto !important;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md) !important;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  color: white !important;
  font-weight: 500;
  text-decoration: none;
}

.instagram-link:hover {
  background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #f09433 100%) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.instagram-link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.social-text {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Footer languages styling */
.footer-languages {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
  margin-top: 0;
}

.footer-language-option {
  display: flex;
  align-items: center;
  color: var(--bg-medium);
  text-decoration: none;
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.footer-language-option:hover {
  color: var(--text-white);
  text-decoration: none;
}

.footer-language-option.active {
  color: var(--text-white);
  font-weight: 500;
}

.flag-icon {
  display: inline-block;
  margin-right: 8px;
  font-size: 16px;
}

/* Credentials Section */
.footer-badge-wrap {
  background: white;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer-hm-badge {
  display: block;
  width: 150px;
  height: auto;
}

.footer-icf-note {
  font-size: 0.82rem;
  color: var(--bg-medium);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-xs);
  margin-bottom: 0;
}

.icf-check {
  color: var(--primary-light);
  font-weight: bold;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .footer-content {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-brand { flex: 0 0 100%; }
  .footer-column { flex: 1; min-width: 140px; }
  .footer-credentials { flex: 0 0 auto; }
}

@media (max-width: 767px) {
  .footer-content {
    flex-direction: column;
    gap: 0;
  }

  .footer-column,
  .footer-credentials {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100% !important;
    margin-bottom: var(--space-lg);
    padding-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-bottom-right {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .footer-languages {
    flex-direction: row;
  }
}