:root {
  --warm-white: #f6f5f1;
  --navy: #1f4b6d;
  --green: #9bc51d;
  --muted: #47617a;
  --line: #c9d5dc;
}

.site-header-v2 {
  z-index: 20;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 40px;
  width: auto;
  max-width: 1520px;
  height: 128px;
  margin: 0 auto;
  position: relative;
}

.site-header-v2 .logo img {
  display: block;
  width: 132px;
  height: auto;
}

.site-language-v2 {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--navy);
  font: 500 13px/1 Arial, Helvetica, sans-serif;
}

.site-language-v2 a {
  color: inherit;
  text-decoration: none;
}

.site-language-v2 a.active {
  color: var(--green);
  font-weight: 750;
}

.site-nav-v2 {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.5vw, 62px);
  font: 600 16px/1 Arial, Helvetica, sans-serif;
  color: var(--navy);
}

.site-nav-v2 > a,
.nav-dropdown-toggle {
  color: var(--navy);
  border: 0;
  background: transparent;
  padding: 10px 0;
  font: inherit;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-v2 > a::after,
.nav-dropdown-toggle::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.site-nav-v2 > a:hover::after,
.site-nav-v2 > a:focus-visible::after,
.site-nav-v2 > a.active::after,
.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after,
.nav-dropdown-toggle.active::after {
  transform: scaleX(1);
}

.site-nav-v2 .active,
.nav-dropdown-toggle.active {
  font-weight: 750;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle span {
  margin-left: 5px;
  font-size: 12px;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  min-width: 265px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(15, 37, 55, .13);
  transform: translateX(-50%) translateY(-6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible,
.nav-dropdown-menu a.active {
  background: #eef4f6;
}

.site-menu-toggle {
  display: none;
}

.v2-home,
.v2-service-page {
  min-height: 100vh;
  color: var(--navy);
  background: var(--warm-white);
  font-family: Arial, Helvetica, sans-serif;
}

.v2-home-main,
.v2-service-main,
.site-footer-v2 {
  max-width: 1520px;
  margin-right: auto;
  margin-left: auto;
}

.v2-home-main {
  margin-top: 32px;
  margin-bottom: 72px;
}

.home-route-v2 {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.home-route-v2 + .home-route-v2 {
  margin-top: 0;
}

.home-route-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 880px;
}

.home-route-heading h1,
.home-route-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.home-route-kicker,
.service-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 12px 0 0;
  padding: 0 12px;
  color: #fff;
  background: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.home-route-icon {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  object-fit: contain;
  border-radius: 50%;
}

.home-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 880px;
  margin-top: 18px;
}

.home-service-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--navy);
  background: #fff;
  border: 1px solid #86a5b7;
  border-radius: 10px 10px 0 0;
  text-decoration: none;
}

.home-service-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px;
  border-bottom: 1px solid #86a5b7;
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
}

.home-service-card:hover strong,
.home-service-card:focus-visible strong {
  color: #fff;
  background: var(--navy);
}

.home-service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: contain;
  background: #fff;
}

.home-test-shot {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 880px;
  margin: 46px auto 54px;
  padding: 23px 26px;
  background: rgba(255, 255, 255, .55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.home-test-shot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  color: #fff;
  background: var(--navy);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-test-shot p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.v2-service-main {
  margin-top: 38px;
  margin-bottom: 76px;
}

.service-title-row {
  padding-bottom: 21px;
  border-bottom: 1px solid #dfe5e5;
}

.service-switch-link {
  display: flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-bottom: 32px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.service-switch-link:hover,
.service-switch-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-switch-previous,
.service-switch-next {
  gap: 4px;
}

.service-title-row h1 {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: clamp(30px, 2.4vw, 40px);
  line-height: 1.08;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(640px, 900px) minmax(330px, 1fr);
  align-items: start;
  gap: clamp(40px, 5vw, 90px);
  max-width: 1500px;
  padding-top: 32px;
}

.service-column-headings,
.case-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-column-headings {
  margin-bottom: 14px;
}

.service-column-headings h2 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.2;
}

.service-column-headings p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.case-row {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #dfe5e5;
}

.case-row:last-child {
  margin-bottom: 0;
}

.case-media-button {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  cursor: pointer;
  background: #fff;
  border: 1px solid #b8c8d2;
  position: relative;
  overflow: hidden;
}

.case-media-button video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #fff;
}

.case-media-button .play-mark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  color: #fff;
  background: rgba(31, 75, 109, .9);
  border-radius: 50%;
  font-size: 12px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
}

.service-flow {
  position: sticky;
  top: 24px;
  padding-top: 2px;
}

.service-route-copy {
  padding-bottom: 20px;
  border-bottom: 1px solid #dfe5e5;
}

.service-route-copy h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.service-route-copy p {
  margin: 0 0 5px;
  color: #44667d;
  font-size: 13px;
  line-height: 1.38;
}

.service-route-copy p:nth-last-child(2) {
  margin-top: 11px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(3, minmax(62px, 1fr)) 82px;
  align-items: center;
  gap: 10px;
  max-width: 510px;
  margin-top: 22px;
}

.flow-step {
  min-width: 0;
  text-align: center;
  position: relative;
}

.flow-diagram > .flow-step:not(:nth-child(3))::after {
  content: "\2192";
  position: absolute;
  top: 35px;
  right: -10px;
  color: #6a899d;
  font-size: 15px;
  font-weight: 600;
}

