/* Modern Footer Styles */

.footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  color: #ffffff;
  padding: 3.5rem 0 0;
  margin-top: var(--spacing-2xl);
  border-top: 3px solid;
  border-image: linear-gradient(90deg, var(--primary), var(--secondary)) 1;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer .container {
  width: min(1280px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  background: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin-bottom: var(--spacing-xl);
}

.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 65%);
  opacity: 0.6;
  pointer-events: none;
}

.footer-cta-copy {
  position: relative;
  z-index: 1;
  flex: 1;
}

.footer-cta .eyebrow {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 1);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.footer-cta h3 {
  margin: 0 0 0.5rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.footer-cta .lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-cta-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-cta .btn-primary {
  background: #f4f8fb;
  color: var(--dark);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.18);
}

.footer-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f4f8fb;
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl) 0;
  position: relative;
  z-index: 1;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-col:last-child {
  text-align: left;
}
}

.footer-logo {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 2rem;
  display: inline-block;
  min-width: 40px;
}

.footer-logo h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.footer-logo .tagline {
  font-size: 0.85rem;
  color: rgba(29, 194, 168, 0.9);
  margin: 0.2rem 0 0 0;
  font-weight: 500;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.35rem 0 0.75rem 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.2rem 0 0.6rem 0;
}

.footer-badge {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 194, 168, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-note {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
  margin: 0.3rem 0 0.5rem 0;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(29, 194, 168, 0.12);
  border: 2px solid rgba(29, 194, 168, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green), var(--teal));
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: -1;
}

.social-btn:hover {
  border-color: var(--teal);
  color: white;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(29, 194, 168, 0.3);
}

.social-btn:hover::before {
  opacity: 0.2;
}

.social-btn svg {
  fill: currentColor;
}

/* Titles */
.footer-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 1.2rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(29, 194, 168, 0.3);
  letter-spacing: -0.01em;
  position: relative;
}

.footer-title::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-col:hover .footer-title::before {
  width: 30px;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-block;
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transition: width 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-links a:hover {
  color: var(--teal);
  padding-left: 4px;
}

.footer-links a:hover::after {
  width: 100%;
}

/* Contact */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  background: rgba(29, 194, 168, 0.08);
  border-radius: 8px;
  border-left: 2px solid var(--green);
  border-right: none;
  transition: all 280ms ease;
  width: 100%;
  flex-direction: row;
  text-align: left;
}

.footer-contact li:hover {
  background: rgba(29, 194, 168, 0.15);
  border-left-color: var(--teal);
  transform: translateX(4px);
}

.contact-icon {
  font-size: 1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(29, 194, 168, 0.35);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 0.2rem 0;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin: 0;
  transition: color 250ms ease;
  word-break: break-word;
}

.footer-contact a:hover {
  color: var(--teal);
}

.contact-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  word-break: break-word;
}

/* Footer Bottom */
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(29, 194, 168, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  font-weight: 500;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-legal a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 250ms ease;
  position: relative;
}

.footer-legal a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 250ms ease;
}

.footer-legal a:hover {
  color: var(--teal);
}

.footer-legal a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    padding: 2.5rem 0 0 0;
    margin-top: 3.5rem;
  }

  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-cta-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
  }

  .footer-brand-col {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}
