/* =========================================================
   ITMAGIX — SERVICES MASTER PAGE
   /services/
   Extends base.css + inner.css.
   ========================================================= */

/* ---------------------------------------------------------
   MASTER HERO
   --------------------------------------------------------- */

.services-master-hero .row {
  align-items: center;
}

.services-master-hero-model {
  position: relative;
  width: 100%;
  padding: 1.7rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-left: 3px solid #B31942;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow: 0 22px 55px rgba(3,17,31,.16);
  backdrop-filter: blur(12px);
}

.services-master-hero-model::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .6;
  background:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to left, #000, transparent 82%);
}

.services-master-model-kicker,
.services-master-hero-model > strong,
.services-master-hero-model > p,
.services-master-model-list {
  position: relative;
  z-index: 1;
}

.services-master-model-kicker {
  display: block;
  margin-bottom: .6rem;
  color: #9FCDF3;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .15em;
}

.services-master-hero-model > strong {
  display: block;
  max-width: 390px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.services-master-hero-model > p {
  max-width: 420px;
  margin: .7rem 0 1.25rem;
  color: #C4D2DE;
  font-size: .84rem;
  line-height: 1.65;
}

.services-master-model-list {
  display: grid;
  gap: .45rem;
}

.services-master-model-list a {
  display: grid;
  grid-template-columns: 32px 94px 1fr;
  gap: .7rem;
  align-items: center;
  padding: .72rem .78rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.services-master-model-list a:hover,
.services-master-model-list a:focus {
  transform: translateX(3px);
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.17);
}

.services-master-model-list a > span {
  color: #8DBFE8;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.services-master-model-list a > strong {
  color: #fff;
  font-size: .82rem;
  letter-spacing: -.01em;
}

.services-master-model-list a > small {
  color: #B7C6D2;
  font-size: .67rem;
  line-height: 1.3;
}

/* ---------------------------------------------------------
   SHARED MASTER SECTION HEAD
   --------------------------------------------------------- */

.services-master-section-head {
  margin-bottom: 2.8rem;
}

/* ---------------------------------------------------------
   SERVICE AREAS
   --------------------------------------------------------- */

.services-master-areas {
  position: relative;
  background:
    linear-gradient(180deg, #F7F9FB 0%, #F4F7F9 100%);
  border-bottom: 1px solid #E6ECEF;
}

.services-master-area-grid {
  display: grid;
  gap: .85rem;
}

.services-master-area-card {
  --service-accent: #0A3161;
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1.15fr) minmax(300px, .9fr) 156px;
  gap: 1.5rem;
  align-items: center;
  min-height: 214px;
  padding: 1.55rem 1.55rem 1.55rem 1.7rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10,49,97,.018), transparent 34%),
    #FFFFFF;
  border: 1px solid #DFE6EB;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(19,42,65,.035);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.services-master-area-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--service-accent);
}

.services-master-area-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -95px;
  width: 235px;
  height: 235px;
  pointer-events: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--service-accent) 4%, transparent);
}

.services-master-area-card:hover {
  transform: translateY(-3px);
  border-color: #CFDAE3;
  box-shadow: 0 20px 48px rgba(19,42,65,.075);
}

.services-master-transform {
  --service-accent: #16785F;
}

.services-master-automate {
  --service-accent: #534AB7;
}

.services-master-operate {
  --service-accent: #B31942;
}

.services-master-area-index,
.services-master-area-main,
.services-master-area-capabilities,
.services-master-area-link {
  position: relative;
  z-index: 1;
}

.services-master-area-index {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 1.25rem;
  border-right: 1px solid #E5EAEE;
}

.services-master-area-no {
  display: block;
  color: #9AA6AF;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.055em;
}

