/* Shared spacing between the floating header, breadcrumbs and hero card. */
.gss-bento-concept {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

.gss-bento-concept :is(h1, h2, h3, h4) {
  font-family: "Poppins", "Aptos Display", "Segoe UI", Arial, sans-serif;
}

.gss-bento-concept :is(p, li, a, button, input, textarea, select) {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
}

/* Use one lead-copy treatment beneath every internal-page hero heading. */
.gss-bento-concept :is(
  .gss-expansion-lead,
  .gss-services-lead,
  .gss-hero-lead,
  .gss-install-lead,
  .gss-bi-lead
) {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(1.125rem, 1.7vw, 1.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  margin-top: 32px !important;
  margin-bottom: 34px !important;
}

/* Defensive coverage for every hero pattern, including older pages whose
   introductory paragraph originally had no dedicated lead class. */
.gss-bento-concept :is(
  .gss-expansion-hero-copy,
  .gss-cases-hero-copy,
  .gss-case-detail-copy,
  .gss-services-hero-copy,
  .gss-hero-copy,
  .gss-install-hero-copy,
  .gss-bi-hero-copy,
  .gss-legal-hero
) > h1 + p {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif !important;
  font-size: clamp(1.125rem, 1.7vw, 1.25rem) !important;
  font-weight: 600 !important;
  line-height: 1.6 !important;
  margin-top: 32px !important;
  margin-bottom: 34px !important;
}

@media (max-width: 620px) {
  .gss-bento-concept :is(
    .gss-expansion-lead,
    .gss-services-lead,
    .gss-hero-lead,
    .gss-install-lead,
    .gss-bi-lead
  ),
  .gss-bento-concept :is(
    .gss-expansion-hero-copy,
    .gss-cases-hero-copy,
    .gss-case-detail-copy,
    .gss-services-hero-copy,
    .gss-hero-copy,
    .gss-install-hero-copy,
    .gss-bi-hero-copy,
    .gss-legal-hero
  ) > h1 + p {
    font-size: 1.125rem !important;
    line-height: 1.62 !important;
    margin-top: 26px !important;
    margin-bottom: 30px !important;
  }
}

/* Contextual links inside body copy: visible without competing with CTAs. */
.gss-bento-concept p > .gss-inline-link {
  color: inherit;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.gss-bento-concept p > .gss-inline-link:hover,
.gss-bento-concept p > .gss-inline-link:focus-visible {
  color: var(--gss-blue, #247fb3);
}

.gss-bento-concept .gss-breadcrumbs {
  padding-block: 20px;
}

/* Keep the footer privacy control visually identical to the neighbouring links. */
.gss-footer .gss-cookie-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.gss-footer .gss-cookie-link:hover,
.gss-footer .gss-cookie-link:focus-visible {
  color: #fff;
  text-decoration: none;
}

/* Cookie preferences remain available from the global footer. */
.gss-cookie-settings,
.gss-cookie-settings.is-visible {
  display: none !important;
}

.gss-bento-concept main > :is(
  .gss-expansion-hero,
  .gss-bi-hero,
  .gss-cases-hero,
  .gss-case-detail-hero,
  .gss-services-hero,
  .gss-product-hero,
  .gss-install-hero
) {
  padding-top: 8px;
}

@media (max-width: 620px) {
  .gss-bento-concept .gss-header .gss-brand,
  .gss-bento-concept .gss-header .gss-logo {
    width: 196px;
    min-width: 196px;
  }

  .gss-bento-concept .gss-breadcrumbs {
    padding-block: 16px;
  }

  .gss-bento-concept main > :is(
    .gss-expansion-hero,
    .gss-bi-hero,
    .gss-cases-hero,
    .gss-case-detail-hero,
    .gss-services-hero,
    .gss-product-hero,
    .gss-install-hero
  ) {
    padding-top: 6px;
  }
}

/* Match the approved homepage mobile Services disclosure on every internal page. */
@media (max-width: 1180px) {
  .gss-bento-concept .gss-menu-toggle {
    position: relative;
  }

  .gss-bento-concept .gss-menu-toggle span {
    position: absolute;
    left: 12px;
    width: 22px;
    height: 2px;
    margin: 0;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }

  .gss-bento-concept .gss-menu-toggle span:nth-child(1) { top: 15px; }
  .gss-bento-concept .gss-menu-toggle span:nth-child(2) { top: 22px; }
  .gss-bento-concept .gss-menu-toggle span:nth-child(3) { top: 29px; }

  .gss-bento-concept .gss-menu-toggle.is-open span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
  }

  .gss-bento-concept .gss-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .gss-bento-concept .gss-menu-toggle.is-open span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
  }

  .gss-bento-concept .gss-mobile-services-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
  }

  .gss-bento-concept .gss-mobile-services-row > a {
    min-width: 0;
  }

  .gss-bento-concept .gss-mobile-services-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(13, 59, 49, .13);
    border-radius: 10px;
    color: var(--gss-forest, #0d3b31);
    background: var(--gss-mist, #e8f4f4);
    cursor: pointer;
  }

  .gss-bento-concept .gss-mobile-services-toggle::before,
  .gss-bento-concept .gss-mobile-services.is-open .gss-mobile-services-toggle::before {
    content: "+";
    display: block;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
    transform: none;
  }

  .gss-bento-concept .gss-mobile-services-toggle[aria-expanded="true"]::before,
  .gss-bento-concept .gss-mobile-services.is-open .gss-mobile-services-toggle[aria-expanded="true"]::before {
    content: "\2212";
  }

  .gss-bento-concept .gss-mobile-services-submenu {
    display: none;
    margin: 0 8px 10px;
    padding: 6px 0 6px 14px;
    border-left: 3px solid var(--gss-lime, #b5e63f);
  }

  .gss-bento-concept .gss-mobile-services.is-open .gss-mobile-services-submenu {
    display: grid;
  }

  .gss-bento-concept .gss-mobile-services-submenu a {
    padding: 11px 13px;
    font-size: 14px;
  }
}

/* Keep the global navigation visible while the page scrolls. */
.gss-bento-concept .gss-page {
  overflow: visible;
}

.gss-bento-concept .gss-header-wrap {
  position: sticky;
  z-index: 100;
  top: 0;
}

/* Use the brand blue consistently for the mobile menu icon. */
.gss-bento-concept .gss-menu-toggle {
  color: #247fb3;
}
