/* Footer - Shadcn-inspired finance theme */

.site-footer {
  color: rgba(226, 232, 240, 0.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
}

.footer-container {
  position: relative;
  z-index: 1;
  width: min(1200px, 100% - 2 * 1.5rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
}

.footer-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
}

.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
  text-decoration: none;
  letter-spacing: -0.015em;
}

.footer-brand-secondary {
  color: rgba(148, 163, 184, 0.8);
}

.footer-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.7);
}

.footer-contact {
  display: grid;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
}

.contact-item i {
  color: rgba(148, 163, 184, 0.65);
}

.footer-link {
  color: rgba(226, 232, 240, 0.72);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #f8fafc;
  outline: none;
}

.footer-nav .footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0.55rem 0.9rem;
  background: rgba(148, 163, 184, 0.1);
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.footer-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.18);
  color: #e2e8f0;
  padding: 0.75rem 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.footer-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.32);
  background: rgba(99, 102, 241, 0.26);
  border-color: rgba(99, 102, 241, 0.4);
}

.footer-cta .cta-arrow {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.footer-bottom a {
  color: rgba(148, 163, 184, 0.7);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #f8fafc;
}

.footer-legal {
  display: flex;
  gap: 1rem;
}

.footer-legal .footer-link {
  font-size: 0.75rem;
}

.footer-brand-secondary:nth-of-type(2) {
  color: rgba(148, 163, 184, 0.7);
}

@media (max-width: 768px) {
  .footer-container {
    width: calc(100% - 2 * 1.25rem);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}
