/**
 * Modern footer – brand-aligned, hierarchy, hover effects
 */

#footer.footer-modern {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
  color: #e2e8f0;
  padding: 0;
  font-size: 15px;
}

/* ---- Newsletter strip ---- */
#footer.footer-modern .footer-newsletter {
  padding: 3rem 0;
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

#footer.footer-modern .footer-newsletter h4 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.02em;
}

#footer.footer-modern .footer-newsletter p {
  color: #cbd5e1;
  margin: 0;
  font-size: 0.95rem;
}

#footer.footer-modern .footer-newsletter form {
  margin-top: 1.5rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#footer.footer-modern .footer-newsletter form:focus-within {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#footer.footer-modern .footer-newsletter form input[type="email"] {
  border: 0;
  padding: 12px 18px;
  flex: 1;
  background: transparent;
  color: #fff;
  font-size: 1rem;
}

#footer.footer-modern .footer-newsletter form input[type="email"]::placeholder {
  color: #94a3b8;
}

#footer.footer-modern .footer-newsletter form input[type="submit"] {
  position: static;
  padding: 12px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
}

#footer.footer-modern .footer-newsletter form input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

/* ---- Main footer columns ---- */
#footer.footer-modern .footer-top {
  padding: 3.5rem 0 2.5rem;
  background: transparent;
}

#footer.footer-modern .footer-top .footer-contact h3,
#footer.footer-modern .footer-top .footer-contact h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem 0;
  letter-spacing: 0.02em;
}

#footer.footer-modern .footer-top .footer-contact p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

#footer.footer-modern .footer-top .footer-contact a {
  color: #a5b4fc;
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer.footer-modern .footer-top .footer-contact a:hover {
  color: #c7d2fe;
}

#footer.footer-modern .footer-top h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.5);
  position: relative;
}

#footer.footer-modern .footer-top .footer-links {
  margin-bottom: 2rem;
}

#footer.footer-modern .footer-top .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#footer.footer-modern .footer-top .footer-links ul li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
}

#footer.footer-modern .footer-top .footer-links ul li:first-child {
  padding-top: 0;
}

#footer.footer-modern .footer-top .footer-links ul i {
  color: #6366f1;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

#footer.footer-modern .footer-top .footer-links ul a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

#footer.footer-modern .footer-top .footer-links ul a:hover {
  color: #fff;
  padding-left: 4px;
}

#footer.footer-modern .footer-top .footer-links ul li:hover i {
  transform: translateX(2px);
}

#footer.footer-modern .footer-top .footer-links p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* ---- Social links ---- */
#footer.footer-modern .footer-top .social-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

#footer.footer-modern .footer-top .social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  border-radius: 10px;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#footer.footer-modern .footer-top .social-links a:hover {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  transform: translateY(-3px);
  text-decoration: none;
}

/* ---- Copyright bar ---- */
#footer.footer-modern .footer-bottom {
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

#footer.footer-modern .footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#footer.footer-modern .copyright {
  float: none;
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

#footer.footer-modern .copyright strong span {
  color: #c7d2fe;
  font-weight: 700;
}

#footer.footer-modern .credits {
  float: none;
  font-size: 0.9rem;
  margin: 0;
}

#footer.footer-modern .credits a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

#footer.footer-modern .credits a:hover {
  color: #c7d2fe;
}

@media (max-width: 768px) {
  #footer.footer-modern .footer-newsletter form {
    flex-direction: column;
    gap: 8px;
  }
  #footer.footer-modern .footer-newsletter form input[type="email"] {
    width: 100%;
  }
  #footer.footer-modern .footer-newsletter form input[type="submit"] {
    width: 100%;
  }
  #footer.footer-modern .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575px) {
  #footer.footer-modern .copyright,
  #footer.footer-modern .credits {
    text-align: center;
  }
}
