/*
Theme Name: Main Street
Theme URI: https://mainstreettech.com/
Author: Main Street Technical Services
Description: A modern block theme for Main Street Technical Services.
Version: 0.3.83
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: mainstreet
*/

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-weight: 400;
}

.has-bodoni-moda-font-family {
  font-family: "Bodoni Moda", Didot, "Times New Roman", serif !important;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 600 !important;
  -webkit-text-stroke: 0.6px currentColor;
  letter-spacing: -0.025em;
  line-height: 1.08;
  paint-order: stroke fill;
  text-rendering: geometricPrecision;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
}

.wp-site-blocks > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

/* Section-based pages intentionally control their own internal padding. */
.mainstreet-section-stack > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}

a {
  text-underline-offset: 0.18em;
}

.wp-block-button__link {
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.wp-block-button__link:hover {
  color: var(--wp--preset--color--white);
  background-color: var(--wp--preset--color--orange);
  box-shadow: 0 7px 18px rgba(20, 36, 58, 0.18);
  transform: translateY(-2px);
}

.wp-block-button__link.has-orange-background-color:hover {
  background-color: var(--wp--preset--color--teal) !important;
}

.wp-block-button__link:active {
  box-shadow: 0 3px 9px rgba(20, 36, 58, 0.14);
  transform: translateY(0);
}

.wp-block-button__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.arrow-button .wp-block-button__link::after,
.card-link a::after,
.text-link a::after {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.5rem;
  margin-left: 0.5rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M0 4h14M10.5.5 14 4l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8'%3E%3Cpath d='M0 4h14M10.5.5 14 4l-3.5 3.5' fill='none' stroke='%23000' stroke-width='1.25'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: 0.05em;
  transition: transform 180ms ease;
}

.arrow-button .wp-block-button__link:hover::after,
.card-link a:hover::after,
.text-link a:hover::after {
  transform: translateX(3px);
}

.site-header {
  position: relative;
  z-index: 20;
}

.site-header > .wp-block-group {
  width: min(1384px, calc(100% - 0.5rem));
  max-width: none;
}

.home .site-header {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  background: transparent !important;
}

.site-header .wp-block-navigation {
  margin-left: auto;
}

.site-header .wp-block-navigation__container {
  gap: clamp(1.75rem, 3.7vw, 3.7rem);
}

.site-header .wp-block-navigation-item__content {
  padding-block: 1.15rem;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.site-header .wp-block-navigation-item {
  position: relative;
}

.site-header .wp-block-navigation-item::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2rem;
  left: 0;
  height: 3px;
  background: var(--wp--preset--color--orange);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms ease;
}

.site-header .wp-block-navigation-item:hover::before,
.site-header .wp-block-navigation-item:has(> .wp-block-navigation-item__content:focus-visible)::before,
.site-header .wp-block-navigation-item.current-menu-item::before,
.technology-menu-open .technologies-menu-trigger::before {
  opacity: 1;
  transform: scaleX(1);
}

.site-header .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.site-header .wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--orange);
}

.technologies-menu-trigger > .wp-block-navigation-item__content::after {
  content: "";
  display: inline-block;
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.55rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.14rem) rotate(45deg);
  transition: transform 180ms ease;
}

.technology-menu-open .technologies-menu-trigger > .wp-block-navigation-item__content {
  color: var(--wp--preset--color--orange);
}

.technology-menu-open .technologies-menu-trigger > .wp-block-navigation-item__content::after {
  transform: translateY(0.08rem) rotate(225deg);
}

.technology-mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 30;
  box-sizing: border-box;
  width: 100vw !important;
  max-width: none !important;
  margin-block-start: 0 !important;
  margin-inline: 0 !important;
  padding-block: clamp(3.25rem, 4.5vw, 4.5rem);
  box-shadow: 0 1.25rem 2.5rem rgba(20, 36, 58, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-0.75rem);
  transition:
    opacity 240ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 280ms;
  will-change: opacity, transform;
}

.technology-menu-open .technology-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.technology-mega-menu__grid {
  width: min(1384px, calc(100% - 3rem));
  max-width: none !important;
  margin-inline: auto !important;
}

.technology-mega-menu .technology-intro-title {
  margin-top: 0;
  font-size: 2rem;
}

.technology-mega-menu .technology-intro-title.accent-rule::after {
  margin-top: 1.1rem;
  margin-bottom: 2rem;
}

.technology-mega-menu .technology-intro-title + p {
  margin-top: 0;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1rem !important;
  font-weight: 400;
  line-height: 1.5;
}

