/* ============================================================
   Footer — Premium Multi-Column Layout
   ============================================================ */

.site-footer {
  background: linear-gradient(180deg, rgba(4, 12, 21, 0.98) 0%, #020812 100%);
  border-top: 1px solid rgba(22, 162, 255, 0.15);
  padding: 60px 0 20px;
  color: var(--text-soft);
  position: relative;
  overflow: hidden;
}

/* Subtle glow at the top of the footer */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(22, 162, 255, 0.5), transparent);
  box-shadow: 0 0 20px rgba(22, 162, 255, 0.3);
}

/* ---------- Top CTA Section ---------- */
.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(56, 129, 210, 0.15);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-cta h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.footer-cta-btn {
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s ease;
  box-shadow: 0 0 20px rgba(22, 162, 255, 0.3);
}

.footer-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(22, 162, 255, 0.5);
}

/* ---------- Main Grid ---------- */
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

/* ---------- Brand Column ---------- */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 50px;
  width: auto;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 700;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

/* ---------- Social Icons (Larger) ---------- */
.footer-socials {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.footer-socials a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(22, 162, 255, 0.08);
  border: 1px solid rgba(22, 162, 255, 0.2);
  display: grid;
  place-items: center;
  color: var(--blue);
  transition: 0.3s ease;
}

.footer-socials svg {
  width: 24px;
  height: 24px;
}

.footer-socials a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(22, 162, 255, 0.45);
}

/* ---------- Columns ---------- */
.footer-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list a {
  font-size: 14px;
  transition: 0.2s ease;
  display: inline-block;
}

.footer-list a:hover {
  color: var(--blue);
  transform: translateX(4px);
}

/* Contact List specific */
.contact-list li {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.contact-list .icon {
  color: var(--blue);
  font-size: 16px;
}

/* ---------- Newsletter ---------- */
.footer-newsletter {
  display: flex;
  background: rgba(3, 10, 19, 0.8);
  border: 1px solid rgba(56, 129, 210, 0.3);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  transition: 0.3s ease;
}

.footer-newsletter:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 15px rgba(22, 162, 255, 0.15);
}

.footer-newsletter input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #fff;
  outline: none;
  font-size: 13px;
}

.footer-newsletter button {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.footer-newsletter button:hover {
  background: var(--blue-dark);
}

/* ---------- Bottom Bar ---------- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(56, 129, 210, 0.15);
  font-size: 12.5px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--blue);
}

/* ---------- Back to Top Button ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .footer-cta {
    flex-direction: column;
    text-align: center;
  }
  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}