:root {
  --gmm-navy: #111760;
  --gmm-blue: #2026bd;
  --gmm-royal: #292dca;
  --gmm-ice: #8edcff;
  --gmm-pale: #f0f1ff;
  --gmm-ink: #162052;
  --gmm-muted: #52617a;
  --gmm-line: #dfe2f3;
}

.gmm-host-menu,
.gmm-host-menu > li { overflow: visible !important; }
.gmm-host-menu { position: relative !important; }
.gmm-parent { position: static !important; }
.gmm-parent > .sub-menu { display: none !important; }

/* Replace the theme's plus sign with an animated chevron. */
.gmm-host-menu > li.gmm-parent > a::before {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  top: 50% !important;
  right: -15px !important;
  bottom: auto !important;
  left: auto !important;
  border: solid currentColor !important;
  border-width: 0 2px 2px 0 !important;
  transform: translateY(-65%) rotate(45deg) !important;
  transform-origin: center !important;
  transition: transform .2s ease, color .18s ease !important;
}
.gmm-host-menu > li.gmm-parent:hover > a::before,
.gmm-host-menu > li.gmm-parent:focus-within > a::before,
.gmm-host-menu > li.gmm-parent.is-gmm-open > a::before {
  transform: translateY(-25%) rotate(225deg) !important;
}

/* Main navigation hover and current-page states. */
@media (min-width: 992px) {
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li > a {
    transition: color .18s ease !important;
  }
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li > a:hover,
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li > a:focus-visible,
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li.current-menu-item > a,
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li.current-menu-parent > a,
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li.current-menu-ancestor > a,
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li.current_page_item > a,
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li.current_page_ancestor > a,
  #rs-header .header-inner:not(.sticky) .gmm-host-menu > li.gmm-current-parent > a {
    color: #09d4ff !important;
    opacity: 1 !important;
    filter: none !important;
  }

  #rs-header .header-inner.sticky .gmm-host-menu > li > a {
    transition: color .18s ease !important;
  }
  #rs-header .header-inner.sticky .gmm-host-menu > li > a:hover,
  #rs-header .header-inner.sticky .gmm-host-menu > li > a:focus-visible,
  #rs-header .header-inner.sticky .gmm-host-menu > li.current-menu-item > a,
  #rs-header .header-inner.sticky .gmm-host-menu > li.current-menu-parent > a,
  #rs-header .header-inner.sticky .gmm-host-menu > li.current-menu-ancestor > a,
  #rs-header .header-inner.sticky .gmm-host-menu > li.current_page_item > a,
  #rs-header .header-inner.sticky .gmm-host-menu > li.current_page_ancestor > a,
  #rs-header .header-inner.sticky .gmm-host-menu > li.gmm-current-parent > a {
    color: #0b70e1 !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

