/* ==========================================================================
   PAGES: SOLUTIONS (listing) + SOLUTION DETAIL

   Visual system: a CARD GRID. Services deliberately uses a different one
   (alternating full-width rows) so the two sections of the site do not read
   as the same page with different words.
   ========================================================================== */

/* --------------------------------------------------------------------------
   LISTING — solution card  →  <SolutionCard />
   -------------------------------------------------------------------------- */
.solution-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.1rem 2rem 1.9rem;
  background: var(--c-white);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base),
    border-color var(--t-base);
}

/* Tinted wash that rises from the bottom on hover. */
.solution-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  background: linear-gradient(180deg, rgba(244, 245, 255, 0) 0%, var(--c-tint-indigo) 100%);
  opacity: 0;
  transform: translateY(30%);
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: -1;
}

.solution-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--sh-card-hover);
}

.solution-card:hover::after {
  opacity: 1;
  transform: none;
}

.solution-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--c-tint-indigo);
  color: var(--c-primary);
  margin-bottom: 1.3rem;
  transition: background var(--t-base), color var(--t-base);
}

.solution-card:hover .solution-card__icon {
  background: var(--c-primary);
  color: var(--c-white);
}

.solution-card__icon svg {
  width: 26px;
  height: 26px;
}

.solution-card__tag {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.solution-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
  margin-bottom: 0.7rem;
}

.solution-card__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-850);
  margin-bottom: 1.5rem;
}

.solution-card__foot {
  margin-top: auto;
}

/* Whole card is clickable; the visible link stays the accessible name. */
.solution-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* --------------------------------------------------------------------------
   DETAIL — overview
   -------------------------------------------------------------------------- */
.sol-overview__title {
  font-family: var(--font-body);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  letter-spacing: -0.44px;
  color: var(--c-ink-900);
  margin: 1rem 0 1.3rem;
}

.sol-overview__text {
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  letter-spacing: 0.4px;
  color: var(--c-ink-850);
  margin-bottom: 1.6rem;
}

.sol-overview__media img {
  width: 100%;
  height: clamp(300px, 32vw, 440px);
  object-fit: cover;
  border-radius: var(--r-lg);
}

/* Outcome list */
.outcome-list {
  display: grid;
  gap: 0.85rem;
}

.outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--c-ink-800);
}

.outcome-list svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   DETAIL — what's included
   -------------------------------------------------------------------------- */
/* White card on the section's tint, held by a soft shadow. */
.include-card {
  height: 100%;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--c-white);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  box-shadow: 0 2px 14px rgba(11, 28, 45, 0.06);
  transition: transform var(--t-base), box-shadow var(--t-base),
    border-color var(--t-base);
}

.include-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--sh-card-hover);
}

.include-card__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: var(--c-navy-900);
  margin-bottom: 0.55rem;
}

/* The tick becomes a filled disc. The SVG carries the badge itself — box
   styles apply to an <svg> like any other element — so the six cards get
   their colour without a wrapper each. */
.include-card__title svg {
  --badge: var(--c-primary);
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 8px;
  border-radius: var(--r-pill);
  background: var(--badge);
  color: var(--c-white);
  box-shadow: 0 6px 14px rgba(11, 28, 45, 0.16);
}

/* Six cards, six colours, cycling if a page ever carries more. */
#included [class*="col-"]:nth-child(6n + 2) .include-card__title svg { --badge: #16a394; }
#included [class*="col-"]:nth-child(6n + 3) .include-card__title svg { --badge: #6d4bd6; }
#included [class*="col-"]:nth-child(6n + 4) .include-card__title svg { --badge: #e2811c; }
#included [class*="col-"]:nth-child(6n + 5) .include-card__title svg { --badge: #d2456c; }
#included [class*="col-"]:nth-child(6n + 6) .include-card__title svg { --badge: #2b6fd6; }

.include-card__text {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-500);
  margin: 0;
}

/* --------------------------------------------------------------------------
   DETAIL — delivery steps
   -------------------------------------------------------------------------- */
.delivery {
  background: var(--c-surface-alt);
}

.step-card {
  position: relative;
  height: 100%;
  padding: 2.1rem 1.9rem 2rem;
  background: var(--c-white);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-lg);
}

.step-card__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  background: var(--c-navy-900);
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  margin-bottom: 1.2rem;
}

.step-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--c-navy-900);
  margin-bottom: 0.6rem;
}

.step-card__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
  color: var(--c-ink-850);
  margin: 0;
}

/* --------------------------------------------------------------------------
   DETAIL — related solutions
   -------------------------------------------------------------------------- */
.related-card {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  background: var(--c-white);
  border: 1px solid var(--c-border-mid);
  border-radius: var(--r-md);
  transition: border-color var(--t-base), box-shadow var(--t-base),
    transform var(--t-base);
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--sh-card-hover);
}

.related-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--c-tint-indigo);
  color: var(--c-primary);
}

.related-card__icon svg {
  width: 19px;
  height: 19px;
}

.related-card__name {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--c-navy-900);
}

.related-card__name::after {
  content: "";
  position: absolute;
  inset: 0;
}