.services-master-area-label {
  align-self: flex-start;
  padding: .33rem .48rem;
  color: var(--service-accent);
  background: color-mix(in srgb, var(--service-accent) 8%, white);
  border: 1px solid color-mix(in srgb, var(--service-accent) 15%, white);
  border-radius: 5px;
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.services-master-area-main h3 {
  max-width: 600px;
  margin: 0 0 .72rem;
  color: var(--itx-ink);
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.13;
  letter-spacing: -.035em;
}

.services-master-area-main p {
  max-width: 650px;
  margin: 0;
  color: #687682;
  font-size: .87rem;
  line-height: 1.68;
}

.services-master-area-capabilities {
  padding-left: 1.35rem;
  border-left: 1px solid #E5EAEE;
}

.services-master-area-capabilities-label {
  display: block;
  margin-bottom: .72rem;
  color: #8A97A2;
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.services-master-area-capabilities ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .42rem .85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.services-master-area-capabilities li {
  position: relative;
  padding-left: .75rem;
  color: #56636E;
  font-size: .73rem;
  line-height: 1.35;
}

.services-master-area-capabilities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--service-accent);
  opacity: .72;
}

.services-master-area-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  min-height: 46px;
  padding: .78rem .9rem;
  color: #FFFFFF;
  text-decoration: none;
  background: #20384F;
  border: 1px solid #20384F;
  border-radius: 8px;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.services-master-area-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 8px 0 0 8px;
  background: var(--service-accent);
}

.services-master-area-link:hover,
.services-master-area-link:focus {
  color: #fff;
  background: #172D42;
  border-color: #172D42;
  transform: translateX(2px);
}

.services-master-area-link i {
  font-size: .74rem;
  transition: transform .18s ease;
}

.services-master-area-link:hover i,
.services-master-area-link:focus i {
  transform: translateX(3px);
}

/* ---------------------------------------------------------
   CONTEXT / IMAGE
   --------------------------------------------------------- */

.services-master-context {
  background: #fff;
}

.services-master-context-grid {
  display: grid;
  grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.services-master-context-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 18px;
  background: #20384F;
  box-shadow: 0 22px 56px rgba(19,42,65,.11);
}

.services-master-context-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.services-master-context-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,28,47,.06) 30%, rgba(8,28,47,.82) 100%);
}

.services-master-context-overlay {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  padding: 1.1rem 1.15rem;
  border-left: 3px solid #B31942;
  border-radius: 8px;
  background: rgba(9,34,57,.78);
  backdrop-filter: blur(8px);
}

.services-master-context-overlay span {
  display: block;
  margin-bottom: .4rem;
  color: #9BCBF1;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.services-master-context-overlay strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.4;
}

.services-master-context-copy .section-title {
  max-width: 760px;
  margin-bottom: 1.2rem;
}

.services-master-context-copy .section-lead {
  max-width: 760px;
}

.services-master-trigger-list {
  display: grid;
  gap: .15rem;
  margin-top: 1.8rem;
  border-top: 1px solid #E4E9ED;
}

.services-master-trigger {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #E4E9ED;
}

.services-master-trigger > span {
  padding-top: .13rem;
  color: #B31942;
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.services-master-trigger strong {
  display: block;
  color: var(--itx-ink);
  font-size: .95rem;
  line-height: 1.35;
}

.services-master-trigger p {
  margin: .3rem 0 0;
  color: #6E7B86;
  font-size: .82rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   TECHNOLOGY SCOPE
   --------------------------------------------------------- */

.services-master-scope {
  position: relative;
  overflow: hidden;
  color: #C6D2DD;
  background:
    radial-gradient(circle at 88% 10%, rgba(121,184,239,.10), transparent 27%),
    linear-gradient(140deg, #213A52 0%, #172E44 100%);
}

.services-master-scope::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.85), transparent 88%);
}

.services-master-scope > .container-xl {
  position: relative;
  z-index: 1;
}

.services-master-scope .eyebrow {
  color: #92C8F4;
}

.services-master-scope .section-title {
  color: #fff;
}

.services-master-scope .section-lead {
  color: #B8C7D3;
}

.services-master-scope-board {
  margin-top: 2.9rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  box-shadow: 0 24px 60px rgba(3,17,31,.12);
}

.services-master-scope-layer {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 230px;
}

.services-master-scope-layer-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
  background:
    linear-gradient(145deg, rgba(121,184,239,.09), rgba(255,255,255,.015));
  border-right: 1px solid rgba(255,255,255,.09);
}

