/* =========================================================
   ITMAGIX — STANDARD INNER PAGE SYSTEM
   Shared across commercial inner pages.
   Page-specific CSS should extend this file, not duplicate it.
   ========================================================= */

/* ---------------------------------------------------------
   01. INNER PAGE TYPOGRAPHY
   --------------------------------------------------------- */

.inner-page-title {
  max-width: 920px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.9rem, 5.7vw, 5.4rem);
  line-height: .96;
  font-weight: 790;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.inner-page-lead {
  max-width: 790px;
  margin: 1.45rem 0 0;
  color: #c8d4df;
  font-size: clamp(1.05rem, 1.55vw, 1.22rem);
  line-height: 1.75;
}

.inner-copy {
  max-width: 780px;
  color: var(--itx-body);
  font-size: 1rem;
  line-height: 1.8;
}

.inner-copy p {
  margin: 0 0 1.15rem;
}

.inner-copy p:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   02. BREADCRUMB
   --------------------------------------------------------- */

.inner-breadcrumb {
  margin-bottom: 2.1rem;
}

.inner-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inner-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #94a7b8;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .035em;
}

.inner-breadcrumb li:not(:last-child)::after {
  content: "/";
  color: rgba(255,255,255,.28);
  font-weight: 500;
}

.inner-breadcrumb a {
  color: #b9c9d7;
  text-decoration: none;
  transition: color .18s ease;
}

.inner-breadcrumb a:hover,
.inner-breadcrumb a:focus {
  color: #ffffff;
}

.inner-breadcrumb [aria-current="page"] {
  color: #79B8EF;
}

/* ---------------------------------------------------------
   03. INNER HERO
   --------------------------------------------------------- */

.inner-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 82px;
  color: #ffffff;
  background:
    radial-gradient(circle at 83% 25%, rgba(121,184,239,.16), transparent 29%),
    linear-gradient(138deg, #0A3161 0%, #163F69 48%, #294566 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.inner-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.65) 54%, #000 100%);
}

.inner-hero .container-xl {
  position: relative;
  z-index: 1;
}

.inner-hero .eyebrow {
  color: #9FD2FC;
  margin-bottom: 1.15rem;
}

.inner-hero .eyebrow::before {
  background: #B31942;
}

.inner-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem 1.1rem;
  margin-top: 2rem;
}

.inner-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #d8e5ef;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 750;
  border-bottom: 1px solid rgba(216,229,239,.45);
  padding-bottom: .18rem;
  transition: color .18s ease, border-color .18s ease;
}

.inner-hero-secondary:hover,
.inner-hero-secondary:focus {
  color: #ffffff;
  border-color: #ffffff;
}

.inner-hero-context {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 236px;
  margin-left: auto;
  padding: 2rem 2rem 1.8rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-left: 3px solid #B31942;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  box-shadow: 0 22px 55px rgba(3,17,31,.16);
  backdrop-filter: blur(12px);
}

.inner-hero-context::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to left, rgba(0,0,0,.78), transparent 82%);
}

.inner-hero-context-mark {
  position: absolute;
  top: .3rem;
  right: 1rem;
  z-index: 0;
  color: rgba(255,255,255,.045);
  font-size: clamp(5rem, 8vw, 7.2rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.075em;
  user-select: none;
}

.inner-hero-context-kicker {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: .65rem;
  color: #9FCDF3;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.inner-hero-context strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.inner-hero-context p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: .75rem 0 0;
  color: #c4d2de;
  font-size: .86rem;
  line-height: 1.66;
}

.inner-hero-context-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1.2rem;
}

.inner-hero-context-meta span {
  padding: .36rem .55rem;
  color: #dbe6ef;
  font-size: .64rem;
  font-weight: 700;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 6px;
}

.inner-hero .row {
  align-items:stretch;
}

.inner-hero-context {
  height:100%;
}

/* ---------------------------------------------------------
   04. SHARED INNER SECTION HEAD
   --------------------------------------------------------- */

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

.inner-section-head .section-title {
  max-width: 840px;
}

.inner-section-head .section-lead {
  margin-top: 1rem;
}

/* ---------------------------------------------------------
   05. WHY IT MATTERS / CONTEXT
   --------------------------------------------------------- */

.inner-context-section {
  background: #ffffff;
}

.inner-context-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.inner-context-copy h2 {
  margin-bottom: 1.3rem;
}

