.qgc-lang-switcher {
  position: fixed;
  top: 5.25rem;
  left: 1rem;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  direction: ltr;
  white-space: nowrap;
}
.qgc-lang-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.25rem;
  padding: .35rem .5rem;
  border: 1px solid #d3c8b7;
  background: #fff;
  color: #2b2926;
  font: 700 .75rem/1.2 "IBM Plex Sans", Arial, sans-serif;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.qgc-lang-switcher a:hover {
  border-color: #9b6b1e;
  color: #9b6b1e;
}
.qgc-lang-switcher a:focus-visible {
  outline: 2px solid #9b6b1e;
  outline-offset: 2px;
}
#header .qgc-lang-switcher {
  position: static;
  flex: 0 0 auto;
  box-shadow: none;
}
#header:not(.qgc-policy-header) > div {
  gap: clamp(.75rem, 1.4vw, 1.5rem);
}
#header:not(.qgc-policy-header) > div > div:first-child {
  min-width: 0;
  gap: clamp(1rem, 1.5vw, 2rem);
}
#header:not(.qgc-policy-header) > div > div:last-child {
  flex: 0 0 auto;
  gap: clamp(.5rem, 1vw, 1rem);
}
#header:not(.qgc-policy-header) input[type="search"] {
  box-sizing: border-box;
  padding-left: 2.7rem !important;
  padding-right: .75rem !important;
  font-size: .875rem !important;
}
#header:not(.qgc-policy-header) input[type="search"] + button {
  color: #594b35;
}
body.home #header:not(.qgc-policy-header):not(:hover):not([data-qgc-away-from-top="true"]) .qgc-lang-switcher {
  background: transparent;
}
body.home #header:not(.qgc-policy-header):not(:hover):not([data-qgc-away-from-top="true"]) .qgc-lang-switcher a {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(38, 35, 30, .42);
}
body.home #header:not(.qgc-policy-header):not(:hover):not([data-qgc-away-from-top="true"]) input[type="search"] + button {
  color: #fff;
}
html[lang^="en"] body {
  direction: ltr;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}