.services-master-scope-layer-infrastructure .services-master-scope-layer-head {
  background:
    linear-gradient(145deg, rgba(179,25,66,.085), rgba(255,255,255,.015));
}

.services-master-scope-layer-no {
  display: block;
  margin-bottom: 1.05rem;
  color: #8FC3EC;
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .15em;
}

.services-master-scope-layer-infrastructure .services-master-scope-layer-no {
  color: #E1849D;
}

.services-master-scope-layer-head strong {
  display: block;
  margin-bottom: .4rem;
  color: #FFFFFF;
  font-size: 1.22rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.services-master-scope-layer-head small {
  display: block;
  max-width: 190px;
  color: #AEBECA;
  font-size: .72rem;
  line-height: 1.55;
}

.services-master-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-master-scope-item {
  position: relative;
  min-height: 230px;
  padding: 1.5rem 1.35rem;
  border-right: 1px solid rgba(255,255,255,.085);
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
}

.services-master-scope-item:last-child {
  border-right: 0;
}

.services-master-scope-item > span {
  position: absolute;
  right: 1rem;
  top: .85rem;
  color: rgba(255,255,255,.25);
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .08em;
}

.services-master-scope-item i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.65rem;
  color: #9DD1F8;
  border: 1px solid rgba(121,184,239,.22);
  border-radius: 10px;
  background: rgba(121,184,239,.06);
}

.services-master-scope-layer-infrastructure .services-master-scope-item i {
  color: #E897AC;
  border-color: rgba(179,25,66,.25);
  background: rgba(179,25,66,.07);
}

.services-master-scope-item strong {
  display: block;
  margin-bottom: .5rem;
  color: #FFFFFF;
  font-size: 1.02rem;
}

.services-master-scope-item p {
  max-width: 280px;
  margin: 0;
  color: #AEBECA;
  font-size: .79rem;
  line-height: 1.62;
}

.services-master-scope-bridge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.10);
  border-bottom: 1px solid rgba(255,255,255,.10);
  background: rgba(6,24,40,.22);
}

.services-master-scope-bridge span {
  position: relative;
  padding: .76rem .65rem;
  color: #D3DEE6;
  font-size: .56rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-align: center;
}

.services-master-scope-bridge span + span {
  border-left: 1px solid rgba(255,255,255,.08);
}

.services-master-scope-bridge span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 2px;
  transform: translateX(-50%);
  background: #79B8EF;
}

.services-master-scope-bridge span:nth-child(even)::before {
  background: #B31942;
}

.services-master-scope-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1.45rem;
}

.services-master-scope-footer p {
  max-width: 760px;
  margin: 0;
  color: #AEBECA;
  font-size: .78rem;
  line-height: 1.62;
}

.services-master-scope-link {
  flex: 0 0 auto;
  color: #9FD2FC;
}

/* ---------------------------------------------------------
   OPERATING MODEL
   --------------------------------------------------------- */

.services-master-operating {
  background: #fff;
}

.services-master-operating-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #DFE6EB;
  border-radius: 16px;
  overflow: hidden;
}

.services-master-operating-grid article {
  min-height: 250px;
  padding: 1.5rem 1.35rem;
  border-right: 1px solid #DFE6EB;
  background: #fff;
}

.services-master-operating-grid article:last-child {
  border-right: 0;
}

.services-master-operating-grid article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 2.2rem;
  color: #fff;
  font-size: .62rem;
  font-weight: 850;
  border-radius: 8px;
  background: #0A3161;
}

.services-master-operating-grid article:nth-child(even) > span {
  background: #B31942;
}

.services-master-operating-grid h3 {
  margin: 0 0 .65rem;
  color: var(--itx-ink);
  font-size: 1.08rem;
}

.services-master-operating-grid p {
  margin: 0;
  color: #6E7B86;
  font-size: .84rem;
  line-height: 1.68;
}

/* ---------------------------------------------------------
   ENGAGEMENT MODELS
   --------------------------------------------------------- */

.services-master-engagements {
  background: #F7F9FB;
  border-top: 1px solid #E6ECEF;
  border-bottom: 1px solid #E6ECEF;
}

.services-master-engagement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
}

.services-master-engagement-grid article {
  min-height: 220px;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid #E1E7EC;
  border-radius: 14px;
}