.technology-mega-menu .technology-summary {
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.875rem !important;
  font-weight: 400;
}

.technology-mega-menu .technology-list {
  margin-bottom: 0;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
}

.technology-mega-menu .technology-list a,
.technology-mega-menu .technology-list a:visited {
  color: inherit;
  text-decoration: none;
}

.technology-mega-menu .technology-list a:hover,
.technology-mega-menu .technology-list a:focus-visible {
  color: var(--wp--preset--color--orange);
}

@media (prefers-reduced-motion: reduce) {
  .site-header .wp-block-navigation-item::before,
  .technology-mega-menu {
    transition: none;
  }
}

.header-contact .wp-block-button__link {
  box-sizing: border-box;
  width: 127px;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.header-contact {
  margin-left: 1.5rem !important;
}

.site-header .mainstreet-logo {
  width: clamp(240px, 22.222vw, 320px);
  flex: 0 0 clamp(240px, 22.222vw, 320px);
}

.mainstreet-logo img {
  display: block;
}

.site-header .mainstreet-logo img,
.site-footer .mainstreet-logo img {
  width: 100% !important;
  max-width: none;
}

.mainstreet-logo a {
  display: block;
  width: 100%;
}

.hero {
  min-height: 900px;
  overflow: hidden;
}

.hero::before {
  background: linear-gradient(90deg, rgba(20, 36, 58, 0.98) 0%, rgba(20, 36, 58, 0.86) 49%, rgba(20, 36, 58, 0.56) 100%) !important;
}

.hero-grid {
  min-height: 790px;
  padding-top: 7.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  transform: translateY(30px);
}

.hero-copy h1 {
  font-size: clamp(3.75rem, 6.5vw, 5.85rem) !important;
  font-weight: 300;
  letter-spacing: -0.025em;
}

.hero-grid > .wp-block-column:first-child {
  flex-basis: 60% !important;
}

.hero-grid > .wp-block-column:last-child {
  flex-basis: 40% !important;
}

.eyebrow {
  letter-spacing: 0.19em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow strong {
  font-weight: 500;
}

.accent-rule::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 0.28rem;
  margin-top: 0.55rem;
  background: var(--wp--preset--color--orange);
}

.hero-copy .accent-rule::after {
  width: 2.31em;
  height: 0.11em;
  margin-top: calc(-0.28em + 7px);
}

.hero-photo {
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  width: calc(100% + 100px);
  max-width: none;
  transform: translate(35px, -28px);
}

.hero-photo img {
  width: 100%;
}

.service-jump-links {
  position: relative;
}

.service-jump-links a {
  color: inherit;
  text-decoration: none;
}

.service-jump-links p {
  font-size: 1.1875rem !important;
}

.service-jump-links a:hover {
  color: var(--wp--preset--color--teal);
}

.technology-service-band {
  background: url("assets/images/cincinnati-hero.jpg") center 66% / cover no-repeat;
}

.technology-service-band .service-jump-links {
  padding-top: 5.25rem !important;
  padding-bottom: 2.5rem !important;
}

.technology-service-band .service-jump-links::before {
  top: 3rem;
  border-top-color: rgba(255, 255, 255, 0.26);
}

.section-pad {
  padding-block: clamp(5.5rem, 9vw, 8rem);
}

#services > .wp-block-group.alignwide > h2,
.latest-insights > .wp-block-group.alignwide > h2 {
  max-width: none !important;
}

.approach-intro,
.service-detail-lede,
#services > .wp-block-group.alignwide:first-child > p,
.latest-insights > .wp-block-group.alignwide:first-child > p {
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.1875rem !important;
  font-weight: 400;
  line-height: 1.55;
}

#about {
  position: relative;
  overflow: hidden;
}

#about::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -5rem;
  right: -1rem;
  width: clamp(30rem, 42vw, 37.5rem);
  aspect-ratio: 1;
  background: url("assets/images/mainstreet-seal-watermark.svg") center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

#about > * {
  position: relative;
  z-index: 1;
}

.card-grid > .wp-block-column,
.blog-card {
  background: var(--wp--preset--color--white);
  box-shadow: 0 12px 38px rgba(20, 36, 58, 0.055);
}

.card-grid > .wp-block-column {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  min-height: 225px;
}

.card-grid .card-copy {
  color: #202426;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-weight: 400;
}

.card-grid > .wp-block-column > .wp-block-spacer {
  display: none;
}

