/* ==================================================
   SERVICES
   Purpose:
   The services grid on the homepage and the /services
   index, plus the "problems we solve", capability and
   deliverables blocks used on individual service pages.
================================================== */

/* ==================================================
   SERVICE CARD
   Reusable card for a single software development
   service. Sits on the shared .card base.
================================================== */

.service-card { height: 100%; }

.service-card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-3);
  transition: color var(--transition-fast);
}

.card--interactive:hover .service-card__title { color: var(--brand-700); }

.service-card__description {
  color: var(--ink-500);
  font-size: var(--fs-sm);
  line-height: 1.65;
  flex-grow: 1;
}

.service-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}

.service-card__footer {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--color-border);
}

/* Numbered variant used on the services index so the catalogue reads as an
   ordered capability list rather than an undifferentiated wall of cards. */
.service-card--numbered .service-card__index {
  position: absolute;
  top: var(--s-5);
  right: var(--s-6);
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--ink-100);
  transition: color var(--transition-normal);
  pointer-events: none;
}

.service-card--numbered:hover .service-card__index { color: var(--brand-100); }

/* ==================================================
   FEATURED SERVICE
   Wide card that leads the homepage services grid.
================================================== */

.service-card--featured {
  background: var(--gradient-night);
  border-color: transparent;
  color: var(--color-on-dark-muted);
}

@media (min-width: 760px) {
  .service-card--featured { grid-column: span 2; }
}

.service-card--featured .service-card__title { color: #FFFFFF; }
.service-card--featured .service-card__description { color: var(--color-on-dark-muted); }
.service-card--featured .service-card__footer { border-top-color: rgba(255, 255, 255, 0.12); }
.service-card--featured .link-arrow { color: var(--brand-300); }

.service-card--featured .icon-tile {
  background: rgba(22, 104, 255, 0.18);
  border-color: rgba(78, 155, 255, 0.34);
}

/* ==================================================
   PROBLEM / SOLUTION BLOCK
   Opens each service page by naming the operational
   problems the service actually removes.
================================================== */

.problem-grid {
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.problem-card {
  padding: var(--s-6);
  border-radius: var(--radius-md);
  background-color: var(--surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--brand-400);
}

.problem-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--s-3);
  color: var(--ink-800);
}

.problem-card__text {
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--ink-500);
}

/* ==================================================
   CAPABILITY LIST
   What is actually delivered inside a service.
================================================== */

.capability-grid {
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.capability {
  display: flex;
  gap: var(--s-4);
  padding: var(--s-5);
  border-radius: var(--radius-md);
  background-color: var(--surface-muted);
  border: 1px solid transparent;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.capability:hover {
  background-color: var(--surface);
  border-color: var(--brand-100);
}

.capability__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background-color: var(--brand-50);
  border: 1px solid var(--brand-100);
}

.capability__icon img { width: 21px; height: 21px; }

.capability__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--s-2);
}

.capability__text {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-500);
}

/* ==================================================
   DELIVERABLES / OUTCOMES
   Two-column checklist block on service pages.
================================================== */

.outcome-panel {
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background-color: var(--surface-muted);
  border: 1px solid var(--color-border);
}

.outcome-panel__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--s-5);
}

.outcome-panel__columns {
  display: grid;
  gap: var(--s-5) var(--s-8);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* ==================================================
   ENGAGEMENT MODELS
   How a project can be structured commercially.
================================================== */

.engagement-grid {
  display: grid;
  gap: var(--gap-grid);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.engagement-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background-color: var(--surface);
}

.engagement-card__label {
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: var(--s-3);
}

.engagement-card__title {
  font-size: var(--fs-h4);
  margin-bottom: var(--s-3);
}

.engagement-card__text {
  font-size: var(--fs-sm);
  line-height: 1.62;
  color: var(--ink-500);
  flex-grow: 1;
}

.engagement-card__best-for {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--ink-400);
}

.engagement-card__best-for strong { color: var(--ink-700); }