.services-master-engagement-grid i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.55rem;
  color: #0A3161;
  border: 1px solid #D9E6F1;
  border-radius: 10px;
  background: #EFF5FA;
}

.services-master-engagement-grid article:nth-child(even) i {
  color: #A4173C;
  border-color: #F0D7DF;
  background: #FCF1F4;
}

.services-master-engagement-grid h3 {
  margin: 0 0 .55rem;
  color: var(--itx-ink);
  font-size: 1rem;
}

.services-master-engagement-grid p {
  margin: 0;
  color: #6F7C87;
  font-size: .82rem;
  line-height: 1.64;
}

/* ---------------------------------------------------------
   OUTCOMES / RELATED
   --------------------------------------------------------- */

.services-master-outcomes {
  background: #fff;
}

.services-master-related {
  border-bottom: 1px solid #E7ECEF;
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .services-master-area-card {
    grid-template-columns: 92px minmax(0, 1fr) minmax(270px, .9fr);
  }

  .services-master-area-link {
    grid-column: 2 / -1;
    justify-self: start;
    min-width: 170px;
  }

  .services-master-scope-layer {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .services-master-engagement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .services-master-hero-model {
    margin-top: .5rem;
  }

  .services-master-area-card {
    grid-template-columns: 82px 1fr;
    gap: 1.25rem 1.4rem;
  }

  .services-master-area-index {
    grid-row: 1 / 3;
  }

  .services-master-area-capabilities {
    grid-column: 2;
    padding-left: 0;
    padding-top: 1rem;
    border-left: 0;
    border-top: 1px solid #E5EAEE;
  }

  .services-master-area-link {
    grid-column: 2;
  }

  .services-master-context-grid {
    grid-template-columns: 1fr;
  }

  .services-master-context-visual {
    min-height: 430px;
  }

  .services-master-scope-layer {
    grid-template-columns: 1fr;
  }

  .services-master-scope-layer-head {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
  }

  .services-master-scope-layer-head small {
    max-width: 460px;
  }

  .services-master-operating-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-master-operating-grid article {
    border-bottom: 1px solid #DFE6EB;
  }

  .services-master-operating-grid article:nth-child(2n) {
    border-right: 0;
  }

  .services-master-operating-grid article:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .services-master-model-list a {
    grid-template-columns: 28px 78px 1fr;
  }

  .services-master-area-card {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.35rem;
  }

  .services-master-area-index {
    grid-row: auto;
    min-height: 54px;
    padding-right: 0;
    padding-bottom: .8rem;
    flex-direction: row;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid #E5EAEE;
  }

  .services-master-area-no {
    font-size: 1.65rem;
  }

  .services-master-area-capabilities,
  .services-master-area-link {
    grid-column: 1;
  }

  .services-master-area-capabilities ul {
    grid-template-columns: 1fr;
  }

  .services-master-context-visual {
    min-height: 340px;
  }

  .services-master-scope-grid {
    grid-template-columns: 1fr;
  }

  .services-master-scope-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.085);
  }

  .services-master-scope-item:last-child {
    border-bottom: 0;
  }

  .services-master-scope-bridge {
    grid-template-columns: 1fr 1fr;
  }

  .services-master-scope-bridge span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .services-master-scope-bridge span:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .services-master-scope-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: .9rem;
  }

  .services-master-operating-grid,
  .services-master-engagement-grid {
    grid-template-columns: 1fr;
  }

  .services-master-operating-grid article,
  .services-master-operating-grid article:nth-child(2n),
  .services-master-operating-grid article:nth-last-child(-n+2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #DFE6EB;
  }

  .services-master-operating-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .services-master-hero-model {
    padding: 1.3rem;
  }

  .services-master-model-list a {
    grid-template-columns: 26px 1fr;
  }

  .services-master-model-list a > small {
    grid-column: 2;
  }

  .services-master-context-overlay {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .services-master-scope-bridge span {
    font-size: .52rem;
    letter-spacing: .10em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-master-model-list a,
  .services-master-area-card,
  .services-master-area-link,
  .services-master-area-link i {
    transition: none !important;
  }
}
