/* Site header in Only Audit's colours: orange #f78b30 and slate #1c2b35.
   Every rule is scoped so the WordPress theme's global styles stay out. */

/* The theme's page wrappers hide overflow, which stops the header staying
   at the top. Clip sideways only, which still prevents sideways scrolling. */
#canvas, #box_wrapper { overflow: visible !important; overflow-x: clip !important; }

#onlyaudit-header, #onlyaudit-header * { box-sizing: border-box; }
#onlyaudit-header { position: sticky; top: 0; z-index: 1000; font-family: 'Montserrat', system-ui, sans-serif; line-height: 1.4; background: rgba(255,255,255,0.92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
#onlyaudit-header.is-scrolled { border-bottom-color: #ece6df; box-shadow: 0 6px 24px rgba(28,43,53,0.06); }
#onlyaudit-header a { text-decoration: none !important; }
#onlyaudit-header a::before, #onlyaudit-header a::after, #onlyaudit-header button::before, #onlyaudit-header button::after { content: none !important; display: none !important; }
#onlyaudit-header ul { list-style: none; margin: 0; padding: 0; }
#onlyaudit-header li { margin: 0; padding: 0; }

#onlyaudit-header .oa-skip { position: absolute; left: 12px; top: -60px; padding: 10px 16px; border-radius: 10px; background: #1c2b35; color: #fff !important; font-weight: 600; z-index: 2; }
#onlyaudit-header .oa-skip:focus { top: 12px; }

#onlyaudit-header .oa-header-bar { max-width: 1400px; margin: 0 auto; height: 76px; padding: 0 clamp(16px, 3vw, 40px); display: flex; align-items: center; gap: 24px; }
#onlyaudit-header .oa-header-logo { flex: 0 0 auto; display: block; }
#onlyaudit-header .oa-header-logo img { display: block; width: 180px; height: auto; max-width: none; }

#onlyaudit-header .oa-header-nav { flex: 1 1 auto; display: flex; justify-content: center; }
#onlyaudit-header .oa-header-nav ul { display: flex; align-items: center; gap: 4px; }
#onlyaudit-header .oa-nav-top { all: unset; box-sizing: border-box; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; color: #33434d !important; letter-spacing: 0; text-transform: none; transition: background 0.2s ease, color 0.2s ease; }
#onlyaudit-header .oa-nav-top:hover, #onlyaudit-header .oa-has-menu:hover > .oa-nav-top, #onlyaudit-header .oa-nav-top[aria-expanded="true"] { background: #f6f3ef; color: #1c2b35 !important; }
#onlyaudit-header .oa-nav-top[aria-current="page"], #onlyaudit-header .oa-nav-top.is-active { color: #1c2b35 !important; background: #fdeee1; }
#onlyaudit-header .oa-chevron { width: 18px; height: 18px; fill: currentColor; transition: transform 0.2s ease; }
#onlyaudit-header .oa-nav-top[aria-expanded="true"] .oa-chevron { transform: rotate(180deg); }

/* Dropdowns */
#onlyaudit-header .oa-has-menu { position: relative; }
#onlyaudit-header .oa-menu { position: absolute; left: 50%; top: 100%; padding-top: 10px; transform: translate(-50%, 6px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; }
#onlyaudit-header .oa-menu ul { display: block; width: 300px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid #ece6df; box-shadow: 0 20px 48px rgba(28,43,53,0.14); }
#onlyaudit-header .oa-has-menu:hover > .oa-menu, #onlyaudit-header .oa-nav-top[aria-expanded="true"] + .oa-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
#onlyaudit-header .oa-menu a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; color: #1c2b35 !important; transition: background 0.15s ease; }
#onlyaudit-header .oa-menu a:hover, #onlyaudit-header .oa-menu a:focus-visible { background: #f6f3ef; }
#onlyaudit-header .oa-menu a[aria-current="page"] { background: #fdeee1; }
#onlyaudit-header .oa-menu strong { font-size: 15px; font-weight: 700; }
#onlyaudit-header .oa-menu span { font-size: 13px; line-height: 1.4; color: #6b7c86; }

