/* B2: the service pages and the product pages (pages/services.py, pages/products.py). Builds on services.css (the service hero, the stone
   band of cards, the accordion, the hub list, the other-pages cards) and inner.css (the inner hero, the button). Only what those do not
   cover is here: the photo band, the five-step row, the category hero with its slanted photo, the vendor band, the closing quote call.
   Units are the base build's: vw on the 2400 canvas above 1100px, min(Xvw, Ypx) at or below it. */

/* ---------------------------------------------------------------- the band: ONE photograph beside a big statement (services) or the big mark (products) */
.sp-band { padding: 8vw 0 4vw; }
.sp-band__in { display: grid; grid-template-columns: 46vw minmax(0, 1fr); column-gap: 6vw; align-items: center; padding: 0 5vw; }
.sp-band__pic { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.sp-band__pic img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.sp-band__txt { display: flex; flex-direction: column; gap: 2.2vw; min-width: 0; }
.sp-band__txt h2, .sp-band__txt p { margin: 0; }
.sp-band__txt .text.--xlarge { color: var(--quiet); max-width: 36vw; }
@media (max-width: 1100px) {
  .sp-band { padding: min(16vw, 63px) 0 min(6vw, 24px); }
  .sp-band__in { grid-template-columns: minmax(0, 1fr); row-gap: min(8vw, 32px); padding: 0 var(--pad-x); }
  .sp-band__txt { gap: min(5vw, 20px); }
  .sp-band__txt .text.--xlarge { max-width: none; }
}

/* ---------------------------------------------------------------- the category hero: the stacked title beside one photograph in a slanted panel */
.sp-hero { position: relative; padding: calc(var(--head-h) + 6vw) 0 4vw; }
.sp-hero__row { display: grid; grid-template-columns: minmax(0, 1fr) 46vw; column-gap: 4vw; align-items: end; padding-left: 5vw; }
.sp-hero__txt { display: flex; flex-direction: column; gap: 3vw; min-width: 0; padding-bottom: 1vw; }
.sp-hero__txt .display { padding-top: .12em; padding-bottom: .1em; }
.sp-hero__txt .text.--xlarge { margin: 0; max-width: 31vw; }
.sp-hero__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2.5vw; }
.sp-hero__pic { margin: 0; height: 40vw; overflow: hidden; background: var(--stone); clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%); }
.sp-hero__pic img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
@media (max-width: 1100px) {
  .sp-hero { padding: calc(var(--head-h) + min(10vw, 40px)) 0 min(6vw, 24px); }
  .sp-hero__row { grid-template-columns: minmax(0, 1fr); row-gap: min(10vw, 40px); padding: 0; }
  .sp-hero__txt { gap: min(6vw, 24px); padding: 0 var(--pad-x); }
  .sp-hero__txt .text.--xlarge { max-width: min(86vw, 340px); padding-left: 5vw; }
  .sp-hero__links { gap: min(6vw, 24px); padding-left: 5vw; }
  .sp-hero__pic { height: min(66vw, 260px); clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
}

/* ---------------------------------------------------------------- the vendor band: partner cards that link to /partners/<slug>/ */
.sp-vend { padding: 8vw 5vw 6vw; }
.sp-vend__in { display: flex; flex-direction: column; gap: 3vw; }
.sp-vend__head { display: flex; flex-direction: column; gap: 1.2vw; }
.sp-vend__head h2 { margin: 0; }
.sp-vend__grid { display: flex; flex-wrap: wrap; gap: .833vw; }
.sp-vend__link { margin-top: .5vw; }
.sp-vend--few .sp-vend__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 6vw; row-gap: 2vw; align-items: end; }
.sp-vend--few .sp-vend__head { grid-column: 1; grid-row: 1; }
.sp-vend--few .sp-vend__grid { grid-column: 2; grid-row: 1; flex-wrap: nowrap; }
.sp-vend--few .sp-vend__link { grid-column: 2; grid-row: 2; margin-top: 0; justify-self: start; }
@media (max-width: 1100px) {
  .sp-vend--few .sp-vend__in { display: flex; flex-direction: column; }
  .sp-vend--few .sp-vend__grid { flex-wrap: wrap; }
  .sp-vend { padding: min(16vw, 63px) var(--pad-x) min(10vw, 40px); }
  .sp-vend__in { gap: min(8vw, 32px); }
  .sp-vend__head { gap: min(4vw, 16px); }
  .sp-vend__grid { gap: min(2vw, 8px); }
  .sp-vend__link { margin-top: 0; }
}

/* ---------------------------------------------------------------- the closing quote call (a statement, the button, one line of contact) */
.sp-cta { padding-bottom: 8vw; }
.sp-cta .statement__box { display: flex; flex-direction: column; align-items: center; gap: 2.2vw; }
.sp-cta .btn { align-self: center; }
.sp-cta__p { margin: 0; color: var(--quiet); }
@media (max-width: 1100px) {
  .sp-cta { padding-bottom: min(16vw, 63px); }
  .sp-cta .statement__box { gap: min(6vw, 24px); }
}

