/* ============================================================
   HEADER + NAVIGATION REFINEMENT
   modern golf club x editorial menswear x Dartee
   Scope: global header chrome only.
   ============================================================ */

:root {
  --hd-green: #082a24;
  --hd-green-soft: #24463d;
  --hd-pink: #ec4d8b;
  --hd-cream: #f4f0e6;
  --hd-h: 62px;
}

/* ---------- 1. ANNOUNCEMENT: quiet utility strip ---------- */
.announce {
  background-color: var(--hd-green);
  background-image: none;
  color: rgba(244, 240, 230, .88);
  font-family: var(--ff-sans, "Archivo", system-ui, sans-serif);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 16px;
  transition: max-height .32s ease, opacity .24s ease, padding .32s ease;
  max-height: 40px;
  overflow: hidden;
}
.announce__track { gap: 0; }
.announce__track span { display: inline-block; }
.announce b,
.announce strong {
  font-weight: 600;
  color: var(--hd-pink);
  letter-spacing: .14em;
}
/* the separating bullet reads as a hairline, not punctuation shouting */
.announce .announce__dot {
  display: inline-block;
  margin: 0 .85em;
  color: rgba(244, 240, 230, .42);
}

/* ---------- 11. SCROLL: announce retracts, nav stays ---------- */
body.hd-scrolled .announce {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------- 2 / 7. ONE CONTINUOUS NAV BAR ---------- */
.header {
  background-color: #fff;
  /* texture only, no columns */
  background-image: none;
  border-top: none;
  border-bottom: 1px solid var(--hd-pink);
  box-shadow: none;
  transition: box-shadow .3s ease, border-color .3s ease;
}
body.hd-scrolled .header {
  box-shadow: 0 1px 0 rgba(8, 42, 36, .06), 0 6px 18px -14px rgba(8, 42, 36, .22);
}

/* ---------- 10. one shared content grid, everything centered ---------- */
.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hd-h);
  gap: clamp(20px, 3vw, 48px);
}

/* ---------- 3. LOGO as the brand anchor ---------- */
.header .logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.header .logo__img {
  height: 50px;
  width: auto;
  display: block;
}

/* ---------- 4 / 5. NAV typography + breathing room ---------- */
.header .nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.1vw, 46px);
  flex: 1 1 auto;
  justify-content: center;
}
.header .nav > a,
.header .nav__shop {
  position: relative;
  font-family: var(--ff-sans, "Archivo", system-ui, sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--hd-green);
  line-height: 1;
  padding: 6px 0;
  transition: color .2s ease;
}
.header .nav__item--has { display: inline-flex; align-items: center; }
.header .nav__shop {
  gap: 7px;
  background: none;
  border: 0;
}
.header .nav__shop svg { width: 11px; height: 11px; stroke-width: 2; }

/* 6. hover: hairline pink sweeps left to right */
.header .nav > a::after,
.header .nav__shop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--hd-pink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .32s cubic-bezier(.4, .1, .2, 1);
}
.header .nav > a:hover,
.header .nav__item--has:hover .nav__shop,
.header .nav__item--has:focus-within .nav__shop { color: var(--hd-green); }
.header .nav > a:hover::after,
.header .nav > a:focus-visible::after,
.header .nav__item--has:hover .nav__shop::after,
.header .nav__item--has:focus-within .nav__shop::after { transform: scaleX(1); }

/* 6. active page: deep green + thin pink rule, never teal */
.header .nav > a[aria-current="page"],
.header .nav__item--has.is-current .nav__shop {
  color: var(--hd-green);
  font-weight: 600;
}
.header .nav > a[aria-current="page"]::after,
.header .nav__item--has.is-current .nav__shop::after { transform: scaleX(1); }

/* ---------- 8. SEARCH + CART: bare icons, tighter utility area ---------- */
.header .header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
}
.header .icon-btn {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  width: auto;
  height: auto;
  color: var(--hd-green);
  transition: color .2s ease;
}
.header .icon-btn:hover { color: var(--hd-pink); }
.header .icon-btn svg { width: 21px; height: 21px; stroke-width: 1.7; }
.header .icon-btn .cart-count {
  background: var(--hd-pink);
  color: #fff;
  font-family: var(--ff-sans, "Archivo", system-ui, sans-serif);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  margin-left: -4px;
}

/* mega panel keeps the same quieter language */
.header .nav__mega { border-top: 1px solid rgba(8, 42, 36, .08); }
.header .nav__mega-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--hd-pink);
}

/* ---------- 12. MOBILE: menu | logo | search | bag ---------- */
@media (max-width: 900px) {
  .header__bar { height: 56px; gap: 8px; }
  .header .logo__img { height: 44px; }
  .header .navtoggle { color: var(--hd-green); }
  .header .navtoggle svg { width: 23px; height: 23px; stroke-width: 1.8; }
  .header .header__actions { gap: 16px; }
  .header .header__actions .icon-btn[aria-label="Search"] { display: inline-flex; }
  .announce { font-size: 9.5px; letter-spacing: .13em; padding: 5px 14px; }
  .announce .announce__dot { margin: 0 .6em; }
}
@media (max-width: 420px) {
  .header .header__actions { gap: 13px; }
  .header .logo__img { height: 40px; }
}

/* sticky needs a clipping ancestor that isn't a scroll container */
html, body { overflow-x: clip; }
