/* ============================================================
   WHY STEELHEAD
   Scope: .sh-why only
   Wider desktop layout to better match the Steelhead theme
   ============================================================ */

.sh-why {
  --sh-ink: #122f42;
  --sh-blue: #0f607c;
  --sh-blue-dark: #082b42;
  --sh-blue-deep: #061f32;
  --sh-accent: #72a943;
  --sh-muted: #5e7482;
  --sh-line: #d8e3e9;
  --sh-soft: #f4f8fa;
  --sh-white: #fff;
  color: var(--sh-ink);
  background: #fff;
}

.sh-why,
.sh-why * {
  box-sizing: border-box;
}

.sh-why img {
  display: block;
  max-width: 100%;
}

.sh-why a {
  color: inherit;
}

/* Wider site shell */
.sh-why-shell {
  width: min(1460px, calc(100% - 64px));
  margin-inline: auto;
}

/* ============================================================
   HERO
   ============================================================ */

.sh-why-hero {
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(105,177,211,.22), transparent 34%),
    linear-gradient(125deg, #061f32 0%, #0b3d58 55%, #0e5871 100%);
  color: #fff;
}

.sh-why-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(
      90deg,
      transparent 49.8%,
      rgba(255,255,255,.13) 50%,
      transparent 50.2%
    ),
    linear-gradient(
      transparent 49.8%,
      rgba(255,255,255,.10) 50%,
      transparent 50.2%
    );
  background-size: 80px 80px;
}

.sh-why-hero__inner {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, .65fr);
  gap: 90px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-block: 90px;
}

.sh-why-kicker {
  margin: 0 0 14px;
  font-size: .82rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #64b5d2;
}

.sh-why-hero h1 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2.7rem, 5.2vw, 5.2rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 760;
}

.sh-why-hero h1 span {
  color: #8bc6dc;
}

.sh-why-lead {
  margin: 28px 0 0;
  max-width: 900px;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
  line-height: 1.65;
  color: rgba(255,255,255,.84);
}

.sh-why-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.sh-why-btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.15;
  transition: .2s ease;
}

.sh-why-btn--primary {
  background: #fff;
  color: #0b3e59 !important;
}

.sh-why-btn--ghost {
  border: 1px solid rgba(255,255,255,.42);
  color: #fff !important;
}

.sh-why-btn:hover {
  transform: translateY(-1px);
}

.sh-why-hero__panel {
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(6px);
  padding: 34px;
}

.sh-why-eyebrow {
  margin: 0 0 18px;
  font-weight: 760;
  color: #a9d7e7;
}

.sh-why-capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sh-why-capability-list li {
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 1.04rem;
}

.sh-why-capability-list li:first-child {
  border-top: 0;
}

/* ============================================================
   GENERAL SECTIONS
   ============================================================ */

.sh-why-section {
  padding: 100px 0;
}

.sh-why-section--intro {
  padding-block: 92px;
}

.sh-why-grid {
  display: grid;
  gap: 90px;
}

.sh-why-grid--intro {
  grid-template-columns: .9fr 1.1fr;
  gap: 100px;
}

.sh-why-grid--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 90px;
}

.sh-why h2 {
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3.55rem);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.sh-why-prose {
  font-size: 1.08rem;
  line-height: 1.78;
  color: #425d6c;
}

.sh-why-prose p {
  margin: 0 0 18px;
}

.sh-why-prose h2 {
  color: var(--sh-ink);
  margin-bottom: 24px;
}

.sh-why-prose--wide {
  max-width: 720px;
}

.sh-why-callout {
  border-left: 4px solid var(--sh-blue);
  padding: 3px 0 3px 22px;
  color: var(--sh-ink);
}

.sh-why-heading {
  max-width: 940px;
  margin-bottom: 48px;
}

.sh-why-heading > p:last-child {
  margin: 18px 0 0;
  font-size: 1.08rem;
  line-height: 1.72;
  color: var(--sh-muted);
}

/* ============================================================
   PROCESS SECTION
   ============================================================ */

.sh-why-section--process {
  background: var(--sh-soft);
}

.sh-why-process-art,
.sh-why-loop-art {
  margin: 0;
}

.sh-why-process-art img,
.sh-why-loop-art img {
  width: 100%;
  height: auto;
}

/* Give wide graphics more visual presence */
.sh-why-process-art {
  width: 100%;
}

.sh-why-process-art img {
  max-height: 620px;
  object-fit: contain;
}

/* ============================================================
   MEDIA CARDS
   ============================================================ */

.sh-why-media-card {
  overflow: hidden;
  background: #eaf1f4;
  aspect-ratio: 4 / 3;
  width: 100%;
}

.sh-why-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   DARK QUALITY SECTION
   ============================================================ */

.sh-why-section--dark {
  background:
    radial-gradient(circle at 10% 15%, rgba(72,143,171,.18), transparent 35%),
    #071f30;
  color: #fff;
}

.sh-why-heading--light h2 {
  color: #fff;
}

.sh-why-heading--light > p:last-child {
  color: rgba(255,255,255,.72);
}

.sh-why-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1px;
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.11);
}

.sh-why-feature-grid article {
  min-height: 235px;
  padding: 34px;
  background: #0a2b40;
}

.sh-why-feature-grid article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0e5c78;
  color: #fff;
  font-weight: 800;
  font-size: .84rem;
}

.sh-why-feature-grid h3 {
  margin: 22px 0 10px;
  font-size: 1.28rem;
}

.sh-why-feature-grid p {
  margin: 0;
  color: rgba(255,255,255,.68);
  line-height: 1.65;
}

