/* The Fit Class premium homepage header */

.tfc-home-header,
.tfc-home-header * {
  box-sizing: border-box;
}

.tfc-home-header {
  --blue: #0758ff;
  --blue-2: #1558e8;
  --ink: #071126;
  --muted: #536176;
  --line: rgba(148, 163, 184, .22);

  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tfc-home-header__inner {
  width: min(100% - 48px, 1460px);
  height: clamp(76px, 7vw, 92px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.tfc-home-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.tfc-home-header__wordmark {
  color: var(--blue-2);
  font-size: clamp(38px, 3.4vw, 58px);
  line-height: .84;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -.11em;
  transform: skew(-8deg);
}

.tfc-home-header__divider {
  width: 1px;
  height: 38px;
  background: rgba(148, 163, 184, .45);
}

.tfc-home-header__brand-text strong {
  display: block;
  color: var(--ink);
  font-size: clamp(13px, 1.1vw, 18px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .16em;
  white-space: nowrap;
}

.tfc-home-header__brand-text span {
  display: block;
  margin-top: 5px;
  color: var(--blue-2);
  font-size: clamp(7px, .7vw, 10px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: .18em;
  white-space: nowrap;
}

.tfc-home-header__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 46px);
}

.tfc-home-header__nav a {
  color: var(--ink);
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.tfc-home-header__nav a:hover,
.tfc-home-header__login:hover {
  color: var(--blue-2);
}

.tfc-home-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.tfc-home-header__login {
  color: var(--ink);
  font-size: clamp(14px, .95vw, 16px);
  line-height: 1;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.tfc-home-header__cta {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 12px;
  background: linear-gradient(105deg, var(--blue) 0%, var(--blue-2) 58%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.tfc-home-header__cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .28);
}

.tfc-home-header__cta span {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 1050px) {
  .tfc-home-header__inner {
    width: min(100% - 32px, 980px);
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .tfc-home-header__nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .tfc-home-header {
    position: sticky;
  }

  .tfc-home-header__inner {
    height: 72px;
    width: min(100% - 24px, 560px);
    gap: 14px;
  }

  .tfc-home-header__wordmark {
    font-size: 38px;
  }

  .tfc-home-header__divider,
  .tfc-home-header__brand-text span {
    display: none;
  }

  .tfc-home-header__brand-text strong {
    font-size: 11px;
    letter-spacing: .12em;
  }

  .tfc-home-header__login {
    display: none;
  }

  .tfc-home-header__cta {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 11px;
    font-size: 13px;
  }

  .tfc-home-header__cta span {
    display: none;
  }
}
