/*
 * Webconnect Global Footer
 * Loaded site-wide.
 */

.wc-footer-wrap {
    font-family: 'Poppins', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    background:
      radial-gradient(circle at top left, rgba(56, 58, 231, 0.28), transparent 34%),
      radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.22), transparent 32%),
      linear-gradient(135deg, #07111f 0%, #101d35 48%, #182747 100%);
    padding: 120px 0 28px;
    color: var(--wc-white);
    margin-top: 80px;
  }

  .wc-footer-wrap * {
    box-sizing: border-box;
  }

  .wc-footer-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 22%),
      radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 18%);
    pointer-events: none;
    z-index: 1;
  }

  .wc-footer-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 135px;
    background:
      linear-gradient(
        to bottom,
        var(--wc-white) 0%,
        rgba(255,255,255,0.92) 16%,
        rgba(255,255,255,0.64) 36%,
        rgba(255,255,255,0.22) 66%,
        rgba(255,255,255,0) 100%
      );
    pointer-events: none;
    z-index: 1;
  }

  .wc-footer-container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }

  .wc-footer-glass {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 34px;
    padding: 42px;
    box-shadow: 0 28px 80px rgba(0,0,0,0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .wc-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 0.9fr 0.85fr;
    gap: 36px;
    align-items: flex-start;
  }

  /* BRAND */

  .wc-footer-brand {
    max-width: 400px;
  }

  .wc-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    text-decoration: none;
    margin-bottom: 20px;
  }

  .wc-footer-logo-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 16px 35px rgba(14,165,233,0.18);
    flex-shrink: 0;
  }

  .wc-footer-logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 4px;
  }

  .wc-footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }

  .wc-footer-logo-title {
    color: var(--wc-white);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
  }

  .wc-footer-logo-sub {
    color: #bfdbfe;
    font-size: 12px;
    margin-top: 3px;
  }

  .wc-footer-text {
    margin: 0;
    color: #d7e3f7;
    font-size: 15px;
    line-height: 1.8;
  }

  /* BUTTONS */

  .wc-footer-cta {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .wc-footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--wc-primary), var(--wc-accent));
    color: var(--wc-white) !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 18px 38px rgba(14, 165, 233, 0.24);
    transition: all 0.25s ease;
    border: 1px solid transparent;
  }

  .wc-footer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(14, 165, 233, 0.32);
    color: var(--wc-white) !important;
  }

  .wc-footer-btn-secondary {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.16);
    box-shadow: none;
  }

  .wc-footer-btn-secondary:hover {
    background: rgba(255,255,255,0.14);
    box-shadow: none;
  }

  /* COLUMNS */

  .wc-footer-heading {
    margin: 0 0 18px;
    color: var(--wc-white);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.01em;
  }

  .wc-footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid;
    gap: 10px;
  }

  .wc-footer-links li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wc-footer-links li::marker,
  .wc-footer-links li::before {
    content: none !important;
  }

  .wc-footer-links a {
    color: #d7e3f7;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.45;
    transition: all 0.25s ease;
  }

  .wc-footer-links a:hover {
    color: var(--wc-white);
    padding-left: 4px;
  }

  .wc-footer-contact .wc-footer-links a {
    overflow-wrap: anywhere;
  }

  /* PORTAL LINK */

  .wc-footer-portal-link {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    color: var(--wc-white) !important;
    font-weight: 800 !important;
  }

  .wc-footer-portal-link::after {
    content: "↗";
    font-size: 13px;
    color: #93c5fd;
  }

  /* BOTTOM */

  .wc-footer-bottom {
    margin-top: 38px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
  }

  .wc-footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
  }

  .wc-footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }

  .wc-footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
  }

  .wc-footer-bottom-links a:hover {
    color: var(--wc-white);
  }

  /* BACKGROUND BLOBS */

  .wc-footer-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(4px);
  }

  .wc-footer-blob-1 {
    width: 260px;
    height: 260px;
    top: -110px;
    left: -120px;
    background: rgba(255,255,255,0.05);
  }

  .wc-footer-blob-2 {
    width: 320px;
    height: 320px;
    right: -150px;
    bottom: -160px;
    background: rgba(14,165,233,0.12);
  }

  /* RESPONSIVE */

  @media (max-width: 980px) {

    .wc-footer-wrap {
      padding: 104px 0 26px;
      margin-top: 64px;
    }

    .wc-footer-wrap::after {
      height: 120px;
    }

    .wc-footer-grid {
      grid-template-columns: 1fr 1fr;
    }

    .wc-footer-glass {
      padding: 34px;
    }

    .wc-footer-brand {
      max-width: none;
    }
  }

  @media (max-width: 640px) {

    .wc-footer-wrap {
      padding: 88px 0 22px;
      margin-top: 48px;
    }

    .wc-footer-wrap::after {
      height: 100px;
    }

    .wc-footer-container {
      width: min(100% - 22px, 1180px);
    }

    .wc-footer-glass {
      padding: 28px 24px;
      border-radius: 26px;
    }

    .wc-footer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .wc-footer-logo-title {
      font-size: 19px;
    }

    .wc-footer-bottom {
      align-items: flex-start;
      flex-direction: column;
    }

    .wc-footer-bottom-links {
      flex-direction: column;
      gap: 8px;
    }

    .wc-footer-cta {
      flex-direction: column;
    }

    .wc-footer-btn {
      width: 100%;
    }
  }
