/* ==========================================================================
   Staff Augmentation page (Figma "Web Agency Design-Staff Augmentation",
   prototype page 10). Header, footer, awards, blog and the "I need a…"
   picker come from style.css.
   ========================================================================== */

.sa-wrap { width: 1332px; max-width: 100%; margin: 0 auto; }

.sa-head { text-align: center; }
.sa-heading {
  max-width: 820px;
  margin: 0 auto;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 42px;
  line-height: 52px;
  color: var(--color-heading);
}
.sa-heading--sm { font-size: 36px; line-height: 44px; }
.sa-heading--white { color: var(--color-white); }
.sa-sub {
  max-width: 835px;
  margin: 15px auto 0;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  line-height: 30px;
  color: var(--color-body);
}
.sa-sub--white { color: rgba(255, 255, 255, .8); }
.sa-sub--wide { max-width: 900px; }
.sa-text {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 24.4px;
  color: var(--color-body);
}

/* ---------- Banner ---------- */
/* Photo comes from the page (style="background-image:…"), dark fade on the left as in the design */
.sa-hero {
  --banner-h: 1075px;
  --banner-pb: 12px;
  --banner-x: 4px;
  --banner-shade: linear-gradient(90deg, rgba(4, 8, 22, .85) 0%, rgba(4, 8, 22, .6) 35%, rgba(4, 8, 22, .15) 65%, rgba(4, 8, 22, 0) 100%);
}
.sa-hero__title {
  width: 835px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 62px;
  line-height: 78px;
  color: var(--color-white);
}
.sa-hero__text {
  width: 620px;
  margin-top: 50px;
  padding-left: 2px;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  line-height: 30px;
  color: var(--color-white);
}
.sa-hero__cta { margin-top: 56px; }

.sa-stats { display: flex; gap: 24px; width: 646px; margin-top: 131px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .12); }
.sa-stat {
  display: flex;
  flex-direction: column;
  width: 113.6px;
  padding-left: 12px;
  border-left: 2px solid #2BB4F0;
}
.sa-stat strong {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 26px;
  line-height: 36px;
  color: var(--color-white);
}
.sa-stat span {
  font-family: var(--font-dm-sans);
  font-size: 12px;
  line-height: 16px;
  color: rgba(255, 255, 255, .8);
}

/* ---------- Ratings & recognition ---------- */
.sa-trust { padding: 32px 0 33px; border-bottom: 1px solid #EEF0F4; background: var(--color-white); text-align: center; }
.sa-trust__title {
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5B6474;
}
.sa-trust__list { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.sa-trust__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 177px;
  height: 68px;
  border: 1px solid #E5E8EF;
  border-radius: 6px;
  background: #F8FAFC;
}
.sa-trust__card--tall { height: 86px; }
.sa-trust__card--tall .sa-trust__label { max-width: 110px; }
.sa-trust__name, .sa-trust__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #0F172A;
}
.sa-trust__score--blue { color: #2563EB; }
.sa-trust__star { width: 15px; height: 15px; color: #DC2626; }
.sa-trust__label {
  max-width: 152px;
  font-family: var(--font-dm-sans);
  font-size: 11px;
  line-height: 16px;
  color: #5B6474;
}

/* ---------- Introduction ---------- */
.sa-intro { padding: var(--section-space) 0; background: var(--color-soft-bg); }
.sa-intro__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 51px; }
.sa-intro__body { flex: 0 0 611px; }
.sa-intro__body .sa-text { margin-top: 15px; }
.sa-intro__body .sa-heading { max-width: none; margin-bottom: 7px; }
.sa-intro__img { flex: 0 0 670px; width: 670px; height: 389px; object-fit: cover; border-radius: 16px; }

/* ---------- Benefits ---------- */
.sa-benefits { padding: var(--section-space) 0; background: var(--color-white); }
.sa-benefits .sa-heading { max-width: 800px; }
.sa-benefits__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: var(--head-gap); }
.sa-benefit {
  padding: 32px 33px 33px;
  border: 1px solid #E8EAF6;
  border-radius: 16px;
  background: #F8F9FE;
}
.sa-benefit__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid #E3E8F5;
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-primary);
}
.sa-benefit__title {
  margin-top: 24px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 22px;
  line-height: 30px;
  color: var(--color-heading);
}
.sa-benefit__text {
  margin-top: 15px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-body);
}

