/* All service pages share this layout. Dimensions are measured from the content
   area beside the navigation. CI colors and the main inset come from the shell. */
.svc {
  --svc-inset: var(--pad);
  --svc-gap: clamp(.75rem, 1vw, 1.25rem);
  color: var(--wulf-black);
  background: var(--wulf-white);
}
.svc-inset { padding-inline: var(--svc-inset); }
.svc :is(h1, h2, h3, p, ul, ol) { margin: 0; }
.svc :is(ul, ol) { padding: 0; list-style: none; }
.svc :is(h1, h2, h3) { color: inherit; letter-spacing: -.035em; }
.svc :is(h1, h2, h3, p, a) { overflow-wrap: break-word; }
.svc h2 { font-size: clamp(1.4rem, 2vw, 2.16rem); line-height: 1.18; font-weight: 700; }

/* Hero / primary actions */
.svc-hero {
  --svc-hero-base: var(--wulf-charcoal);
  --svc-hero-text: var(--wulf-white);
  --svc-hero-rule: var(--wulf-silver);
  position: relative;
  isolation: isolate;
  color: var(--svc-hero-text);
  background: var(--svc-hero-base);
}
.svc-hero-light {
  --svc-hero-base: var(--wulf-paper);
  --svc-hero-text: var(--wulf-black);
  --svc-hero-rule: var(--wulf-graphite);
}
.svc-hero-photo {
  position: absolute;
  inset: 0 0 0 36%;
  z-index: -1;
  overflow: hidden;
}
.svc-hero-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 65% center; }
.svc-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--svc-hero-base) 0%, var(--svc-hero-base) 3%, transparent 70%);
}
.svc-hero-copy {
  min-height: clamp(18rem, 21.5vw, 27rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: clamp(.85rem, 1.35vw, 1.45rem) clamp(1.4rem, 2.2vw, 2.5rem);
}
.svc-breadcrumbs ol { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em .7em; font-size: clamp(.72rem, .83vw, .86rem); font-weight: 500; line-height: 1.5; }
.svc-breadcrumbs li + li::before { content: "/"; margin-inline-end: .7em; }
.svc-breadcrumbs a { color: inherit; text-decoration: none; }
.svc-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .2em; }
.svc-hero-text { width: min(58%, 49rem); margin-block: auto; padding-top: clamp(.65rem, 1.1vw, 1.2rem); }
.svc-hero-text::before {
  content: "";
  display: block;
  width: clamp(1.85rem, 2.05vw, 2.4rem);
  height: .17rem;
  background: var(--svc-hero-rule);
  margin-bottom: clamp(.6rem, .85vw, 1rem);
}
.svc-hero h1 { font-size: clamp(1.85rem, 2.65vw, 3rem); font-weight: 700; line-height: 1.1; margin-bottom: .4em; }
.svc-hero-text > p { font-size: clamp(.94rem, 1.08vw, 1.15rem); line-height: 1.48; max-width: 55ch; }
.svc-hero-text > .svc-description { font-size: clamp(.87rem, 1.01vw, 1.05rem); margin-top: .65em; }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: clamp(1rem, 1.3vw, 1.45rem); }
.svc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  max-width: 100%;
  min-height: 2.75rem;
  padding: .62em 1.45em;
  border: 1px solid var(--wulf-white);
  border-radius: .33rem;
  background: var(--wulf-white);
  color: var(--wulf-black);
  text-align: center;
  text-decoration: none;
  font-size: clamp(.8rem, .94vw, 1rem);
  font-weight: 600;
  line-height: 1.3;
}
.svc-hero-light .svc-button:not(.svc-button-outline) { color: var(--wulf-white); border-color: var(--wulf-charcoal); background-color: var(--wulf-charcoal); }
.svc .svc-button-outline { color: var(--svc-hero-text); border-color: currentColor; background: transparent; }
.svc-button .icon { flex: none; width: 1.16em; height: 1.16em; }
.svc-button:hover { text-decoration: underline; text-underline-offset: .18em; }

