/* ==========================================================================
   Brightwork site header & footer (Header Footer Elementor templates)
   Loaded wherever the BW header/footer templates render (body.bwhf).
   Colours and font families come from the Elementor kit (Site Settings → Global
   Colors / Global Fonts); change them there, not here.
   Every rule is scoped to the template wrappers #masthead / #colophon. The roots are
   .bw-header / .bw-footer: the plugin forces .site-header/.site-footer transparent.
   ========================================================================== */

/* 1) Design tokens → Elementor kit globals */
body.bwhf :is(#masthead, #colophon) {
  --hf-orange: var(--e-global-color-primary, #FF6601);        /* Primary */
  --hf-orange-hover: var(--e-global-color-bwhover, #F07D00);  /* Orange Hover */
  --hf-text: var(--e-global-color-text, #000000);             /* Text & Headings */
  --hf-muted: var(--e-global-color-secondary, #404040);       /* Secondary */
  --hf-white: var(--e-global-color-381bacc, #FFFFFF);         /* White */
  --hf-light: var(--e-global-color-b729e9e, #F1F0F1);         /* Secondary Gray - 10 */
  --hf-border: color-mix(in srgb, var(--hf-muted) 20%, var(--hf-white));
  --hf-footer-bg: var(--hf-text);
  --hf-on-dark: color-mix(in srgb, var(--hf-white) 72%, var(--hf-footer-bg));
  --hf-border-dark: color-mix(in srgb, var(--hf-white) 14%, transparent);

  --hf-font-text: var(--e-global-typography-text-font-family, "Roboto"), "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hf-font-nav: var(--e-global-typography-secondary-font-family, "Roboto"), "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hf-font-button: var(--e-global-typography-accent-font-family, "Roboto"), "Helvetica Neue", Helvetica, Arial, sans-serif;

  --hf-container: 1280px;
  --hf-gutter: 20px;
  --hf-radius-sm: 6px;
  --hf-radius-md: 12px;
  --hf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hf-t-fast: 180ms;
  --hf-t-med: 260ms;
}
@media (min-width: 768px) { body.bwhf :is(#masthead, #colophon) { --hf-gutter: 32px; } }
@media (min-width: 1280px) { body.bwhf :is(#masthead, #colophon) { --hf-gutter: 40px; } }

/* The plugin wrappers must not box the header, or position: sticky stops at the wrapper */
body.bwhf #masthead,
body.bwhf #masthead > .elementor,
body.bwhf #colophon > .elementor { display: contents; }
body.bwhf #masthead > .main-title { display: none; }
body.bwhf #colophon { display: block; margin: 0; padding: 0; background: none; }
body.bwhf.nav-open { overflow: hidden; }

/* 2) Make Elementor's wrappers neutral inside the templates */
body.bwhf.bwhf :is(#masthead, #colophon) .e-con {
  display: block; position: static; flex: initial; flex-direction: row; flex-wrap: nowrap;
  justify-content: normal; align-items: normal; align-content: normal; align-self: auto; order: 0;
  gap: normal; padding: 0; margin: 0; width: auto; max-width: none; min-width: 0; min-height: 0; height: auto;
  border: 0; border-radius: 0; background: none; overflow: visible; transition: none; text-align: inherit;
  --gap: 0px; --row-gap: 0px; --column-gap: 0px;
}
body.bwhf.bwhf :is(#masthead, #colophon) .e-con > .e-con-inner { display: contents; }
body.bwhf.bwhf :is(#masthead, #colophon) .e-con::before,
body.bwhf.bwhf :is(#masthead, #colophon) .e-con::after { content: none; }
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-widget {
  position: static; width: auto; max-width: none; min-width: 0; margin: 0; padding: 0;
  flex: initial; align-self: auto; order: 0; text-align: inherit;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit;
  --container-widget-width: auto;
}
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-widget > .elementor-widget-container { margin: 0; padding: 0; transition: none; }
body.bwhf.bwhf :is(#masthead, #colophon) :is(.elementor-widget-heading, .elementor-widget-text-editor, .elementor-widget-image, .elementor-widget-button, .elementor-widget-html) > .elementor-widget-container,
body.bwhf.bwhf :is(#masthead, #colophon) .bw-contents { display: contents; }
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-heading-title {
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; margin: 0; padding: 0;
}
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-widget-image a { display: block; }
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-widget-image img { display: block; vertical-align: baseline; }
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-widget-button,
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-widget-button .elementor-button-wrapper { display: contents; }
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-button .elementor-button-content-wrapper,
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-button .elementor-button-icon { display: contents; }
body.bwhf.bwhf :is(#masthead, #colophon) .elementor-button .elementor-button-icon svg { order: 2; }

/* 3) Base elements */
body.bwhf.bwhf :is(#masthead, #colophon) *,
body.bwhf.bwhf :is(#masthead, #colophon) *::before,
body.bwhf.bwhf :is(#masthead, #colophon) *::after { box-sizing: border-box; }
body.bwhf.bwhf :is(#masthead, #colophon) :is(.bw-header, .mobile-nav, .bw-footer) {
  font-family: var(--hf-font-text); line-height: 1.6; color: var(--hf-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.bwhf.bwhf :is(#masthead, #colophon) :is(h2, p, ul, address) { margin: 0; }
body.bwhf.bwhf :is(#masthead, #colophon) ul { padding: 0; list-style: none; }
body.bwhf.bwhf :is(#masthead, #colophon) li { margin: 0; }
body.bwhf.bwhf :is(#masthead, #colophon) a { color: inherit; text-decoration: none; }
body.bwhf.bwhf :is(#masthead, #colophon) img { display: block; max-width: 100%; height: auto; }
body.bwhf.bwhf :is(#masthead, #colophon) :is(button, [type="button"]),
body.bwhf.bwhf :is(#masthead, #colophon) :is(button, [type="button"]):where(:hover, :focus) {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; box-shadow: none; cursor: pointer;
  letter-spacing: inherit; text-transform: none; border-radius: 0; line-height: inherit; text-decoration: none;
}
body.bwhf.bwhf :is(#masthead, #colophon) :focus-visible { outline: 0; outline-offset: 0; border-radius: 0; }
body.bwhf.bwhf :is(#masthead, #colophon) .icon {
  display: block; width: 20px; height: 20px; flex: none;
  fill: none !important; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
body.bwhf.bwhf :is(#masthead, #colophon) .container {
  width: 100%; max-width: calc(var(--hf-container) + var(--hf-gutter) * 2); margin-inline: auto; padding-inline: var(--hf-gutter);
}
body.bwhf.bwhf #masthead .skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200; padding: 12px 18px;
  background: var(--hf-text); color: var(--hf-white); border-radius: var(--hf-radius-sm); font-weight: 500;
}
body.bwhf.bwhf #masthead .skip-link:focus { top: 12px; }

/* 4) Buttons */
body.bwhf.bwhf :is(#masthead, #colophon) .btn:not(.elementor-widget),
body.bwhf.bwhf :is(#masthead, #colophon) .btn .elementor-button {
  --arrow-shift: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px; margin: 0; padding: 13px 24px; border: 1.5px solid transparent; border-radius: var(--hf-radius-sm); box-shadow: none;
  font-family: var(--hf-font-button); font-size: 14px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap; fill: none;
  transition: background-color var(--hf-t-fast) var(--hf-ease), border-color var(--hf-t-fast) var(--hf-ease), color var(--hf-t-fast) var(--hf-ease);
}
body.bwhf.bwhf :is(#masthead, #colophon) .btn:not(.elementor-widget) .icon,
body.bwhf.bwhf :is(#masthead, #colophon) .btn .elementor-button .icon { width: 18px; height: 18px; transform: translateX(var(--arrow-shift)); transition: transform var(--hf-t-med) var(--hf-ease); }
body.bwhf.bwhf :is(#masthead, #colophon) .btn:not(.elementor-widget):hover,
body.bwhf.bwhf :is(#masthead, #colophon) .btn .elementor-button:hover { --arrow-shift: 5px; }
body.bwhf.bwhf :is(#masthead, #colophon) .btn--primary:not(.elementor-widget),
body.bwhf.bwhf :is(#masthead, #colophon) .btn--primary .elementor-button,
body.bwhf.bwhf :is(#masthead, #colophon) .btn--primary .elementor-button:focus { background: var(--hf-orange); color: var(--hf-text); }
body.bwhf.bwhf :is(#masthead, #colophon) .btn--primary:not(.elementor-widget):hover,
body.bwhf.bwhf :is(#masthead, #colophon) .btn--primary .elementor-button:hover { background: var(--hf-orange-hover); color: var(--hf-text); }
body.bwhf.bwhf :is(#masthead, #colophon) .btn--sm:not(.elementor-widget),
body.bwhf.bwhf :is(#masthead, #colophon) .btn--sm .elementor-button { min-height: 44px; padding: 10px 18px; font-size: 13px; }

/* 5) Header */
body.bwhf #masthead { position: relative; z-index: 100;padding-bottom: 84px;display: block;}
body.bwhf.bwhf #masthead .bw-header {
  --header-h: 84px;
  position: fixed; top: 0; z-index: 100;width: 100%;
  height: var(--header-h);
  background: var(--hf-white);
  border-bottom: 1px solid transparent;
  transition: height var(--hf-t-med) var(--hf-ease), box-shadow var(--hf-t-med) var(--hf-ease), border-color var(--hf-t-med) var(--hf-ease);
}
body.admin-bar.bwhf.bwhf #masthead .bw-header { top:  0px; }
body.bwhf.bwhf #masthead .bw-header.is-scrolled {
  --header-h: 68px;
  border-color: var(--hf-border);
  box-shadow: 0 6px 24px -18px color-mix(in srgb, var(--hf-text) 35%, transparent);
}
body.bwhf.bwhf #masthead .header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
body.bwhf.bwhf #masthead .brand { display: inline-flex; align-items: center; flex: none; padding-block: 6px; }
body.bwhf.bwhf #masthead .brand img { width: auto; height: 50px; transition: height var(--hf-t-med) var(--hf-ease); }
body.bwhf.bwhf #masthead .bw-header.is-scrolled .brand img { height: 40px; }
body.bwhf.bwhf #masthead .primary-nav { display: none; margin-left: auto; }
body.bwhf.bwhf #masthead .primary-nav > ul { display: flex; align-items: center; gap: 2px; }
body.bwhf.bwhf #masthead .nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 12px; border-radius: var(--hf-radius-sm);
  font-family: var(--hf-font-nav); font-size: 15px; font-weight: 500; color: var(--hf-muted);
  transition: color var(--hf-t-fast) var(--hf-ease);
}
body.bwhf.bwhf #masthead .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px;
  background: var(--hf-orange); transform: scaleX(0); transform-origin: left; transition: transform var(--hf-t-med) var(--hf-ease);
}
body.bwhf.bwhf #masthead .nav-link:hover,
body.bwhf.bwhf #masthead .nav-item:focus-within > .nav-link { color: var(--hf-text); }
body.bwhf.bwhf #masthead .nav-link:hover::after,
body.bwhf.bwhf #masthead .nav-link[aria-current="page"]::after { transform: scaleX(1); }
body.bwhf.bwhf #masthead .nav-link[aria-current="page"] { color: var(--hf-text); }
body.bwhf.bwhf #masthead .dropdown a[aria-current="page"] { color: var(--hf-text); font-weight: 500; }
body.bwhf.bwhf #masthead .nav-link .icon { width: 16px; height: 16px; transition: transform var(--hf-t-fast) var(--hf-ease); }
body.bwhf.bwhf #masthead .nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
body.bwhf.bwhf #masthead .nav-item { position: relative; }
body.bwhf.bwhf #masthead .dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 10;
  min-width: 280px; width: max-content; max-width: 360px; padding: 10px;
  background: var(--hf-white); border: 1px solid var(--hf-border); border-radius: var(--hf-radius-md);
  box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--hf-text) 35%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity var(--hf-t-fast) var(--hf-ease), transform var(--hf-t-fast) var(--hf-ease), visibility 0s linear var(--hf-t-fast);
}
body.bwhf.bwhf #masthead .dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
body.bwhf.bwhf #masthead .dropdown a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 14px; border-radius: 8px;
  font-family: var(--hf-font-nav); font-size: 15px; color: var(--hf-muted);
  transition: background-color var(--hf-t-fast) var(--hf-ease), color var(--hf-t-fast) var(--hf-ease);
}
body.bwhf.bwhf #masthead .dropdown a .icon { width: 16px; height: 16px; color: var(--hf-orange-hover); opacity: 0; transform: translateX(-4px); transition: all var(--hf-t-fast) var(--hf-ease); }
body.bwhf.bwhf #masthead .dropdown a:hover,
body.bwhf.bwhf #masthead .dropdown a:focus-visible { background: var(--hf-light); color: var(--hf-text); }
body.bwhf.bwhf #masthead .dropdown a:hover .icon,
body.bwhf.bwhf #masthead .dropdown a:focus-visible .icon { opacity: 1; transform: none; }
body.bwhf.bwhf #masthead .nav-item.is-open > .dropdown,
body.bwhf.bwhf #masthead .nav-item:hover > .dropdown,
body.bwhf.bwhf #masthead .nav-item:focus-within:not(.is-dismissed) > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
body.bwhf.bwhf #masthead .header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
body.bwhf.bwhf #masthead .lang .nav-link { padding-inline: 10px; gap: 6px; }
body.bwhf.bwhf #masthead .lang .dropdown { left: auto; right: 0; min-width: 180px; }
body.bwhf.bwhf #masthead .lang .dropdown a[aria-current="true"] { color: var(--hf-text); font-weight: 500; }
body.bwhf.bwhf #masthead .lang .dropdown a[aria-current="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hf-orange); }
body.bwhf.bwhf #masthead .header-cta:not(.elementor-widget),
body.bwhf.bwhf #masthead .header-cta .elementor-button { display: none; }
body.bwhf.bwhf #masthead .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1.5px solid var(--hf-border); border-radius: var(--hf-radius-sm);
  font-family: var(--hf-font-nav); font-size: 14px; font-weight: 500; color: var(--hf-text);
}
body.bwhf.bwhf #masthead .menu-toggle .icon { width: 22px; height: 22px; }
body.bwhf.bwhf #masthead .menu-toggle .icon-close { display: none; }
body.bwhf.bwhf #masthead .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
body.bwhf.bwhf #masthead .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
body.bwhf.bwhf #masthead .header-actions .lang { display: none; }
body.bwhf.bwhf #masthead .menu-toggle .menu-toggle__label {display: none;}
@media (min-width: 640px) {
  body.bwhf.bwhf #masthead .header-cta:not(.elementor-widget),
  body.bwhf.bwhf #masthead .header-cta .elementor-button { display: inline-flex; }
}
@media (min-width: 1280px) {
  body.bwhf.bwhf #masthead .header-inner .header-actions { margin-left: 8px; }
  body.bwhf.bwhf #masthead .primary-nav { display: block; }
  body.bwhf.bwhf #masthead .menu-toggle { display: none; }
  body.bwhf.bwhf #masthead .header-actions .lang { display: block; }
}

@media (max-width: 1280px) {
  body.bwhf.bwhf #masthead .mobile-nav__sub a {
    min-height: 0;
  }
  body.bwhf.bwhf #masthead .mobile-nav__sub li {
    margin-bottom: 10px;
  }
  body.bwhf.bwhf #masthead .mobile-nav__sub li:last-child {
    margin-bottom: 0;
  }
}

/* Mobile navigation */
body.bwhf.bwhf #masthead .mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
  background: var(--hf-white);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--hf-gutter) 40px;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(-8px);
  transition: opacity var(--hf-t-med) var(--hf-ease), transform var(--hf-t-med) var(--hf-ease);
}
body.admin-bar.bwhf.bwhf #masthead .mobile-nav { top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px));top: 130px }
body.bwhf.bwhf #masthead .mobile-nav[hidden] { display: none; }
body.bwhf.bwhf #masthead .mobile-nav.is-open { opacity: 1; transform: none; }
body.bwhf.bwhf #masthead .mobile-nav__list > li { border-bottom: 1px solid var(--hf-border); }
body.bwhf.bwhf #masthead .mobile-nav__link {
  width: 100%; display: flex; align-items: center; justify-content: space-between; min-height: 54px;
  font-family: var(--hf-font-nav); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; text-align: left; color: var(--hf-text);
}
body.bwhf.bwhf #masthead .mobile-nav__link .icon { width: 22px; height: 22px; color: var(--hf-orange-hover); transition: transform var(--hf-t-fast) var(--hf-ease); }
body.bwhf.bwhf #masthead .mobile-nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
body.bwhf.bwhf #masthead .mobile-nav__sub { padding: 0 0 16px 0; }
body.bwhf.bwhf #masthead .mobile-nav__sub[hidden] { display: none; }
body.bwhf.bwhf #masthead .mobile-nav__sub a { display: flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--hf-muted); padding-left: 16px; border-left: 2px solid var(--hf-border); }
body.bwhf.bwhf #masthead .mobile-nav__sub a:hover { color: var(--hf-text); border-color: var(--hf-orange); }
body.bwhf.bwhf #masthead .mobile-nav__footer { margin-top: auto; padding-top: 32px; display: grid; gap: 24px; }
body.bwhf.bwhf #masthead .mobile-nav__langs { display: flex; gap: 8px; flex-wrap: wrap; }
body.bwhf.bwhf #masthead .mobile-nav__langs a {
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px;
  border: 1px solid var(--hf-border); border-radius: var(--hf-radius-sm); font-size: 15px; color: var(--hf-muted);
}
body.bwhf.bwhf #masthead .mobile-nav__langs a[aria-current="true"] { border-color: var(--hf-text); color: var(--hf-text); font-weight: 500; }
body.bwhf.bwhf #masthead .mobile-nav .btn:not(.elementor-widget) { width: 100%; }
@media (min-width: 1280px) {
  body.bwhf.bwhf #masthead .mobile-nav { display: none !important; }
}

/* 6) Footer */
body.bwhf.bwhf #colophon .bw-footer {
  background: var(--hf-footer-bg); color: var(--hf-on-dark);
  padding-top: clamp(64px, 7vw, 96px); font-size: 15px;
  border-top: 4px solid var(--hf-orange);
}
body.bwhf.bwhf #colophon .footer-grid { display: grid; gap: 48px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.bwhf.bwhf #colophon .footer-brand { grid-column: 1 / -1; display: grid; gap: 20px; align-content: start; }
body.bwhf.bwhf #colophon .footer-logo { display: inline-block; justify-self: start; padding: 14px 18px; background: var(--hf-white); border-radius: var(--hf-radius-md); }
body.bwhf.bwhf #colophon .footer-logo img { height: 44px; width: auto; }
body.bwhf.bwhf #colophon .footer-brand p { max-width: 36ch; }
body.bwhf.bwhf #colophon .footer-col h2,
body.bwhf.bwhf #colophon .footer-h .elementor-heading-title {
  font-family: var(--hf-font-nav); font-size: 13px; font-weight: 500; line-height: 1.6; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hf-white); margin: 0 0 16px;
}
body.bwhf.bwhf #colophon .footer-col li a { display: inline-flex; align-items: center; min-height: 36px; transition: color var(--hf-t-fast) var(--hf-ease); }
body.bwhf.bwhf #colophon .footer-col li a:hover { color: var(--hf-orange); }
body.bwhf.bwhf #colophon .footer-col address { font-style: normal; line-height: 1.7; }
body.bwhf.bwhf #colophon .footer-col address a { display: inline-block; padding-block: 6px; }
body.bwhf.bwhf #colophon .footer-col address a:hover { color: var(--hf-orange); }
body.bwhf.bwhf #colophon .footer-langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
body.bwhf.bwhf #colophon .footer-langs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--hf-border-dark); border-radius: var(--hf-radius-sm); }
body.bwhf.bwhf #colophon .footer-langs a:hover { border-color: var(--hf-orange); color: var(--hf-white); }
body.bwhf.bwhf #colophon .footer-langs a[aria-current="true"] { border-color: var(--hf-on-dark); color: var(--hf-white); }
body.bwhf.bwhf #colophon .footer-bottom {
  margin-top: clamp(56px, 6vw, 80px); padding-block: 24px 32px;
  border-top: 1px solid var(--hf-border-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  font-size: 14px;
}
body.bwhf.bwhf #colophon .footer-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
body.bwhf.bwhf #colophon .footer-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
body.bwhf.bwhf #colophon .footer-bottom a:hover { color: var(--hf-orange); }
body.bwhf.bwhf #colophon .footer-bottom .icon { width: 14px; height: 14px; }
@media (min-width: 768px) {
  body.bwhf.bwhf #colophon .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  body.bwhf.bwhf #colophon .footer-grid { grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); }
  body.bwhf.bwhf #colophon .footer-brand { grid-column: auto; }
}

@media (max-width: 1280px) {
  :root {
    --wp-admin--admin-bar--height: 0px;
  }
}

/* 7) Opened page in the menus (aria-current="page" = the page itself, .is-current-section = a page below it).
   Set by bw-menus.php ([bw_menu]). */
body.bwhf.bwhf #masthead .nav-link.is-current-section { color: var(--hf-text); }
body.bwhf.bwhf #masthead .nav-link.is-current-section::after { transform: scaleX(1); }
body.bwhf.bwhf #masthead .dropdown a.is-current-section { color: var(--hf-text); font-weight: 500; }
body.bwhf.bwhf #masthead .dropdown a[aria-current="page"] .icon { opacity: 1; transform: none; }
body.bwhf.bwhf #masthead .mobile-nav__link[aria-current="page"],
body.bwhf.bwhf #masthead .mobile-nav__link.is-current-section { color: var(--hf-orange-hover); }
body.bwhf.bwhf #masthead .mobile-nav__sub a[aria-current="page"],
body.bwhf.bwhf #masthead .mobile-nav__sub a.is-current-section { color: var(--hf-text); font-weight: 500; border-color: var(--hf-orange); }
body.bwhf.bwhf #colophon .footer-col li a[aria-current="page"],
body.bwhf.bwhf #colophon .footer-col li a.is-current-section,
body.bwhf.bwhf #colophon .footer-bottom a[aria-current="page"] {
  color: var(--hf-white); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--hf-orange); text-decoration-thickness: 2px; text-underline-offset: 6px;
}

/* 8) TranslatePress language switcher ([language-switcher] in the header, wrapper .bw-lang).
   Content (flag, full/short names, hover/click) comes from TranslatePress → Settings → Language Switcher;
   here only the header look: menu font, colours and a dropdown above the page. */
body.bwhf.bwhf #masthead .bw-lang .trp-shortcode-switcher {
  --text: var(--hf-muted); --text-hover: var(--hf-text);
  --bg: var(--hf-white); --bg-hover: var(--hf-light);
  --border-color: var(--hf-border); --border: 1px solid var(--hf-border); --border-radius: var(--hf-radius-sm);
  --font-size: 15px;
  font-family: var(--hf-font-nav); font-weight: 500;
}
body.bwhf.bwhf #masthead .bw-lang .trp-shortcode-overlay { z-index: 20; }
body.bwhf.bwhf #masthead .bw-lang .trp-language-item { color: var(--text); text-decoration: none; }

/* 9) Search: icon button in the header actions and a search bar that opens below the header row
   (#header-search, toggled by bw-header-footer.js). The form goes to the search results page. */
body.bwhf.bwhf #masthead .search-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: var(--hf-radius-sm); color: var(--hf-muted);
  transition: color var(--hf-t-fast) var(--hf-ease), background-color var(--hf-t-fast) var(--hf-ease);
}
body.bwhf.bwhf #masthead .search-toggle:hover,
body.bwhf.bwhf #masthead .search-toggle[aria-expanded="true"] { color: var(--hf-text); background: var(--hf-light); }
body.bwhf.bwhf #masthead .search-toggle:focus-visible { outline: 2px solid var(--hf-orange); outline-offset: 2px; border-radius: var(--hf-radius-sm); }
body.bwhf.bwhf #masthead .search-toggle .icon { width: 20px; height: 20px; }
body.bwhf.bwhf #masthead .search-toggle .icon-close { display: none; }
body.bwhf.bwhf #masthead .search-toggle[aria-expanded="true"] .icon-open { display: none; }
body.bwhf.bwhf #masthead .search-toggle[aria-expanded="true"] .icon-close { display: block; }
body.bwhf.bwhf #masthead .header-search {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 95;
  padding-block: 16px; background: var(--hf-white);
  border-top: 1px solid var(--hf-border); border-bottom: 1px solid var(--hf-border);
  box-shadow: 0 18px 40px -28px color-mix(in srgb, var(--hf-text) 35%, transparent);
}
body.bwhf.bwhf #masthead .header-search[hidden] { display: none; }
body.bwhf.bwhf #masthead .header-search__form {
  display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto;
  padding: 4px 4px 4px 16px; background: var(--hf-white);
  border: 1.5px solid var(--hf-border); border-radius: var(--hf-radius-sm);
  transition: border-color var(--hf-t-fast) var(--hf-ease);
}
body.bwhf.bwhf #masthead .header-search__form:focus-within { border-color: var(--hf-orange); }
body.bwhf.bwhf #masthead .header-search__form > .icon { color: var(--hf-muted); }
body.bwhf.bwhf #masthead .header-search__form input[type="search"],
body.bwhf.bwhf #masthead .header-search__form input[type="search"]:focus {
  flex: 1; min-width: 0; width: auto; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; outline: 0; box-shadow: none;
  background: none; font-family: var(--hf-font-text); font-size: 16px; line-height: 1.4; color: var(--hf-text);
  -webkit-appearance: none; appearance: none;
}
body.bwhf.bwhf #masthead .header-search__form input[type="search"]::placeholder { color: var(--hf-muted); opacity: 1; }
body.bwhf.bwhf #masthead .header-search__form .btn { flex: none; }
body.bwhf.bwhf #masthead .header-search .visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 479px) {
  body.bwhf.bwhf #masthead .header-actions { gap: 8px; }
  body.bwhf.bwhf #masthead .header-search__form .btn { padding-inline: 14px; }
}
