/* WOT Header. Brand: navy #0d0d3a, gold #d4ae5f. Width matches the Elementor content column:
   min(1290px, 86%) on desktop, 40px side padding on tablet, 20px on phones. */
.wot-header {
  --wh-navy: #0d0d3a; --wh-navy-2: #01007b; --wh-gold: #d4ae5f; --wh-ink: #0d0d3a;
  --wh-line: rgba(13, 13, 58, .14); --wh-tint: rgba(13, 13, 58, .06);
  --wh-logo: 260px; --wh-logo-compact: 180px; --wh-logo-mobile: 168px;
  position: sticky; top: 0; z-index: 1000;
  background: #fff; color: var(--wh-ink); font-family: inherit; line-height: 1.3;
  border-bottom: 1px solid var(--wh-line);
  transition: box-shadow .2s ease;
}
.admin-bar .wot-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .wot-header { top: 0; } } /* WP admin bar scrolls away on phones */
.wot-header.is-compact { box-shadow: 0 6px 18px rgba(13, 13, 58, .10); }

/* resets against theme/kit styles */
.wot-header *, .wot-header *::before, .wot-header *::after { box-sizing: border-box; }
.wot-header ul { list-style: none; margin: 0; padding: 0; }
.wot-header a { color: var(--wh-ink); text-decoration: none; }
/* html body … beats the Elementor kit's global button styles (padding 20px 30px, border, colours) */
html body .wot-header button { font: inherit; color: var(--wh-ink); background: none; border: 0; border-radius: 6px; padding: 0; margin: 0; min-width: 0; min-height: 0; width: auto;
  letter-spacing: normal; text-transform: none; line-height: inherit; box-shadow: none; cursor: pointer; }
