/* =========================================================
   Imecon — Solutions list page · Voilàp "vc" line
   Works with imecon-solutions.js and is loaded AFTER imecon-application.css,
   which gives the shared base (.vc-app tokens, hero, eyebrow, buttons, section heads, CTA, reveal)
   and hides the old blocks (html.vc-app-page). Here only what is specific to the list page,
   scoped to .vc-sol.
   ========================================================= */

/* hero: three facts instead of four */
@media (min-width: 961px) {
  .vc-app.vc-sol .vc-app__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.vc-sol .vc-app__crumbs [aria-current] { color: var(--vc-ink); }
/* hero picture: four solutions in one frame */
.vc-sol .vc-sol__mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 4px; background: var(--vc-paper); }
.vc-sol .vc-sol__mosaic img { min-width: 0; min-height: 0; background: var(--vc-soft); }

/* ---------- the solutions ---------- */
.vc-sol__list { padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 8vw, 120px); border-top: 1px solid var(--vc-line); scroll-margin-top: var(--vc-top); }
.vc-sol__list .vc-app__sechead { align-items: flex-end; padding-bottom: clamp(18px, 2vw, 26px); border-bottom: 1px solid var(--vc-ink); }
.vc-sol__list .vc-app__count { flex: none; padding-bottom: 6px; }
.vc-sol__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.vc-sol__grid > li { min-width: 0; }

.vc-app .vc-sol__card { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; min-width: 0; border: 1px solid var(--vc-line); background: var(--vc-paper); color: var(--vc-ink); transition: border-color .3s, box-shadow .4s var(--vc-ease), transform .4s var(--vc-ease); }
.vc-app .vc-sol__card:hover, .vc-app .vc-sol__card:focus-visible { border-color: var(--vc-ink); box-shadow: 0 18px 40px -24px rgba(17, 17, 18, .45); transform: translateY(-3px); }
.vc-sol__card::after { content: ""; position: absolute; left: -1px; right: -1px; bottom: -1px; height: 3px; background: var(--vc-accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--vc-ease); }
.vc-sol__card:hover::after, .vc-sol__card:focus-visible::after { transform: scaleX(1); }

.vc-sol__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--vc-soft); }
.vc-sol__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--vc-ease); }
.vc-sol__card:hover .vc-sol__media img { transform: scale(1.05); }
.vc-sol__num { position: absolute; left: 0; top: 0; padding: 10px 12px; background: var(--vc-ink); color: #fff; font: 700 12px/1 var(--vc-display); letter-spacing: .1em; transition: background .3s; }
.vc-sol__card:hover .vc-sol__num { background: var(--vc-accent-ink); }

.vc-sol__body { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: clamp(16px, 1.6vw, 22px); min-width: 0; }
.vc-app .vc-sol__name { min-width: 0; font: 700 clamp(18px, 1.5vw, 22px)/1.2 var(--vc-display); letter-spacing: -.015em; color: var(--vc-ink); text-transform: none; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
.vc-sol__go { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--vc-ink); border-radius: 50%; color: var(--vc-ink); transition: background .3s, border-color .3s, color .3s; }
.vc-sol__go .vc-ico { width: 18px; height: 18px; transition: transform .3s var(--vc-ease); }
.vc-sol__card:hover .vc-sol__go { background: var(--vc-accent); border-color: var(--vc-accent); color: #fff; }
.vc-sol__card:hover .vc-sol__go .vc-ico { transform: translateX(2px); }

/* ---------- why Imecon ---------- */
.vc-sol__why { padding: clamp(48px, 7vw, 104px) 0; background: var(--vc-soft); }
.vc-sol__why .vc-app__sechead h2 { max-width: 26ch; font-size: min(clamp(28px, 3.2vw, 46px), 10cqw); line-height: 1.08; }
.vc-sol__pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); }
.vc-sol__pillars li { display: grid; align-content: start; gap: 12px; min-width: 0; padding-top: 20px; border-top: 1px solid var(--vc-ink); }
.vc-sol__pnum { font: 700 12px/1 var(--vc-display); letter-spacing: .1em; color: var(--vc-accent-ink); }
.vc-app .vc-sol__pillars h3 { font: 700 clamp(18px, 1.5vw, 22px)/1.2 var(--vc-display); letter-spacing: -.015em; color: var(--vc-ink); text-transform: none; }
.vc-app .vc-sol__pillars p { max-width: 44ch; font: 400 clamp(16px, 1.25vw, 18px)/1.6 var(--vc-text); color: var(--vc-ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .vc-sol__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .vc-sol__pillars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .vc-sol__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vc-app .vc-sol__card { grid-template-rows: none; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .vc-sol__media { aspect-ratio: auto; min-height: 104px; }
  .vc-sol__media img { position: absolute; inset: 0; }
  .vc-sol__num { padding: 7px 8px; font-size: 11px; }
  .vc-sol__body { padding: 14px; gap: 10px; }
  .vc-app .vc-sol__name { font-size: 17px; }
  .vc-sol__go { width: 34px; height: 34px; }
}