/* ============================================================
   TESTING / QUALIFICATION
   ============================================================ */

.sh-why-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.sh-why-photo-grid figure {
  margin: 0;
  background: #eff4f6;
}

.sh-why-photo-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.sh-why-photo-grid figcaption {
  padding: 16px 20px;
  font-weight: 720;
  color: #294a5d;
}

.sh-why-test-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
  margin-top: 30px;
}

.sh-why-test-grid div {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 15px 18px;
  background: var(--sh-soft);
  border-left: 3px solid var(--sh-blue);
  font-weight: 700;
}

.sh-why-note {
  max-width: 1050px;
  margin: 28px 0 0;
  color: #617986;
  line-height: 1.65;
  font-size: .95rem;
}

/* ============================================================
   PROTOTYPE TO PRODUCTION
   ============================================================ */

.sh-why-section--production {
  background: #f7fafb;
}

.sh-why-stage-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 26px 0;
}

.sh-why-stage-line span {
  padding: 9px 12px;
  background: #e6f0f4;
  color: #17485f;
  font-weight: 760;
  font-size: .9rem;
}

.sh-why-stage-line i {
  font-style: normal;
  color: #6b8795;
}

/* ============================================================
   APPLICATIONS
   ============================================================ */

.sh-why-application-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  border-top: 1px solid var(--sh-line);
  border-left: 1px solid var(--sh-line);
}

.sh-why-application-grid a {
  min-height: 210px;
  padding: 28px 24px;
  text-decoration: none;
  border-right: 1px solid var(--sh-line);
  border-bottom: 1px solid var(--sh-line);
  background: #fff;
  transition: .2s ease;
}

.sh-why-application-grid a:hover {
  background: #f3f8fa;
  transform: translateY(-2px);
}

.sh-why-application-grid strong {
  display: block;
  font-size: 1.16rem;
  margin-bottom: 12px;
}

.sh-why-application-grid span {
  color: var(--sh-muted);
  line-height: 1.55;
  font-size: .95rem;
}

/* ============================================================
   CUSTOMER PARTNERSHIP
   ============================================================ */

.sh-why-section--partnership {
  background: #f3f7f9;
}

.sh-why-loop-art {
  width: 100%;
}

.sh-why-loop-art img {
  max-height: 660px;
  object-fit: contain;
}

.sh-why-check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}

.sh-why-check-list li {
  position: relative;
  padding-left: 26px;
  color: #2c4b5c;
  font-weight: 650;
}

.sh-why-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sh-accent);
}

/* ============================================================
   CTA
   ============================================================ */

.sh-why-cta {
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(95,183,210,.26), transparent 32%),
    linear-gradient(120deg,#061f32,#0a4664);
  padding: 78px 0;
}

.sh-why-cta__inner {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) auto;
  gap: 70px;
  align-items: center;
}

.sh-why-cta h2 {
  max-width: 900px;
}

.sh-why-cta p:not(.sh-why-kicker) {
  margin: 17px 0 0;
  max-width: 900px;
  color: rgba(255,255,255,.76);
  font-size: 1.08rem;
}

.sh-why-btn--light {
  background: #fff;
  color: #0c4560 !important;
}

.sh-why-btn--outline-light {
  border: 1px solid rgba(255,255,255,.45);
  color: #fff !important;
}

/* ============================================================
   LARGE DESKTOP
   ============================================================ */

@media (min-width: 1500px) {
  .sh-why-shell {
    width: min(1460px, calc(100% - 80px));
  }

  .sh-why-hero__inner {
    gap: 105px;
  }

  .sh-why-grid--split {
    gap: 105px;
  }

  .sh-why-grid--intro {
    gap: 115px;
  }
}

/* ============================================================
   TABLET / SMALL DESKTOP
   ============================================================ */

@media (max-width: 1040px) {
  .sh-why-shell {
    width: min(100% - 40px, 1460px);
  }

  .sh-why-hero__inner {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .sh-why-hero__panel {
    max-width: 720px;
  }

  .sh-why-grid--intro {
    gap: 60px;
  }

  .sh-why-grid--split {
    gap: 60px;
  }

  .sh-why-feature-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .sh-why-test-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .sh-why-application-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .sh-why-application-grid a:last-child {
    grid-column: span 2;
  }

  .sh-why-cta__inner {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 760px) {
  .sh-why-shell {
    width: min(100% - 28px, 1460px);
  }

  .sh-why-section {
    padding: 68px 0;
  }

  .sh-why-section--intro {
    padding-block: 68px;
  }

  .sh-why-hero__inner {
    min-height: auto;
    padding-block: 70px;
  }

  .sh-why-grid--intro,
  .sh-why-grid--split {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .sh-why-grid--reverse-mobile .sh-why-prose {
    order: 1;
  }

  .sh-why-grid--reverse-mobile .sh-why-media-card {
    order: 2;
  }

  .sh-why-feature-grid {
    grid-template-columns: 1fr;
  }

  .sh-why-photo-grid {
    grid-template-columns: 1fr;
  }

  .sh-why-test-grid {
    grid-template-columns: 1fr;
  }

  .sh-why-application-grid {
    grid-template-columns: 1fr;
  }

  .sh-why-application-grid a:last-child {
    grid-column: auto;
  }

  .sh-why-check-list {
    grid-template-columns: 1fr;
  }

  .sh-why-actions {
    width: 100%;
  }

  .sh-why-btn {
    width: 100%;
  }

  .sh-why-prose--wide,
  .sh-why-heading {
    max-width: none;
  }
}