/* HCP Home: the new site header on every other page (Elementor pages, articles,
   My Account, Checkout). Same values as the homepage header (hcph.css), scoped
   under .hcph-hd so the old page styles and this header cannot affect each other. */
.hcph-hd {
  --hd-space-3xs: 2px; --hd-space-xs: 8px; --hd-space-sm: 12px; --hd-space-md: 16px; --hd-space-lg: 24px; --hd-space-xl: 40px;
  --hd-text-xs: 0.8125rem; --hd-text-sm: 0.875rem;
  --hd-gutter: 40px; --hd-container: 1320px;
  --hd-paper: oklch(97.6% 0.010 85);
  --hd-surface: oklch(99.3% 0.004 85);
  --hd-ink-2: oklch(23.1% 0.056 250.3);
  --hd-muted: oklch(47% 0.030 252);
  --hd-rule: oklch(88% 0.022 82);
  --hd-edge: oklch(62% 0.040 78);
  --hd-accent: oklch(78.8% 0.139 82);
  --hd-accent-hover: oklch(83% 0.125 84);
  --hd-accent-ink: oklch(23.1% 0.056 250.3);
  --hd-accent-wash: oklch(95.5% 0.035 85);
  --hd-focus: oklch(52% 0.120 72);
  --hd-shadow: 0 1px 2px oklch(20% 0.03 252 / 0.10), 0 22px 44px -22px oklch(20% 0.03 252 / 0.45);
  --hd-radius-inner: 4px; --hd-radius-pill: 999px;
  --hd-ease: cubic-bezier(0.16, 1, 0.3, 1); --hd-dur: 220ms;
  position: relative;
  z-index: 100;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--hd-ink-2);
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.hcph-hd *, .hcph-hd *::before, .hcph-hd *::after { box-sizing: border-box; }
.hcph-hd a { color: inherit; text-underline-offset: 0.18em; }
.hcph-hd :focus-visible { outline: 2px solid var(--hd-focus); outline-offset: 3px; }
.hcph-hd img { display: block; max-width: 100%; }
.hcph-hd .wrap { width: 100%; max-width: var(--hd-container); margin: 0 auto; padding: 0 var(--hd-gutter); }

.hcph-hd .mast { background: var(--hd-paper); border-bottom: 1px solid var(--hd-rule); margin: 0; padding: 0; }
.hcph-hd .mast .top { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--hd-space-lg); height: 88px; }
/* the logo box takes its size from the image only (no line-height jump while fonts load) */
.hcph-hd .mast .logo { display: flex; align-items: center; line-height: 0; text-decoration: none; }
.hcph-hd .mast .logo img { height: 52px; width: auto; max-width: none; border: 0; border-radius: 0; box-shadow: none; }
.hcph-hd .mast .lft { display: flex; align-items: center; gap: var(--hd-space-lg); font-size: var(--hd-text-sm); color: var(--hd-muted); }
.hcph-hd .mast .rgt { display: flex; justify-content: flex-end; align-items: center; gap: var(--hd-space-md); }
.hcph-hd .signin { font-size: var(--hd-text-sm); font-weight: 500; color: var(--hd-ink-2); text-decoration: none; }
.hcph-hd .signin:hover { text-decoration: underline; text-decoration-color: var(--hd-accent); }

.hcph-hd .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--hd-space-xs); min-height: 44px; padding: 0 var(--hd-space-lg); border-radius: var(--hd-radius-inner); border: 1.5px solid transparent; font-family: inherit; font-weight: 600; font-size: var(--hd-text-xs); line-height: 1.2; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--hd-dur) var(--hd-ease), transform 120ms var(--hd-ease); }
.hcph-hd .btn:active { transform: scale(0.98); }
.hcph-hd .btn-gold, .hcph-hd .btn-gold:visited { background: var(--hd-accent); color: var(--hd-accent-ink); }
.hcph-hd .btn-gold:hover, .hcph-hd .btn-gold:focus { background: var(--hd-accent-hover); color: var(--hd-accent-ink); }