html[lang^="en"] .qgc-product-page,
html[lang^="en"] .qgc-leadership,
html[lang^="en"] .qgc-shr,
html[lang^="en"] #header,
html[lang^="en"] footer {
  direction: ltr;
  text-align: left;
}
html[lang^="en"] .qgc-product-page *,
html[lang^="en"] .qgc-leadership *,
html[lang^="en"] .qgc-shr * {
  font-family: "IBM Plex Sans", Arial, sans-serif;
}
html[lang^="en"] #header nav ul {
  direction: ltr !important;
}
html[lang^="en"] #about-qgc-root :is(h1, h2, h3, h4, p, li),
html[lang^="en"] #about-qgc-root .text-right {
  direction: ltr !important;
  text-align: left !important;
}
html[lang^="en"] #about-qgc-root .qgc-our-story-copy .border-r-2 {
  border-right-width: 0;
  border-left: 2px solid #96671c;
  padding-right: 0;
  padding-left: 1.5rem;
}
html[lang^="en"] .qgc-quick-contact {
  left: auto;
  right: calc(env(safe-area-inset-right) + 1rem);
  direction: ltr;
}
html[lang^="en"] .qgc-quick-contact__link::after {
  left: auto;
  right: calc(100% + .75rem);
  transform: translate(.35rem, -50%);
}
html[lang^="en"] .qgc-quick-contact__link:hover::after,
html[lang^="en"] .qgc-quick-contact__link:focus-visible::after {
  transform: translate(0, -50%);
}
html[lang^="en"] #hero a:not(.qgc-hero-primary-action) svg[aria-hidden="true"]:not(.qgc-unified-arrow),
html[lang^="en"] .qgc-product-detail-link [aria-hidden="true"]:not(.qgc-unified-arrow) {
  transform: scaleX(-1);
}
html[lang^="en"] .qgc-product-detail-link:hover {
  transform: translateX(4px);
}
@media (max-width: 767px) {
  #header .qgc-lang-switcher { gap: 0; padding: 0; }
  #header .qgc-lang-switcher a { min-height: 1.9rem; padding: .25rem .3rem; font-size: .65rem; }
  html[lang^="en"] #hero {
    box-sizing: border-box;
    min-height: 43rem;
    height: auto;
    padding-block: 7rem 3rem;
  }
  html[lang^="en"] #hero h1 {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    line-height: 1.14;
  }
}
@media (max-width: 1279px) {
  #header:not(.qgc-policy-header) > div > div:first-child > [data-wvc-dynamic="MenuProvider"] {
    display: none !important;
  }
  #header:not(.qgc-policy-header) > div > div:last-child > div:has(> [data-slot="drawer-trigger"]) {
    display: block !important;
  }
  #header:not(.qgc-policy-header) [data-slot="drawer-trigger"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    color: #17372e !important;
    background: #fff !important;
    border: 1px solid rgba(15, 70, 55, .26) !important;
  }
  body.home #header:not(.qgc-policy-header):not(:hover):not([data-qgc-away-from-top="true"]) [data-slot="drawer-trigger"] {
    color: #fff !important;
    background: rgba(17, 42, 35, .58) !important;
    border-color: rgba(255, 255, 255, .76) !important;
  }
  body.home #header:not(.qgc-policy-header):not(:hover):not([data-qgc-away-from-top="true"]) [data-slot="drawer-trigger"] svg {
    color: #fff !important;
  }
  .qgc-mobile-menu-dialog .qgc-mobile-menu-close {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d3c8b7;
    background: #fff;
    color: #1f2937;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
  }
  body:has(.qgc-mobile-menu-dialog[data-state="open"]) .qgc-quick-contact {
    display: none !important;
  }
  body:has(.qgc-mobile-menu-dialog[data-state="open"]) #header:not(.qgc-policy-header) {
    z-index: 40 !important;
  }
  .qgc-mobile-menu-dialog input[type="search"] {
    padding-left: 2.7rem !important;
    font-size: .875rem !important;
  }
}
@media (max-width: 900px) {
  #header:not(.qgc-policy-header) > div > div:last-child > div:has(> a[data-slot="button"]) {
    display: none !important;
  }
}
@media (max-width: 767px) {
  #header:not(.qgc-policy-header) > div > div:last-child > div:has(> input[type="search"]) {
    display: none !important;
  }
  #header:not(.qgc-policy-header) > div > div:last-child {
    gap: .5rem;
  }
}
@media (max-width: 480px) {
  #header:not(.qgc-policy-header) > div {
    padding-inline: .75rem !important;
    gap: .5rem;
  }
  #header:not(.qgc-policy-header) img[data-qgc-header-logo] {
    width: 90px !important;
  }
  #header:not(.qgc-policy-header) .qgc-lang-switcher a {
    padding-inline: .28rem;
    font-size: .62rem;
  }
}

/* The three disc-to-pill actions start beside the label in reading direction. */
html[lang^="en"] :is(#hero .qgc-hero-primary-action, #core-product-families .qgc-catalog-morph-action, #building-solutions .qgc-catalog-morph-action)::before {
  left: 5px;
  right: auto;
}
html[lang^="en"] :is(#hero .qgc-hero-primary-action, #core-product-families .qgc-catalog-morph-action, #building-solutions .qgc-catalog-morph-action):is(:hover, :focus-visible)::before {
  left: 0;
  right: 0;
}
html[lang^="en"] :is(#hero .qgc-hero-cta-label, #core-product-families .qgc-catalog-morph-label, #building-solutions .qgc-catalog-morph-label) {
  left: auto;
  right: 4px;
  direction: ltr;
  font-family: "IBM Plex Sans", Arial, sans-serif;
}
html[lang^="en"] :is(#hero .qgc-hero-speed-arrow, #core-product-families .qgc-catalog-morph-arrow, #building-solutions .qgc-catalog-morph-arrow) {
  left: 14px;
  right: auto;
  transform: translate3d(0, -50%, 0) scaleX(-1);
}
html[lang^="en"] :is(#hero .qgc-hero-primary-action, #core-product-families .qgc-catalog-morph-action, #building-solutions .qgc-catalog-morph-action):is(:hover, :focus-visible) :is(.qgc-hero-cta-label, .qgc-catalog-morph-label) {
  transform: translateX(-50px);
}
html[lang^="en"] #hero .qgc-hero-primary-action:is(:hover, :focus-visible) .qgc-hero-speed-arrow {
  transform: translate3d(160px, -50%, 0) scaleX(-1);
}
html[lang^="en"] :is(#core-product-families, #building-solutions) .qgc-catalog-morph-action {
  --qgc-morph-width: min(360px, calc(100vw - 32px));
  width: var(--qgc-morph-width) !important;
  min-width: 0 !important;
  max-width: 100%;
}
html[lang^="en"] :is(#core-product-families, #building-solutions) .qgc-catalog-morph-label {
  font-size: clamp(.8rem, 3.7vw, 1rem);
}
html[lang^="en"] :is(#core-product-families, #building-solutions) .qgc-catalog-morph-action:is(:hover, :focus-visible) .qgc-catalog-morph-arrow {
  transform: translate3d(calc(var(--qgc-morph-width) - 54px), -50%, 0) scaleX(-1);
}

