/* /our-team only (Redstack, 2026-11-20; redesigned the same day in the homepage's direction).
   The page is built by migration/build-team-page.py and leans on the shared styles:
     /css/home-sections.css   the inner-page hero (.rvp-hero), the owner block (.rs-about), the
                              reviews strip (.team-reviews.is-light), the mosaic (.rs-why), the
                              buttons and the blue closing band
     /css/reviews-marquee.css the review cards
   This file holds what is the team page's own: the hero photo, the owner's stats and the team's
   cards. It loads after the site's main stylesheet. */

/* ------------------------------------------------------------ hero: this page's photo */
.team-hero .rvp-hero-frame { --rvp-photo: url("/images/688e810f9c92801291b089d3_dreamstime_xxl_10171080.webp"); --rvp-photo-pos: 50% 58%; min-height: 480px; }
.team-hero .rvp-lead { max-width: 36em; }

/* ------------------------------------------------------------ owner (the homepage's about block) */
body .team-owner .abt-right-home { margin: 0 0 28px 28px; position: relative; width: calc(44% - 28px); }
/* the brand-blue block behind the photo */
body .team-owner .abt-right-home::before {
  background-color: var(--relume-library-lite--primary); border-radius: var(--rs-radius); content: "";
  inset: 44px 72px -28px -28px; position: absolute;
}
.team-owner-photo { border-radius: var(--rs-radius); overflow: hidden; position: relative; }
body .team-owner .team-owner-photo .abt-img.home { display: block; object-fit: cover; object-position: 50% 22%; width: 100%; }
body .team-owner .paragraph-large-2 { font-size: var(--rs-fs-body); line-height: 1.7; margin: 0 0 16px; }
body .team-owner .primary-button-white-2 { margin-top: 28px; }

.team-stats { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; width: 100%; }
.team-stat { background-color: var(--lightblue); border-radius: var(--rs-radius); padding: 22px 20px; text-align: left; }
.team-stat-number {
  color: var(--relume-library-lite--primary); font-family: Inter Variablefont Opsz Wght, Arial, sans-serif;
  font-size: clamp(1.9rem, 2.7vw, 2.75rem); font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: -.035em; line-height: 1;
}
.team-stat-label { color: var(--rs-text); font-family: Inter Variablefont Opsz Wght, Arial, sans-serif; font-size: var(--rs-fs-meta); line-height: 1.4; margin-top: 8px; }

/* ------------------------------------------------------------ the team
   Everyone is visible. Large tall portraits: rounded photo, the name and role under it, no card
   box. Cleaners: their title on the left and their text on the right, then four portraits.
   Dispatchers: two portraits the same size, and a brand-blue panel beside them, exactly as
   tall as the photos, with their title, their text and the phone number as a button. */
