/* =========================================================================
   Argonmark universal site header (WordPress theme + /catalog/ + /catalog/pn/)
   Two rows: green main bar (logo, search, menu) + category bar.
   Everything is scoped to .ah-header so it wins over older header rules
   in the theme's style.css and the catalogue's catalog.css / product.css.
   ========================================================================= */
html { scroll-padding-top: 124px; }

.ah-header {
  --ah-900: #0B2B22; --ah-700: #0E4D3C; --ah-brass: #C89B3C; --ah-brass-dark: #A07A24;
  --ah-cream: #F4F1E8; --ah-muted: #B8C7BF; --ah-line: #2A4A3E;
  position: sticky; top: 0; z-index: 50;
  font-family: 'Saira', sans-serif; -webkit-font-smoothing: antialiased;
}
.ah-header *, .ah-header *::before, .ah-header *::after { box-sizing: border-box; }
.ah-header a { text-decoration: none; }
.ah-header svg { flex: none; max-width: none; }
.ah-header .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---- Row 1: main bar ---- */
.ah-main { background: var(--ah-900); }
.ah-main__in {
  max-width: 1400px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px; position: relative;
}
.ah-brand { display: flex; align-items: flex-end; gap: 10px; flex: none; color: var(--ah-cream); }
.ah-brand svg { display: block; }
.ah-wordmark {
  font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 23px; letter-spacing: .03em;
  line-height: .78; color: var(--ah-cream);
}
.ah-brand:hover .ah-wordmark { color: #fff; }

/* Search: big, white field with a brass button */
.ah-header .nav-search {
  position: relative; top: auto; left: auto; right: auto;
  flex: 1 1 560px; max-width: 680px; min-width: 0; height: 48px; margin: 0; padding: 0;
  display: flex; align-items: stretch;
  background: #fff; border: 2px solid var(--ah-brass); box-shadow: none;
}
.ah-header .nav-search:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(200, 155, 60, .45); }
.ah-header .nav-search input {
  flex: 1; min-width: 0; height: 100%; margin: 0; border: 0; outline: 0; background: #fff; border-radius: 0;
  padding: 0 16px; font-family: 'Saira', sans-serif; font-size: 15.5px; color: #14261F;
  -webkit-appearance: none; appearance: none;
}
.ah-header .nav-search input::placeholder { color: #6B6F73; }
.ah-header .nav-search__submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: auto; padding: 0 20px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--ah-brass); color: var(--ah-900);
  font-family: 'Saira', sans-serif; font-weight: 700; font-size: 14.5px; letter-spacing: .02em;
}
.ah-header .nav-search__submit:hover { background: var(--ah-brass-dark); color: var(--ah-cream); }
.ah-header .nav-search__submit svg { width: 18px; height: 18px; }

/* Menu links */
.ah-header .nav-links {
  position: static; display: flex; flex-direction: row; align-items: center; gap: 26px;
  margin-left: auto; padding: 0; background: none; border: 0;
  font-size: 14.5px; font-weight: 500; white-space: nowrap;
}
.ah-header .nav-links a { color: var(--ah-cream); padding: 0; border: 0; }
.ah-header .nav-links a:hover { color: var(--ah-brass); }
.ah-header .nav-links .ah-cta {
  background: var(--ah-brass); color: var(--ah-900); padding: 11px 20px; font-weight: 700; letter-spacing: .02em;
}
.ah-header .nav-links .ah-cta:hover { background: var(--ah-cream); color: var(--ah-900); }

