/* Photo-led service navigation: existing archive images, no symbolic arrows. */
.service-navigation.service-switch { position: relative; padding-block: clamp(32px, 4vw, 56px); background: #0c0e0f; }
.service-navigation .service-switch-label { margin: 0 0 20px; font-weight: 850; text-transform: uppercase; color: #b1b6b8; font-size: .75rem; letter-spacing: .12em; }
.service-navigation .service-switch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
}
.service-navigation .service-switch-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  overflow: hidden;
  background: #121618;
  color: #b8bec1;
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
  transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease;
}
.service-navigation .service-switch-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  filter: saturate(.85);
  transition: transform .35s ease, filter .35s ease;
}
.service-navigation .service-switch-card > .service-switch-copy {
  display: block;
  position: relative;
  padding: 19px 20px 21px;
  background: #121618;
}
.service-navigation .service-switch-card b { display: block; color: #fff; font-size: 1.05rem; line-height: 1.4; font-weight: 750; }
.service-navigation .service-switch-card small { display: block; margin-top: 6px; color: #b8bec1; font-size: .875rem; line-height: 1.5; }
.service-navigation .service-switch-card > .service-switch-state {
  display: none;
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  margin: 0;
  padding: 5px 10px;
  border-radius: 5px;
  background: #c73025;
  color: #fff;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.4;
}
.service-navigation .service-switch-card::before,
.service-navigation .service-switch-card::after { content: none; display: none; }
.service-navigation .service-switch-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-color: #ef4638;
  box-shadow: 0 0 24px rgba(239,70,56,.18);
}
.service-navigation .service-switch-card[aria-current="page"] {
  background: #121618;
  color: #fff;
  border-color: rgba(239,70,56,.8);
  box-shadow: 0 0 0 1px rgba(239,70,56,.1), 0 8px 28px rgba(239,70,56,.12);
}
.service-navigation .service-switch-card[aria-current="page"] > .service-switch-state { display: block; }
.service-navigation .service-switch-card[aria-current="page"] > img { filter: saturate(1); }
@media (hover: hover) and (pointer: fine) {
  .service-navigation .service-switch-card:hover {
    background: #121618;
    border-color: #ff7568;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,.32), 0 0 22px rgba(239,70,56,.2);
  }
  .service-navigation .service-switch-card:hover > img { transform: none; filter: saturate(1.08); }
  .service-navigation .service-switch-card:active { transform: translateY(-1px); }
}
@media (max-width: 1150px) {
  .service-navigation .service-switch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 620px) {
  .service-navigation .service-switch-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-navigation .service-switch-card { grid-template-columns: 104px minmax(0,1fr); grid-template-rows: auto; min-height: 110px; border-radius: 12px; }
  .service-navigation .service-switch-card > img { position: absolute; inset: 0 auto 0 0; width: 104px; }
  .service-navigation .service-switch-card > .service-switch-copy { grid-column: 2; padding: 20px 15px; align-content: center; }
  .service-navigation .service-switch-card b { font-size: 1rem; overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual; }
  .service-navigation .service-switch-card > .service-switch-state { top: 8px; left: 8px; padding: 4px 7px; }

  /* At an effective 200% root size, place the existing image above the copy.
     This preserves the enlarged text and avoids arbitrary mid-word breaks. */
  html.pv-root-font-200 .service-navigation .service-switch-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(132px, 42vw) auto;
    min-height: 0;
  }
  html.pv-root-font-200 .service-navigation .service-switch-card > img {
    position: static;
    width: 100%;
    height: 100%;
  }
  html.pv-root-font-200 .service-navigation .service-switch-card > .service-switch-copy {
    grid-column: 1;
    grid-row: 2;
    padding: 18px 15px 20px;
  }
}
@media (max-width: 620px) and (hover: hover) and (pointer: fine) {
  .service-navigation .service-switch-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .service-navigation .service-switch-card > img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .service-navigation .service-switch-card > .service-switch-copy {
    grid-column: 1;
    grid-row: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .service-navigation .service-switch-card, .service-navigation .service-switch-card > img { transition: none; }
  .service-navigation .service-switch-card:hover,
  .service-navigation .service-switch-card:active,
  .service-navigation .service-switch-card:hover > img { transform: none; }
}
