/* Restores the site header and footer on converted WordPress pages.
 *
 * Those pages carry the capture's own 71 stylesheets, and they have to load
 * after Astro's or tokens.css repaints the WordPress content. The cost is
 * that they also land on our header: Woodmart's base.min.css resets `a` with
 * `font: inherit; font-size: 100%`, and styles bare `button` with a grey
 * background and 12px/20px padding - which is what put boxes round the
 * "Business Setup" and "Services" dropdowns and shrank the plain links.
 *
 * This file is linked last, after every captured sheet, so it wins on order
 * rather than needing !important. Values are copied from Header.astro; if the
 * header changes there, change it here too.
 */

/* These pages open with a full-bleed photographic hero, not the homepage's
 * cream ground, so a transparent header leaves the nav sitting on the
 * photograph. Solid from the start here; the homepage keeps its transparent
 * -until-you-scroll treatment. */
.site-header {
  background: rgba(251, 249, 244, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}

/* Woodmart pulls its own wrapper up by 40px and pads it back down, which it
 * can do because its header was in the flow. Ours is fixed, so that -40px
 * came straight out of the clearance and slid the hero under the menu. */
.captured-body {
  padding-top: calc(var(--head-logo) + 24px);
}
.captured-body > .main-page-wrapper {
  margin-top: 0;
}

.site-header .head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-block: 12px;
  padding-inline: var(--shell-pad);
}

.site-header .logo img {
  display: block;
  height: var(--head-logo);
  width: auto;
  max-width: none;
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-header .nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .nav a {
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
}
.site-header .nav a:hover {
  color: var(--gold-ink);
  border-bottom-color: var(--gold);
}

/* the dropdown triggers are <button>, which Woodmart styles as a grey chip */
.site-header .nav-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
  text-transform: none;
  color: var(--navy);
  white-space: nowrap;
  cursor: pointer;
  min-height: 0;
}
.site-header .nav-has:hover .nav-top,
.site-header .nav-top[aria-expanded='true'] {
  color: var(--gold-ink);
  border-bottom-color: var(--gold);
  background: none;
}
.site-header .nav-caret {
  width: 12px;
  height: 12px;
}

.site-header .entity-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(205, 144, 19, 0.55);
  border-radius: 5px;
  background: rgba(205, 144, 19, 0.07);
  color: var(--navy);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  min-height: 0;
}

.site-header .head-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 19px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
}
.site-header .head-cta:hover { background: var(--navy-2); }

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* the dropdown panels */
.site-header .nav-sub {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  z-index: 60;
  min-width: 290px;
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(5, 5, 66, 0.16);
}
.site-header .nav-sub ul { margin: 0; padding: 0; list-style: none; }
.site-header .nav-sub a { white-space: normal; }

@media (max-width: 1080px) {
  .site-header .nav { display: none; }
}
