/* ========================================
   SmartHire247 - Footer & Pre-Footer CTA
   ======================================== */

/* -- Pre-Footer CTA -- */
.pre-footer-cta {
  background: linear-gradient(135deg, hsla(270, 78%, 60%, 0.1) 0%, hsla(270, 78%, 60%, 0.02) 100%);
  border-top: 1px solid hsla(270, 78%, 60%, 0.2);
  padding: 48px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pre-footer-cta .cta-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.pre-footer-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.pre-footer-cta .cta-btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

.footer-cta-secondary {
  border-color: rgba(255, 255, 255, 0.2);
}

/* -- Global Footer -- */
.global-footer {
  background: linear-gradient(to bottom, #0f111a 0%, #07080d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 48px clamp(20px, 5vw, 80px) 28px;
  color: #94a3b8;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 32px 28px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.footer-brand .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand .nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.footer-brand .nav-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #64748b;
}

.footer-app-download {
  margin: 18px 0 4px;
}

.footer-app-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

.footer-app-download .btn-app-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: none;
}

.footer-app-download .btn-app-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.footer-app-download .btn-app-install svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-socials a:hover {
  background: hsla(270, 78%, 60%, 0.1);
  border-color: hsla(270, 78%, 60%, 0.4);
  color: #a78bfa;
  transform: translateY(-3px);
}

.footer-col {
  min-width: 0;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  color: #cbd5e1;
  font-weight: 700;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-col ul a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-address {
  margin-top: 14px;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-admin-wrap {
  margin-top: 14px;
}

.footer-admin-link {
  font-size: 0.72rem;
  color: #64748b;
  text-decoration: none;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.footer-admin-link:hover {
  opacity: 1;
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* -- Responsive -- */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .global-footer {
    padding: 40px 18px 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 22px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 540px) {
  .pre-footer-cta {
    padding: 36px 16px;
  }

  .pre-footer-cta .cta-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .global-footer {
    padding: 32px 16px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    margin-bottom: 24px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-brand .nav-brand,
  .footer-socials {
    justify-content: center;
  }

  .footer-col ul a:hover {
    transform: translateY(-2px);
  }
}