.card-grid .card-link {
  margin-top: auto !important;
  margin-bottom: 0;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

.card-grid .card-link a,
.card-grid .card-link a:visited {
  color: #85888a;
  text-decoration: none;
}

.card-grid .card-link a:hover,
.card-grid .card-link a:focus-visible {
  color: var(--wp--preset--color--orange);
}

.card-link,
.text-link {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.card-link a,
.text-link a {
  transition: color 180ms ease;
}

.card-link a:hover,
.text-link a:hover {
  color: var(--wp--preset--color--orange);
}

.stats-band {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.stats-title {
  max-width: var(--wp--style--global--wide-size) !important;
}

@media (min-width: 1100px) {
  .stats-title {
    white-space: nowrap;
  }

  #services > .wp-block-group.alignwide > h2,
  .service-expertise .service-detail-title,
  .service-value-title {
    white-space: nowrap;
  }
}

.stat-number,
.service-value-grid h3 {
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-size: clamp(3.75rem, 5.95vw, 4.75rem) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  line-height: 1;
}

.stats-band .wp-block-column > p,
.service-value-grid p {
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.1875rem !important;
  font-weight: 400;
  line-height: 1.265;
  margin-block-start: 0.875rem !important;
}

.card-grid h3,
#services h3,
.technology-grid h2 {
  font-weight: 700;
}

.service-icon,
.service-icon img {
  width: 4.5rem !important;
  height: 4.5rem !important;
}

.service-icon img {
  display: block;
  max-width: none;
  object-fit: contain;
}

#services .wp-block-columns .wp-block-column > p {
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.0625rem !important;
  font-weight: 400;
  line-height: 1.5;
}

.blog-card .wp-block-post-title {
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.6875rem !important;
  font-weight: 500;
}

.blog-card .wp-block-post-title a,
.blog-card .wp-block-post-title a:visited {
  color: #000;
  text-decoration: none;
}

.blog-card .wp-block-post-terms {
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.8125rem !important;
  font-weight: 400;
}

.blog-card .wp-block-post-terms a,
.blog-card .wp-block-post-terms a:visited {
  color: var(--wp--preset--color--orange);
  text-decoration: none;
}

.blog-card .wp-block-post-excerpt {
  color: var(--wp--preset--color--ink);
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.875rem !important;
  font-weight: 400;
}

.latest-insights .blog-index-link {
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.55;
}

.latest-insights .blog-index-link a,
.latest-insights .blog-index-link a:visited {
  color: #85888a;
  text-decoration: none;
}

.latest-insights .blog-index-link a:hover,
.latest-insights .blog-index-link a:focus-visible {
  color: var(--wp--preset--color--orange);
}

.skyline img {
  display: block;
  width: 100%;
  max-height: 590px;
  object-fit: cover;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--wp--preset--color--teal);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.blog-card {
  height: 100%;
  overflow: hidden;
}

.blog-card .wp-block-post-featured-image img,
.editorial-card-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.5rem;
}

.site-footer {
  --footer-muted: rgba(255, 255, 255, 0.3);
  padding-block: 4.75rem 2rem;
}

.site-footer .mainstreet-mark,
.site-footer .mainstreet-mark img {
  display: block;
  width: 4.5rem !important;
  height: 4.5rem !important;
}

.site-footer .mainstreet-mark img {
  object-fit: contain;
}

.site-footer .footer-navigation .wp-block-navigation__container {
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.site-footer .footer-navigation .wp-block-navigation-item__content {
  padding: 0;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
}

.site-footer .footer-tagline {
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.1875rem;
  font-weight: 700;
}

.site-footer .footer-address {
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.35;
}

.site-footer .footer-contact-button .wp-block-button__link {
  box-sizing: border-box;
  width: 127px;
  min-width: 0;
  padding: 0.75rem 1rem;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.footer-meta {
  border-top: 1px solid var(--footer-muted);
  color: var(--footer-muted);
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  padding-top: 1.5rem;
  margin-top: clamp(3.5rem, 5vw, 5rem) !important;
}

.footer-meta p {
  font: inherit;
}

.footer-meta a,
.footer-meta a:visited {
  color: inherit;
  text-decoration: none;
}

.footer-meta a:hover,
.footer-meta a:focus-visible {
  color: var(--wp--preset--color--teal);
}

/* Service-detail layout used by the Technologies placeholder page. */
body:has(.service-detail-hero) .site-header,
.page-id-8 .site-header {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  background: transparent !important;
}

.service-detail-hero {
  min-height: 0 !important;
  padding-block: clamp(11rem, 14vw, 13rem) clamp(4rem, 6vw, 5.5rem);
  overflow: hidden;
}

.service-detail-hero .wp-block-cover__background {
  z-index: 1;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, rgba(20, 36, 58, 0.96) 0%, rgba(20, 36, 58, 0.77) 37%, rgba(20, 36, 58, 0.18) 72%, rgba(20, 36, 58, 0.03) 100%) !important;
  opacity: 1 !important;
}

.service-detail-hero .wp-block-cover__image-background {
  object-position: center 42%;
}

.service-detail-hero .wp-block-cover__inner-container {
  z-index: 2;
}

.service-detail-hero__content,
.service-detail-section > .alignwide,
.service-value-band > .alignwide {
  width: var(--mainstreet-outer-rail-width, min(1384px, calc(100vw - 7.5rem)));
  max-width: none !important;
}

.service-detail-hero__content {
  box-sizing: border-box;
  width: min(var(--wp--style--global--wide-size), calc(100vw - 7.5rem));
  padding-top: 0;
}

.service-detail-section > .service-detail-section__intro {
  width: min(var(--wp--style--global--wide-size), calc(100vw - 7.5rem));
}

.service-detail-hero__content > * {
  max-width: 42.75rem !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.service-detail-hero__eyebrow {
  margin-bottom: 1.45rem;
  color: var(--wp--preset--color--sand);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
}

.service-detail-hero__title {
  margin-block: 0;
  font-size: clamp(3.75rem, 6.5vw, 5.85rem) !important;
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 0.98;
}

.service-detail-hero__title span {
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-bottom: 0.03em;
  border-bottom: 0.075em solid transparent;
}

.service-detail-hero__title span::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  width: 100%;
  height: 0.11em;
  /* Match the homepage underline's baseline offset, accounting for
     this heading's tighter 0.98 line-height (homepage: 1.06). */
  top: calc(0.74em + 7px);
  background: var(--wp--preset--color--orange);
  pointer-events: none;
}

.service-detail-hero__intro {
  margin-top: 2rem;
  color: var(--wp--preset--color--teal);
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.375rem) !important;
  font-weight: 400;
  line-height: 1.5;
}

.service-detail-hero .wp-block-buttons {
  margin-top: 2.65rem;
}

.service-detail-hero .wp-block-button__link,
.service-expertise .wp-block-button__link {
  min-width: 11.25rem;
  padding: 1.15rem 1.6rem;
}

.service-detail-hero .wp-block-button__link {
  padding: 1rem 1.55rem;
}

.service-detail-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 8vw, 7.5rem);
}