/* ---------- Team selection ---------- */
.sa-team { padding: var(--section-space) 0; background: #020A22; }
.sa-picker {
  width: 896px;
  max-width: 100%;
  margin: var(--head-gap) auto 0;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 16px;
  background: #0A1430;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.sa-picker__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.sa-picker__group--method { margin-top: 32px; }
.sa-picker__label {
  float: left;                         /* keeps the legend inside the normal flow */
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-white);
}
.sa-roles, .sa-methods { clear: both; display: grid; padding-top: 16px; }
.sa-roles { grid-template-columns: repeat(4, 1fr); gap: 14px 2px; }
.sa-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  background: #050D24;
  color: var(--color-white);
  font-family: var(--font-dm-sans);
  font-size: 13px;
  line-height: 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.sa-role:hover { border-color: rgba(255, 255, 255, .35); }
.sa-role svg { flex: 0 0 15px; }
.sa-role__check { display: none; color: #3B9BFF; }
.sa-role[aria-pressed="true"] { border-color: rgba(59, 155, 255, .55); background: #071634; }
.sa-role[aria-pressed="true"] .sa-role__plus { display: none; }
.sa-role[aria-pressed="true"] .sa-role__check { display: block; }

.sa-methods { grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sa-method {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 55px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 4px;
  background: #050D24;
  color: var(--color-white);
  font-family: var(--font-dm-sans);
  font-size: 14px;
  line-height: 25px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.sa-method input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 13px;
  width: 13px;
  height: 13px;
  margin: 0;
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
}
.sa-method input:checked { background: #2EA8E6; box-shadow: inset 0 0 0 3px #CFEFFF; }
.sa-method input:focus-visible { outline: 2px solid #2EA8E6; outline-offset: 2px; }
.sa-method:has(input:checked) { border-color: #2EA8E6; }

.sa-picker__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.sa-picker__summary {
  font-family: var(--font-dm-sans);
  font-size: 13px;
  line-height: 20px;
  color: rgba(255, 255, 255, .7);
}
.sa-picker__count { font-weight: 600; color: #3B9BFF; }
.sa-picker__summary.is-error, .sa-picker__summary.is-error .sa-picker__count { color: #FF8A8A; }
.sa-picker__summary.is-done { color: #7FD8A8; }
.sa-picker__submit {
  flex: 0 0 156px;
  height: 48px;
  border: 0;
  border-radius: 6px;
  background: #0B6FE0;
  color: var(--color-white);
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 111, 224, .35);
  transition: background-color .2s ease;
}
.sa-picker__submit:hover { background: #075CBE; }

/* ---------- Specialist expertise ---------- */
.sa-specs { padding: var(--section-space) 0; background: var(--color-soft-bg); }
.sa-specs .sa-heading { max-width: 720px; }
.sa-specs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 24px; margin-top: var(--head-gap); }
.sa-spec {
  padding: 24px;
  border: 1px solid #E5E9F2;
  border-radius: 12px;
  background: var(--color-white);
}
.sa-spec__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #EEF4FF;
  color: var(--color-primary);
}
.sa-spec__title {
  margin-top: 20px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 20px;
  line-height: 26px;
  color: var(--color-heading);
}
.sa-spec__text {
  margin-top: 8px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 30px;
  color: var(--color-body);
}
.sa-spec__tags {
  margin-top: 8px;
  font-family: var(--font-dm-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-primary);
}

/* ---------- Engagement models table ---------- */
.sa-compare { padding: var(--section-space) 0; background: var(--color-white); }
.sa-compare .sa-heading { max-width: 760px; }
.sa-table-wrap {
  margin-top: var(--head-gap);
  overflow-x: auto;
  border: 1px solid #E5E8EF;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .05);
}
.sa-table { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; }
.sa-table col:nth-child(1) { width: 540px; }
.sa-table thead tr { height: 100px; background: #F8FAFC; }
.sa-table thead th {
  padding: 20px 24px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  line-height: 30px;
  color: var(--color-heading);
  text-align: center;
}
.sa-table thead th:first-child { width: 40.6%; text-align: left; }
.sa-table thead th:nth-child(2) { width: 23%; }
.sa-table thead th:nth-child(3) { width: 17.3%; }
.sa-table thead th.is-ours { color: var(--color-primary); }
.sa-table .is-ours { background: #F5F9FF; border-left: 1px solid #EEF0F4; border-right: 1px solid #EEF0F4; }
.sa-table tbody tr { height: 64px; border-top: 1px solid #EEF0F4; }
.sa-table tbody th {
  padding: 0 24px;
  font-family: var(--font-dm-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25px;
  color: #3E4555;
  text-align: left;
}
.sa-table td { text-align: center; vertical-align: middle; }
.sa-table__yes { display: inline-block; vertical-align: middle; color: var(--color-primary); }
.sa-table__no { display: inline-block; width: 15px; height: 1.2px; vertical-align: middle; background: #9AA1AE; }

/* ---------- Media coverage ---------- */
.sa-media { padding: var(--section-space) 0; background: var(--color-soft-bg); }
.sa-media__inner { width: 1280px; max-width: 100%; margin: 0 auto; }
.sa-media__eyebrow {
  font-family: var(--font-dm-sans);
  font-weight: 600;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--color-primary);
}
.sa-media__title {
  margin-top: 18px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 36px;
  line-height: 44px;
  color: #0A1931;
}
.sa-media__text {
  max-width: 760px;
  margin-top: 14px;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  line-height: 20px;
  color: #5B6474;
}
.sa-media__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 24px; }
.sa-media__card {
  display: grid;
  place-items: center;
  height: 96px;
  padding: 0 24px;
  border-radius: 8px;
  background: #F9FAFC;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
}
.sa-media__card img { max-width: 100%; max-height: 36px; filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease; }
.sa-media__card:hover img { filter: none; opacity: 1; }

/* ---------- Homepage sections used here ---------- */
.sa-page .awards { padding-top: var(--section-space); }

/* 85px of visible space: take off the empty space above the first line of text */
@media (min-width: 1200px) {
  .sa-benefits, .sa-specs, .sa-compare { padding-top: calc(var(--section-space) - 11px); }
  .sa-team                             { padding-top: calc(var(--section-space) - 10px); }
  .sa-media                            { padding-top: calc(var(--section-space) - 4px); }
  .sa-page .blog-section               { padding-top: calc(var(--section-space) - 5px); }
  .sa-page .cta-needs                  { padding-top: calc(var(--section-space) - 4px); }
}

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 1199.98px) {
  .sa-wrap, .sa-media__inner { padding: 0 16px; }
  .sa-hero__title { width: auto; font-size: 40px; line-height: 50px; }
  .sa-hero__text { width: auto; max-width: 728px; margin-top: 24px; padding-left: 0; font-size: 17px; line-height: 28px; }
  .sa-hero__cta { margin-top: 32px; }
  .sa-stats { width: auto; flex-wrap: wrap; gap: 20px; margin-top: 48px; }
  .sa-trust { padding-left: 16px; padding-right: 16px; }
  .sa-trust__list { flex-wrap: wrap; gap: 12px; }
  .sa-trust__card, .sa-trust__card--tall { width: calc(50% - 6px); max-width: 177px; height: 76px; }
  .sa-heading { font-size: 30px; line-height: 38px; }
  .sa-heading--sm { font-size: 28px; line-height: 36px; }
  .sa-sub { font-size: 16px; line-height: 26px; }
  .sa-intro__inner { flex-direction: column; align-items: stretch; gap: 32px; }
  .sa-intro__body { flex: none; }
  .sa-intro__img { flex: none; width: 100%; height: auto; aspect-ratio: 670 / 389; }
  .sa-benefits__grid, .sa-specs__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .sa-picker { margin-top: 40px; padding: 24px 16px; }
  .sa-roles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sa-methods { grid-template-columns: 1fr; gap: 8px; }
  .sa-picker__foot { flex-direction: column; align-items: stretch; }
  .sa-picker__submit { flex: none; }
  .sa-table-wrap { margin-top: 40px; }
  .sa-media__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
  .sa-benefits__grid, .sa-specs__grid { grid-template-columns: repeat(2, 1fr); }
  .sa-media__list { grid-template-columns: repeat(3, 1fr); }
  .sa-roles { grid-template-columns: repeat(4, 1fr); }
  .sa-methods { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Review updates (developer feedback)
   ========================================================================== */
/* "Trusted by top brands": every box the same size */
.sa-trust__list { align-items: stretch; }
.sa-trust__card, .sa-trust__card--tall { height: 76px; padding: 0 12px; }
.sa-trust__card--tall .sa-trust__label { max-width: 152px; }

/* Last sections use the same 1332px width and left edge as the rest of this page */
@media (min-width: 1200px) {
  .sa-media__inner { width: 1332px; }
  .sa-page .awards__card { max-width: 1332px; }
  .sa-page .awards__intro { flex: 0 0 520px; }
  .sa-page .blog-section__inner { width: 1332px; max-width: 1332px; padding-left: 0; }
  .sa-page .blog-section .section-head { justify-content: space-between; }
  .sa-page .blog-section__title-group { width: 760px; }
  .sa-page .blog-section__intro-group { flex: 0 0 520px; margin-left: 0; }
  .sa-page .blog-card__top { height: auto; min-height: 91px; }
  .sa-page .blog-cards { gap: 30px; }
  .sa-page .blog-card { flex: 1 1 0; min-width: 0; }
}

/* Tablets and phones: cards keep the same 24px inside as cards elsewhere on the site */
@media (max-width: 1199.98px) {
  .sa-benefit { padding-left: 24px; padding-right: 24px; }
}

/* Banner below 1200px: text stays clear of the people in the photo on tablets;
   on phones the five numbers sit in an even 3 + 2 grid across the full width */
@media (max-width: 1199.98px) {
  .sa-hero__title, .sa-hero__text { max-width: 560px; }
}
@media (max-width: 767.98px) {
  .sa-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; }
  .sa-stat { width: auto; min-width: 0; }
}

/* Banner spacing on laptops and desktops: same gaps as the industry page banners
   (text 30px under the heading, button 44px under the text, figures 56px under the button) */
@media (min-width: 1200px) {
  .sa-hero__text { margin-top: 30px; }
  .sa-hero__cta { margin-top: 44px; }
  .sa-stats { margin-top: 56px; }
}