.flow-branch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.flow-step img {
  display: block;
  width: min(100%, 84px);
  height: auto;
  margin: 0 auto;
}

.flow-step p {
  margin: 7px 0 0;
  color: #44667d;
  font-size: 11px;
  line-height: 1.25;
}

.flow-step p span {
  display: block;
  margin-bottom: 2px;
  color: var(--navy);
  font-weight: 750;
}

.service-cta {
  margin-top: 30px;
  padding: 24px;
  background: rgba(255, 255, 255, .55);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-cta p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: #fff;
  background: var(--navy);
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer-v2 {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 33px;
  color: #47617a;
  border-top: 1px solid #dde1df;
  font: 12px/1.4 Arial, Helvetica, sans-serif;
}

.site-footer-v2 div {
  display: flex;
  gap: 20px;
}

.site-footer-v2 a {
  color: inherit;
  text-decoration: none;
}

.site-footer-v2 a:hover {
  color: var(--green);
}

.media-modal-v2 {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(9, 25, 39, .82);
}

.media-modal-v2[hidden] {
  display: none;
}

.media-modal-panel-v2 {
  position: relative;
  max-height: calc(100vh - 56px);
}

.media-modal-panel-v2 video {
  display: block;
  max-width: min(80vw, 960px);
  max-height: calc(100vh - 56px);
  background: #111;
}

.media-modal-close-v2 {
  position: absolute;
  z-index: 1;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #fff;
  background: rgba(15, 31, 44, .8);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
}

.faq-answer[hidden] {
  display: none !important;
}

.price-addon-row.v2-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1800px) and (min-width: 701px) {
  .site-header-v2,
  .v2-home-main,
  .v2-service-main,
  .site-footer-v2 {
    margin-right: clamp(40px, 5.2vw, 100px);
    margin-left: clamp(40px, 5.2vw, 100px);
  }

  .site-header-v2 {
    grid-template-columns: 160px 1fr auto;
  }
}

@media (max-width: 1100px) {
  .site-nav-v2 {
    gap: 20px;
    font-size: 14px;
  }

  .service-layout {
    grid-template-columns: minmax(510px, 620px) minmax(280px, 1fr);
    gap: 34px;
  }

  .service-column-headings,
  .case-row {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-gallery {
    max-width: 720px;
  }

  .service-flow {
    position: static;
    padding-top: 24px;
    border-top: 1px solid #dfe5e5;
  }
}

@media (max-width: 700px) {
  .site-header-v2 {
    grid-template-columns: 1fr auto;
    gap: 14px;
    height: 74px;
    margin: 0 20px;
  }

  .site-header-v2 .logo img {
    width: 110px;
  }

  .site-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 42px;
    height: 42px;
    padding: 10px;
    cursor: pointer;
    background: transparent;
    border: 0;
  }

  .site-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
  }

  .site-nav-v2 {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    justify-self: auto;
    gap: 4px;
    padding: 14px 20px 18px;
    background: var(--warm-white);
    border-top: 1px solid #e1e1dc;
    border-bottom: 1px solid #e1e1dc;
    box-shadow: 0 12px 24px rgba(15, 37, 55, .08);
  }

  .site-header-v2.nav-open .site-nav-v2 {
    display: grid;
  }

  .site-nav-v2 > a,
  .nav-dropdown-toggle {
    width: 100%;
    min-height: 42px;
    padding: 12px 0;
    text-align: left;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 7px 14px;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-menu a {
    padding: 11px 10px;
    font-size: 13px;
  }

  .site-header-v2 .site-language-v2 {
    grid-area: 1 / 2;
    margin-right: 52px;
  }

  .v2-home-main,
  .v2-service-main {
    margin: 24px 20px 48px;
  }

  .home-route-heading {
    gap: 16px;
  }

  .home-route-heading h1,
  .home-route-heading h2 {
    font-size: 25px;
  }

  .home-route-icon {
    width: 82px;
    height: 82px;
    flex-basis: 82px;
  }

  .home-route-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 360px;
  }

  .home-service-card img {
    aspect-ratio: 1 / 1.02;
  }

  .home-test-shot {
    display: block;
    margin: 34px 0 45px;
    padding: 22px 0;
  }

  .home-test-shot a {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .home-test-shot p {
    margin-top: 8px;
    text-align: center;
  }

  .service-title-row h1 {
    font-size: 28px;
  }

  .service-column-headings {
    display: none;
  }

  .case-row {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 360px;
  }

  .case-media-button::before {
    content: attr(data-label);
    display: block;
    padding: 10px 11px 8px;
    color: var(--navy);
    background: #fff;
    border-bottom: 1px solid #b8c8d2;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
  }

  .flow-diagram {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 360px;
  }

  .flow-diagram > .flow-step:not(:nth-child(3))::after {
    display: none;
  }

  .flow-branch {
    grid-column: 2 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer-v2 {
    flex-direction: column;
    gap: 12px;
    margin: 0 20px;
    padding: 20px 0 28px;
  }

  .site-footer-v2 div {
    flex-wrap: wrap;
    gap: 9px 16px;
  }

  .price-addon-row.v2-two-columns {
    grid-template-columns: 1fr;
  }

  .media-modal-v2 {
    padding: 15px;
  }

  .media-modal-panel-v2 video {
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
