/* Homepage components. The button shine is supplied by button-effects.js. */
@layer home-components {
  :where(body.module-index #layout.sitePage1-layout) :is(.advantages-box .advantage-card h3.title, .services-box .service-card h3.service-title) {
    color: #0074b8 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  :where(body.module-index #layout.sitePage1-layout) .services-box a.service-btn {
    background: linear-gradient(180deg, rgba(54, 177, 255, .94) 0%, rgba(0, 145, 234, .96) 44%, rgba(0, 92, 153, .98) 51%, rgba(0, 116, 190, .98) 100%) !important;
    border: 0 !important;
    border-radius: 8px !important;
    color: #fff !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -8px 0 rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .38) !important;
    transition: transform .2s ease, filter .2s ease !important;
    transform: none !important;
  }

  :where(body.module-index #layout.sitePage1-layout) .faq-box details {
    background: rgba(41, 182, 246, .4) !important;
    border: 1px solid rgba(255, 255, 255, .68) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 26px rgba(24, 86, 119, .12), inset 0 1px 0 rgba(255, 255, 255, .54) !important;
    -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
    backdrop-filter: blur(18px) saturate(145%) !important;
    color: #000 !important;
    transform: none !important;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease !important;
  }

  :where(body.module-index #layout.sitePage1-layout) .faq-box :is(summary, .details-inner) {
    color: #000 !important;
    -webkit-text-fill-color: currentColor !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  :where(body.module-index #layout.sitePage1-layout) .faq-box :is(.summary-title, .details-inner p, .details-inner li) {
    color: #000 !important;
    -webkit-text-fill-color: currentColor !important;
  }

  /* Keep the title hit area and its shine inside the card. */
  :where(body.module-index #layout.sitePage1-layout) .faq-box details > summary {
    padding-bottom: var(--faq-box-in, 20px) !important;
    margin-bottom: 0 !important;
    border-radius: 14px !important;
  }

  :where(body.module-index #layout.sitePage1-layout) .faq-box details[open] > summary {
    border-radius: 14px 14px 0 0 !important;
  }

  :where(body.module-index #layout.sitePage1-layout) .faq-box summary::after {
    background-color: #000 !important;
    opacity: 1 !important;
    flex-shrink: 0;
  }

  :where(body.module-index #layout.sitePage1-layout) :is(.services-box a.service-btn, .faq-box summary):focus-visible {
    outline: 2px solid #245f78 !important;
    outline-offset: -3px;
    border-radius: 8px;
  }

  @media (hover: hover) and (pointer: fine) {
    :where(body.module-index #layout.sitePage1-layout) .faq-box details:hover {
      background: rgba(41, 182, 246, .46) !important;
      border-color: rgba(0, 145, 234, .5) !important;
      box-shadow: 0 12px 26px rgba(24, 86, 119, .15), inset 0 1px 0 rgba(255, 255, 255, .62) !important;
    }
  }

  :where(body.module-index #layout.sitePage1-layout) .faq-box details[open] {
    background: rgba(41, 182, 246, .5) !important;
    border-color: rgba(0, 145, 234, .5) !important;
  }

  @media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    :where(body.module-index #layout.sitePage1-layout) .services-box a.service-btn:hover {
      transform: translateY(-1px) !important;
      filter: brightness(1.02) !important;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    :where(body.module-index #layout.sitePage1-layout) :is(.services-box a.service-btn, .faq-box details) {
      transition: none !important;
    }
  }
}

/* Global footer. */
footer.site-footer {
  --footer-ink: #173b48;
  --footer-title: #005b94;
  --footer-link: #00649d;
  --footer-line: rgba(0, 116, 184, .22);
  background: linear-gradient(180deg, #e9f6fd, #f6fbfe);
  border-top: 1px solid var(--footer-line);
  color: var(--footer-ink);
}

.site-footer > .footer-container {
  display: block;
  padding-block: 0;
  text-align: start;
}

.site-footer .site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .72fr) minmax(0, 1.25fr);
  gap: 24px clamp(24px, 4vw, 56px);
  padding-block: 32px 24px;
  align-items: start;
}

.site-footer .site-footer__brand,
.site-footer .site-footer__title {
  margin: 0 0 12px;
  padding: 0;
  color: var(--footer-title);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.28;
}

.site-footer .site-footer__brand { font-size: clamp(1.25rem, 2vw, 1.625rem); }
.site-footer .site-footer__about { max-width: 34ch; margin: 0 0 14px; line-height: 1.52; }

.site-footer :is(.site-footer__list, .site-footer__social) {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer .site-footer__list { display: grid; gap: 6px; }
.site-footer .site-footer__list > li,
.site-footer .site-footer__social > li { margin: 0; padding: 0; }

.site-footer .site-footer__social { display: flex; gap: 8px; flex-wrap: wrap; }
.site-footer .site-footer__social a {
  display: inline-flex;
  align-items: center;
  min-block-size: 38px;
  padding: 4px 10px;
  border: 1px solid var(--footer-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  font-size: .875rem;
}

.site-footer .site-footer__social a:hover { background: #dff2fc; }
.site-footer .site-footer__phone { font-weight: 700; font-variant-numeric: tabular-nums; }
.site-footer .site-footer__address { font-style: normal; margin: 9px 0 0; line-height: 1.5; }

.site-footer .site-footer__legal {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 2px 10px;
  margin: 10px 0 0;
  font-size: .875rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.site-footer .site-footer__legal dt { font-weight: 600; }
.site-footer .site-footer__legal dd { margin: 0; overflow-wrap: anywhere; }

.site-footer .site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  border-top: 1px solid var(--footer-line);
  padding-block: 13px 17px;
  font-size: .875rem;
}

.site-footer .site-footer__bottom .footer-left { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer .site-footer__bottom .copy { margin: 0; color: #496271; }
.site-footer .site-footer__bottom .footer-right:empty { display: none; }

@layer site-footer-links {
  .site-footer a.site-footer__link {
    color: var(--footer-link) !important;
    -webkit-text-fill-color: currentColor !important;
    overflow-wrap: anywhere;
  }
  .site-footer a.site-footer__link:is(:hover, :focus-visible) {
    color: var(--footer-title) !important;
    text-decoration: underline;
  }
  .site-footer a.site-footer__link:focus-visible {
    outline: 2px solid var(--footer-title) !important;
    outline-offset: 2px;
  }
}

@media (max-width: 900px) {
  .site-footer .site-footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .site-footer .site-footer__intro { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .site-footer .site-footer__grid { grid-template-columns: minmax(0, 1fr); padding-block: 24px 20px; }
  .site-footer .site-footer__nav .site-footer__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5px 12px; }
}
