/* Cards */

/* Generic feature card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: var(--ink-300); box-shadow: var(--shadow); }
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--color-text-muted); }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
  background: var(--red-50);
  color: var(--color-accent);
}
.card__icon svg { width: 26px; height: 26px; }
.section--dark .card {
  background: var(--ink-800);
  border-color: var(--color-border-dark);
}
.section--dark .card p { color: var(--color-text-inverse-muted); }
.section--dark .card__icon { background: rgba(237, 50, 55, 0.14); }

/* Image-led card (services, capabilities) */
.card-media {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card-media:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-media__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-100); }
.card-media__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card-media:hover .card-media__img img { transform: scale(1.05); }
.card-media__body { display: flex; flex-direction: column; flex: 1; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-6); }
.card-media__body p { color: var(--color-text-muted); flex: 1; }
.card-media__link::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur), transform var(--dur) var(--ease);
}
.product-card:hover { border-color: var(--ink-300); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__img {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: var(--space-5);
  background: linear-gradient(180deg, var(--white), var(--ink-50));
  border-bottom: 1px solid var(--color-border);
}
.product-card__img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 500ms var(--ease); }
.product-card:hover .product-card__img img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; flex: 1; gap: var(--space-2); padding: var(--space-5); }
.product-card__cat {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.product-card__title { font-size: 1.35rem; }
.product-card__title a::after { content: ""; position: absolute; inset: 0; }
.product-card__meta { font-size: var(--fs-sm); color: var(--color-text-muted); flex: 1; }
.product-card__more { margin-top: var(--space-3); }

/* Pill / tag */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3em 0.75em;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-700);
  background: var(--white);
}

/* Big stat */
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.stat__value em { font-style: normal; color: var(--red-500); }
.stat__label { display: block; margin-top: var(--space-2); font-size: var(--fs-sm); }