.team-people { background-color: var(--lightblue); padding: 96px 0; }
.team-people .base-container { align-items: stretch; display: block; }
.team-h2 {
  color: var(--rs-ink); font-family: Inter Variablefont Opsz Wght, Arial, sans-serif;
  font-size: var(--rs-fs-h2); font-weight: 800; letter-spacing: -.025em; line-height: 1.02;
  margin: 0; text-align: left; text-transform: uppercase; text-wrap: balance;
}
.team-h3 {
  color: var(--rs-ink); font-family: Inter Variablefont Opsz Wght, Arial, sans-serif;
  font-size: clamp(1.5rem, 2.1vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0; text-align: left; text-transform: uppercase;
}
.team-p { color: var(--rs-text); font-family: Inter Variablefont Opsz Wght, Arial, sans-serif; font-size: var(--rs-fs-lead); line-height: 1.6; margin: 0; text-align: left; }

/* cleaners: the section heading on the left, their text on the right (it starts on the third
   portrait's edge), both resting on the same baseline above the portraits */
.team-group-head { align-items: end; display: grid; gap: 16px 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 40px; }
.team-group-head .team-h2 { grid-column: 1 / span 2; }
.team-group-head .team-p { grid-column: 3 / span 2; max-width: 34em; padding-bottom: .35em; }
.team-cards { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-card { margin: 0; text-align: left; }
/* a white frame around each portrait, so the plain-wall headshots stand off the tinted band
   (Christian, 2026-11-20) */
.team-card img {
  aspect-ratio: 3 / 4; background-color: #fff; border: 6px solid #fff; border-radius: var(--rs-radius); box-shadow: 0 10px 28px rgba(41, 49, 65, .08);
  box-sizing: border-box; display: block; height: auto; object-fit: cover; object-position: 50% 20%; width: 100%;
}
.team-card figcaption { color: var(--rs-text); font-family: Inter Variablefont Opsz Wght, Arial, sans-serif; font-size: var(--rs-fs-body); line-height: 1.4; padding: 16px 0 0; text-align: left; }
.team-card figcaption strong { color: var(--rs-ink); display: block; font-size: var(--rs-fs-card); font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; }

/* dispatchers: the same four columns; each card shares the group's two rows (photo, caption),
   so the panel can take the photo row alone and end level with the photos */
.team-group.is-dispatchers { column-gap: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; margin-top: 64px; }
.team-group.is-dispatchers .team-card { display: grid; grid-row: 1 / span 2; grid-template-rows: subgrid; }
.team-panel {
  background-color: var(--relume-library-lite--primary); border-radius: var(--rs-radius); display: flex; flex-direction: column; grid-column: 3 / span 2; grid-row: 1;
  justify-content: flex-end; padding: 40px;
}
.team-panel .team-h3 { color: #fff; margin-bottom: 14px; }
.team-panel .team-p { color: #fff; font-weight: 500; margin-bottom: 28px; max-width: 30em; }
.team-panel .team-p a { color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.team-call {
  align-items: center; align-self: flex-start; background-color: #fff; border-radius: var(--rs-radius); color: var(--relume-library-lite--primary); display: inline-flex;
  font-family: Inter Variablefont Opsz Wght, Arial, sans-serif; font-size: 1.25rem; font-weight: 800; gap: 12px; height: 64px; letter-spacing: .02em; line-height: 1;
  padding: 0 1.75rem 0 9px; text-decoration: none; transition: background-color .2s;
}
.team-call-icon {
  align-items: center; background-color: var(--relume-library-lite--primary); border-radius: 50%; color: #fff; display: flex; flex: none;
  font-family: "Fa Solid 900", Arial, sans-serif; font-size: 18px; font-weight: 400; height: 44px; justify-content: center; width: 44px;
}
.team-call:hover { background-color: var(--lightblue); color: var(--relume-library-lite--primary); }
.team-call:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ------------------------------------------------------------ laptop */
@media screen and (max-width: 1279px) {
  .team-panel { padding: 30px; }
  .team-panel .team-p { font-size: var(--rs-fs-body); margin-bottom: 22px; }
}
/* ------------------------------------------------------------ tablet */
@media screen and (max-width: 991px) {
  body .team-owner .abt-right-home { margin: 0 0 28px 28px; width: calc(100% - 28px); }
  .team-people { padding: 72px 40px; }
  .team-people .base-container { max-width: none; }
  .team-group-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 28px; }
  .team-group-head .team-h2, .team-group-head .team-p { grid-column: 1; }
  .team-group-head .team-p { max-width: 44em; padding-bottom: 0; }
  /* the panel may need more height than the photos: it takes both rows */
  .team-panel { grid-row: 1 / span 2; padding: 26px; }
  .team-call { font-size: 1.1rem; height: 56px; padding-right: 1.25rem; }
  .team-call-icon { font-size: 16px; height: 38px; width: 38px; }
}
/* ------------------------------------------------------------ phone */
@media screen and (max-width: 767px) {
  .team-hero .rvp-hero-frame { min-height: 0; }
  body .team-owner .abt-right-home { margin: 0 0 16px 16px; width: calc(100% - 16px); }
  body .team-owner .abt-right-home::before { inset: 32px 48px -16px -16px; }
  .team-stats { gap: 8px; }
  .team-stat { padding: 16px 12px; }
  .team-stat-number { font-size: 1.6rem; }
  .team-stat-label { font-size: 13px; }
  .team-people { padding: 56px 20px; }
  .team-people .base-container { margin-top: 0; }
  .team-group-head { margin-bottom: 24px; }
  .team-p { font-size: var(--rs-fs-body); }
  .team-cards { gap: 24px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-card figcaption { font-size: var(--rs-fs-meta); padding-top: 12px; }
  .team-card figcaption strong { font-size: var(--rs-fs-lead); }
  /* dispatchers: the two portraits, then the panel across the full width */
  .team-group.is-dispatchers { column-gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto; margin-top: 48px; }
  .team-panel { grid-column: 1 / -1; grid-row: 3; margin-top: 24px; padding: 26px 22px; }
  .team-call { align-self: stretch; }
}
@media screen and (max-width: 479px) {
  /* The site's .abt-section turns into a full-height row on phones; this one stays a block. */
  body .abt-section.team-owner { display: block; min-height: 0; }
}
