/* ============================================
   IIFIS — Footer
   ============================================ */

.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── Newsletter Bar ── */
.footer-newsletter {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
  padding: var(--space-12) 0;
  position: relative;
}

.footer-newsletter .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.footer-newsletter h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
}

.footer-newsletter p {
  color: rgba(11, 31, 58, 0.7);
  margin-bottom: 0;
}

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

.newsletter-form input {
  padding: 12px 20px;
  border: 2px solid rgba(11, 31, 58, 0.15);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--color-text);
  width: 300px;
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--color-primary);
  background: var(--color-bg);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
}

.newsletter-form input::placeholder {
  color: var(--color-text-subtle);
}

@media (max-width: 768px) {
  .footer-newsletter .container {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
  }
}

/* ── Footer Main ── */
.footer-main {
  padding: var(--space-16) 0 var(--space-10);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-about .nav-logo {
  margin-bottom: var(--space-5);
}

.footer-about .nav-logo-name {
  color: var(--color-text-light);
}

.footer-about .nav-logo-tagline {
  color: rgba(255, 255, 255, 0.5);
}

.footer-about p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ── Footer Columns ── */
.footer-col h4 {
  color: var(--color-text-light);
  font-size: var(--text-base);
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: var(--space-5);
  position: relative;
  padding-bottom: var(--space-3);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-links a::before {
  content: '›';
  color: var(--color-secondary);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary-light);
  padding-left: var(--space-2);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* ── Footer Contact Info ── */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact-item .icon {
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Footer Bottom ── */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-6) 0;
  position: relative;
  z-index: 1;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.footer-legal {
  display: flex;
  gap: var(--space-4);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--color-secondary-light);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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