#onlyaudit-header .oa-header-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
#onlyaudit-header .oa-header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #1c2b35 !important; white-space: nowrap; }
#onlyaudit-header .oa-header-phone svg, #onlyaudit-header .oa-header-panel-contact svg { width: 18px; height: 18px; fill: #f78b30; }
#onlyaudit-header .oa-header-phone:hover { color: #e57a1f !important; }
#onlyaudit-header .oa-header-cta { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border-radius: 999px; background: #f78b30; color: #1c2b35 !important; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
#onlyaudit-header .oa-header-cta:hover { background: #e57a1f; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(247,139,48,0.35); }

#onlyaudit-header .oa-header-toggle { all: unset; box-sizing: border-box; cursor: pointer; display: none; position: relative; width: 44px; height: 44px; border-radius: 12px; background: #f6f3ef; }
#onlyaudit-header .oa-header-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: #1c2b35; transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease; }
#onlyaudit-header .oa-header-toggle span:nth-child(1) { top: 15px; }
#onlyaudit-header .oa-header-toggle span:nth-child(2) { top: 21px; }
#onlyaudit-header .oa-header-toggle span:nth-child(3) { top: 27px; }
#onlyaudit-header .oa-header-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
#onlyaudit-header .oa-header-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#onlyaudit-header .oa-header-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

#onlyaudit-header .oa-header-panel { border-top: 1px solid #ece6df; background: #fff; padding: 12px 16px 24px; max-height: calc(100vh - 76px); overflow-y: auto; box-shadow: 0 24px 40px rgba(28,43,53,0.12); }
#onlyaudit-header .oa-header-panel[hidden] { display: none !important; }
#onlyaudit-header .oa-header-panel nav a { display: block; padding: 14px 8px; border-bottom: 1px solid #f1ece6; font-size: 18px; font-weight: 600; color: #1c2b35 !important; }
#onlyaudit-header .oa-header-panel nav a[aria-current="page"] { color: #e57a1f !important; }
#onlyaudit-header .oa-panel-group { padding-top: 14px; }
#onlyaudit-header .oa-panel-heading { display: block; padding: 0 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa7af; }
#onlyaudit-header .oa-panel-group a { padding-left: 20px !important; }
#onlyaudit-header .oa-header-panel-foot { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
#onlyaudit-header .oa-header-panel-foot .oa-header-cta { height: 52px; font-size: 16px; }
#onlyaudit-header .oa-header-panel-contact { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; color: #33434d !important; }

#onlyaudit-header a:focus-visible, #onlyaudit-header .oa-header-toggle:focus-visible, #onlyaudit-header .oa-nav-top:focus-visible { outline: 2px solid #f78b30; outline-offset: 2px; }

/* The old theme's fixed header spacer and mobile menu are no longer used. */
.page_header_wrapper { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  #onlyaudit-header, #onlyaudit-header .oa-header-cta, #onlyaudit-header .oa-header-toggle span, #onlyaudit-header .oa-menu, #onlyaudit-header .oa-chevron { transition: none; }
  #onlyaudit-header .oa-header-cta:hover { transform: none; }
}
@media (max-width: 1199px) {
  #onlyaudit-header .oa-header-phone span { display: none; }
  #onlyaudit-header .oa-nav-top { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 991px) {
  #onlyaudit-header .oa-header-nav, #onlyaudit-header .oa-header-phone { display: none; }
  #onlyaudit-header .oa-header-actions { margin-left: auto; gap: 10px; }
  #onlyaudit-header .oa-header-toggle { display: inline-block; }
}
@media (max-width: 479px) {
  #onlyaudit-header .oa-header-bar { height: 64px; }
  #onlyaudit-header .oa-header-logo img { width: 150px; }
  #onlyaudit-header .oa-header-bar > .oa-header-actions > .oa-header-cta { height: 40px; padding: 0 16px; font-size: 14px; }
  #onlyaudit-header .oa-header-panel { max-height: calc(100vh - 64px); }
}
@media (max-width: 359px) {
  #onlyaudit-header .oa-header-bar > .oa-header-actions > .oa-header-cta { display: none; }
}