.gmm-panel {
  box-sizing: border-box;
  position: absolute;
  z-index: 99999;
  top: 100%;
  left: var(--gmm-panel-left, 50%);
  width: min(1320px, calc(100vw - 40px));
  color: var(--gmm-ink);
  background: #fff;
  border: 1px solid var(--gmm-line);
  box-shadow: 0 18px 42px rgba(17, 23, 96, .18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  text-align: left;
  font-family: Poppins, Arial, sans-serif;
}
.gmm-about-panel,
.gmm-services-panel { max-width: 1080px; }
.gmm-parent:hover > .gmm-panel,
.gmm-parent:focus-within > .gmm-panel,
.gmm-parent.is-gmm-open > .gmm-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.gmm-panel *, .gmm-panel *::before, .gmm-panel *::after { box-sizing: border-box; }
.gmm-panel a { text-transform: none !important; letter-spacing: normal !important; }

.gmm-panel-heading {
  min-width: 0;
  padding: 0 0 17px;
  border-bottom: 1px solid var(--gmm-line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.gmm-panel-heading h2 {
  margin: 0;
  color: var(--gmm-navy);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}
.gmm-panel-heading a {
  color: var(--gmm-blue) !important;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none !important;
}
.gmm-heritage {
  color: var(--gmm-blue);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gmm-product-tabs {
  padding: 16px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  background: #f5f8fd;
  border-bottom: 1px solid var(--gmm-line);
}
.gmm-product-tab {
  appearance: none;
  min-width: 0;
  min-height: 64px;
  padding: 10px 16px;
  border: 1px solid var(--gmm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--gmm-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  opacity: 1 !important;
  filter: none !important;
}
.gmm-product-tab > span,
.gmm-product-tab > span svg { width: 28px; height: 28px; flex: 0 0 28px; }
.gmm-product-tab > span { color: var(--gmm-blue); }
.gmm-product-tab.is-active {
  border-color: var(--gmm-blue);
  background: linear-gradient(110deg, #0f155f, #252bd4);
  color: var(--gmm-ice);
  box-shadow: 0 7px 18px rgba(24, 28, 145, .28);
}
.gmm-product-tab.is-active > span { color: var(--gmm-ice); }
.gmm-product-content { padding: 22px 24px 30px; background: #fff; }
.gmm-product-pane[hidden] { display: none !important; }
.gmm-product-grid { padding-top: 22px; display: grid; gap: 24px; align-items: start; }
.gmm-commercial-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gmm-residential-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 34px; }
.gmm-safe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px; }
.gmm-product-stack { min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.gmm-product-group { min-width: 0; }
.gmm-product-group h3 {
  min-height: 38px;
  margin: 0 0 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--gmm-navy);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
}
.gmm-group-icon {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  padding: 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--gmm-pale);
  color: var(--gmm-blue);
  transition: background .22s ease, color .22s ease;
}
.gmm-group-icon svg { width: 25px; height: 25px; }
.gmm-product-group:hover .gmm-group-icon,
.gmm-product-group:focus-within .gmm-group-icon {
  background: linear-gradient(135deg, #0f155f, #252bd4);
  color: var(--gmm-ice);
}
.gmm-product-links a {
  position: relative;
  display: block !important;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0 !important;
  color: var(--gmm-muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
  transition: color .22s ease;
}
.gmm-product-links a::after,
.gmm-feature-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1.5px;
  background: var(--gmm-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .24s ease;
}
.gmm-product-links a:hover,
.gmm-product-links a:focus-visible { color: var(--gmm-blue) !important; }
.gmm-product-links a:hover::after,
.gmm-product-links a:focus-visible::after { transform: scaleX(1); }

.gmm-standard-panel { padding: 24px 26px 28px; }
.gmm-feature-grid { padding-top: 22px; display: grid; column-gap: 34px; row-gap: 26px; }
.gmm-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gmm-about-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 26px; }
.gmm-feature {
  min-width: 0;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  color: var(--gmm-ink) !important;
  text-decoration: none !important;
}
.gmm-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--gmm-pale);
  color: var(--gmm-blue);
  transition: background .22s ease, color .22s ease;
}
.gmm-feature-icon svg { width: 25px; height: 25px; }
.gmm-feature-copy { min-width: 0; padding-top: 1px; display: block; }
.gmm-feature-title {
  position: relative;
  display: inline-block;
  color: var(--gmm-navy);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  transition: color .22s ease;
}
.gmm-feature-title::after { bottom: -3px; }
.gmm-feature-description {
  display: block;
  margin-top: 7px;
  color: var(--gmm-muted);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
}
.gmm-feature:hover .gmm-feature-title,
.gmm-feature:focus-visible .gmm-feature-title { color: var(--gmm-blue); }
.gmm-feature:hover .gmm-feature-title::after,
.gmm-feature:focus-visible .gmm-feature-title::after { transform: scaleX(1); }
.gmm-feature:hover .gmm-feature-icon,
.gmm-feature:focus-visible .gmm-feature-icon {
  background: linear-gradient(135deg, #0f155f, #252bd4);
  color: var(--gmm-ice);
}

@media (max-width: 991px) {
  .gmm-parent { position: relative !important; }
  .mobile-menus .gmm-parent > .submenu-button { display: none !important; }
  .mobile-menus .gmm-host-menu > li.gmm-parent > a {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    padding-right: 48px !important;
  }
  .mobile-menus .gmm-host-menu > li.gmm-parent > a::before {
    top: 50% !important;
    right: 20px !important;
    bottom: auto !important;
    left: auto !important;
  }
  .gmm-panel {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border-width: 1px 0 0;
    transition: none;
  }
  .gmm-parent:hover > .gmm-panel,
  .gmm-parent:focus-within > .gmm-panel { display: none; }
  .gmm-parent.is-gmm-open > .gmm-panel { display: block; transform: none; }
  .gmm-commercial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gmm-residential-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .gmm-services-grid,
  .gmm-about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .gmm-product-tabs { grid-template-columns: 1fr; padding: 12px; }
  .gmm-product-tab { min-height: 52px; justify-content: flex-start; }
  .gmm-product-content { padding: 19px 16px 24px; }
  .gmm-commercial-grid,
  .gmm-residential-grid,
  .gmm-safe-grid,
  .gmm-services-grid,
  .gmm-about-grid { grid-template-columns: 1fr; }
  .gmm-standard-panel { padding: 20px 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .gmm-panel,
  .gmm-group-icon,
  .gmm-feature-icon,
  .gmm-product-links a,
  .gmm-product-links a::after,
  .gmm-feature-title,
  .gmm-feature-title::after { transition: none; }
}