/* Mobile-only buttons (hidden on desktop) */
.ah-header .nav-search-toggle, .ah-header .nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0; margin: 0; flex: none;
  align-items: center; justify-content: center; cursor: pointer;
  background: transparent; border: 1px solid var(--ah-line); color: var(--ah-cream); border-radius: 0;
}
.ah-header .nav-search-toggle:hover, .ah-header .nav-search-toggle[aria-expanded="true"] {
  background: var(--ah-brass); border-color: var(--ah-brass); color: var(--ah-900);
}
.ah-header .nav-toggle { flex-direction: column; gap: 5px; padding: 0 10px; }
.ah-header .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ah-cream); transition: transform .15s ease, opacity .15s ease; }
.ah-header .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ah-header .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ah-header .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Row 2: category bar ---- */
.ah-cats { background: var(--ah-700); border-bottom: 3px solid var(--ah-brass); }
.ah-cats__in {
  max-width: 1400px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch; justify-content: space-between;
}
.ah-cat { position: relative; display: flex; flex: none; }
.ah-cats a.ah-cat__link {
  display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 12px;
  color: var(--ah-cream); font-size: 14px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.ah-cats a.ah-cat__link:hover, .ah-cat:focus-within > a.ah-cat__link { background: var(--ah-900); color: var(--ah-brass); }
.ah-cats a.ah-cat__link.is-active { border-bottom-color: #fff; color: #fff; }
.ah-cats a.ah-home { padding: 0 16px 0 4px; }
.ah-cats a.ah-home svg { width: 20px; height: 20px; }
.ah-caret { font-size: 9px; opacity: .8; }

/* Sub-menu dropdown */
.ah-sub {
  position: absolute; top: 100%; left: 0; min-width: 270px; padding: 6px 0; z-index: 60;
  background: #fff; border-top: 3px solid var(--ah-brass); box-shadow: 0 14px 34px rgba(11, 43, 34, .22);
  opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease;
}
.ah-cat:hover > .ah-sub, .ah-cat:focus-within > .ah-sub { opacity: 1; visibility: visible; transform: none; }
.ah-sub a {
  display: block; padding: 10px 18px; font-size: 14px; font-weight: 500; color: #3A4842;
  border-left: 3px solid transparent; white-space: nowrap;
}
.ah-sub a:hover { background: var(--ah-cream); color: var(--ah-700); border-left-color: var(--ah-brass); }
.ah-sub a.ah-sub__all { font-weight: 700; color: var(--ah-700); border-bottom: 1px solid #DDDDD8; }

/* Narrower desktops: tighter category bar */
@media (max-width: 1380px) {
  .ah-cats a.ah-cat__link { padding: 0 8px; font-size: 13px; }
  .ah-cats__in { padding: 0 16px; }
}
/* Below ~1240px the full bar no longer fits: it scrolls sideways and sub-menus are
   dropped (a scroll container would clip them); each item still links to its group. */
@media (max-width: 1240px) {
  .ah-cats__in { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .ah-cats__in::-webkit-scrollbar { display: none; }
  .ah-sub, .ah-caret { display: none; }
  .ah-cats a.ah-cat__link { padding: 0 12px; }
  .ah-main__in { gap: 20px; }
  .ah-header .nav-links { gap: 20px; }
}

/* ---- Tablet / phone ---- */
@media (max-width: 960px) {
  html { scroll-padding-top: 116px; }
  .ah-main__in { gap: 10px; padding: 10px 16px; }
  .ah-wordmark { font-size: 20px; }
  .ah-brand svg { width: 30px; height: 30px; }
  .ah-header .nav-search-toggle { display: inline-flex; margin-left: auto; }
  .ah-header .nav-toggle { display: flex; }

  .ah-header .nav-search {
    display: none; position: absolute; top: 100%; left: 0; right: 0; max-width: none; height: auto;
    padding: 10px 16px; background: var(--ah-900); border: 0; border-top: 1px solid var(--ah-line); z-index: 61;
  }
  .ah-header .nav-search.is-open { display: flex; }
  .ah-header .nav-search input { height: 46px; border: 2px solid var(--ah-brass); border-right: 0; font-size: 16px; }
  .ah-header .nav-search:focus-within { box-shadow: none; }
  .ah-header .nav-search__submit { height: 46px; padding: 0 16px; }
  .ah-header .nav-search__submit span { display: none; }

  .ah-header .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 61;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 6px 16px 18px; background: var(--ah-900); border-top: 1px solid var(--ah-line);
  }
  .ah-header .nav-links.is-open { display: flex; }
  .ah-header .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--ah-line); font-size: 15px; }
  .ah-header .nav-links .ah-cta { text-align: center; margin-top: 14px; border-bottom: 0; padding: 14px 20px; }

  .ah-cats__in { padding: 0 8px; }
  .ah-cats a.ah-cat__link { height: 42px; font-size: 13.5px; padding: 0 11px; }
}

/* Manufacturer datasheet PDFs are not offered for download (store-page button and links inside datasheets). */
.pd-dslink,.pp-ds a[href$=".pdf"],.pp-ds a[href*=".pdf?"]{display:none !important;}
