/* The Fit Class - Home Header */

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

.tfc-home-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(18, 101, 255, .10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tfc-home-header__inner {
  width: min(1480px, calc(100% - 20px));
  min-height: 82px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.tfc-home-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #071126;
  text-decoration: none;
}

.tfc-home-header__wordmark {
  color: #1265ff;
  font-size: 44px;
  line-height: .82;
  font-weight: 950;
  letter-spacing: -.12em;
  transform: skew(-10deg);
}

.tfc-home-header__divider {
  width: 1px;
  height: 42px;
  background: rgba(7, 17, 38, .16);
}

.tfc-home-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tfc-home-header__brand-text strong {
  color: #071126;
  font-size: 17px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .13em;
  white-space: nowrap;
}

.tfc-home-header__brand-text span {
  color: #1265ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .18em;
  white-space: nowrap;
}

.tfc-home-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 3vw, 48px);
}

.tfc-home-header__nav a,
.tfc-home-header__login {
  color: #071126;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.025em;
  transition: color .18s ease;
}

.tfc-home-header__nav a:hover,
.tfc-home-header__login:hover {
  color: #1265ff;
}

.tfc-home-header__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tfc-home-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.025em;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.20), transparent 34%),
    linear-gradient(135deg, #1265ff 0%, #4938ff 100%);
  box-shadow:
    0 14px 30px rgba(18, 101, 255, .24),
    inset 0 1px 0 rgba(255,255,255,.22);
  white-space: nowrap;
}

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

/* Tablet */
@media (max-width: 980px) {
  .tfc-home-header__inner {
    min-height: 74px;
    padding: 0 12px;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
  }

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

  .tfc-home-header__actions {
    justify-content: flex-end;
    gap: 14px;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .tfc-home-header {
    overflow: hidden;
  }

  .tfc-home-header__inner {
    width: calc(100% - 20px);
    min-height: 70px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .tfc-home-header__brand {
    flex: 0 0 auto;
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    overflow: visible;
    gap: 0;
    padding-left: 4px;
  }

  .tfc-home-header__wordmark {
    width: auto;
    max-width: none;
    font-size: 32px;
    line-height: 1;
    letter-spacing: -.12em;
    transform: skew(-8deg);
    margin: 0;
    padding: 0;
  }

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

  .tfc-home-header__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
  }

  .tfc-home-header__cta {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    gap: 6px;
  }

  .tfc-home-header__cta span {
    font-size: 14px;
  }
}

@media (max-width: 370px) {
  .tfc-home-header__inner {
    width: calc(100% - 20px);
    padding: 0;
    gap: 8px;
  }

  .tfc-home-header__brand {
    width: 82px;
    min-width: 82px;
    max-width: 82px;
  }

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

  .tfc-home-header__cta {
    min-height: 39px;
    padding: 0 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 340px) {
  .tfc-home-header__brand {
    width: 66px;
    min-width: 66px;
    max-width: 66px;
  }

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

  .tfc-home-header__cta {
    padding: 0 9px;
    font-size: 11px;
  }
}

/* FINAL MOBILE EDGE FIX
   The header owns the 10px screen gutter. The inner row is 100% width,
   so the logo and CTA cannot sit flush against the viewport edge. */
@media (max-width: 680px) {
  .tfc-home-header {
    width: 100%;
    overflow-x: hidden;
    padding-left: 10px;
    padding-right: 10px;
  }

  .tfc-home-header__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .tfc-home-header__brand {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    padding-left: 0;
  }

  .tfc-home-header__actions {
    flex: 0 0 auto;
    min-width: 0;
  }

  .tfc-home-header__cta {
    max-width: 100%;
  }
}

@media (max-width: 370px) {
  .tfc-home-header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .tfc-home-header__inner {
    width: 100%;
    gap: 8px;
  }

  .tfc-home-header__brand {
    width: auto;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 340px) {
  .tfc-home-header__brand {
    width: auto;
    min-width: 0;
    max-width: none;
  }
}