.service-detail-section__intro > * {
  max-width: 58rem !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.service-detail-title {
  margin-top: 0;
  font-size: var(--wp--preset--font-size--x-large) !important;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.service-detail-lede {
  margin-top: 1.25rem;
  color: var(--wp--preset--color--ink);
}

.service-clarity::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -9rem;
  right: -7rem;
  width: clamp(31rem, 44vw, 43rem);
  aspect-ratio: 1;
  background: url("assets/images/mainstreet-seal-watermark.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.service-clarity > * {
  position: relative;
  z-index: 1;
}

.service-benefit-cards {
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(3rem, 5vw, 4.5rem) !important;
}

.service-benefit-cards > .wp-block-column {
  box-sizing: border-box;
  min-height: 0;
  padding: clamp(1.75rem, 2.5vw, 2.35rem);
  background: var(--wp--preset--color--white);
  box-shadow: 0 12px 38px rgba(20, 36, 58, 0.05);
}

.service-benefit-cards h3,
.card-grid h3,
#services h3,
.service-expertise-item h3 {
  color: var(--wp--preset--color--orange);
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif;
  font-size: var(--wp--preset--font-size--large) !important;
  font-weight: 700;
  line-height: 1.06;
}

.service-benefit-cards h3,
.service-expertise-item h3 {
  margin-top: 0;
}

.service-benefit-cards p {
  color: #202426;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: var(--wp--preset--font-size--medium) !important;
  font-weight: 400;
  line-height: 1.55;
}

.service-expertise-item p {
  color: #313638;
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.0625rem !important;
  font-weight: 400;
  line-height: 1.5;
}

.service-detail-city,
.service-detail-city img {
  display: block;
  width: 100%;
}

.service-detail-city img {
  aspect-ratio: 6000 / 1914;
  object-fit: cover;
}

.service-expertise .wp-block-buttons {
  margin-top: 2.65rem;
}

.service-expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3vw, 3rem) clamp(2.25rem, 5vw, 5rem);
  margin-top: clamp(4.5rem, 7vw, 6.5rem) !important;
}

