/*
  STEWARD CUSTOM DEVELOPMENT
  Page-specific visual treatments only. Shared containers, grids, spacing,
  typography, cards, case-study cards, navigation, footer, and contact CTA
  remain in the shared system files.
*/

.custom-development-page {
  min-width: 20rem;
  overflow-x: hidden;
}

/* ---------------------------------------------------------
   Hero
   Keep the shared hero height/containment. The Custom Development
   illustration is simply a background layer aligned to the right/bottom,
   so it cannot affect layout height or escape the framed section.
   --------------------------------------------------------- */

.custom-development-page .page-hero {
  background:
    url("https://staging.site-steward.com/wp-content/uploads/2026/07/Vector@2x.png")
      right bottom / auto 66% no-repeat,
    linear-gradient(rgb(23 54 58 / 0.18), rgb(23 54 58 / 0.18)),
    url("https://staging.site-steward.com/wp-content/uploads/2026/07/banner-particles-img.png")
      center / cover no-repeat;
}

.custom-development-page .page-hero .home-nav,
.custom-development-page .page-hero__copy {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------
   Primary service rows
   --------------------------------------------------------- */

.custom-development-services {
  --service-row-padding: clamp(1.5rem, 3.5vw, 3rem);
}

.custom-development-service-row {
  padding: var(--service-row-padding);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-container);
  background: var(--color-white);
  box-shadow: 0 1rem 2.5rem rgb(23 54 58 / 0.05);
}

.custom-development-service-layout {
  grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
}

.custom-development-service-title {
  color: var(--color-red);
}

.custom-development-list {
  margin: 0;
  padding-left: 1.25rem;
}

.custom-development-list li::marker {
  color: var(--color-gold);
}

/* Smaller proof cards in the 1/3 service column */
.custom-development-service-row .case-study-card {
  min-height: 0;
  margin: 0;
}

.custom-development-service-row .case-study-card__content {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.custom-development-service-row .case-study-card__content h4 {
  font-size: var(--font-size-h5);
}

/* Integration systems list: two simple content columns */
.custom-development-platform-columns {
  align-items: start;
}

.custom-development-platform-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-development-platform-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
}

.custom-development-platform-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-gold);
  content: "•";
}

/* ---------------------------------------------------------
   Track record
   Two-column treatment matching the original service-page composition:
   copy on the left, complete illustration in a zero-padding right column.
   --------------------------------------------------------- */

.custom-development-track-record {
  background: #f8f1e1;
}

.custom-development-track-record__panel {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-container);
  background: #f8f1e1;
}

.custom-development-track-record__copy {
  align-self: center;
  padding: clamp(1.75rem, 3.25vw, 3.5rem);
}

.custom-development-track-record__art {
  min-width: 0;
  margin: 0;
  padding: 0;
  display: grid;
  align-self: stretch;
  overflow: hidden;
}

.custom-development-track-record__art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: right center;
}

.custom-development-track-list {
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.custom-development-track-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.custom-development-track-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-teal);
  content: "✦";
}

/* ---------------------------------------------------------
   Risk comparison
   --------------------------------------------------------- */

.custom-development-risk-heading {
  align-items: center;
  text-align: center;
}

.custom-development-risk-heading > * {
  margin-inline: auto;
}

.custom-development-risk {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(13rem, 1fr) minmax(17rem, 1.25fr);
  margin-inline: 0;
}

.custom-development-risk__cell {
  min-width: 0;
  padding: clamp(1.25rem, 2.3vw, 2rem);
  border-bottom: 1px solid rgb(43 90 96 / 0.55);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.4;
}

.custom-development-risk__cell--blank {
  border-bottom: 1px solid rgb(43 90 96 / 0.55);
}

.custom-development-risk__header {
  justify-content: center;
  text-align: center;
}

.custom-development-risk__header h4 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.custom-development-risk__label {
  color: var(--color-teal);
  font-weight: var(--font-weight-semibold);
}

.custom-development-risk__basic {
  color: var(--color-red);
  font-weight: var(--font-weight-semibold);
}

.custom-development-risk__cell--steward {
  border-bottom-color: rgb(43 90 96 / 0.45);
  background: var(--color-gold);
  color: var(--color-teal);
  font-weight: var(--font-weight-bold);
}

.custom-development-risk__cell--steward-top {
  border-radius: var(--radius-container) var(--radius-container) 0 0;
}

.custom-development-risk__cell--steward-top h4 {
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

.custom-development-risk__cell--steward-bottom {
  border-bottom: 0;
  border-radius: 0 0 var(--radius-container) var(--radius-container);
}

.custom-development-risk__cell--last {
  border-bottom: 0;
}

/* ---------------------------------------------------------
   Responsive behavior
   --------------------------------------------------------- */

@media (max-width: 64rem) {
  .custom-development-page .page-hero {
    background-size: auto 60%, cover, cover;
  }


  .custom-development-service-layout {
    grid-template-columns: minmax(0, 3fr) minmax(15rem, 2fr);
  }

  .custom-development-track-record__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .custom-development-risk {
    grid-template-columns: minmax(9rem, 0.8fr) minmax(11rem, 1fr) minmax(14rem, 1.2fr);
  }
}

@media (max-width: 48rem) {
  .custom-development-page .page-hero {
    background-size: auto 48%, cover, cover;
    background-position: right bottom, center, center;
  }


  .custom-development-service-row {
    padding: clamp(1.25rem, 5vw, 1.75rem);
  }

  .custom-development-service-layout {
    grid-template-columns: 1fr;
  }

  .custom-development-track-record__panel {
    grid-template-columns: 1fr;
  }

  .custom-development-track-record__copy {
    padding: clamp(1.75rem, 7vw, 2.5rem);
  }

  .custom-development-track-record__art img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .custom-development-risk {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .custom-development-risk__cell {
    border-bottom: 0;
    font-size: 1rem;
  }

  .custom-development-risk__cell--blank {
    display: none;
  }

  .custom-development-risk__header {
    justify-content: flex-start;
    padding-bottom: 0.65rem;
    text-align: left;
  }

  .custom-development-risk__header:not(.custom-development-risk__cell--steward) {
    margin-top: 0.5rem;
  }

  .custom-development-risk__label {
    padding-top: 1.25rem;
    padding-bottom: 0.35rem;
    border-top: 1px solid rgb(43 90 96 / 0.28);
  }

  .custom-development-risk__basic {
    padding-top: 0.35rem;
    padding-bottom: 0.8rem;
  }

  .custom-development-risk__cell--steward {
    margin-bottom: 0.75rem;
    border-radius: var(--radius-small);
  }

  .custom-development-risk__cell--steward-top,
  .custom-development-risk__cell--steward-bottom {
    border-radius: var(--radius-small);
  }
}
