/* Footer Styles */

.footer-section {
  position: relative;
  width: 100%;
  background-color: #020813;
  color: #ffffff;
  overflow: hidden;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(0, 180, 255, 0.35);
}

.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 80% 108%, rgba(0, 120, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 105%, rgba(0, 200, 255, 0.14), transparent 70%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(12, 1fr);
  }
}

.footer-col-brand {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-col-brand {
    grid-column: span 4;
    padding-right: 1rem;
  }
}

.footer-col-links {
  grid-column: span 1;
}

@media (min-width: 1024px) {
  .footer-col-links {
    grid-column: span 2;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
  }
}

.footer-col-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
}

.footer-col-bar {
  width: 1.5rem;
  height: 1.5px;
  background-color: var(--cyan-primary);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 12px;
  color: rgba(203, 213, 225, 0.9);
}

.footer-list-btn {
  text-align: left;
  transition: color var(--transition-fast);
  color: inherit;
}

.footer-list-btn:hover {
  color: var(--cyan-bright);
}

/* Social Buttons */
.social-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 180, 255, 0.3);
  background-color: rgba(4, 18, 36, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}

/* Bottom Legal Bar */
.footer-bottom-bar {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 11px;
  color: #94a3b8;
}

@media (min-width: 640px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal-links button:hover,
.footer-legal-links a:hover {
  color: #ffffff;
}

.footer-legal-links a { transition: color var(--transition-fast); }


/* ---- Phones: compact two-column footer instead of one long stack ---- */
@media (max-width: 639px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
    padding-bottom: 1.5rem;
  }

  .footer-col-brand { grid-column: 1 / -1; }

  .footer-col-bar { margin-bottom: 0.5rem; }

  .footer-list { gap: 0; font-size: 13px; }

  .footer-list li { min-width: 0; }

  .footer-list-btn { text-align: start; overflow-wrap: anywhere; }

  /* contact details: icon + text can wrap instead of pushing the column wider */
  .footer-list li.flex { align-items: flex-start; padding: 0.3rem 0; }

  .footer-bottom-bar { text-align: center; }
  .footer-legal-links { flex-wrap: wrap; justify-content: center; row-gap: 0; }
  .footer-legal-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.25rem; }
  .footer-legal-links > span.w-6 { display: none; }
}