html body .wot-header button:hover, html body .wot-header button:focus, html body .wot-header button:active { background: none; color: var(--wh-navy-2); border: 0; box-shadow: none; text-decoration: none; }
.wot-header :focus-visible { outline: 2px solid var(--wh-gold); outline-offset: 2px; }
.wot-header .wot-h-ico { display: inline-block; flex: none; width: auto; height: auto; line-height: 1; text-align: center; }
.wot-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wot-skip-link { position: absolute; left: -9999px; top: 0; z-index: 100001; background: var(--wh-navy, #0d0d3a); color: #fff !important; padding: 12px 20px; font-weight: 600; }
.wot-skip-link:focus { left: 12px; top: 12px; }

.wot-h-inner { width: min(1290px, 86%); margin-inline: auto; }

/* ---------------------------------------------------------------- top row */
.wot-h-top-inner { display: grid; grid-template-columns: auto minmax(0, 620px) 1fr; /* auto: column follows the logo as it animates, so it never overlaps the search */ align-items: center; column-gap: 40px; padding-block: 14px 10px; transition: padding .2s ease; }
.wot-h-logo { display: block; width: var(--wh-logo); transition: width .2s ease; }
.wot-h-logo img { display: block; width: 100%; height: auto; }
.wot-h-logo-text { font-size: 1.5rem; font-weight: 700; color: var(--wh-navy); }

.wot-h-search { display: flex; align-items: stretch; width: 100%; }
.wot-header .wot-h-search input[type=search] { flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0 14px; font-size: 15px; color: var(--wh-ink); background: #fff;
  border: 1px solid var(--wh-navy); border-right: 0; border-radius: 4px 0 0 4px; box-shadow: none; transition: border-color .15s; }
.wot-header .wot-h-search input[type=search]::placeholder { color: #6b6b84; opacity: 1; }
.wot-header .wot-h-search input[type=search]:focus { outline: 2px solid var(--wh-gold); outline-offset: -2px; }
html body .wot-header .wot-h-search-btn { display: grid; place-items: center; width: 46px; height: 42px; background: var(--wh-navy); color: #fff; border-radius: 0 4px 4px 0; }
html body .wot-header .wot-h-search-btn:hover, html body .wot-header .wot-h-search-btn:focus { background: var(--wh-navy-2); color: #fff; }

.wot-h-utility { justify-self: end; }
.wot-h-utility ul { display: flex; align-items: center; }
.wot-h-utility li + li { border-left: 1px solid var(--wh-line); }
.wot-h-ulink { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.wot-h-utility li:last-child .wot-h-ulink { padding-right: 0; }
.wot-h-ulink .wot-h-ico { font-size: 17px; color: var(--wh-navy); }
.wot-header a.wot-h-ulink:hover, .wot-header a.wot-h-ulink.is-current { color: var(--wh-navy-2); text-decoration: underline; text-decoration-color: var(--wh-gold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.wot-h-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wh-gold); color: var(--wh-navy); font-size: 12px; font-weight: 700; line-height: 1; }

.wot-h-actions { display: none; }

/* ---------------------------------------------------------------- main menu row */
.wot-h-nav { position: relative; }
.wot-h-menu { display: flex; flex-wrap: nowrap; align-items: stretch; }
.wot-h-item { position: relative; display: flex; align-items: center; }
.wot-h-item + .wot-h-item::before { content: ""; width: 1px; height: 18px; background: rgba(13, 13, 58, .25); }
html body .wot-header .wot-h-link { display: inline-flex; align-items: center; gap: 4px; min-height: 46px; padding: 0 16px; font-size: 16px; font-weight: 500; letter-spacing: -.2px; color: var(--wh-ink); white-space: nowrap; position: relative; }
.wot-h-item:first-child .wot-h-link { padding-left: 0; }
.wot-h-link .wot-h-ico, .wot-h-caret .wot-h-ico { font-size: 11px; margin-left: 4px; transition: transform .2s ease; }
html body .wot-header .wot-h-search-btn .wot-h-ico { font-size: 16px; }
html body .wot-header .wot-h-caret { display: grid; place-items: center; width: 26px; height: 46px; margin-left: -12px; margin-right: 4px; }
html body .wot-header .wot-h-link:hover, html body .wot-header .wot-h-item.is-open > .wot-h-link { color: var(--wh-navy-2); }
.wot-h-item.is-active:not(.is-open) > .wot-h-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--wh-gold); border-radius: 2px 2px 0 0; }
.wot-h-item:first-child > .wot-h-link::after { left: 0 !important; }
.wot-h-item.has-sub:not(:has(.wot-h-opener)) > .wot-h-link::after { right: 4px; }
.wot-h-item.is-open > .wot-h-link .wot-h-ico, .wot-h-item.is-open > .wot-h-caret .wot-h-ico { transform: rotate(180deg); }

/* dropdowns: shown when JS adds .is-open; keyboard focus also keeps them open */
.wot-h-drop { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 260px; background: #fff; border-top: 3px solid var(--wh-gold);
  box-shadow: 0 14px 30px rgba(13, 13, 58, .14); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.wot-h-item.is-open > .wot-h-drop, .wot-h-item:focus-within > .wot-h-drop,
.wot-h-menu:not(.is-js) .wot-h-item:hover > .wot-h-drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wot-h-list { padding: 10px 0; }
/* last two menus open leftwards so they never run off-screen */
.wot-h-item:nth-last-child(-n+2):not(.is-mega) > .wot-h-drop { left: auto; right: 0; }
.wot-header .wot-h-sublink { display: block; padding: 9px 20px; font-size: 15px; font-weight: 500; color: var(--wh-ink); }
.wot-header a.wot-h-sublink:hover, .wot-header .wot-h-sublink.is-current { background: var(--wh-tint); color: var(--wh-navy-2); }
.wot-header .wot-h-sublink.is-current { text-decoration: underline; text-decoration-color: var(--wh-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* mega panel (any dropdown whose items have their own children, e.g. Hire) */
.wot-h-item.is-mega { position: static; }
.wot-h-drop--mega { left: 0; right: 0; min-width: 0; }
.wot-h-mega { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px 32px; padding: 26px 0 30px; }
@media (max-width: 1279px) { .wot-h-mega { gap: 20px 20px; } .wot-header .wot-h-group-title { font-size: 15px; } .wot-h-mega .wot-h-sublink { font-size: 14px; } }
.wot-header .wot-h-group-title { display: block; padding: 0 0 8px; margin-bottom: 6px; min-height: calc(2 * 1.3em + 8px); font-size: 16px; font-weight: 700; color: var(--wh-navy); border-bottom: 1px solid var(--wh-line); }
.wot-header a.wot-h-group-title:hover, .wot-header .wot-h-group-title.is-current { color: var(--wh-navy-2); border-bottom-color: var(--wh-gold); }
.wot-h-mega .wot-h-sublink { padding: 6px 0; font-size: 15px; font-weight: 400; }
.wot-header .wot-h-mega a.wot-h-sublink:hover, .wot-header .wot-h-mega .wot-h-sublink.is-current { background: none; text-decoration: underline; text-decoration-color: var(--wh-gold); text-decoration-thickness: 2px; text-underline-offset: 4px; box-shadow: none; }

/* ---------------------------------------------------------------- sticky compact state */
.wot-header.is-compact .wot-h-top-inner { padding-block: 6px 4px; }
.wot-header.is-compact { --wh-logo: var(--wh-logo-compact); }
html body .wot-header.is-compact .wot-h-link, html body .wot-header.is-compact .wot-h-caret { min-height: 42px; height: 42px; }

/* ---------------------------------------------------------------- small laptops */
@media (max-width: 1279px) {
  .wot-header { --wh-logo: 230px; }
  .wot-h-top-inner { column-gap: 28px; }
  html body .wot-header .wot-h-link { padding: 0 12px; font-size: 15px; }
  .wot-h-item.is-active:not(.is-open) > .wot-h-link::after { left: 12px; right: 12px; }
  .wot-h-ulink { padding: 0 12px; font-size: 14px; }
}

/* ---------------------------------------------------------------- tablet & phone */
@media (max-width: 1024px) {
  .wot-h-inner { width: calc(100% - 80px); }
  .wot-header { --wh-logo: var(--wh-logo-mobile); --wh-logo-compact: var(--wh-logo-mobile); }
  .wot-h-top-inner, .wot-header.is-compact .wot-h-top-inner { display: flex; justify-content: space-between; min-height: 64px; padding-block: 8px; column-gap: 12px; }
  .wot-h-search--bar, .wot-h-utility, .wot-h-nav { display: none; }
  .wot-h-actions { display: flex; align-items: center; gap: 4px; margin-right: -10px; }
  html body .wot-header .wot-h-iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; color: var(--wh-navy); }
  html body .wot-header .wot-h-iconbtn:hover, html body .wot-header .wot-h-iconbtn[aria-expanded=true] { background: var(--wh-tint); color: var(--wh-navy); }
  .wot-h-iconbtn .wot-h-ico { font-size: 21px; }
  .wot-h-iconbtn .wot-h-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; font-size: 11px; }
  .wot-h-burger .wot-h-ico-close, .wot-h-burger[aria-expanded=true] .wot-h-ico-menu { display: none; }
  .wot-h-burger[aria-expanded=true] .wot-h-ico-close { display: inline-block; }
  .wot-h-burger .wot-h-ico { font-size: 23px; width: 23px; }

  .wot-h-search-panel { border-top: 1px solid var(--wh-line); padding-block: 10px 12px; background: #fff; }
  .wot-header .wot-h-search-panel input[type=search] { height: 46px; font-size: 16px; } /* 16px stops iOS zooming */
  html body .wot-header .wot-h-search-panel .wot-h-search-btn { height: 46px; width: 50px; }

  .wot-h-panel { position: fixed; left: 0; right: 0; top: var(--wot-h-bottom, 64px); bottom: 0; z-index: 999; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-top: 1px solid var(--wh-line); padding: 4px 40px 40px; }
  .wot-h-acc > li { border-bottom: 3px solid var(--wh-gold); }
  .wot-h-acc-row { display: flex; align-items: center; }
  html body .wot-header .wot-h-acc-label { flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0; font-size: 18px; font-weight: 600; color: var(--wh-navy); text-align: left; width: 100%; }
  html body .wot-header .wot-h-acc-btn { display: grid; place-items: center; width: 54px; height: 54px; margin-right: -12px; color: var(--wh-navy); }
  .wot-h-acc-toggle .wot-h-ico { font-size: 15px; margin: 0 4px; transition: transform .2s ease; }
  .wot-h-acc-toggle[aria-expanded=true] .wot-h-ico { transform: rotate(180deg); }
  html body .wot-header .wot-h-acc-toggle:hover, html body .wot-header .wot-h-acc-toggle:focus { background: none; color: var(--wh-navy-2); }
  html body .wot-header .wot-h-acc > .wot-h-acc-item.is-active > .wot-h-acc-row > .wot-h-acc-label { color: var(--wh-navy-2); }
  .wot-header .wot-h-acc-sub { padding: 0 0 14px 16px; margin: 0; }
  .wot-h-acc-sub .wot-h-acc-row { min-height: 0; }
  html body .wot-header .depth-1 > .wot-h-acc-row > .wot-h-acc-label { min-height: 44px; font-size: 16px; font-weight: 500; }
  html body .wot-header .depth-1:has(> .wot-h-acc-sub) > .wot-h-acc-row > .wot-h-acc-label { font-weight: 700; margin-top: 8px; margin-bottom: 4px; border-bottom: 2px solid var(--wh-gold); }
  .wot-header .wot-h-acc-sub .wot-h-acc-sub { margin: 0; padding: 0 0 8px 16px; }
  html body .wot-header .depth-2 > .wot-h-acc-row > .wot-h-acc-label { min-height: 40px; font-size: 15px; font-weight: 400; }
  html body .wot-header .wot-h-acc-sub .wot-h-acc-item.is-active > .wot-h-acc-row > .wot-h-acc-label { box-shadow: none; padding-left: 0; color: var(--wh-navy-2); text-decoration: underline; text-decoration-color: var(--wh-gold); text-underline-offset: 4px; }

  .wot-header .wot-h-panel-utility { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
  .wot-header .wot-h-ulink--panel { display: flex; width: 100%; justify-content: center; min-height: 50px; padding: 0 12px; border: 1px solid var(--wh-navy); border-radius: 6px; font-size: 16px; }
  .wot-header .wot-h-panel-utility li:last-child .wot-h-ulink--panel { background: var(--wh-navy); color: #fff; }
  .wot-header .wot-h-panel-utility li:last-child .wot-h-ulink--panel .wot-h-ico { color: #fff; }
  html.wot-h-locked, html.wot-h-locked body { overflow: hidden; }
}
@media (max-width: 767px) {
  .wot-h-inner { width: calc(100% - 40px); }
  .wot-h-panel { padding: 4px 20px 32px; }
  .wot-header .wot-h-panel-utility { grid-template-columns: 1fr; }
}
@media (max-width: 359px) { .wot-header { --wh-logo-mobile: 140px; } }

@media (prefers-reduced-motion: reduce) {
  .wot-header, .wot-header * { transition: none !important; }
}
@media print { .wot-header { position: static; box-shadow: none; } .wot-h-nav, .wot-h-actions, .wot-h-search, .wot-h-panel { display: none !important; } }
@media (max-width: 1024px) {
  /* group headings already have a gold rule; no extra underline when current */
  html body .wot-header .wot-h-acc-sub .depth-1.is-active:has(> .wot-h-acc-sub) > .wot-h-acc-row > .wot-h-acc-label { text-decoration: none; }
}
