/* ==========================================================================
   Header — black bar, logo left, CTA + menu toggle right
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  background: var(--c-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.5s ease 0.35s, border-color 0.5s ease 0.35s;
}

/* Header goes see-through while the split menu is open */
body.menu-open .site-header {
  background-color: transparent;
  border-color: transparent;
  transition-delay: 0s;
}

.site-header__logo img {
  width: clamp(150px, 14vw, 210px);
  height: auto;
}

/* Hidden until the preloader logo lands on it */
body.is-loading .site-header__logo img { opacity: 0; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

/* Actions fade in after the logo lands */
.site-header__actions > * {
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
}

body.is-loading .site-header__actions > * {
  opacity: 0;
  transform: translateY(-8px);
}

.site-header__cta {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 13px 22px;
  border: 0;
  border-radius: 14px;
  background: #df5828;
  color: #fff;
  transition: background-color 0.3s ease, opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.site-header__cta:hover { background: #c44a1f; }

body.menu-open .site-header__cta { opacity: 0; pointer-events: none; }

/* Menu toggle ---------------------------------------------------------- */
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 44px;
}

.menu-toggle__label {
  position: relative;
  display: grid;
  height: 1.2em;
  overflow: hidden;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 2px;
  color: #e6dfd2;
  text-transform: uppercase;
}

.menu-toggle__label span {
  grid-area: 1 / 1;
  transition: transform 0.5s var(--ease-in-out);
}

.menu-toggle__label span:last-child { transform: translateY(110%); }

.menu-toggle[aria-expanded="true"] .menu-toggle__label span:first-child { transform: translateY(-110%); }
.menu-toggle[aria-expanded="true"] .menu-toggle__label span:last-child { transform: translateY(0); }

.menu-toggle__icon {
  position: relative;
  width: 34px;
  height: 14px;
}

.menu-toggle__icon i {
  position: absolute;
  right: 0;
  height: 2px;
  background: currentColor;
  transition: transform 0.5s var(--ease-in-out), width 0.4s var(--ease-in-out), background-color 0.3s;
}

.menu-toggle__icon i:first-child { top: 0; width: 100%; }
.menu-toggle__icon i:last-child  { bottom: 0; width: 65%; }

.menu-toggle:hover .menu-toggle__icon i { background: var(--c-accent); }
.menu-toggle:hover .menu-toggle__icon i:last-child { width: 100%; }

.menu-toggle[aria-expanded="true"] .menu-toggle__icon i { width: 100%; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 767px) {
  .site-header__cta { display: none; }
  .menu-toggle__label { font-size: 12px; }
}

/* Made in USA badge --------------------------------------------------- */
.usa-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(24px, 3vw, 48px);
  margin-right: auto;
  padding: 6px 16px 6px 8px;
  border-radius: 14px;
  transition: background-color 0.3s ease;
}

.usa-badge:hover { background: rgba(255, 255, 255, 0.06); }

.usa-badge__flag { width: 46px; }

.usa-badge__text { display: grid; line-height: 1.15; }

.usa-badge__text strong {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.81px;
  text-transform: uppercase;
  color: #fff;
}

.usa-badge__text em {
  font-family: var(--font-serif);
  font-weight: 700;
  font-style: normal;
  font-size: 13px;
  color: #e6dfd2;
}

body.is-loading .usa-badge { opacity: 0; }
.usa-badge { transition: opacity 0.6s ease, background-color 0.3s ease; }

/* Cart ---------------------------------------------------------------- */
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #e6dfd2;
  transition: background-color 0.3s ease, color 0.3s ease, opacity 0.6s ease, transform 0.6s var(--ease-out);
}

.cart-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.cart-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.cart-link__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #df5828;
  color: #fff;
  font: 700 11px/18px var(--font-body);
  text-align: center;
}

body.menu-open .usa-badge,
body.menu-open .cart-link { opacity: 0; pointer-events: none; }

@media (max-width: 1100px) {
  .usa-badge__text { display: none; }
  .usa-badge { padding-right: 8px; }
}

@media (max-width: 767px) {
  .usa-badge { margin-left: 12px; }
  .usa-badge__flag { width: 36px; }
}