/* Forward actions use a right-facing arrow in LTR. Keep the product-list return arrow left-facing. */
html[lang^="en"] [data-qgc-arrow-action]:not(.qgc-hero-primary-action, .qgc-catalog-morph-action, .qpp-back) .qgc-unified-arrow {
  scale: -1 1;
}
html[lang^="en"] [data-qgc-arrow-action]:not(.qgc-hero-primary-action, .qgc-catalog-morph-action, .qpp-back, #footer *):is(:hover, :focus-visible) .qgc-unified-arrow {
  transform: translateX(3px);
}

/* Give the English corporate submenu enough room for its full labels. */
@media (min-width: 1024px) {
  html[lang^="en"] #header [data-slot="navigation-menu-content"]:has(> ul) {
    inset: calc(100% + 9px) auto auto 0 !important;
    width: 240px !important;
    min-width: 220px !important;
    direction: ltr !important;
  }
  html[lang^="en"] #header [data-slot="navigation-menu-content"]:has(> ul) a {
    text-align: left !important;
    white-space: normal !important;
  }
}

/* The search and support icons follow their English labels. */
html[lang^="en"] #header:not(.qgc-policy-header) input[type="search"],
html[lang^="en"] .qgc-mobile-menu-dialog input[type="search"] {
  padding-left: .75rem !important;
  padding-right: 2.7rem !important;
  text-align: left !important;
}
html[lang^="en"] #header:not(.qgc-policy-header) input[type="search"] + button,
html[lang^="en"] .qgc-mobile-menu-dialog input[type="search"] + button {
  left: auto !important;
  right: .125rem !important;
}
html[lang^="en"] #header a[data-qgc-support-action="true"] > svg {
  order: 2;
}
html[lang^="en"] #header a[data-qgc-support-action="true"] > span {
  order: 1;
}

/* Keep the drawer close control usable while the WordPress admin bar is shown. */
body.admin-bar .qgc-mobile-menu-dialog {
  z-index: 100000 !important;
}

/* Long English calls to action must fit narrow phones without horizontal scrolling. */
@media (max-width: 360px) {
  html[lang^="en"] .qgc-light-hover-action {
    max-width: 100%;
    height: auto;
    min-height: 2.5rem;
    white-space: normal;
    text-align: center;
  }

  html[lang^="en"] form[data-wvc-formid="home_quick_consultation"] button[type="submit"] {
    max-width: 100%;
    padding-inline: 1rem;
    white-space: normal;
  }

  html[lang^="en"] form[data-wvc-formid="home_quick_consultation"] button[type="submit"] > span {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}

/* Mirror the desktop footer columns for English while keeping each column LTR. */
@media (min-width: 1024px) {
  html[lang^="en"] #footer .qgc-footer-columns {
    direction: rtl;
  }

  html[lang^="en"] #footer .qgc-footer-columns > div {
    direction: ltr;
    text-align: left;
  }
}
