/* AC Software Solutions – logo lockup (mark + two-line wordmark) */

.ac-brand,
.nav-logo-link-block.ac-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  color: #fff;
  text-decoration: none;
}
.ac-brand.is-dark { color: #000; }

.ac-brand__mark {
  display: block;
  width: auto;
  height: 3.8rem;
  flex: none;
}

.ac-brand__text {
  font-family: "Helvetica Now Display", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.05;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.ac-brand__line { display: block; }

/* Footer: large lockup */
.footer-logo.ac-brand {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-self: stretch;
  width: 100%;
  gap: 1.2rem;
}
.footer-logo .ac-brand__mark { height: 3.6rem; }
.footer-logo .ac-brand__text {
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

@media (max-width: 479px) {
  .ac-brand { gap: 0.6rem; }
  .ac-brand__mark { height: 3rem; }
  .ac-brand__text { font-size: 1.1rem; }

  .footer-logo .ac-brand__mark { height: 3.6rem; }
  .footer-logo .ac-brand__text { font-size: 1.9rem; }
}

/* =========================================================
   Pre-footer call to action (shared on every page)
   ========================================================= */
.container.above-footer-cta.ac-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  gap: 3rem;
  padding: 4.5rem 4rem 4rem;
  border-radius: 28px;
  background: #f4f4f3;
  color: #1d1f22;
}
.ac-cta-hex {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 100%;
  color: rgba(47, 50, 54, 0.08);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.ac-cta-main,
.ac-cta-actions { position: relative; z-index: 1; }

.ac-cta-title {
  margin: 0;
  font-size: clamp(2.5rem, 4.6vw, 4.9rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #1d1f22;
}
.ac-cta-title span { display: block; color: #8a8d91; }
.ac-cta-text {
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #55585d;
}

.ac-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.25rem;
}
.ac-cta .ac-cta-btn {
  display: inline-flex;
  flex-direction: row; /* template turns links into columns */
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.55rem 0.55rem 1.75rem;
  border-radius: 999px;
  background: #2f3236;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.25s ease;
}
.ac-cta-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #fff;
  color: #2f3236;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ac-cta-btn-ico svg { width: 1.25rem; height: 1.25rem; }
.ac-cta .ac-cta-btn:hover { background: #1d1f22; }
.ac-cta-btn:hover .ac-cta-btn-ico { transform: rotate(45deg); }
.ac-cta-btn:focus-visible { outline: 3px solid #2f3236; outline-offset: 3px; }

.ac-cta-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1.5rem;
}
.ac-cta-links a {
  color: #1d1f22;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
.ac-cta-links a:hover,
.ac-cta-links a:focus-visible { background-size: 100% 1px; }

@media (prefers-reduced-motion: reduce) {
  .ac-cta-btn-ico, .ac-cta-links a { transition: none; }
}
@media screen and (max-width: 991px) {
  .container.above-footer-cta.ac-cta {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 3.25rem 2.5rem;
  }
  .ac-cta-actions { align-items: flex-start; }
  .ac-cta-links { justify-content: flex-start; }
  .ac-cta-hex { width: 100%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%); mask-image: linear-gradient(180deg, transparent 0%, #000 70%); }
}
@media screen and (max-width: 479px) {
  .container.above-footer-cta.ac-cta { padding: 2.5rem 1.5rem; gap: 2rem; border-radius: 22px; }
  .ac-cta-text { font-size: 1rem; }
  .ac-cta-btn { font-size: 1rem; padding-left: 1.4rem; }
  .ac-cta-links { flex-direction: column; }
}

/* Accordion answers (FAQ page + service pages) sit on light panels: keep them readable */
.services-accordion-item .accordion-content .paragraph.gray {
  color: #4a4d52;
}
.services-accordion-item .accordion-content .paragraph.gray a {
  color: #1d1f22;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Top nav: four links + CTA, keep a gap before the button */
.navigation-button-wrapper { margin-left: 1.25rem; }
