/* =========================================================
   SOLUTION INFORMATION PAGES — HOME GRID LOCK
   The Home/Solutions screen is the immutable geometry reference.
========================================================= */
.solution-home-page .hero-background {
  background-image: url('../gallery/solutions-hero.jpg');
}

/* Header: exactly the same sizing and axes as Home. */
.solution-home-header {
  position: relative;
}

.solution-home-header .section-heading {
  max-width: none;
}

.solution-home-header .section-heading h1 {
  font-size: clamp(46px, 4.2vw, 62px);
  line-height: .94;
  font-weight: 620;
  white-space: nowrap;
}

.solution-home-header .section-heading p {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.35;
}

/* Back sits outside the Home content column, without shifting the title. */
.solution-back {
  position: absolute;
  left: -78px;
  top: 1px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px 0 8px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 999px;
  color: rgba(255,255,255,.90);
  background: rgba(7,20,29,.30);
  backdrop-filter: blur(12px);
  font-size: 12px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.solution-back:hover {
  transform: translateX(-2px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.48);
}
.solution-back svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Information block uses the exact Home content width and starts on its axis. */
.solution-home-main {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.solution-home-card {
  width: 88%;
  min-height: 176px;
  display: grid;
  grid-template-columns: 78px minmax(0,1fr) 132px;
  align-items: center;
  gap: 26px;
  padding: 26px 30px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 14px;
  color: #132430;
  background: rgba(247,249,248,.94);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
  box-sizing: border-box;
  transition: transform .22s ease, box-shadow .22s ease;
}
.solution-home-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}

.solution-home-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(19,36,48,.18);
  border-radius: 15px;
}
.solution-home-icon svg {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.solution-home-copy h2 {
  margin: 0 0 9px;
  font-size: 25px;
  line-height: 1.08;
  letter-spacing: -.03em;
}
.solution-home-copy p {
  margin: 0;
  max-width: 620px;
  color: rgba(19,36,48,.68);
  font-size: 14px;
  line-height: 1.45;
}
.solution-home-launch {
  min-width: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(19,36,48,.72);
  font-size: 12px;
  text-align: center;
}
.solution-home-launch i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #142b39;
}
.solution-home-launch svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

/* Same Featured Projects location as Home. */
.solution-home-content > .featured {
  width: 100%;
  margin-top: auto;
  padding-top: 32px;
}

@media (max-width: 1260px) {
  .solution-back {
    left: -54px;
    width: 38px;
    padding: 0;
    justify-content: center;
  }
  .solution-back span { display: none; }
}

@media (max-width: 1100px) {
  .solution-back { left: 0; top: -50px; }
  .solution-home-card { width: 94%; }
}

@media (max-width: 820px) {
  .solution-home-header .section-heading h1 { white-space: normal; }
  .solution-home-card {
    width: 100%;
    grid-template-columns: 58px minmax(0,1fr);
  }
  .solution-home-launch {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .solution-home-main { margin-top: 24px; }
  .solution-home-card {
    grid-template-columns: 1fr;
    padding: 22px 20px;
  }
  .solution-home-launch {
    grid-column: auto;
    justify-content: flex-start;
  }
}

/* =========================================================
   SOLUTION PAGES — REAL FINAL CONTROLS
   Uses the actual classes present in the solution-page HTML.
========================================================= */
@media (min-width: 1101px) {
  .solution-home-header .solution-back {
    left: -145px !important;
    top: 8px !important;
    min-height: 42px !important;
    padding: 0 14px 0 10px !important;
    gap: 8px !important;
    font-size: 13px !important;
    transform: none !important;
  }

  .solution-home-header .solution-back svg {
    width: 21px !important;
    height: 21px !important;
  }

  .solution-home-launch {
    min-width: 145px !important;
    gap: 12px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
  }

  .solution-home-launch i {
    width: 52px !important;
    height: 52px !important;
  }

  .solution-home-launch svg {
    width: 22px !important;
    height: 22px !important;
  }
}

/* Keep the same touch-friendly CTA on medium screens without
   pushing the Back control outside the viewport. */
@media (min-width: 821px) and (max-width: 1100px) {
  .solution-home-launch {
    min-width: 140px !important;
    gap: 11px !important;
    font-size: 14px !important;
  }

  .solution-home-launch i {
    width: 50px !important;
    height: 50px !important;
  }

  .solution-home-launch svg {
    width: 21px !important;
    height: 21px !important;
  }
}
