/* GMS | Compact centered navigation + legible controls | 16 Nov 2026
   Extends the final moss/leaf palette; preserve all existing pages, photos and components. */
:root{--gms-leaf:#588157;--gms-moss:#3A5A40;--gms-beige:#A3B18A;--gms-cream:#DAD7CD;--gms-white:#F5F5F5}
/* Keep both bars centered in the same visual content area as the home hero. */
body .gms-topbar{border-top:2px solid var(--gms-moss)!important}
body .gms-topbar>.container,
body .gms-site-header>.container.nav{
  width:min(1260px,calc(100% - 44px))!important;
  max-width:1260px!important;
  margin-inline:auto!important;
  padding:0!important;
}
body .gms-topbar>.container{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:clamp(12px,1.4vw,22px)!important;
  min-height:34px!important;height:34px!important;
}
body .gms-topbar .topbar-items,
body .gms-topbar .top-links{
  display:flex!important;align-items:center!important;
  gap:clamp(9px,1.0vw,16px)!important;
  flex-wrap:nowrap!important;white-space:nowrap!important;
}
body .gms-topbar .topbar-items{font-size:11px!important}
body .gms-topbar .topbar-items a,
body .gms-topbar .topbar-items span,
body .gms-topbar .top-links>a,
body.gms-static-ar .gms-topbar .top-links>a{
  color:#294834!important;font-size:11px!important;font-weight:600!important;
  line-height:1.3!important;letter-spacing:0!important;
}
body .gms-topbar .topbar-items a:hover,
body .gms-topbar .top-links>a:hover,
body.gms-static-ar .gms-topbar .top-links>a:hover{
  color:#294834!important;text-decoration:underline!important;text-underline-offset:3px!important;
}
body .gms-topbar .language-trigger,
body .gms-topbar .gms-language-direct,
body.gms-static-ar .gms-topbar .top-links .gms-language-direct{
  height:28px!important;min-height:28px!important;min-width:82px!important;
  padding:5px 9px!important;border-radius:3px!important;
  background:var(--gms-white)!important;color:var(--gms-moss)!important;
  border:1px solid var(--gms-beige)!important;font-size:11px!important;
}
body .gms-topbar .language-trigger:hover,
body .gms-topbar .gms-language-direct:hover,
body .gms-topbar .language-trigger:focus-visible,
body .gms-topbar .gms-language-direct:focus-visible{
  background:var(--gms-beige)!important;color:#1c3727!important;
}
/* Clear, slightly shorter header. Compact navigation links never spread across the bar. */
body .site-header.gms-site-header .container.nav{
  height:67px!important;min-height:67px!important;
  display:flex!important;align-items:center!important;
  justify-content:space-between!important;gap:20px!important;
  position:relative!important;
}
body .gms-site-header .brand{
  flex:0 0 174px!important;min-width:174px!important;width:174px!important;
  justify-content:flex-start!important;margin:0!important;padding:0!important;
}
body .gms-site-header .brand img,
body .site-header.gms-site-header .brand img{
  width:174px!important;max-width:174px!important;max-height:56px!important;height:auto!important;
  object-fit:contain!important;
}
body .gms-site-header .nav-menu{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;width:auto!important;min-width:0!important;
  margin:0!important;gap:8px!important;flex-wrap:nowrap!important;
}
body .gms-site-header .nav-menu>a:not(.nav-cta):not(.nav-phone):not(.nav-cart-link),
body .gms-site-header .nav-item>button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:36px!important;height:36px!important;
  font-size:11px!important;font-weight:700!important;
  color:var(--gms-white)!important;letter-spacing:0!important;
  padding:8px 2px!important;margin:0!important;
  text-decoration:none!important;border-radius:3px!important;
  background:transparent!important;
}
body .gms-site-header .nav-menu>a:not(.nav-cta):not(.nav-phone):not(.nav-cart-link):hover,
body .gms-site-header .nav-menu>a:not(.nav-cta):not(.nav-phone):not(.nav-cart-link):focus-visible,
body .gms-site-header .nav-item>button:hover,
body .gms-site-header .nav-item>button:focus-visible,
body .gms-site-header .gms-nav-item.open>button{
  background:rgba(163,177,138,.21)!important;color:#FFFFFF!important;
  text-decoration:none!important;outline-offset:1px!important;
}
body .site-header.gms-site-header .nav-menu .nav-cta{
  height:38px!important;min-height:38px!important;padding:7px 11px!important;
  margin-inline-start:5px!important;font-size:10px!important;font-weight:800!important;
  letter-spacing:0!important;border:1px solid var(--gms-beige)!important;
  background:var(--gms-leaf)!important;color:#fff!important;text-decoration:none!important;
  box-shadow:none!important;white-space:nowrap!important;
}
body .site-header.gms-site-header .nav-menu .nav-cta:hover,
body .site-header.gms-site-header .nav-menu .nav-cta:focus-visible{
  color:#203a2a!important;background:var(--gms-cream)!important;
  border-color:var(--gms-white)!important;text-decoration:none!important;
}
body .gms-site-header .nav-cart-link{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;flex:0 0 39px!important;
  width:39px!important;min-width:39px!important;height:38px!important;min-height:38px!important;
  padding:6px!important;margin:0 3px!important;
  border:1px solid rgba(245,245,245,.52)!important;
  color:var(--gms-white)!important;background:transparent!important;
}
body .gms-site-header .nav-cart-link:hover,
body .gms-site-header .nav-cart-link:focus-visible{
  background:var(--gms-leaf)!important;color:#fff!important;
  border-color:var(--gms-cream)!important;text-decoration:none!important;
}
body .gms-site-header .nav-cart-link .cart-count{
  position:absolute!important;inset-inline-end:-8px!important;top:-8px!important;
  min-width:20px!important;width:20px!important;height:20px!important;
  font-size:10px!important;color:#26452d!important;background:var(--gms-cream)!important;
  border:2px solid var(--gms-moss)!important;
}
body .gms-site-header .gms-cart-icon svg{width:20px!important;height:20px!important}
body .gms-site-header .nav-menu>.nav-phone.gms-call-cta{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  height:38px!important;min-height:38px!important;min-width:0!important;
  padding:8px 11px!important;margin:0!important;
  border:1px solid var(--gms-beige)!important;border-radius:3px!important;
  background:var(--gms-cream)!important;color:#24412e!important;
  font:750 10px/1.2 Inter,Arial,sans-serif!important;
  text-decoration:none!important;text-align:center!important;white-space:nowrap!important;
  opacity:1!important;visibility:visible!important;
  -webkit-text-fill-color:#24412e!important;
}
body .gms-site-header .nav-menu>.nav-phone.gms-call-cta:hover,
body .gms-site-header .nav-menu>.nav-phone.gms-call-cta:focus-visible{
  background:var(--gms-leaf)!important;color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;border-color:var(--gms-cream)!important;
}
/* Limit the dropdown to a genuinely compact 4-column catalogue layout. */
body .gms-site-header .gms-nav-item{position:static!important}
body .gms-site-header .gms-mega{
  position:absolute!important;top:100%!important;left:50%!important;right:auto!important;
  transform:translate(-50%,6px)!important;
  width:min(795px,calc(100vw - 44px))!important;
  max-width:calc(100vw - 44px)!important;max-height:min(510px,calc(100dvh - 110px))!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  background:var(--gms-white)!important;color:var(--gms-moss)!important;
  border:1px solid var(--gms-beige)!important;border-top:3px solid var(--gms-leaf)!important;
  padding:15px 19px 16px!important;border-radius:0 0 5px 5px!important;
  box-shadow:0 14px 30px rgba(16,37,23,.22)!important;
  text-align:start!important;
}
body .gms-site-header .gms-nav-item:is(:hover,:focus-within,.open) .gms-mega{
  transform:translate(-50%,0)!important;opacity:1!important;
  visibility:visible!important;pointer-events:auto!important;
}
body .gms-site-header .gms-mega-chemicals{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 17px!important;
  align-content:start!important;
}
body .gms-site-header .gms-mega-chemicals .mega-section:nth-child(3){grid-column:1/-1!important}
body .gms-site-header .gms-mega-chemicals .mega-section:nth-child(-n+2) .mega-links{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body .gms-site-header .gms-mega-chemicals .mega-section:nth-child(3) .mega-links{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body .gms-site-header .gms-mega-construction{
  width:min(620px,calc(100vw - 44px))!important;
  display:grid!important;grid-template-columns:1fr!important;
  gap:8px!important;
}
body .gms-site-header .gms-mega-construction .mega-links{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body .gms-site-header .gms-mega .mega-section{margin:0!important;padding:0!important;min-width:0!important}
body .gms-site-header .gms-mega .mega-section h3{
  font-size:11px!important;letter-spacing:.075em!important;
  font-weight:800!important;line-height:1.3!important;
  padding:0 0 7px!important;margin:0 0 5px!important;
  color:var(--gms-moss)!important;border-bottom:1px solid var(--gms-beige)!important;
}
body .gms-site-header .gms-mega .mega-links{
  display:grid!important;gap:0 8px!important;
}
body .gms-site-header .gms-mega .mega-links a{
  display:flex!important;align-items:center!important;
  min-height:29px!important;height:auto!important;
  padding:5px 6px!important;margin:0!important;
  color:#254530!important;background:transparent!important;
  font-size:11.5px!important;line-height:1.25!important;font-weight:500!important;
  border-radius:2px!important;white-space:normal!important;
}
body .gms-site-header .gms-mega .mega-links a:hover,
body .gms-site-header .gms-mega .mega-links a:focus-visible{
  background:var(--gms-cream)!important;color:#1c3424!important;
  text-decoration:none!important;
}
/* Top of hero has adequate breathing room; content aligns with the compact header. */
body .hero>.container{gap:clamp(30px,3vw,52px)!important}
body .hero .gms-hero-actions{gap:12px!important}
body .hero .gms-hero-actions .btn:hover,
body .hero .gms-hero-actions .btn:focus-visible{color:#fff!important;text-decoration:none!important}
body .hero .gms-hero-actions .btn.btn-green:hover,
body .hero .gms-hero-actions .btn.btn-green:focus-visible{background:#3A5A40!important;color:#fff!important}
body .hero .gms-hero-actions .btn.btn-primary:hover,
body .hero .gms-hero-actions .btn.btn-primary:focus-visible{background:#588157!important;color:#fff!important}
/* Arabic RTL order is preserved; only panel center anchor is shared. */
body.gms-static-ar .gms-site-header .gms-mega{text-align:right!important;direction:rtl!important}
body.gms-static-ar .gms-site-header .gms-mega .mega-links a{text-align:right!important;justify-content:flex-start!important}
body.gms-static-ar .gms-site-header .nav-menu{margin:0!important}
/* Responsive transition: hide desktop nav cleanly and retain mobile accordion. */
@media(max-width:1330px) and (min-width:1231px){
 body .gms-site-header .brand{flex-basis:154px!important;min-width:154px!important;width:154px!important}
 body .gms-site-header .brand img,body .site-header.gms-site-header .brand img{width:154px!important;max-width:154px!important}
 body .site-header.gms-site-header .container.nav{gap:10px!important}
 body .gms-site-header .nav-menu{gap:5px!important}
 body .gms-site-header .nav-menu>a:not(.nav-cta):not(.nav-phone):not(.nav-cart-link),
 body .gms-site-header .nav-item>button{font-size:10px!important}
 body .site-header.gms-site-header .nav-menu .nav-cta{padding-inline:8px!important}
 body .gms-site-header .nav-menu>.nav-phone.gms-call-cta{padding-inline:8px!important;font-size:9.5px!important}
}
@media(max-width:1230px){
 body .site-header.gms-site-header .container.nav{height:65px!important;min-height:65px!important}
 body .gms-site-header .nav-menu{
   position:absolute!important;left:-22px!important;right:-22px!important;top:100%!important;
   width:calc(100% + 44px)!important;max-height:calc(100dvh - 65px)!important;
   overflow-y:auto!important;display:none!important;flex-direction:column!important;
   align-items:stretch!important;justify-content:flex-start!important;
   margin:0!important;padding:12px 20px 24px!important;gap:0!important;
   background:var(--gms-moss)!important;
 }
 body .gms-site-header .nav-menu.open{display:flex!important}
 body .gms-site-header .menu-toggle{display:block!important;color:#fff!important;margin-inline-start:auto!important}
 body .gms-site-header .nav-menu>a:not(.nav-cta):not(.nav-phone):not(.nav-cart-link),
 body .gms-site-header .nav-item>button{
  width:100%!important;display:flex!important;justify-content:flex-start!important;
  min-height:42px!important;height:auto!important;font-size:13px!important;padding:10px!important;
  text-align:start!important;
 }
 body .gms-site-header .gms-nav-item{width:100%!important;position:relative!important}
 body .gms-site-header .gms-mega,
 body .gms-site-header .gms-mega-chemicals,
 body .gms-site-header .gms-mega-construction{
  display:none!important;position:static!important;transform:none!important;
  width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;
  margin-bottom:9px!important;padding:12px!important;box-shadow:none!important;
  grid-template-columns:1fr!important;gap:8px!important;
  visibility:visible!important;opacity:1!important;
 }
 body .gms-site-header .gms-nav-item.open .gms-mega{display:grid!important;transform:none!important}
 body .gms-site-header .gms-mega .mega-section:nth-child(3){grid-column:auto!important}
 body .gms-site-header .nav-menu .nav-cta,
 body .gms-site-header .nav-menu>.nav-phone.gms-call-cta{
  width:100%!important;min-height:42px!important;height:42px!important;
  padding:10px 13px!important;margin:5px 0!important;
  justify-content:center!important;font-size:12px!important;
 }
 body .gms-site-header .nav-cart-link{margin:9px 8px!important;width:43px!important;min-width:43px!important;flex-basis:43px!important}
}
@media(max-width:950px){
 body .gms-topbar>.container{height:auto!important;min-height:34px!important;gap:6px!important;flex-wrap:wrap!important;justify-content:center!important;padding-block:4px!important}
 body .gms-topbar .topbar-items{justify-content:center!important;gap:9px!important;flex-wrap:wrap!important}
 body .gms-topbar .top-links{justify-content:center!important;gap:12px!important}
}
@media(max-width:760px){
 body .gms-topbar>.container{width:calc(100% - 30px)!important;padding:4px 0!important;justify-content:center!important;gap:0!important}
 body .gms-topbar .topbar-items{display:none!important}
 body .gms-topbar .top-links{display:flex!important;justify-content:center!important;gap:14px!important}
 body .gms-topbar .top-links>a{display:inline-flex!important;font-size:11px!important}
 body .site-header.gms-site-header .container.nav{height:61px!important;min-height:61px!important;width:calc(100% - 30px)!important}
 body .gms-site-header .brand{flex-basis:152px!important;min-width:152px!important;width:152px!important}
 body .gms-site-header .brand img,body .site-header.gms-site-header .brand img{width:152px!important;max-width:152px!important}
 body .gms-site-header .nav-menu{left:-15px!important;right:-15px!important;width:calc(100% + 30px)!important;max-height:calc(100dvh - 61px)!important}
 body .gms-site-header .gms-mega-chemicals .mega-section:nth-child(-n+2) .mega-links,
 body .gms-site-header .gms-mega-chemicals .mega-section:nth-child(3) .mega-links,
 body .gms-site-header .gms-mega-construction .mega-links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .hero>.container{gap:22px!important}
}
@media(max-width:480px){
 body .gms-site-header .gms-mega-chemicals .mega-section:nth-child(-n+2) .mega-links,
 body .gms-site-header .gms-mega-chemicals .mega-section:nth-child(3) .mega-links,
 body .gms-site-header .gms-mega-construction .mega-links{grid-template-columns:1fr!important}
 body .gms-site-header .gms-mega .mega-links a{min-height:31px!important;font-size:12px!important}
}
/* The navigation cluster is visually centered on the viewport, with the brand
   anchored to the shared hero-width container. The header stays clear at 1231px+. */
@media(min-width:1231px){
 body .gms-site-header .nav-menu{
   position:absolute!important;left:50%!important;right:auto!important;top:0!important;
   transform:translateX(-50%)!important;height:100%!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
 }
 body .gms-site-header .gms-nav-item{height:100%!important;display:flex!important;align-items:center!important}
 body .gms-site-header .gms-mega{top:100%!important}
}
@media(max-width:1230px){
 body .gms-site-header .nav-menu{left:-22px!important;right:-22px!important;top:100%!important;height:auto!important;transform:none!important}
 body .gms-site-header .gms-nav-item{height:auto!important;display:block!important}
}
@media(max-width:760px){
 body .gms-site-header .nav-menu{left:-15px!important;right:-15px!important}
}


/* GMS | 16 November 2026 | final centered group
   Center the entire logo + navigation + CTA group, not the menu alone.
   Top bar and hero share the same centered content measure.
   Keep compact spacing and all existing palette and interaction rules.
*/
@media (min-width:1231px){
  body .gms-topbar>.container,
  body .gms-site-header>.container.nav{
    width:min(1180px,calc(100% - 40px))!important;
    max-width:1180px!important;
    margin-inline:auto!important;
  }
  body .site-header.gms-site-header .container.nav{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:clamp(18px,1.8vw,27px)!important;
  }
  body .gms-site-header .brand{
    position:relative!important;
    flex:0 0 174px!important;
    min-width:174px!important;
    width:174px!important;
    margin:0!important;
  }
  body .gms-site-header .nav-menu{
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    height:100%!important;
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
    margin:0!important;
    justify-content:center!important;
    gap:8px!important;
  }
  /* The mega panels are anchored to the centered header, not the label. */
  body .gms-site-header .gms-nav-item{position:static!important;}
  body .gms-site-header .gms-mega{
    top:100%!important;
    left:50%!important;
    right:auto!important;
  }
  body .gms-site-header .gms-nav-item:is(:hover,:focus-within,.open) .gms-mega{
    transform:translate(-50%,0)!important;
  }
}
@media (min-width:1231px) and (max-width:1330px){
  body .gms-site-header .brand{flex-basis:154px!important;min-width:154px!important;width:154px!important;}
  body .site-header.gms-site-header .container.nav{gap:16px!important;}
  body .gms-site-header .nav-menu{gap:5px!important;}
}
/* Match the top contact bar to the hero's centered 1180px content width. */
body .gms-topbar>.container{
  width:min(1180px,calc(100% - 40px))!important;
  max-width:1180px!important;
  margin-inline:auto!important;
  justify-content:space-between!important;
}
/* The mobile menu remains an edge-to-edge accessible accordion. */
@media (max-width:1230px){
  body .gms-topbar>.container{
    width:min(1180px,calc(100% - 40px))!important;
    max-width:1180px!important;
  }
}
@media (max-width:950px){
  body .gms-topbar>.container{justify-content:center!important;}
}

/* Search brand linkage; subtle footer copy only. */
.gms-web-identity{font-size:.83rem;line-height:1.55;opacity:.83;margin:.4rem 0 .75rem;max-width:32rem;}
