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

.wc-header-wrap {
    font-family: 'Poppins', Arial, sans-serif;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    z-index: 100;
    padding: 0;
    background:
      radial-gradient(circle at top left, rgba(56, 58, 231, 0.24), transparent 34%),
      radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.18), transparent 32%),
      linear-gradient(135deg, #07111f 0%, #101d35 48%, #182747 100%);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 14px 45px rgba(15,23,42,0.22);
  }

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

  .wc-header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.28s ease;
  }

  /* LOGO */
  .wc-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
  }

  .wc-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.14);
    transition: all 0.28s ease;
  }

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

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

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

  .wc-logo-sub {
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
  }

  /* NAV */
  .wc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .wc-nav > a,
  .wc-nav-parent {
    position: relative;
    color: #eef6ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 12px;
    border-radius: 13px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
    white-space: nowrap;
  }

  .wc-nav > a:hover,
  .wc-nav-parent:hover,
  .wc-nav-dropdown:hover .wc-nav-parent,
  .wc-nav-dropdown:focus-within .wc-nav-parent {
    background: rgba(255,255,255,0.10);
    color: var(--wc-white);
  }

  .wc-nav > a::after,
  .wc-nav-parent::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 5px;
    height: 2px;
    background: linear-gradient(90deg, var(--wc-primary), var(--wc-accent));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    border-radius: 999px;
  }

  .wc-nav > a:hover::after,
  .wc-nav-parent:hover::after,
  .wc-nav-dropdown:hover .wc-nav-parent::after,
  .wc-nav-dropdown:focus-within .wc-nav-parent::after {
    transform: scaleX(1);
  }

  .wc-nav-dropdown {
    position: relative;
  }

  .wc-nav-caret {
    font-size: 11px;
    color: #bfdbfe;
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .wc-nav-dropdown:hover .wc-nav-caret,
  .wc-nav-dropdown:focus-within .wc-nav-caret {
    transform: rotate(180deg);
    color: var(--wc-white);
  }

  .wc-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 275px;
    padding: 12px;
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(16, 29, 53, 0.96));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 28px 80px rgba(0,0,0,0.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 99;
  }

  .wc-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 18px;
    width: 20px;
    height: 20px;
    background: rgba(7, 17, 31, 0.98);
    border-left: 1px solid rgba(255,255,255,0.14);
    border-top: 1px solid rgba(255,255,255,0.14);
    transform: rotate(45deg);
  }

  .wc-nav-dropdown:hover .wc-dropdown-menu,
  .wc-nav-dropdown:focus-within .wc-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .wc-dropdown-menu a {
    position: relative;
    z-index: 2;
    display: block;
    color: #d7e3f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 14px;
    transition: all 0.25s ease;
  }

  .wc-dropdown-menu a:hover {
    background: rgba(255,255,255,0.10);
    color: var(--wc-white);
    transform: translateX(3px);
  }

  /* ACTIONS */
  .wc-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

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

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

  /* MOBILE BUTTON */
  .wc-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    border-radius: 15px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .wc-menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: var(--wc-white);
    border-radius: 999px;
    margin: 3px 0;
    transition: all 0.25s ease;
  }

  /* MOBILE PANEL */
  .wc-mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 20px;
    background: transparent;
    border: 0;
    box-shadow: none;
    animation: wcMenuFade 0.28s ease;
  }

  .wc-mobile-panel-inner {
    padding: 18px;
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(7, 17, 31, 0.96), rgba(16, 29, 53, 0.94));
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 28px 80px rgba(0,0,0,0.34);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .wc-mobile-panel a,
  .wc-mobile-submenu-toggle {
    display: block;
    width: 100%;
    color: #eef6ff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    padding: 14px 12px;
    border-radius: 14px;
    transition: background 0.25s ease, color 0.25s ease;
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
  }

  .wc-mobile-panel a:hover,
  .wc-mobile-submenu-toggle:hover {
    background: rgba(255,255,255,0.10);
    color: var(--wc-white);
  }

  .wc-mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .wc-mobile-submenu-toggle span {
    font-size: 12px;
    color: #bfdbfe;
    transition: transform 0.25s ease;
  }

  .wc-mobile-submenu {
    display: none;
    padding: 4px 0 8px 10px;
  }

  .wc-mobile-submenu a {
    display: block;
    color: #d7e3f7;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 12px;
    border-radius: 13px;
    transition: background 0.25s ease, color 0.25s ease;
  }

  .wc-mobile-submenu a:hover {
    background: rgba(255,255,255,0.10);
    color: var(--wc-white);
  }

  .wc-mobile-submenu-wrap.open .wc-mobile-submenu {
    display: block;
  }

  .wc-mobile-submenu-wrap.open .wc-mobile-submenu-toggle span {
    transform: rotate(180deg);
  }

  .wc-mobile-cta {
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .wc-mobile-cta .wc-header-btn {
    width: 100%;
    text-align: center;
  }

  .wc-header-wrap.mobile-open .wc-mobile-panel {
    display: block;
  }

  .wc-header-wrap.mobile-open .wc-menu-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .wc-header-wrap.mobile-open .wc-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .wc-header-wrap.mobile-open .wc-menu-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  @keyframes wcMenuFade {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 1100px) {
    .wc-logo-sub {
      display: none;
    }

    .wc-nav > a,
    .wc-nav-parent {
      font-size: 13px;
      padding: 10px 9px;
    }

    .wc-header-btn {
      padding: 12px 16px;
    }
  }

  @media (max-width: 980px) {
    .wc-nav,
    .wc-header-actions {
      display: none;
    }

    .wc-menu-toggle {
      display: inline-flex;
      flex-direction: column;
      flex-shrink: 0;
    }

    .wc-header-inner {
      width: min(100% - 24px, 1180px);
      padding: 14px 0;
    }

    .wc-mobile-panel {
      width: min(100% - 24px, 1180px);
    }
  }

  @media (max-width: 767px) {
    .wc-header-inner {
      padding: 12px 0;
    }

    .wc-logo-mark {
      width: 46px;
      height: 46px;
      border-radius: 14px;
    }

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

    .wc-menu-toggle {
      width: 46px;
      height: 46px;
      border-radius: 14px;
    }

    .wc-mobile-panel-inner {
      border-radius: 22px;
      padding: 16px;
    }
  }
