.trust-link {
  position: relative;
  transition: background-color 160ms ease;
}

.trust-card-link {
  position: absolute;
  inset: 0;
  color: inherit;
  text-decoration: none;
  border-radius: 12px;
}

.trust-link:hover {
  background: transparent;
}

.trust-card-link:focus-visible {
  outline: 2px solid var(--public-brand, var(--ink));
  outline-offset: -4px;
}

@media (max-width: 767px) {
  .public-home .hero {
    row-gap: 32px;
    padding-bottom: 36px;
  }
  .public-home .hero h1 {
    font-size: clamp(30px, 8vw, 46px);
    line-height: 1.12;
    overflow-wrap: break-word;
  }
  .public-home .hero-actions {
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
  }
}

html body.public-home main a.button.home-action-primary {
  --public-action-soft-hover: var(--accent-dark);
  --quote-budget-bg: var(--brand);
  --quote-budget-hover: var(--accent-dark);
  --quote-budget-text: var(--surface);
  --public-action-border: var(--brand);
  background: var(--brand) !important;
  color: var(--surface) !important;
  border-color: var(--brand) !important;
  transition:
    background-color 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}

html body.public-home main a.button.home-action-primary:is(:hover, :active, :focus-visible) {
  background: var(--accent-dark) !important;
  color: var(--surface) !important;
  border-color: var(--accent-dark) !important;
}

html body.public-home main a.button.home-action-primary:active {
  box-shadow: inset 0 2px 4px rgb(0 0 0 / 20%) !important;
}

html body.public-home main a.button.home-action-primary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--surface) !important;
}

.public-home .service-showcase {
  border-bottom: 0;
  transition:
    background-color 0.18s,
    border-color 0.18s;
}

.public-home .service-showcase > img {
  transition: filter 0.18s;
}

.public-home .service-showcase h3 {
  position: relative;
  padding-bottom: 12px;
  color: var(--ink);
  transition: color 0.18s;
}

.public-home .service-showcase h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s;
}

.public-home .service-showcase:is(:hover, :focus-visible) {
  box-shadow: none;
}

.public-home .service-showcase > img:hover {
  filter: brightness(1.035);
}

.public-home .service-showcase h3:hover {
  color: var(--accent-dark);
}

.public-home .service-showcase h3:hover::after {
  transform: scaleX(1);
}

.public-home .service-showcase .text-link {
  color: var(--accent-dark);
}

.public-home main .text-link {
  position: relative;
  border-bottom: 0;
}

.public-home main .text-link::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s;
}

.public-home main .text-link:is(:hover, :focus-visible)::after,
.public-home .service-showcase:focus-visible .text-link::after {
  transform: scaleX(1);
}

.public-home .seo-text a {
  border-radius: 3px;
  transition:
    background-color 0.16s,
    color 0.16s;
}

.public-home .seo-text a:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--accent-dark);
}

@media (prefers-reduced-motion: reduce) {
  html body.public-home main a.button.home-action-primary,
  .public-home .service-showcase,
  .public-home .service-showcase > img,
  .public-home .service-showcase h3,
  .public-home .service-showcase h3::after,
  .public-home .service-showcase .text-link::after,
  .public-home .seo-text a {
    transition: none;
  }
}
