/* ==========================================================================
   FLEXVEL UNIFIED FOOTER — SINGLE SOURCE OF TRUTH
   Shared across:
     - FlexVel Main Landing (main-landing/index.html)
     - Monetix Landing (index.html)
     - Privacy Policy (privacy.html)
     - Terms of Use (terms.html)
   ========================================================================== */

flexvel-footer {
  display: block;
  width: 100%;
}

.footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  padding-top: 80px;
  overflow: hidden;
  background: transparent;
  color: var(--text, #F0F0F8);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.footer-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(124, 92, 255, 0.1), transparent 70%);
  pointer-events: none;
}

/* Dedicated footer container to completely prevent collisions with page .container */
.footer-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  padding-top: 0;
  padding-bottom: 60px;
}

/* Brand Column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  height: 32px;
  position: static !important;
  z-index: auto !important;
}

.footer-brand .nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  filter: none !important;
}

.footer-brand .logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #F0F0F8);
  line-height: 1;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 260px;
  line-height: 1.6;
  color: var(--text-muted, #8888AA);
  margin: 0;
}

/* Link Columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-col h4 {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim, #4A4A6A);
  margin: 0 0 14px 0;
  line-height: 1.6;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted, #8888AA);
  text-decoration: none;
  transition: color 0.25s ease;
  line-height: 1.6;
  white-space: nowrap;
}

.footer-col a:hover {
  color: var(--text, #F0F0F8);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
  padding: 22px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom span {
  font-size: 0.83rem;
  color: var(--text-dim, #4A4A6A);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: 44px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col a {
    white-space: normal;
    word-break: break-word;
  }
}

@media (max-width: 340px) {
  .footer-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ==========================================================================
   FLEXVEL LANGUAGE SWITCHER (NAVBAR & FOOTER) — NO FLAGS
   ========================================================================== */

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 4px 8px;
  color: var(--text, #F0F0F8);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.lang-switch-btn:hover,
.lang-switch.open .lang-switch-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.lang-globe-icon {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  flex-shrink: 0;
}

.lang-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.6;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-switch.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  min-width: 150px;
  background: rgba(15, 15, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
}

.lang-switch.open .lang-dropdown {
  display: flex;
}

/* Nav dropdown position */
.nav .lang-dropdown,
.navbar .lang-dropdown {
  top: calc(100% + 8px);
  right: 0;
}

/* Footer dropdown position (opens upward) */
.footer-bottom .lang-dropdown {
  bottom: calc(100% + 8px);
  right: 0;
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    gap: 14px;
    align-items: center;
  }
  .footer-bottom .lang-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-muted, #9090B0);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
  line-height: 1.2;
  white-space: nowrap;
}

.lang-option:hover {
  background: rgba(124, 92, 255, 0.14);
  color: #FFFFFF;
}

.lang-option.active {
  background: rgba(124, 92, 255, 0.22);
  color: #A78BFA;
  font-weight: 600;
}

.lang-option.active::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #A78BFA;
  box-shadow: 0 0 8px #A78BFA;
}