.inner-context-panel {
  position: relative;
  padding: 1.75rem;
  background: #F6F9FC;
  border: 1px solid #E3EAF0;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(19,42,65,.045);
}

.inner-context-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #0A3161;
  border-radius: 16px 0 0 16px;
}

.inner-context-panel-label {
  display: block;
  color: #B31942;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: .8rem;
}

.inner-context-panel strong {
  display: block;
  color: var(--itx-ink);
  font-size: 1.22rem;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.inner-context-panel p {
  margin: .8rem 0 0;
  color: #667481;
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   06. CORE CAPABILITIES / WHAT WE DO
   --------------------------------------------------------- */

.inner-capabilities-section {
  background: #F7F9FB;
  border-top: 1px solid #E8EDF1;
  border-bottom: 1px solid #E8EDF1;
}

.inner-capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.inner-capability-card {
  position: relative;
  min-height: 230px;
  padding: 1.45rem 1.4rem 1.35rem;
  background: #ffffff;
  border: 1px solid #E3E8ED;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.inner-capability-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: #0A3161;
}

.inner-capability-card:nth-child(even)::before {
  background: #B31942;
}

.inner-capability-card:hover {
  transform: translateY(-4px);
  border-color: #D5E0E9;
  box-shadow: 0 18px 45px rgba(17,42,65,.08);
}

.inner-capability-no {
  display: block;
  margin-bottom: 2rem;
  color: #8D9AA6;
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.inner-capability-card h3 {
  margin: 0 0 .65rem;
  color: var(--itx-ink);
  font-size: 1.18rem;
  line-height: 1.25;
}

.inner-capability-card p {
  margin: 0;
  color: #697682;
  font-size: .87rem;
  line-height: 1.68;
}

/* ---------------------------------------------------------
   07. HOW ITMAGIX APPROACHES IT
   --------------------------------------------------------- */

.inner-approach-section {
  position: relative;
  overflow: hidden;
  color: #c7d3dd;
  background:
    radial-gradient(circle at 87% 15%, rgba(121,184,239,.10), transparent 28%),
    linear-gradient(140deg, #243B55 0%, #1B324B 100%);
}

.inner-approach-section .eyebrow {
  color: #92C8F4;
}

.inner-approach-section .section-title {
  color: #ffffff;
}

.inner-approach-section .section-lead {
  color: #b8c7d3;
}

.inner-approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.inner-approach-step {
  min-height: 255px;
  padding: 1.55rem 1.35rem;
  border-right: 1px solid rgba(255,255,255,.10);
}

.inner-approach-step:last-child {
  border-right: 0;
}

.inner-approach-step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 2.2rem;
  color: #ffffff;
  font-size: .66rem;
  font-weight: 850;
  background: #B31942;
  border-radius: 8px;
}

.inner-approach-step h3 {
  margin: 0 0 .65rem;
  color: #ffffff;
  font-size: 1.15rem;
}

.inner-approach-step p {
  margin: 0;
  color: #afbfcc;
  font-size: .84rem;
  line-height: 1.68;
}

/* ---------------------------------------------------------
   08. BUSINESS OUTCOMES
   --------------------------------------------------------- */

.inner-outcomes-section {
  background: #ffffff;
}

.inner-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #E4E9ED;
  border: 1px solid #E4E9ED;
  border-radius: 16px;
  overflow: hidden;
}

.inner-outcome {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  min-height: 155px;
  padding: 1.4rem;
  background: #ffffff;
}

.inner-outcome-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #0A3161;
  background: #EEF5FB;
  border: 1px solid #DAE8F3;
  border-radius: 10px;
  font-size: .9rem;
}

.inner-outcome h3 {
  margin: .05rem 0 .45rem;
  color: var(--itx-ink);
  font-size: 1rem;
}

.inner-outcome p {
  margin: 0;
  color: #6E7B86;
  font-size: .84rem;
  line-height: 1.62;
}

/* ---------------------------------------------------------
   09. RELATED CAPABILITIES / PATHS
   --------------------------------------------------------- */

.inner-related-section {
  background: #F7F9FB;
  border-top: 1px solid #E7ECEF;
}

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

.inner-related-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 1.25rem;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #E2E8ED;
  border-radius: 13px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.inner-related-card:hover,
.inner-related-card:focus {
  color: inherit;
  transform: translateY(-3px);
  border-color: #CFDAE3;
  box-shadow: 0 14px 36px rgba(19,42,65,.07);
}

.inner-related-kicker {
  display: block;
  margin-bottom: 1.7rem;
  color: #B31942;
  font-size: .59rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.inner-related-card h3 {
  margin: 0 0 .45rem;
  color: var(--itx-ink);
  font-size: 1rem;
}

.inner-related-card p {
  margin: 0;
  color: #74818C;
  font-size: .79rem;
  line-height: 1.55;
}

.inner-related-arrow {
  margin-top: auto;
  padding-top: 1rem;
  color: #0A3161;
  font-size: .8rem;
  font-weight: 800;
}

/* ---------------------------------------------------------
   10. OPTIONAL FAQ
   --------------------------------------------------------- */

.inner-faq-section {
  background: #ffffff;
}

.inner-faq-list {
  max-width: 940px;
  border-top: 1px solid #E0E6EB;
}

.inner-faq-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid #E0E6EB;
}

.inner-faq-item h3 {
  margin: 0 0 .55rem;
  color: var(--itx-ink);
  font-size: 1rem;
}

.inner-faq-item p {
  margin: 0;
  color: #687581;
  font-size: .9rem;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   11. FINAL CTA
   --------------------------------------------------------- */

.inner-final-cta {
  padding: 74px 0 16px;
  background: #ffffff;
}

.inner-final-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 3.8rem);
  color: #c8d6e1;
  background:
    radial-gradient(circle at 87% 20%, rgba(121,184,239,.15), transparent 28%),
    linear-gradient(138deg, #0A3161, #294566);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(10,49,97,.14);
}

.inner-final-cta .eyebrow {
  color: #9FD2FC;
}

.inner-final-cta .eyebrow::before {
  background: #B31942;
}

.inner-final-cta h2 {
  max-width: 700px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.inner-final-cta-copy p {
  max-width: 680px;
  margin: 1rem 0 0;
  color: #c0cfda;
  font-size: .98rem;
  line-height: 1.72;
}

.inner-final-cta-action {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255,255,255,.16);
}

.inner-final-cta-kicker {
  display: block;
  margin-bottom: .6rem;
  color: #8EC8F7;
  font-size: .6rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.inner-final-cta-action strong {
  display: block;
  margin-bottom: 1.15rem;
  color: #ffffff;
  font-size: 1.05rem;
  line-height: 1.45;
}

.inner-final-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 48px;
  padding: .8rem 1.15rem;
  color: #ffffff;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
  background: #B31942;
  border: 1px solid #B31942;
  border-radius: .55rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.inner-final-cta-button:hover,
.inner-final-cta-button:focus {
  color: #ffffff;
  background: #9E173A;
  border-color: #9E173A;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(179,25,66,.22);
}

/* ---------------------------------------------------------
   12. RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1199.98px) {
  .inner-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .inner-hero {
    padding: 62px 0 68px;
  }

  .inner-page-title {
    font-size: clamp(2.7rem, 8vw, 4.7rem);
  }

  .inner-hero-context {
    min-height: 0;
    height: auto;
    margin-top: .5rem;
  }

  .inner-hero-context-mark {
    font-size: 4.7rem;
  }

  .inner-context-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .inner-approach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-approach-step {
    border-right: 1px solid rgba(255,255,255,.10);
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .inner-approach-step:nth-child(2n) {
    border-right: 0;
  }

  .inner-approach-step:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .inner-final-cta-panel {
    grid-template-columns: 1fr;
  }

  .inner-final-cta-action {
    padding: 1.4rem 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.16);
  }
}

@media (max-width: 767.98px) {
  .inner-hero {
    padding: 48px 0 54px;
  }

  .inner-breadcrumb {
    margin-bottom: 1.6rem;
  }

  .inner-page-title {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .inner-page-lead {
    font-size: 1rem;
    line-height: 1.68;
  }

  .inner-capability-grid,
  .inner-outcomes-grid,
  .inner-related-grid {
    grid-template-columns: 1fr;
  }

  .inner-approach-grid {
    grid-template-columns: 1fr;
  }

  .inner-approach-step,
  .inner-approach-step:nth-child(2n),
  .inner-approach-step:nth-last-child(-n+2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .inner-approach-step:last-child {
    border-bottom: 0;
  }

  .inner-approach-step-no {
    margin-bottom: 1.3rem;
  }

  .inner-final-cta {
    padding-top: 56px;
  }

  .inner-final-cta-panel {
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-capability-card,
  .inner-related-card,
  .inner-final-cta-button,
  .inner-hero-secondary {
    transition: none !important;
  }
}
