/* =========================================================
   FUNNEL HEADER WRAPPER
========================================================= */

.site-header_wrapper {
  position: sticky;
  top: 0;
  z-index: 9999;
  width: 100%;

  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(77, 184, 255, 0.22);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 0 18px rgba(77, 184, 255, 0.14),
    0 12px 35px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   MAIN HEADER LAYOUT
========================================================= */

.funnel-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  padding: 14px 30px;
  box-sizing: border-box;
}

/* =========================================================
   LOGO
========================================================= */

.funnel-logo-wrap {
  flex-shrink: 0;
}

.funnel-logo-wrap img {
  width: min(170px, 42vw);
  height: auto;
  display: block;
}

/* =========================================================
   LOGO ANIMATION
========================================================= */

.funnel-logo-pop {
  cursor: pointer;
  display: inline-block;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.funnel-logo-pop:hover {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 0 18px rgba(77, 184, 255, 0.45));
}

.funnel-logo-pop:active {
  transform: scale(0.94);
}

/* =========================================================
   HEADER BUTTON GROUP
========================================================= */

.funnel-header-buttons {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}

.funnel-header-buttons a {
  white-space: nowrap;
}

/* =========================================================
   HIDE MOBILE MENU BY DEFAULT
========================================================= */

.funnel-mobile-menu-toggle,
.funnel-mobile-dropdown {
  display: none;
}

/* =========================================================
   SHARED BUTTON STYLE
========================================================= */

.funnel-primary-button,
.funnel-phone-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 14px 24px;
  border-radius: 999px;

  text-decoration: none;
  font-weight: 800;
  color: #ffffff;

  flex: 0 0 auto;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

/* =========================================================
   PRIMARY BUTTON
========================================================= */

.funnel-primary-button {
  background: rgba(77, 184, 255, 0.18);
  border: 1px solid rgba(77, 184, 255, 0.58);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 22px rgba(77, 184, 255, 0.28);
}

.funnel-primary-button:hover {
  transform: translateY(-2px);
  background: rgba(77, 184, 255, 0.24);
  border-color: rgba(77, 184, 255, 0.85);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 30px rgba(77, 184, 255, 0.45);
}

/* =========================================================
   PHONE BUTTON
========================================================= */

.funnel-phone-button {
  background: rgba(77, 184, 255, 0.1);
  border: 1px solid rgba(77, 184, 255, 0.35);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px rgba(77, 184, 255, 0.18);
}

.funnel-phone-button:hover {
  transform: translateY(-2px);
  background: rgba(77, 184, 255, 0.16);
  border-color: rgba(77, 184, 255, 0.6);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 25px rgba(77, 184, 255, 0.35);
}

/* =========================================================
   PHONE ICON
========================================================= */

.phone-icon {
  color: #ff3b3b;
  font-size: 1rem;
  line-height: 1;

  text-shadow:
    0 0 8px rgba(255, 59, 59, 0.7),
    0 0 18px rgba(255, 59, 59, 0.35);
}

/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes underlinePulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scaleX(0.95);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* =========================================================
   MOBILE MENU
========================================================= */

@media (max-width: 768px) {
  .funnel-header-inner {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 14px 0;
  }

  .funnel-logo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 18px;
    box-sizing: border-box;
  }

  .funnel-logo-wrap img {
    width: min(150px, 48vw);
  }

  .funnel-header-buttons {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-left: 0;
    width: 100%;
  }

  .desktop-header-button {
    display: none;
  }

  .funnel-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 14px 22px;

    background: transparent;
    border: none;
    border-top: 1px solid rgba(77, 184, 255, 0.28);
    border-bottom: 1px solid rgba(77, 184, 255, 0.45);

    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;

    position: relative;

    transition:
      border-color 0.25s ease,
      transform 0.25s ease;
  }

  .funnel-mobile-menu-toggle::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;

    background: linear-gradient(
      90deg,
      transparent,
      rgba(77, 184, 255, 0.9),
      transparent
    );

    box-shadow:
      0 0 8px rgba(77, 184, 255, 0.7),
      0 0 18px rgba(77, 184, 255, 0.35);

    animation: underlinePulse 2s infinite ease-in-out;
  }

  .funnel-mobile-menu-toggle:hover {
    transform: translateY(-2px);
    border-top-color: rgba(77, 184, 255, 0.55);
    border-bottom-color: rgba(77, 184, 255, 0.75);
  }

  .funnel-mobile-dropdown {
    display: none;
    flex-direction: column;
    gap: 10px;

    width: 100%;
    max-width: none;
    margin-top: 14px;
  }

  #funnelHeaderButtons.mobile-open .funnel-mobile-dropdown {
    display: flex;
  }

  .funnel-mobile-dropdown .funnel-primary-button,
  .funnel-mobile-dropdown .funnel-phone-button {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 15px 20px;
    font-size: 0.95rem;
    box-sizing: border-box;
    border-radius: 0;
    justify-content: center;
  }
}