.service-expertise-grid > .service-expertise-item {
  margin-block: 0;
}

.service-expertise-item > * {
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.service-expertise-item h3 {
  display: flex;
  align-items: flex-end;
  min-height: 2.12em;
}

.service-expertise .service-detail-section__intro > * {
  max-width: none !important;
}

.service-value-band {
  padding-block: clamp(4.25rem, 6.5vw, 6rem);
}

.service-value-title {
  max-width: none !important;
  margin-top: 0;
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif !important;
  font-size: var(--wp--preset--font-size--x-large) !important;
  font-weight: 400 !important;
  letter-spacing: normal;
  line-height: 1.06;
  -webkit-text-stroke: 0;
}

.service-value-grid {
  gap: 1.25rem;
  margin-top: clamp(3.25rem, 5vw, 4.5rem) !important;
  text-align: center;
}

.service-value-grid h3 {
  margin-block: 0;
  color: var(--wp--preset--color--navy);
  font-size: clamp(3rem, 5vw, 4rem) !important;
}

.service-value-grid p {
  max-width: 15rem;
  margin-inline: auto !important;
  color: var(--wp--preset--color--navy);
}

.service-insight-cards {
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(3.5rem, 6vw, 5.5rem) !important;
}

.service-insight-card {
  overflow: hidden;
  background: var(--wp--preset--color--white);
  box-shadow: 0 12px 38px rgba(20, 36, 58, 0.055);
}

.service-insight-card figure,
.service-insight-card img {
  display: block;
  width: 100%;
}

.service-insight-card img {
  aspect-ratio: 1597 / 921;
  object-fit: cover;
}

.service-insight-card__body {
  padding: clamp(1.5rem, 2.6vw, 2.35rem);
}

.service-insight-card__category {
  margin-top: 0;
  color: var(--wp--preset--color--orange);
  font-size: 0.8125rem !important;
}

.service-insight-card h3 {
  color: #000;
  font-size: 1.6875rem !important;
  font-weight: 500;
  line-height: 1.15;
}

.service-insight-card__body > p:last-child {
  color: var(--wp--preset--color--ink);
  font-family: "GT America", Helvetica, Arial, system-ui, sans-serif;
  font-size: 0.875rem !important;
  line-height: 1.5;
}

.service-insights__link {
  margin-top: 0;
  font-family: "GT America Extended", Helvetica, Arial, system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.55;
}

.service-insight-cards + .wp-block-group {
  margin-top: 2rem !important;
}

.service-insights__link a,
.service-insights__link a:visited {
  color: #85888a;
  text-decoration: none;
}

.service-insights__link a:hover,
.service-insights__link a:focus-visible {
  color: var(--wp--preset--color--orange);
}

.technology-overview {
  padding-block: clamp(4rem, 6vw, 5.5rem);
}

.technology-overview-grid {
  align-items: stretch !important;
  gap: 0;
}

.technology-overview-grid > .wp-block-column {
  display: flex;
  flex-direction: column;
  padding-inline: clamp(1.25rem, 2.3vw, 2.25rem);
}

.technology-overview-grid > .technology-intro {
  padding-left: 0;
  padding-right: clamp(2rem, 3.5vw, 3.5rem);
}

.technology-overview-grid > .technology-intro + .wp-block-column {
  border-left: 1px solid var(--wp--preset--color--sand);
}

.technology-overview-grid > .wp-block-column:last-child {
  padding-right: 0;
}

.technology-intro-title {
  font-size: clamp(1.9rem, 2.5vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
}

.technology-overview-grid h2,
.technology-overview-grid h3 {
  min-height: 2.65em;
  line-height: 1.15;
}

.technology-summary {
  min-height: 5.5em;
}

.technology-column-link {
  margin-top: auto;
  padding-top: 2rem;
  font-size: 0.75rem !important;
  font-weight: 500;
  white-space: nowrap;
}

.technology-column-link a,
.technology-column-link a:visited {
  color: var(--wp--preset--color--teal);
  text-decoration: none;
}

.technology-column-link a:hover,
.technology-column-link a:focus-visible {
  color: var(--wp--preset--color--orange);
}

.technology-list {
  list-style: none;
  margin-top: 1.25rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(80, 85, 87, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 2;
}

.technology-list li {
  border: 0;
}

.entry-content > * + * {
  margin-block-start: 1.4rem;
}

@media (min-width: 901px) {
  body {
    --mainstreet-outer-rail-width: min(1384px, calc(100vw - 7.5rem));
  }

  .card-grid {
    width: min(1280px, calc(100vw - 7.5rem));
    max-width: none !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .technology-overview-grid {
    width: var(--mainstreet-outer-rail-width);
    max-width: none !important;
  }

  .site-footer > .wp-block-columns.alignwide,
  .site-footer > .footer-meta {
    width: var(--mainstreet-outer-rail-width);
    max-width: none !important;
  }

  .service-jump-links,
  .footer-meta {
    border-top: 0;
  }

  .service-jump-links::before,
  .footer-meta::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--mainstreet-outer-rail-width);
    border-top: 1px solid var(--footer-muted);
    transform: translateX(-50%);
  }

  .service-jump-links::before {
    border-top: 1.5px solid rgba(255, 255, 255, 0.18);
  }

  .footer-meta {
    position: relative;
  }
}

@media (min-width: 1400px) {
  body {
    --mainstreet-wordmark-anchor-offset: clamp(0px, calc(50vw - 45.0725rem), 30.84px);
  }

  .hero-copy {
    transform: translate(calc(-1 * var(--mainstreet-wordmark-anchor-offset)), 30px);
  }

  .service-detail-hero__content,
  .service-detail-section > .service-detail-section__intro {
    transform: translateX(calc(-1 * var(--mainstreet-wordmark-anchor-offset)));
  }

  .service-jump-links > :first-child,
  .section-pad > .wp-block-group.alignwide,
  .section-pad > .wp-block-query.alignwide,
  .wp-block-columns:has(> #it-advisory) {
    transform: translateX(calc(-1 * var(--mainstreet-wordmark-anchor-offset)));
  }
}

@media (max-width: 900px) {
  .site-header > .wp-block-group {
    width: min(100% - 2.5rem, 1320px);
  }

  .home .site-header {
    position: relative;
    background: var(--wp--preset--color--slate) !important;
  }

  body:has(.service-detail-hero) .site-header,
  .page-id-8 .site-header {
    position: absolute;
    background: transparent !important;
  }

  .site-header .wp-block-navigation__responsive-container-open {
    display: flex;
  }

  .technology-mega-menu {
    display: none !important;
  }

  .technologies-menu-trigger > .wp-block-navigation-item__content::after {
    display: none;
  }

  .header-contact {
    display: none !important;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: auto;
    padding-top: 0;
    padding-block: 5rem;
  }

  .hero-photo {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .hero-copy {
    transform: none;
  }

  .hero-grid > .wp-block-column:first-child,
  .hero-grid > .wp-block-column:last-child {
    flex-basis: 100% !important;
  }

  .service-jump-links {
    display: none !important;
  }

  #about::before {
    top: -2rem;
    right: -12rem;
    width: 31rem;
    opacity: 0.18;
  }

  .service-detail-hero {
    padding-block: 10rem 4rem;
    padding-inline: 0;
  }

  .service-detail-hero .wp-block-cover__background {
    background-image: linear-gradient(90deg, rgba(20, 36, 58, 0.94) 0%, rgba(20, 36, 58, 0.67) 72%, rgba(20, 36, 58, 0.32) 100%) !important;
  }

  .service-detail-hero__content,
  .service-detail-section > .service-detail-section__intro,
  .service-detail-section > .alignwide,
  .service-value-band > .alignwide {
    width: min(100% - 2.5rem, 1384px);
  }

  .service-expertise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .section-pad {
    padding-block: 4rem;
  }

  .site-header .mainstreet-logo {
    width: 190px;
    flex-basis: 190px;
  }

  .hero-grid {
    padding-block: 3.5rem;
  }

  .hero-photo {
    margin-top: 2rem;
  }

  .stats-band .wp-block-columns {
    gap: 2.5rem;
  }

  .service-detail-hero {
    padding-block: 9.5rem 3.5rem;
  }

  .service-detail-hero__content {
    padding-top: 0;
  }

  .service-detail-hero__title {
    font-size: clamp(3.1rem, 16vw, 4rem) !important;
  }

  .service-detail-hero__intro br,
  .service-detail-lede br {
    display: none;
  }

  .service-detail-section {
    padding-block: 4.5rem;
  }

  .service-expertise-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .service-expertise-item h3 {
    min-height: 0;
  }

  .service-detail-city img {
    min-height: 14rem;
  }
}
