:root {
  --gjc-header-mobile-breakpoint: 1024px;
}

/* GJC Navigation Header — single cascade/state model
   SIZE/COLOR VALUE CHAIN: the --gjc-nav-* values below are FALLBACKS only. The live values come from the
   widget's Elementor controls (defaults in widget.php, per-instance overrides in header template 19593),
   emitted into uploads/elementor/css/post-19593.css with higher specificity. To change a size, edit the
   control in Elementor (and keep the widget.php default + fallback here in sync) — editing only this file
   has no visible effect.
   State owners: JS classes + aria-expanded. CSS never uses :hover to open a panel. */
.buildpress-gjc-navigation-header {
  --gjc-nav-surface: var(--e-global-color-900224d, #fff);
  --gjc-nav-text: var(--e-global-color-secondary, #050505);
  --gjc-nav-muted: color-mix(in srgb, var(--e-global-color-text, #333) 72%, var(--gjc-nav-surface));
  --gjc-nav-accent: var(--e-global-color-accent, #e3185c);
  --gjc-nav-border: color-mix(in srgb, var(--gjc-nav-text) 12%, transparent);
  --gjc-nav-soft: color-mix(in srgb, var(--gjc-nav-surface) 94%, var(--gjc-nav-text));
  --gjc-nav-menu-font-size: var(--e-global-typography-accent-font-size, 16px);
  --gjc-nav-submenu-font-size: var(--e-global-typography-accent-font-size, 15px);
  --gjc-nav-description-font-size: var(--e-global-typography-text-font-size, 13px);
  --gjc-nav-menu-font-weight: 500;
  --gjc-nav-max-width: 1375px;
  --gjc-nav-menu-gap: 34px;
  --gjc-nav-logo-image-size: 54.4px;
  --gjc-nav-logo-slot-size: 80px;
  --gjc-nav-bar-min-height: 80px;
  --gjc-nav-frame-padding-y: 14px;
  --gjc-nav-search-tool-width: 100px;
  --gjc-nav-dropdown-width: 290px;
  --gjc-nav-dropdown-radius: 15px;
  --gjc-nav-dropdown-padding: 15px;
  --gjc-nav-dropdown-item-gap: 14px;
  --gjc-nav-dropdown-item-height: 48px;
  --gjc-nav-dropdown-shadow: 0 4px 12px color-mix(in srgb, var(--gjc-nav-text) 10%, transparent);
  --gjc-nav-dropdown-surface: var(--gjc-nav-surface);
  --gjc-nav-dropdown-text: var(--gjc-nav-text);
  --gjc-nav-cta-surface: var(--gjc-nav-text);
  --gjc-nav-cta-text: var(--gjc-nav-surface);
  position: relative;
  z-index: 999;
  width: 100%;
  color: var(--gjc-nav-text);
}


/* hello-elementor reset.css paints focused/hovered buttons white-on-pink and
   the Elementor kit adds its own button:focus color; header controls must stay
   on the neutral text color. Specificity (0,3,0) beats both (reset 0,2,0 /
   kit 0,2,1) while the widget's own state rules below (also 0,3,0, later in
   the file) still win for hover/focus accents. */
.buildpress-gjc-navigation-header.buildpress-gjc-navigation-header :where(button, [type="button"], [type="submit"]):hover,
.buildpress-gjc-navigation-header.buildpress-gjc-navigation-header :where(button, [type="button"], [type="submit"]):focus,
.buildpress-gjc-navigation-header.buildpress-gjc-navigation-header :where(button, [type="button"], [type="submit"]):focus-visible {
  background: transparent !important;
  color: var(--gjc-nav-text);
}

.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__frame { width: 100%; padding: var(--gjc-nav-frame-padding-y) 15px; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__bar {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, var(--gjc-nav-max-width));
  min-height: var(--gjc-nav-bar-min-height);
  margin: 0 auto;
  color: var(--gjc-nav-text);
  background: var(--gjc-nav-surface);
  border-radius: 90px;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--gjc-nav-logo-slot-size);
  height: var(--gjc-nav-logo-slot-size);
  color: inherit;
  text-decoration: none;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand:hover,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand:focus-visible { color: var(--gjc-nav-accent); text-decoration: none; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__logo-image,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__mobile-logo { display: block; width: var(--gjc-nav-logo-image-size); height: var(--gjc-nav-logo-image-size); object-fit: contain; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__home-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; color: currentColor; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand-name { white-space: nowrap; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__nav { min-width: 0; padding-inline: 40px 0; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu { display: flex; align-items: center; justify-content: center; gap: var(--gjc-nav-menu-gap); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item { position: relative; flex: 0 0 auto; margin: 0; padding: 0; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__secondary-item { display: list-item; }
.buildpress-gjc-navigation-header--compact .buildpress-gjc-navigation-header__secondary-item { display: none; }

/* Top-level navigation: transparent in every state, color-only hover/active. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link {
  color: var(--gjc-nav-text);
  font-family: var(--e-global-typography-accent-font-family, system-ui);
  text-decoration: none;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--top {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 36px;
  padding: 8px 0;
  color: var(--gjc-nav-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: var(--gjc-nav-menu-font-size);
  font-weight: var(--gjc-nav-menu-font-weight);
  line-height: 1.25;
  transition: color 180ms ease;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button) > .buildpress-gjc-navigation-header__link--top:hover,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button) > .buildpress-gjc-navigation-header__link--top:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button).current-menu-item > .buildpress-gjc-navigation-header__link--top,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button).current-menu-ancestor > .buildpress-gjc-navigation-header__link--top,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button).gjc-nav-current > .buildpress-gjc-navigation-header__link--top,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button).is-desktop-open > .buildpress-gjc-navigation-header__link--top {
  color: var(--gjc-nav-accent);
  background: transparent;
  text-decoration: none;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--top::before,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--top::after { display: none !important; }

/* Focus is visible but never a filled/pill navigation surface. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__cta:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tool:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__submenu-toggle:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-close:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-submit:focus-visible,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result:focus-visible {
  outline: 1px solid var(--gjc-nav-accent);
  outline-offset: 2px;
}

/* Services control is created by JS; its button is always transparent. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--gjc-nav-text);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__submenu-chevron,
.trp-current-language-item__wrapper .trp-shortcode-arrow {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  overflow: visible;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 180ms ease, color 180ms ease;
}

/* Desktop submenu: only the JS open class reveals the panel. */
@media (min-width: 1025px) {
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children > .buildpress-gjc-navigation-header__submenu-toggle {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: -32px;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transform: translateY(-50%);
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__submenu-toggle[aria-expanded='true'] { color: var(--gjc-nav-accent); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__submenu-toggle[aria-expanded='true'] .buildpress-gjc-navigation-header__submenu-chevron { transform: rotate(180deg); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item > .sub-menu {
    position: absolute;
    inset-block-start: calc(100% + 12px);
    inset-inline-start: -40px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: min(var(--gjc-nav-dropdown-width), calc(100vw - 32px));
    padding: 6px;
    color: var(--gjc-nav-dropdown-text);
    background: var(--gjc-nav-dropdown-surface);
    border: 0;
    border-radius: 8px;
    box-shadow: var(--gjc-nav-dropdown-shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(5px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item > .sub-menu::before {
    position: absolute;
    inset-block-start: -12px;
    inset-inline: 0;
    height: 12px;
    content: '';
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item.is-desktop-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item.is-desktop-hover-suppressed > .sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(5px) !important;
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item > .sub-menu .menu-item:not(:last-child) { margin-block-end: 2px; }
}

/* Dropdown rows keep the approved desktop surface and gray hover. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  color: var(--gjc-nav-dropdown-text);
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: var(--gjc-nav-submenu-font-size);
  line-height: 1.25;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu:hover,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu:focus-visible {
  color: var(--gjc-nav-text);
  background: var(--gjc-nav-soft);
  text-decoration: none;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__service-icon-box {
  display: grid;
  place-items: center;
  grid-column: 1;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--gjc-nav-text) 12%, transparent);
  border-radius: 8px;
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__service-icon { display: block; width: 18px; height: 18px; color: var(--gjc-nav-text); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu:hover .buildpress-gjc-navigation-header__service-icon-box,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu:focus-visible .buildpress-gjc-navigation-header__service-icon-box { background: var(--gjc-nav-soft); border-color: transparent; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__service-label { grid-column: 2; font-weight: 600; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link-description { grid-column: 2; color: var(--gjc-nav-muted); font-size: var(--gjc-nav-description-font-size); }

/* Contact is a filled command on its anchor, not its parent li. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button > .buildpress-gjc-navigation-header__link--top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding-inline: 18px;
  color: var(--gjc-nav-cta-text);
  background: var(--gjc-nav-cta-surface);
  border-radius: 8px;
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button > .buildpress-gjc-navigation-header__link--top:hover,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button > .buildpress-gjc-navigation-header__link--top:focus-visible { color: var(--gjc-nav-cta-text); background: var(--gjc-nav-accent); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__cta-icon { display: block; flex: 0 0 auto; width: 20px; height: 20px; color: currentColor; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-toggle-icon { position: relative; display: block; width: 24px; height: 18px; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-toggle-icon > span { position: absolute; inset-inline-start: 0; display: block; width: 100%; height: 2px; background: currentColor; border-radius: 999px; transform-origin: center; transition: inset-block-start 220ms ease, opacity 160ms ease, transform 220ms ease; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(1) { inset-block-start: 0; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(2) { inset-block-start: 8px; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(3) { inset-block-start: 16px; }
.buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(1),
.buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(3) { inset-block-start: 8px; }
.buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(1) { transform: rotate(45deg); }
.buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(2) { opacity: 0; }
.buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__menu-toggle-icon > span:nth-child(3) { transform: rotate(-45deg); }

/* Language switcher: one wrapper, one state class, no native click mode. */
.buildpress-gjc-navigation-header .trp-shortcode-switcher__wrapper { position: relative; width: auto; min-width: 0; height: 50px; }
.buildpress-gjc-navigation-header .trp-shortcode-overlay { z-index: 30; width: 100%; margin: 0; padding: 0; overflow: visible; background: transparent !important; border: 0 !important; border-radius: 0; box-shadow: none !important; }
.buildpress-gjc-navigation-header .trp-current-language-item__wrapper {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 50px;
  padding-inline: 4px;
  color: var(--gjc-nav-text);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  cursor: pointer;
  transition: color 180ms ease;
}
.buildpress-gjc-navigation-header .trp-current-language-item__wrapper:hover,
.buildpress-gjc-navigation-header .trp-current-language-item__wrapper:focus-within,
.buildpress-gjc-navigation-header .trp-shortcode-switcher.is-open .trp-current-language-item__wrapper { color: var(--gjc-nav-accent); }
.buildpress-gjc-navigation-header .trp-current-language-item__wrapper > .trp-language-item { padding: 0; color: inherit; font-weight: var(--gjc-nav-menu-font-weight); }
.buildpress-gjc-navigation-header .trp-shortcode-switcher.is-open .trp-current-language-item__wrapper .trp-shortcode-arrow,
.buildpress-gjc-navigation-header .trp-shortcode-switcher[aria-expanded='true'] .trp-current-language-item__wrapper .trp-shortcode-arrow { transform: rotate(180deg); }
.buildpress-gjc-navigation-header .trp-shortcode-switcher:not(.is-open)[aria-expanded='false'] .trp-current-language-item__wrapper .trp-shortcode-arrow,
.buildpress-gjc-navigation-header .trp-shortcode-switcher:not(.is-open) .trp-current-language-item__wrapper .trp-shortcode-arrow { transform: rotate(0deg); }
.buildpress-gjc-navigation-header .trp-switcher-dropdown-list {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 40;
  width: max-content;
  min-width: 84px;
  max-width: 128px;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: var(--gjc-nav-surface);
  border: 0;
  border-radius: 8px;
  box-shadow: var(--gjc-nav-dropdown-shadow);
  transform: translateY(5px);
  transition: max-height 180ms ease, padding 180ms ease, opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}
/* Hover bridge over the 8px gap (same pattern as the Services submenu) so the
   pointer never leaves the wrapper on the way down into the dropdown. */
.buildpress-gjc-navigation-header .trp-switcher-dropdown-list::before {
  position: absolute;
  inset-block-start: -8px;
  inset-inline: 0;
  height: 8px;
  content: '';
}
.buildpress-gjc-navigation-header .trp-shortcode-switcher.is-open .trp-switcher-dropdown-list,
.buildpress-gjc-navigation-header .trp-shortcode-switcher[aria-expanded='true'] .trp-switcher-dropdown-list {
  max-height: 350px;
  padding: 4px;
  /* !important: TRP's own css (loaded later, same specificity) forces
     overflow-y: auto on the open list, which clips the hover bridge. */
  overflow: visible !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.buildpress-gjc-navigation-header .trp-switcher-dropdown-list .trp-language-item {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 8px;
  color: var(--gjc-nav-text);
  border-radius: 4px;
  transition: color 180ms ease, background-color 180ms ease;
}
.buildpress-gjc-navigation-header .trp-switcher-dropdown-list .trp-language-item:hover,
.buildpress-gjc-navigation-header .trp-switcher-dropdown-list .trp-language-item:focus-visible { color: var(--gjc-nav-text); background: var(--gjc-nav-soft); }

/* Tools and search. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tools { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tool,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-close,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--gjc-nav-search-tool-width);
  height: var(--gjc-nav-bar-min-height);
  padding: 0;
  color: var(--gjc-nav-text);
  background: transparent !important;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tool svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-trigger:hover,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-trigger:focus-visible { color: var(--gjc-nav-accent); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-toggle,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__mobile-head,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__mobile-cta { display: none; }

.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search[hidden] { display: none; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: start center; padding: clamp(4rem, 10vh, 6rem) 1rem 1rem; background: color-mix(in srgb, var(--gjc-nav-text) 16%, transparent); backdrop-filter: blur(7px); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-shell { width: min(520px, calc(100vw - 32px)); padding: 4px; background: var(--gjc-nav-surface); border-radius: 8px; box-shadow: 0 8px 24px color-mix(in srgb, var(--gjc-nav-text) 14%, transparent); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-field { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; min-height: 56px; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-submit { width: 40px; height: 40px; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-submit svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-input { grid-column: 2; width: 100%; min-width: 0; padding: 0; color: var(--gjc-nav-text); background: transparent; border: 0; outline: 0; font: inherit; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-input::-webkit-search-cancel-button,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-submit { grid-column: 1; grid-row: 1; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-results[hidden] { display: none; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-results { display: grid; gap: 4px; max-height: 352px; overflow-y: auto; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 12px; color: var(--gjc-nav-text); border-radius: 8px; text-decoration: none; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result:hover,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result:focus-visible { color: var(--gjc-nav-text); background: var(--gjc-nav-soft); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result-type { flex: 0 0 auto; color: var(--gjc-nav-muted); font-size: var(--e-global-typography-text-font-size, 12px); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-status,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-empty { margin: 6px 8px 4px; color: var(--gjc-nav-muted); font-size: var(--e-global-typography-text-font-size, 12px); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-status:empty { display: none; }
/* aria-live status: announced to screen readers only — the visible results list already shows the same message. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__visually-hidden,
.buildpress-gjc-navigation-header .visuallyhidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Legacy safety: never render close/clear controls, even from cached markup. */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-head,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-close,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-clear { display: none !important; }

/* Mobile/tablet: panel and accordion remain in normal flow. */
@media (max-width: 1024px) {
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__frame { padding: 12px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__bar { min-height: 60px; padding: 0 14px; border-radius: 90px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand { width: 54px; height: 54px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__logo-image { width: 48px; height: 48px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__nav { position: absolute; inset: calc(100% + 15px) 0 auto; z-index: 50; display: block; max-height: calc(100dvh - 120px); padding: 0; overflow-x: hidden; overflow-y: auto; background: var(--gjc-nav-surface); border-radius: 25px; box-shadow: var(--gjc-nav-dropdown-shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px); transition: opacity 240ms ease, transform 320ms ease, visibility 240ms ease; }
  .buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__nav::before { position: fixed; inset: 0; z-index: 49; content: ''; background: transparent; pointer-events: auto; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu { display: block; width: 100%; padding: 12px 28px 16px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item { display: block; width: 100%; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__secondary-item { display: block; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--top { display: flex; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 0; font-size: var(--e-global-typography-accent-font-size, 15px); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button) > .buildpress-gjc-navigation-header__link--top:hover,
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:not(.menu-button) > .buildpress-gjc-navigation-header__link--top:focus-visible { color: var(--gjc-nav-accent); background: transparent; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children { display: block; width: 100%; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children > .buildpress-gjc-navigation-header__submenu-toggle { position: absolute; inset-block-start: 0; inset-inline-end: -10px; display: flex; width: 48px; height: 44px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children > .buildpress-gjc-navigation-header__submenu-toggle:hover,
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children > .buildpress-gjc-navigation-header__submenu-toggle:active { color: var(--gjc-nav-text); background: transparent !important; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children > .buildpress-gjc-navigation-header__submenu-toggle[aria-expanded='true'] { color: var(--gjc-nav-accent); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children > .buildpress-gjc-navigation-header__submenu-toggle[aria-expanded='true'] .buildpress-gjc-navigation-header__submenu-chevron { transform: rotate(180deg); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children > .sub-menu { position: static; display: grid; grid-template-columns: 1fr; gap: var(--gjc-nav-dropdown-item-gap); width: 100%; max-height: 0; margin: 0; padding: 0; overflow: hidden; background: var(--gjc-nav-dropdown-surface); border: 0; border-radius: var(--gjc-nav-dropdown-radius); box-shadow: none; opacity: 0; visibility: hidden; pointer-events: none; transform: none; transition: max-height 300ms ease, margin 180ms ease, padding 180ms ease, opacity 180ms ease, visibility 180ms ease, box-shadow 180ms ease; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children.is-submenu-open > .sub-menu { max-height: 512px; margin: 6px 0 12px; padding: var(--gjc-nav-dropdown-padding); opacity: 1; visibility: visible; pointer-events: auto; box-shadow: var(--gjc-nav-dropdown-shadow); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu { width: 100%; min-height: 40px; padding: 8px 10px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu:hover,
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu:focus-visible { color: var(--gjc-nav-text); background: var(--gjc-nav-soft); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button { width: max-content; margin-block: 8px 4px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button > .buildpress-gjc-navigation-header__link--top { min-height: 50px; width: max-content; padding-inline: 18px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu-toggle { display: inline-flex; width: 48px; height: 60px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tool { width: 48px; height: 60px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__mobile-head { display: none; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tools { gap: 0; }
  .buildpress-gjc-navigation-header .trp-shortcode-switcher__wrapper { height: auto; }
  .buildpress-gjc-navigation-header .menu-item-type-gs_sim .trp-shortcode-anchor { display: none !important; }
  .buildpress-gjc-navigation-header .trp-shortcode-overlay { position: relative !important; inset: auto !important; display: block; width: 100%; }
  .buildpress-gjc-navigation-header .trp-switcher-dropdown-list { position: static; width: 100%; max-width: none; margin-block-start: 8px; transform: none; }
  .buildpress-gjc-navigation-header .trp-shortcode-switcher.is-open .trp-switcher-dropdown-list,
  .buildpress-gjc-navigation-header .trp-shortcode-switcher[aria-expanded='true'] .trp-switcher-dropdown-list { max-height: 350px; padding: 4px; }
  .buildpress-gjc-navigation-header .trp-current-language-item__wrapper { min-height: 44px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-trigger { width: 48px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .buildpress-gjc-navigation-header *,
  .buildpress-gjc-navigation-header *::before,
  .buildpress-gjc-navigation-header *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 1024px) {
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__backdrop {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: transparent;
    pointer-events: auto;
  }
  .buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__menu,
  .buildpress-gjc-navigation-header.is-menu-open .buildpress-gjc-navigation-header__menu > .menu-item {
    position: relative;
    z-index: 51;
  }
}
/* Touch target (Lighthouse): language switcher needs >=48x48px hit area.
   Min dimensions expand the real interactive box; the label stays centered. */
.buildpress-gjc-navigation-header .trp-current-language-item__wrapper,
.buildpress-gjc-navigation-header .trp-language-item__current {
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------
   Design fixes (2026-09-27)
   Icon scale: 20px next to text (home, CTA), 24px standalone (search, menu), 16px chevrons.
   ------------------------------------------------------------------ */

/* Language switcher: override TranslatePress's inline tokens (--text #143852, --font-size 14px, system font)
   on the switcher children so it matches the menu. */
.buildpress-gjc-navigation-header .trp-shortcode-switcher {
  --text: var(--gjc-nav-text);
  --text-hover: var(--gjc-nav-accent);
  --font-size: var(--gjc-nav-menu-font-size);
  --flag-size: 18px;
  font-family: var(--e-global-typography-accent-font-family, system-ui);
}
.buildpress-gjc-navigation-header .trp-shortcode-switcher .trp-language-item,
.buildpress-gjc-navigation-header .trp-shortcode-switcher .trp-language-item-name {
  font-family: var(--e-global-typography-accent-font-family, system-ui);
  font-size: var(--gjc-nav-menu-font-size);
  font-weight: var(--gjc-nav-menu-font-weight);
  line-height: 1.2;
}
.buildpress-gjc-navigation-header .trp-current-language-item__wrapper { gap: 4px; }
.buildpress-gjc-navigation-header .trp-shortcode-arrow path { stroke: currentColor; }
.buildpress-gjc-navigation-header .trp-flag-image {
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--gjc-nav-border);
}
.buildpress-gjc-navigation-header .trp-switcher-dropdown-list .trp-language-item {
  box-sizing: border-box; /* TRP ships content-box, which inflated rows to 56px */
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
}

@media (min-width: 1025px) {
  /* The submenu chevron is absolutely positioned past the link: reserve its space so the gap
     after "Dịch vụ ⌄" matches every other item. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-has-children { margin-inline-end: 20px; }
}

/* Small laptops / landscape tablets: the full desktop row needs ~1,110px at default spacing.
   Tighten spacing between 1025px and 1279px instead of letting CTA and search overlap. */
@media (min-width: 1025px) and (max-width: 1279px) {
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__nav { padding-inline: 20px 0; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu { gap: 20px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tool { width: 56px; }
}

@media (max-width: 1024px) {
  /* Home: show the label next to the icon in the mobile list. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-home > .buildpress-gjc-navigation-header__link--top { justify-content: flex-start; gap: 10px; }
  .buildpress-gjc-navigation-header .menu-item-home .visuallyhidden { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }

  /* Submenu items are secondary: same size/weight as parents, smaller icon boxes. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu { min-height: 44px; padding: 6px 8px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__link--submenu .buildpress-gjc-navigation-header__service-label { font-weight: var(--gjc-nav-menu-font-weight); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__service-icon-box { width: 28px; height: 28px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__service-icon { width: 16px; height: 16px; }

  /* Language row aligned with the other items; chevron aligned with the Services chevron. */
  .buildpress-gjc-navigation-header .trp-current-language-item__wrapper { justify-content: space-between; padding-inline: 0 6px; }
  .buildpress-gjc-navigation-header .trp-current-language-item__wrapper > .trp-language-item { gap: 8px; padding: 0; }

  /* Full-width contact command. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button { width: 100%; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button > .buildpress-gjc-navigation-header__link--top { width: 100%; }

  /* Dim the page behind the open menu (the backdrop element already closes the menu on tap). */
  /* z-index -1 inside the header's own stacking context: above the page, below the bar and the panel. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__backdrop { z-index: -1; background: color-mix(in srgb, var(--gjc-nav-text) 32%, transparent); }
}

/* ------------------------------------------------------------------
   Layout & sticky (2026-09-27, round 2)
   ------------------------------------------------------------------ */

/* Sticky on tablet/mobile only (desktop header scrolls with the page). The Elementor header location wrapper sticks;
   the frame stays transparent so the white pill floats. Scrolled state = soft shadow only, no outline. */
@media (max-width: 1024px) {
  .elementor-location-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 999;
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__bar { transition: box-shadow 200ms ease; }
  .buildpress-gjc-navigation-header.is-scrolled .buildpress-gjc-navigation-header__bar {
    box-shadow: 0 1px 2px color-mix(in srgb, var(--gjc-nav-text) 6%, transparent), 0 10px 30px color-mix(in srgb, var(--gjc-nav-text) 12%, transparent);
  }
}

@media (min-width: 1025px) {
  /* Main links centred; language + contact move to the right next to search.
     Two auto margins split the free space, so the link group sits centred between the logo and the utilities. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu { justify-content: flex-start; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item:first-child { margin-inline-start: auto; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-item-type-gs_sim { margin-inline-start: auto; }

  /* Concentric right cap: search icon centred on the bar's end radius (bar height 80 → centre 40px from the edge). */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tools .buildpress-gjc-navigation-header__tool { width: 80px; }
}

@media (max-width: 1024px) {
  /* Concentric caps on the 60px pill: logo (48px) and menu icon (24px) centred 30px from each end. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__bar { padding: 0 6px 0 3px; }
  html { scroll-padding-top: 84px; } /* = the sticky header box (capsules end 68px from the top) */
  /* Logo 44px on the 60px bar: 8px air to the rim (48px felt cramped, 40px too small), still centred 30px from the edge. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__logo-image { width: 44px; height: 44px; }
}


/* Language switcher optical alignment (desktop): same 50px box as the CTA and the menu's line-height,
   so flag/label/chevron share the menu text's centre line. */
@media (min-width: 1025px) {
  .buildpress-gjc-navigation-header .trp-current-language-item__wrapper,
  .buildpress-gjc-navigation-header .trp-language-item__current { min-height: 50px; }
  .buildpress-gjc-navigation-header .trp-shortcode-switcher .trp-current-language-item__wrapper .trp-language-item-name { line-height: 1.25; }
}

/* ------------------------------------------------------------------
   Search (2026-09-27, round 3): the field is a pill that takes the header bar's place (concentric icon cap,
   same radius language), results sit in a separate rounded card below. The bar fades out while search is open.
   ------------------------------------------------------------------ */
.buildpress-gjc-navigation-header {
  --gjc-search-h: 64px;
  --gjc-search-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--gjc-nav-frame-padding-y) + (var(--gjc-nav-bar-min-height) - var(--gjc-search-h)) / 2);
  --gjc-search-shadow: 0 1px 2px color-mix(in srgb, var(--gjc-nav-text) 6%, transparent), 0 16px 40px color-mix(in srgb, var(--gjc-nav-text) 16%, transparent);
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__frame { transition: opacity 160ms ease; }
.buildpress-gjc-navigation-header.is-search-open .buildpress-gjc-navigation-header__frame { opacity: 0; }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search {
  grid-template-columns: minmax(0, 1fr); /* long result titles must not widen the panel */
  padding: var(--gjc-search-top) 15px 16px;
  background: color-mix(in srgb, var(--gjc-nav-text) 24%, transparent);
  backdrop-filter: blur(6px);
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-shell {
  width: min(720px, 100%);
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-field {
  grid-template-columns: var(--gjc-search-h) minmax(0, 1fr) auto;
  min-height: var(--gjc-search-h);
  background: var(--gjc-nav-surface);
  border-radius: 999px;
  box-shadow: var(--gjc-search-shadow); /* no focus ring: the caret in the open pill is the focus cue (owner's choice) */
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-submit {
  width: var(--gjc-search-h);
  height: var(--gjc-search-h);
  border-radius: 50%;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-submit:hover { color: var(--gjc-nav-accent); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-input {
  align-self: stretch;
  padding-inline-end: 24px;
  border-radius: 0;
  box-shadow: none; /* hello-elementor reset adds a 4px white focus ring; the pill shows focus instead */
  transition: none;
  font-size: max(16px, var(--gjc-nav-menu-font-size)); /* >=16px: no iOS zoom on focus */
  font-weight: var(--gjc-nav-menu-font-weight);
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-input::placeholder { color: var(--gjc-nav-muted); opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-field::after {
    grid-column: 3;
    grid-row: 1;
    margin-inline-end: 24px;
    padding: 2px 8px;
    color: var(--gjc-nav-muted);
    border: 1px solid var(--gjc-nav-border);
    border-radius: 6px;
    content: 'Esc';
    font-size: calc(var(--gjc-nav-menu-font-size) * 0.75);
    line-height: 1.5;
  }
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-results {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  max-height: calc(100dvh - var(--gjc-search-top) - var(--gjc-search-h) - 32px);
  margin-block-start: 8px;
  padding: 8px;
  overscroll-behavior: contain;
  background: var(--gjc-nav-surface);
  border-radius: 24px;
  box-shadow: var(--gjc-search-shadow);
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result {
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 16px; /* concentric with the 24px card and its 8px padding */
  transition: background-color 150ms ease;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result-title {
  flex: 1 1 auto;
  min-width: 0; /* lets the ellipsis work inside the flex row */
  font-weight: var(--gjc-nav-menu-font-weight);
  transition: color 150ms ease;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result-type {
  padding: 2px 10px;
  background: var(--gjc-nav-soft);
  border-radius: 999px;
  font-size: calc(var(--gjc-nav-menu-font-size) * 0.75);
  line-height: 1.5;
}
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result:hover .buildpress-gjc-navigation-header__search-result-title,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result:focus-visible .buildpress-gjc-navigation-header__search-result-title { color: var(--gjc-nav-accent); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result:hover .buildpress-gjc-navigation-header__search-result-type,
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result:focus-visible .buildpress-gjc-navigation-header__search-result-type { background: var(--gjc-nav-surface); }
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-empty {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  font-size: calc(var(--gjc-nav-menu-font-size) * 0.875);
}
@media (max-width: 1024px) {
  /* The pill lands exactly on the 60px mobile bar (frame padding 12px). */
  .buildpress-gjc-navigation-header {
    --gjc-search-h: 60px;
    --gjc-search-top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px);
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search { padding-inline: 12px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-shell { width: 100%; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__search-result { padding-inline: 12px; }
}

/* Header CTA follows the header's concentric rule: 50px button inset 15px in the 80px pill (radius 40) → inner radius
   40 − 15 = 25 = half its height, i.e. a pill. Content buttons elsewhere on the site stay 8px (see AGENTS.md radius tiers). */
.buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__menu > .menu-button > .buildpress-gjc-navigation-header__link--top {
  padding-inline: 22px;
  border-radius: 999px;
}

/* ------------------------------------------------------------------
   Compact sticky header (2026-09-29, owner-approved option A + hide/reveal), <=1024px only.
   Once scrolled (.is-scrolled, JS >8px) the white bar fades out while two white capsules fade in behind the logo and
   behind search + menu. Nothing moves or resizes: the logo stays 44px and every control keeps its place, so the change
   is a pure cross-fade (round 2 — round 1 shrank the logo and shifted the bar, which the owner found abrupt).
   Capsules are pseudo-elements concentric with what they hold: a 52px circle around the 44px logo (16px from the top
   and left edge) and a 100×52 pill whose ends are centred on the two icons (radius 26 = icon centre to end).
   The middle is transparent and taps pass through. .is-header-hidden (JS: scrolling down past 160px) slides the
   frame away; scrolling up brings it back. Motion is instant under prefers-reduced-motion (rule above).
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .buildpress-gjc-navigation-header {
    --gjc-nav-fade: 260ms ease;
    --gjc-nav-capsule-shadow: 0 1px 2px color-mix(in srgb, var(--gjc-nav-text) 6%, transparent), 0 8px 24px color-mix(in srgb, var(--gjc-nav-text) 12%, transparent);
  }
  /* Only the header's own controls take taps; its empty box does not. */
  .elementor-location-header { pointer-events: none; }
  .buildpress-gjc-navigation-header { pointer-events: auto; }
  .buildpress-gjc-navigation-header.is-scrolled { pointer-events: none; }
  /* The nav panel and the menu backdrop set pointer-events themselves; the search dialog is re-enabled here. */
  .buildpress-gjc-navigation-header.is-scrolled .buildpress-gjc-navigation-header__brand,
  .buildpress-gjc-navigation-header.is-scrolled .buildpress-gjc-navigation-header__tools,
  .buildpress-gjc-navigation-header.is-scrolled .buildpress-gjc-navigation-header__search { pointer-events: auto; }

  /* Reveal (leaving the hidden state): quick and decelerating, so the controls are back under the thumb at once. */
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__frame { transition: opacity 200ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__bar { transition: background-color var(--gjc-nav-fade), box-shadow var(--gjc-nav-fade); }
  .buildpress-gjc-navigation-header.is-scrolled .buildpress-gjc-navigation-header__bar { background-color: transparent; box-shadow: none; }

  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tools { grid-column: 3; justify-self: end; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand,
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tools { position: relative; isolation: isolate; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand::before,
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tools::before {
    position: absolute;
    z-index: -1;
    content: '';
    background: var(--gjc-nav-surface);
    border-radius: 999px;
    box-shadow: var(--gjc-nav-capsule-shadow);
    opacity: 0;
    transition: opacity var(--gjc-nav-fade);
    pointer-events: none;
  }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__brand::before { inset: 1px; }
  .buildpress-gjc-navigation-header .buildpress-gjc-navigation-header__tools::before { inset: 4px -2px; }
  .buildpress-gjc-navigation-header.is-scrolled .buildpress-gjc-navigation-header__brand::before,
  .buildpress-gjc-navigation-header.is-scrolled .buildpress-gjc-navigation-header__tools::before { opacity: 1; }

  /* Hide while scrolling down (round 3, owner: "smoother"): a slower ease-in-out slide past the frame's own height plus
     the capsule shadow, with a fade that starts a beat later, so the capsules glide away instead of snapping up. */
  .buildpress-gjc-navigation-header.is-header-hidden .buildpress-gjc-navigation-header__frame {
    opacity: 0;
    transform: translateY(calc(-100% - 16px));
    transition: opacity 360ms ease 180ms, transform 520ms cubic-bezier(0.4, 0, 0.2, 1) 100ms;
  }
  /* A fast scroll from the top sets .is-scrolled and .is-header-hidden in the same frame: the bar→capsules cross-fade
     then finishes in place (120ms) before the slide starts (100ms delay above), so only the two capsules ever leave —
     never the whole white bar (round 4 fix). */
  .buildpress-gjc-navigation-header.is-header-hidden .buildpress-gjc-navigation-header__bar,
  .buildpress-gjc-navigation-header.is-header-hidden .buildpress-gjc-navigation-header__brand::before,
  .buildpress-gjc-navigation-header.is-header-hidden .buildpress-gjc-navigation-header__tools::before { transition-duration: 120ms; }
}