/* the hub row's "Explore" is plain underlined text (no sliding underline element: the whole row is the link) */
.hrow__go { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(11, 35, 64, .45); transition: text-decoration-color .4s var(--p2-out); }
.hrow:hover .hrow__go, .hrow:focus-visible .hrow__go { text-decoration-color: var(--navy); }

/* the service hero's mark sits over a real photograph here, so it is lighter than the home's pinned layers (a face under it stays a face) */
.shero__mark { color: rgba(11, 35, 64, .17); }
.sp-hero { padding-bottom: 5vw; }
.sp-hero + .sp-band { padding-top: 3vw; }
@media (max-width: 1100px) { .sp-hero { padding-bottom: min(10vw, 40px); } .sp-hero + .sp-band { padding-top: min(10vw, 40px); } }

/* ---------------------------------------------------------------- the stone band of cards, when a page has two or five cards (services.css lays out three, four or six) */
.stab--plain .stab__rows[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stab--plain .stab__rows[data-n="5"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stab--plain .stab__rows[data-n="5"] .stab__row { grid-column: span 2; }
.stab--plain .stab__rows[data-n="5"] .stab__row:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1100px) {
  .stab--plain .stab__rows[data-n="2"], .stab--plain .stab__rows[data-n="5"] { grid-template-columns: minmax(0, 1fr); }
  .stab--plain .stab__rows[data-n="5"] .stab__row, .stab--plain .stab__rows[data-n="5"] .stab__row:nth-child(n+4) { grid-column: auto; }
}
.stab--plain .stab__n { color: var(--quiet); line-height: 1; margin: 0; }
/* a card that links on (the security page's privacy filters): the link sits on its own line under the text */
.stab__go { display: block; margin-top: 1.2vw; }
@media (max-width: 1100px) { .stab__go { margin-top: min(4vw, 16px); } }
/* a band with a lead and no cards (server build, virtual infrastructure): one closing line under the title, no empty card grid */
.stab--bare { padding-bottom: 8vw; }
.stab--bare .stab__top { grid-template-rows: auto 1fr; }
.stab--bare .stab__lead { grid-row: 1 / span 2; }
.stab--bare .stab__title { grid-row: 1; grid-column: 2; }
.stab__after { grid-row: 2; grid-column: 2; margin: 2.4vw 0 0; color: var(--quiet); max-width: 40vw; }
@media (max-width: 1100px) {
  .stab--bare { padding-bottom: min(16vw, 63px); }
  .stab--bare .stab__top { grid-template-rows: none; }
  .stab--bare .stab__lead, .stab--bare .stab__title, .stab__after { grid-row: auto; grid-column: auto; }
  .stab__after { margin: 0; max-width: none; }
}
/* the band sits right under the photograph block: its reveal no longer waits behind a pale gap */
.sp-band + .stab { padding-top: 7vw; }
@media (max-width: 1100px) { .sp-band + .stab { padding-top: min(24vw, 95px); } }

/* ---------------------------------------------------------------- the five-step row (their process, one stone card per step) */
.sp-proc { padding: 8vw 5vw 2vw; }
.sp-proc__in { display: flex; flex-direction: column; gap: 3vw; }
.sp-proc__head { display: flex; flex-direction: column; gap: 1.2vw; }
.sp-proc__head h2 { margin: 0; }
.sp-proc__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .833vw; align-items: stretch; }
.sp-proc__list[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }      /* network cabling: Contact, Proposal, Order only */
.sp-proc__step { display: flex; flex-direction: column; gap: 1vw; padding: 2.083vw; background: var(--stone); border-radius: var(--radius); }
.sp-proc__n { color: var(--navy); line-height: .9; margin-bottom: .6vw; }
.sp-proc__name, .sp-proc__text { margin: 0; overflow-wrap: break-word; }
.sp-proc__text { color: var(--quiet); }
@media (max-width: 1100px) {
  .sp-proc { padding: min(16vw, 63px) var(--pad-x) min(4vw, 16px); }
  .sp-proc__in { gap: min(8vw, 32px); }
  .sp-proc__head { gap: min(4vw, 16px); }
  .sp-proc__list, .sp-proc__list[data-n="3"] { grid-template-columns: minmax(0, 1fr); gap: min(3.4vw, 13px); }
  .sp-proc__step { display: grid; grid-template-columns: min(12vw, 48px) minmax(0, 1fr); column-gap: min(3vw, 12px); row-gap: min(1.5vw, 6px); padding: min(6vw, 24px); }
  .sp-proc__n { grid-row: 1 / span 2; margin-bottom: 0; }
  .sp-proc__step > :not(.sp-proc__n) { grid-column: 2; }
}

/* ---------------------------------------------------------------- the other pages: four cards when the group has five pages */
.sp-other[data-n="4"] .sother__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sp-other[data-n="4"] .sother__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
