/* External AVT Group link */

.primary-navigation .parent-site-link {
  --avt-green: #71b221;
  --avt-green-dark: #5d961d;
  --avt-green-soft: #f3f8ec;
  min-height: 40px;
  margin-left: 0.15rem;
  padding: 0.4rem 0.45rem 0.4rem 0.75rem;
  gap: 0.55rem;
  border: 1px solid rgb(113 178 33 / 62%);
  border-radius: 0.65rem;
  background: var(--avt-green-soft);
  color: var(--navy-950);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease);
}

.primary-navigation .parent-site-link::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: calc(clamp(0.75rem, 1.2vw, 1.25rem) * -1);
  width: 1px;
  background: var(--slate-200);
  content: "";
}

.primary-navigation .parent-site-link::after {
  display: none;
}

.parent-site-link-arrow {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.45rem;
  background: var(--avt-green);
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease);
}

.primary-navigation .parent-site-link:hover,
.primary-navigation .parent-site-link:focus-visible {
  border-color: var(--avt-green-dark);
  background: var(--avt-green);
  color: var(--white);
  box-shadow: 0 9px 20px rgb(113 178 33 / 24%);
  transform: translateY(-1px);
}

.primary-navigation .parent-site-link:focus-visible {
  outline: 3px solid rgb(113 178 33 / 28%);
  outline-offset: 3px;
}

.primary-navigation .parent-site-link:hover .parent-site-link-arrow,
.primary-navigation .parent-site-link:focus-visible .parent-site-link-arrow {
  background: var(--white);
  color: var(--avt-green-dark);
  transform: translate(1px, -1px);
}

/* Optical centering for circular controls and markers */

:is(
  .expertise-card > b,
  .process-steps li > span,
  .solution-grid article > span,
  .media-dialog button
) {
  box-sizing: border-box;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.expertise-card > b {
  font-size: 0;
}

.expertise-card > b::before {
  content: "↗";
  display: block;
  font-size: var(--text-sm);
  line-height: 1;
  transform: translateY(-0.03em);
}

.media-dialog button {
  font-family: Inter, sans-serif;
  line-height: 1;
}

/* Complete AVT Group footer */

.site-footer {
  padding: clamp(4rem, 6vw, 5.5rem) var(--gutter) var(--space-5);
}

.footer-top,
.footer-locations,
.footer-company,
.footer-bottom {
  width: min(100%, var(--container));
  margin-inline: auto;
}

.footer-top {
  padding-bottom: clamp(2.5rem, 4vw, 3.75rem);
  gap: clamp(2rem, 4vw, 4.5rem);
  grid-template-columns: 1.35fr 1fr 0.72fr 0.95fr;
}

.footer-brand p {
  line-height: 1.65;
}

.footer-primary-contact {
  margin-top: var(--space-7);
  display: grid;
  gap: var(--space-4);
}

.footer-primary-contact a {
  width: fit-content;
  display: grid;
  gap: 0.3rem;
}

.footer-primary-contact small,
.footer-contact-channels small {
  color: rgb(255 255 255 / 76%);
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.footer-primary-contact strong {
  margin: 0;
  color: var(--white);
  font-size: var(--text-sm);
}

.footer-primary-contact a:hover strong,
.footer-primary-contact a:focus-visible strong,
.footer-contact-channels a:hover span,
.footer-contact-channels a:focus-visible span {
  color: #ffffff;
}

.footer-contact-channels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.footer-contact-channels > strong {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.footer-contact-channels > a:not(.footer-all-contacts) {
  display: grid;
  gap: 0.3rem;
}

.footer-contact-channels a span {
  color: var(--on-dark-subtle);
  font-size: var(--text-sm);
  transition: color 180ms ease;
}

.footer-contact-channels .footer-all-contacts {
  margin-top: var(--space-2);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid rgb(255 255 255 / 28%);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
}

.footer-locations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgb(255 255 255 / 14%);
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

.footer-locations article {
  min-width: 0;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-right: 1px solid rgb(255 255 255 / 14%);
}

.footer-locations article:first-child {
  padding-left: 0;
}

.footer-locations article:last-child {
  padding-right: 0;
  border-right: 0;
}

.footer-locations small {
  display: block;
  margin-bottom: var(--space-3);
  color: #ff9ca2;
  font-family: "Roboto Mono", monospace;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-locations strong {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--white);
  font-size: var(--text-lg);
}

.footer-locations p {
  min-height: 3.2em;
  margin: 0 0 var(--space-4);
  color: var(--on-dark-subtle);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-locations a {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 700;
}

.footer-locations a:hover,
.footer-locations a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-company {
  padding-block: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  color: var(--on-dark-subtle);
  font-size: var(--text-xs);
}

.footer-company strong {
  color: var(--white);
  font-size: var(--text-xs);
}

.footer-company a {
  margin-left: auto;
  color: var(--on-dark-subtle);
}

.footer-company a:hover,
.footer-company a:focus-visible {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-5);
  align-items: center;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-3) var(--space-6);
}

.footer-bottom nav a {
  color: var(--on-dark-subtle);
}

.footer-bottom nav a:hover,
.footer-bottom nav a:focus-visible {
  color: var(--white);
}

@media (max-width: 1040px) {
  .primary-navigation .parent-site-link {
    min-height: 56px;
    margin: var(--space-3) 0 0;
    padding: 0.5rem 0.55rem 0.5rem 0.9rem;
    justify-content: space-between;
    border-color: rgb(113 178 33 / 62%);
    background: var(--avt-green-soft);
  }

  .primary-navigation .parent-site-link::before {
    display: none;
  }

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

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

  .footer-locations article:nth-child(2) {
    padding-right: 0;
    border-right: 0;
  }

  .footer-locations article:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }

  .footer-locations article:nth-child(4) {
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
}

@media (max-width: 680px) {
  .footer-top,
  .footer-locations {
    grid-template-columns: 1fr;
  }

  .footer-locations article,
  .footer-locations article:first-child,
  .footer-locations article:nth-child(2),
  .footer-locations article:nth-child(3),
  .footer-locations article:last-child {
    padding: var(--space-5) 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
    border-right: 0;
  }

  .footer-locations article:first-child {
    border-top: 0;
  }

  .footer-locations p {
    min-height: 0;
  }

  .footer-company {
    align-items: flex-start;
  }

  .footer-company a {
    width: 100%;
    margin-left: 0;
  }

  .footer-bottom,
  .footer-bottom nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom nav {
    justify-content: flex-start;
  }
}