/* Services / equal-height cards */
.svc-offering {
  background: var(--wulf-white);
  padding-block: clamp(1.6rem, 2.2vw, 2.75rem);
}
.svc-eyebrow { text-transform: uppercase; color: var(--wulf-graphite); font-size: clamp(.7rem, .8vw, .85rem); font-weight: 600; line-height: 1.4; letter-spacing: .035em; }
.svc-offering h2 { margin-top: .12em; }
.svc-offering > .svc-description { color: var(--wulf-black); max-width: 92ch; margin-top: .5em; font-size: clamp(.925rem, 1.05vw, 1.11rem); line-height: 1.55; }
.svc .svc-grid {
  display: grid;
  grid-template-columns: repeat(var(--svc-columns), minmax(0, 1fr));
  gap: var(--svc-gap);
  margin-top: clamp(.8rem, 1.18vw, 1.4rem);
}
.svc-grid-3 { --svc-columns: 3; }
.svc-grid-4 { --svc-columns: 4; }
.svc-grid-5 { --svc-columns: 5; }
.svc-grid > li { min-width: 0; }
.svc-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: clamp(11rem, 14vw, 15.5rem);
  padding: clamp(.85rem, 1.35vw, 1.6rem);
  border: 1px solid transparent;
  border-radius: .5rem;
  background: var(--wulf-mist);
  color: var(--wulf-black);
  text-decoration: none;
}
a.svc-tile:is(:hover,:focus-visible) { border-color: var(--wulf-graphite); }
.svc-tile > .icon { width: clamp(1.8rem, 2.45vw, 2.8rem); height: clamp(1.8rem, 2.45vw, 2.8rem); stroke-width: 1.55; margin-bottom: .65rem; }
.svc-tile h3 { font-weight: 650; font-size: clamp(.99rem, 1.15vw, 1.25rem); line-height: 1.28; margin-bottom: .52em; hyphens: auto; }
.svc-tile p { color: var(--wulf-graphite); font-size: clamp(.87rem, .99vw, 1.045rem); line-height: 1.5; hyphens: auto; }
.svc-card-arrow { display: inline-flex; align-items: center; margin-top: auto; padding-top: .45rem; color: inherit; }
.svc-card-arrow .icon { display: block; width: 1.1rem; height: 1.1rem; }
a.svc-card-arrow { min-height: 2.25rem; min-width: 2.25rem; }
a.svc-card-arrow:is(:hover,:focus-visible) { color: var(--wulf-graphite); }

/* Closing contact band. The subtle motif is supplied locally and follows the CI. */
.svc-bottom {
  position: relative;
  isolation: isolate;
  color: var(--wulf-white);
  background: var(--wulf-charcoal);
}
.svc-bottom:not(.svc-bottom-contacts)::before {
  content: "";
  position: absolute;
  inset: 0 0 0 45%;
  z-index: -1;
  background: var(--wulf-section-image) right bottom / auto 100% no-repeat;
}
.svc-bottom-inner {
  min-height: clamp(7rem, 8.5vw, 10rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding-block: 1.35rem;
}
.svc-bottom h2 { font-size: clamp(1.18rem, 1.55vw, 1.8rem); letter-spacing: -.025em; }
.svc-bottom-inner > div > p { font-size: clamp(.87rem, .96vw, 1.03rem); line-height: 1.5; margin-top: .45em; }
.svc-bottom-contacts .svc-bottom-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
.svc-bottom address { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1.4rem; padding-inline-start: 1.1rem; border-inline-start: 1px solid var(--wulf-graphite); font-size: clamp(.73rem, .77vw, .84rem); font-style: normal; }
.svc-bottom address a { display: inline-flex; align-items: center; gap: .5em; color: inherit; text-decoration: none; }
.svc-bottom address a:hover { text-decoration: underline; }
.svc-bottom address .icon { width: 1.2em; height: 1.2em; }

/* If a site keeps an independently edited v1 benefit block, it still renders. */
.svc-reason { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; background: var(--wulf-paper); }
.svc-office { display: block; width: 100%; height: 100%; object-fit: cover; }
.svc-reason-copy { padding: 1.75rem var(--svc-inset); }
.svc-reason-copy > p { margin-top: .7rem; }
.svc .svc-strengths { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin-top: 1rem; }
.svc-strengths li { display: inline-flex; align-items: center; gap: .4rem; }
.svc-strengths .icon { width: 1em; height: 1em; }

@media (max-width: 74rem) {
  .svc-grid-5 { --svc-columns: 3; }
  .svc-bottom-contacts .svc-bottom-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .svc-bottom address { grid-column: 1 / -1; padding: 0; border: 0; }
}
@media (max-width: 65rem) {
  .svc-grid-4 { --svc-columns: 2; }
  .svc-hero-text { width: min(71%, 39rem); }
  .svc-hero-photo { left: 43%; }
}
@media (max-width: 50rem) {
  .svc-hero-copy { min-height: 18.5rem; }
  .svc-hero-photo { left: 42%; }
  .svc-hero-text { width: min(74%, 37rem); }
  .svc-grid-5 { --svc-columns: 2; }
}
@media (max-width: 36rem) {
  .svc-hero { display: flex; flex-direction: column; }
  .svc-hero-photo { position: relative; z-index: 0; inset: auto; width: 100%; height: clamp(7.5rem, 31vw, 10rem); order: 2; }
  .svc-hero-photo::after { background-image: linear-gradient(180deg, var(--svc-hero-base), transparent 29%); }
  .svc-hero-photo img { object-position: center 50%; }
  .svc-hero-copy { min-height: 0; padding-block: 1rem 1.2rem; }
  .svc-hero-text { width: 100%; padding-top: 1rem; }
  .svc-actions { gap: .6rem; }
  .svc-button { padding-inline: 1.1em; }
  .svc-grid-3 { --svc-columns: 2; }
  .svc-bottom .svc-bottom-inner { grid-template-columns: 1fr; justify-items: start; }
  .svc-bottom address { grid-column: auto; }
  .svc-reason { grid-template-columns: 1fr; }
  .svc-office { aspect-ratio: 2.7 / 1; height: auto; }
}
@media (max-width: 29rem) {
  .svc-grid { --svc-columns: 1; }
  .svc-tile { min-height: 0; }
}