.hcph-hd .menu { display: none; width: 44px; height: 44px; padding: 0; margin: 0; border-radius: var(--hd-radius-pill); border: 1px solid var(--hd-rule); background: var(--hd-surface); color: var(--hd-ink-2); align-items: center; justify-content: center; cursor: pointer; box-shadow: none; }
.hcph-hd .menu:hover, .hcph-hd .menu:focus { background: var(--hd-surface); border-color: var(--hd-edge); color: var(--hd-ink-2); }
.hcph-hd .menu svg { display: block; }

.hcph-hd .nav { display: flex; justify-content: center; gap: var(--hd-space-xl); border-top: 1px solid var(--hd-rule); font-size: var(--hd-text-sm); font-weight: 500; }
.hcph-hd .nav a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; color: var(--hd-ink-2); position: relative; }
.hcph-hd .nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: var(--hd-space-sm); height: 1.5px; background: var(--hd-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--hd-dur) var(--hd-ease); }
.hcph-hd .nav a:hover::after, .hcph-hd .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hcph-hd .nav .nav-acct { display: none; }

/* My Account: logo + the customer's name (or Login) */
.hcph-hd .acct { display: inline-flex; align-items: center; gap: var(--hd-space-xs); min-height: 44px; padding: 0 var(--hd-space-md); border: 1px solid var(--hd-rule); border-radius: var(--hd-radius-inner); background: var(--hd-surface); font-size: var(--hd-text-sm); font-weight: 600; color: var(--hd-ink-2); text-decoration: none; max-width: 220px; }
.hcph-hd .acct span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hcph-hd .acct svg { flex: none; }
.hcph-hd .acct:hover { border-color: var(--hd-edge); background: var(--hd-accent-wash); }

@media (max-width: 1100px) {
  .hcph-hd .mast .lft span { display: none; }
  .hcph-hd .nav { gap: var(--hd-space-lg); }
}
@media (max-width: 960px) {
  .hcph-hd { --hd-gutter: 24px; }
  .hcph-hd .nav { display: none; }
  .hcph-hd .menu { display: flex; }
  .hcph-hd .mast .top { grid-template-columns: auto minmax(0, 1fr); height: 72px; }
  .hcph-hd .mast .lft { display: none; }
  .hcph-hd .mast .logo img { height: 40px; }
  .hcph-hd .mast.open .nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--hd-paper); border-top: 1px solid var(--hd-rule); border-bottom: 1px solid var(--hd-rule); padding: var(--hd-space-xs) var(--hd-gutter) var(--hd-space-md); box-shadow: var(--hd-shadow); }
  .hcph-hd .mast.open .nav a { min-height: 48px; border-bottom: 1px solid var(--hd-rule); }
  .hcph-hd .mast.open .nav a:last-child { border-bottom: 0; }
  .hcph-hd .mast.open .nav a::after { display: none; }
  .hcph-hd .mast.open .nav .nav-acct { display: flex; align-items: center; font-weight: 600; }
}
@media (min-width: 601px) and (max-width: 960px) {
  .hcph-hd .signin { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 600px) {
  .hcph-hd { --hd-gutter: 20px; }
  .hcph-hd .signin { display: none; }
  .hcph-hd .mast .top { height: 64px; gap: var(--hd-space-sm); }
  .hcph-hd .mast .logo img { height: 32px; }
  .hcph-hd .mast .rgt { gap: var(--hd-space-xs); }
  .hcph-hd .btn { padding: 0 var(--hd-space-md); }
}

/* Account and Checkout: logo centred on every screen, no menu */
.hcph-hd.hd-acct .mast .top, .hcph-hd.hd-co .mast .top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
@media (max-width: 960px) {
  .hcph-hd.hd-acct .mast .top { grid-template-columns: auto minmax(0, 1fr); }
}
.hcph-hd.hd-co .mast .top { display: flex; justify-content: center; }
/* Checkout: the FunnelKit template's own logo bar is replaced by this header */
body.woocommerce-checkout .elementor-6969 .elementor-element-3306151 { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .hcph-hd *, .hcph-hd *::after { transition: none !important; }
}

/* FunnelKit thank-you page (6620): hide its old logo bar, our logo-only bar replaces it. */
body.single-wffn_ty .elementor-6620 .elementor-element-2337495 { display: none !important; }
