.ntl-service-page {
  min-height: 420px;
  background: var(--ntl-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main services page. */
.ntl-services-index {
  min-height: 420px;
  padding: 40px 0 0;
  background: var(--ntl-light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ntl-services-index > .wp-block-post-content { margin: 0; }

.ntl-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 30px;
  width: min(calc(100% - 30px), var(--ntl-container));
  margin: 0 auto;
}

/* Neutralize WordPress flow margins so every grid item starts on its grid line. */
.ntl-services-grid > .ntl-service-card { margin-block: 0; }

.ntl-service-card {
  position: relative;
  height: 100%;
  min-height: 236px;
  padding: 30px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--ntl-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  transition: background-color .65s ease, box-shadow .65s ease, transform .65s ease;
}

.ntl-service-card > *:not(.ntl-service-card__link) {
  position: relative;
  z-index: 1;
}

.ntl-service-card__mark {
  width: 40px;
  margin: 0 0 17px;
}

.ntl-service-card__mark img {
  width: 40px;
  height: auto;
  transition: filter .65s ease;
}

.ntl-service-card h2 {
  margin: 0 0 10px;
  color: var(--ntl-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  transition: color .65s ease;
}

.ntl-service-card p {
  margin: 0;
  color: var(--ntl-text);
  font-size: 16px;
  line-height: 1.6;
  transition: color .65s ease;
}

.ntl-service-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.ntl-service-card:hover,
.ntl-service-card:focus-within {
  background: var(--ntl-bronze-surface);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.ntl-service-card:hover .ntl-service-card__mark img,
.ntl-service-card:focus-within .ntl-service-card__mark img {
  filter: brightness(0) invert(1);
}

.ntl-service-card:hover h2,
.ntl-service-card:focus-within h2 { color: #fff; }

.ntl-service-card:hover p,
.ntl-service-card:focus-within p { color: #fff; }

.ntl-service-card__link:focus-visible {
  outline: 3px solid var(--ntl-dark);
  outline-offset: -5px;
}

.ntl-testimonials {
  padding: 125px 0 82px;
  color: var(--ntl-text);
  text-align: center;
}

.ntl-testimonials h2 {
  margin: 0 0 48px;
  color: #575554;
  font-size: clamp(36px, 3.25vw, 48px);
  font-weight: 600;
  line-height: 1.2;
}

.ntl-testimonials__viewport {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.ntl-testimonials__viewport::-webkit-scrollbar { display: none; }

.ntl-testimonials__carousel { position: relative; }

.ntl-testimonials__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(87, 85, 84, .28);
  border-radius: 50%;
  color: var(--ntl-heading);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color var(--ntl-transition), border-color var(--ntl-transition), background-color var(--ntl-transition), box-shadow var(--ntl-transition), opacity var(--ntl-transition);
}

.ntl-testimonials__arrow--previous { left: -62px; }
.ntl-testimonials__arrow--next { right: -62px; }

.ntl-testimonials__arrow span {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.ntl-testimonials__arrow--previous span { transform: translateX(2px) rotate(-135deg); }
.ntl-testimonials__arrow--next span { transform: translateX(-2px) rotate(45deg); }

.ntl-testimonials__arrow:hover:not(:disabled),
.ntl-testimonials__arrow:focus-visible {
  border-color: var(--ntl-bronze-surface);
  color: #fff;
  background: var(--ntl-bronze-surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

.ntl-testimonials__arrow:focus-visible {
  outline: 2px solid var(--ntl-primary);
  outline-offset: 3px;
}

.ntl-testimonials__arrow:disabled {
  opacity: .28;
  cursor: default;
}

.ntl-testimonials__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 60px) / 3);
  gap: 30px;
  align-items: stretch;
}

.ntl-testimonial {
  display: flex;
  min-width: 0;
  min-height: 0;
  margin: 0;
  flex-direction: column;
  scroll-snap-align: start;
}

.ntl-testimonial__stars {
  margin-bottom: 15px;
  color: #e8c400;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1px;
}

.ntl-testimonial p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.ntl-testimonial cite {
  margin-top: 20px;
  padding-top: 0;
  color: var(--ntl-heading);
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}

.ntl-testimonials__dots {
  display: flex;
  min-height: 32px;
  justify-content: center;
  gap: 2px;
  margin-top: 34px;
}

.ntl-testimonials__dots button {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ntl-testimonials__dots button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #8a8a8a;
  border-radius: 50%;
  background: transparent;
  content: "";
  transform: translate(-50%, -50%);
}

.ntl-testimonials__dots button[aria-current="true"] {
  background: transparent;
}

.ntl-testimonials__dots button[aria-current="true"]::before { border-color: var(--ntl-dark); background: var(--ntl-dark); }

.ntl-testimonials__dots button:focus-visible {
  outline: 2px solid var(--ntl-primary);
  outline-offset: 3px;
}

.ntl-testimonials__button {
  display: inline-flex;
  min-height: 42px;
  padding: 10px 22px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ntl-primary-on-light);
  color: var(--ntl-primary-on-light);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color var(--ntl-transition), background-color var(--ntl-transition);
}

.ntl-testimonials__button:hover,
.ntl-testimonials__button:focus-visible {
  color: #fff;
  background: var(--ntl-primary-on-light);
}

.ntl-service-page > .wp-block-post-content { margin: 0; }

.ntl-service-copy-section { padding: 42px 0 54px; }

.ntl-service-copy {
  display: grid;
  grid-template-columns: 469px minmax(0, 1fr);
  gap: 20px;
  width: min(calc(100% - 30px), 1000px);
  margin-inline: auto;
  align-items: center;
}

.ntl-service-copy__image { margin: 0; overflow: hidden; border-radius: 6px; }
.ntl-service-copy__image img { width: 100%; aspect-ratio: 800 / 532; object-fit: cover; }

.ntl-service-copy__text,
.ntl-service-details { color: var(--ntl-text); font-size: 16px; line-height: 1.6; }
.ntl-service-details { width: min(calc(100% - 30px), 820px); margin: 42px auto 0; }
.ntl-service-copy__text > *:first-child,
.ntl-service-details > *:first-child { margin-top: 0; }
.ntl-service-copy__text > *:last-child,
.ntl-service-details > *:last-child { margin-bottom: 0; }
.ntl-service-copy__text p,
.ntl-service-details p { margin: 0 0 12px; }
.ntl-service-copy__text ul,
.ntl-service-details ul,
.ntl-service-copy__text ol,
.ntl-service-details ol { padding-left: 21px; margin: 0 0 18px; }
.ntl-service-copy__text li,
.ntl-service-details li { padding-left: 4px; margin-bottom: 10px; }
.ntl-service-copy__text strong,
.ntl-service-details strong { color: #666; font-weight: 600; }
.ntl-service-copy__text h2,
.ntl-service-copy__text h3,
.ntl-service-details h2,
.ntl-service-details h3 { color: var(--ntl-heading); line-height: 1.3; }
.ntl-service-copy__text h2,
.ntl-service-details h2 { margin: 28px 0 16px; font-size: 26px; }
.ntl-service-copy__text h3,
.ntl-service-details h3 { margin: 24px 0 14px; font-size: 21px; }
.ntl-service-copy__text a,
.ntl-service-details a { color: var(--ntl-primary-on-light); text-decoration: underline; text-underline-offset: 2px; }
.ntl-service-copy__text img,
.ntl-service-details img { max-width: 100%; height: auto; }
.ntl-service-copy__text table,
.ntl-service-details table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }

.ntl-service-related { padding: 58px 0 70px; border-top: 1px solid rgba(0, 0, 0, .025); }
.ntl-service-related__viewport { overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ntl-service-related__viewport::-webkit-scrollbar { display: none; }
.ntl-service-related__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; align-items: start; }

.ntl-service-article-card { min-width: 0; margin: 0; overflow: hidden; border-radius: 7px; background: #ddd; box-shadow: 0 1px 5px rgba(0, 0, 0, .12); scroll-snap-align: start; transition: box-shadow .3s ease; }
.ntl-service-article-card > a { position: relative; display: block; aspect-ratio: 1300 / 820; overflow: hidden; }
.ntl-service-article-card__media,
.ntl-service-article-card__media img,
.ntl-service-article-card__placeholder { display: block; width: 100%; height: 100%; }
.ntl-service-article-card__media img { object-fit: cover; transform: scale(1); transition: transform .7s ease-out; }
.ntl-service-article-card__placeholder { background: #dedede; }
.ntl-service-article-card__shade { position: absolute; inset: 38% 0 0; background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .82)); }
.ntl-service-article-card .ntl-article-card__date { z-index: 2; }
.ntl-service-article-card h3 { position: absolute; right: 24px; bottom: 18px; left: 24px; z-index: 2; margin: 0; color: #fff; font-size: 21px; font-weight: 600; line-height: 1.35; text-align: center; }
.ntl-service-article-card:hover,
.ntl-service-article-card:focus-within { box-shadow: 0 6px 18px rgba(0, 0, 0, .23); }
.ntl-service-article-card:hover img,
.ntl-service-article-card:focus-within img { transform: scale(1.05); }
.ntl-service-article-card a:focus-visible { outline: 3px solid var(--ntl-primary); outline-offset: -3px; }

.ntl-service-related__dots { display: flex; min-height: 32px; justify-content: center; gap: 2px; margin-top: 38px; }
.ntl-service-related__dots button { position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ntl-service-related__dots button::before { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border: 1px solid #8a8a8a; border-radius: 50%; background: transparent; content: ""; transform: translate(-50%, -50%); }
.ntl-service-related__dots button[aria-current="true"]::before { border-color: var(--ntl-dark); background: var(--ntl-dark); }
.ntl-service-related__dots button:focus-visible { outline: 2px solid var(--ntl-primary); outline-offset: 3px; }

@media (max-width: 1024px) {
	.ntl-services-grid { grid-template-columns: 1fr; gap: 20px; }
	.ntl-service-copy { grid-template-columns: 1fr; gap: 28px; }
	.ntl-service-copy__image { width: min(100%, 520px); margin-inline: auto; }
}

@media (max-width: 900px) {
  .ntl-testimonials__track { grid-auto-columns: calc((100% - 30px) / 2); }
  .ntl-service-related__track { grid-auto-columns: calc((100% - 20px) / 2); }
}

@media (max-width: 1320px) {
  .ntl-testimonials__viewport { margin-inline: 54px; }
  .ntl-testimonials__arrow--previous { left: 4px; }
  .ntl-testimonials__arrow--next { right: 4px; }
}

@media (max-width: 700px) {
  .ntl-services-index { padding: 30px 0 0; }
  .ntl-service-card { height: auto; min-height: 0; padding: 26px; }
  .ntl-service-card h2 { font-size: 22px; }
  .ntl-testimonials { padding: 78px 0 58px; }
  .ntl-testimonials h2 { margin-bottom: 36px; }
  .ntl-testimonials__track { grid-auto-columns: 100%; }
  .ntl-testimonial { min-height: 0; }
  .ntl-testimonials__viewport { margin-inline: 46px; }
  .ntl-testimonials__arrow { width: 38px; height: 38px; }
  .ntl-testimonials__arrow--previous { left: 0; }
  .ntl-testimonials__arrow--next { right: 0; }
  .ntl-testimonials__dots { margin-top: 28px; }
  .ntl-service-copy-section { padding: 38px 0 46px; }
  .ntl-service-copy__text,
  .ntl-service-details { font-size: 15px; }
  .ntl-service-related { padding: 42px 0 52px; }
  .ntl-service-related__track { grid-auto-columns: 100%; }
  .ntl-service-related__dots { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ntl-service-related__viewport,
  .ntl-testimonials__viewport { scroll-behavior: auto; }
  .ntl-service-article-card,
  .ntl-service-article-card__media img,
  .ntl-service-card,
  .ntl-service-card h2,
  .ntl-service-card p,
  .ntl-service-card__mark img { transition: none; }
}
