/* ── Cards ─────────────────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
  text-decoration: none;
  color: inherit;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}
/* Only apply transforms on devices that support hover (not touch) */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px) scale(1.02);
  }
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  flex-shrink: 0;
  position: relative;
}
.card-icon::after {
  content: '';
  position: absolute;
  inset: 25%;
  background: var(--color-accent);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.card-icon--infra::after  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='4' rx='1'/%3E%3Crect x='2' y='10' width='20' height='4' rx='1'/%3E%3Crect x='2' y='17' width='20' height='4' rx='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='4' rx='1'/%3E%3Crect x='2' y='10' width='20' height='4' rx='1'/%3E%3Crect x='2' y='17' width='20' height='4' rx='1'/%3E%3C/svg%3E"); }
.card-icon--auto::after   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48 2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48 2.83-2.83'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2v4m0 12v4M4.93 4.93l2.83 2.83m8.48 8.48 2.83 2.83M2 12h4m12 0h4M4.93 19.07l2.83-2.83m8.48-8.48 2.83-2.83'/%3E%3C/svg%3E"); }
.card-icon--web::after    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E"); }
.card-icon--portal::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E"); }

.card-title { font-size: var(--text-lg); font-weight: var(--weight-semi); color: var(--color-text); }
.card-body  { font-size: var(--text-sm); color: var(--color-text-3); line-height: var(--leading-relaxed); flex: 1; }
.card-link  { font-size: var(--text-sm); font-weight: var(--weight-semi); color: var(--color-accent); margin-top: auto; }

/* Metric card */
.metric-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.metric-card__number {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}
.metric-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-3);
  font-weight: var(--weight-medium);
}

/* ── Illustrated card pattern ────────────────────────────────────────────── */
/* Shared by service cards, process steps, and pillar cards. */
.illus-card {
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}
@media (hover: hover) {
  .illus-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-muted);
  }
}
.illus-card__zone {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  transition: filter var(--ease-base);
}
.illus-card__zone svg {
  width: 80px;
  height: 60px;
  transition: transform var(--ease-base);
}
.illus-card:hover .illus-card__zone svg { transform: scale(1.06) translateY(-2px); }
.illus-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6) var(--space-6);
  flex: 1;
}


/* ── Process Steps (shared: home + about) ────────────────────────────────── */
.process-section { background: var(--color-bg-soft); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}
.process-steps:not(.process-steps--cards)::before {
  content: '';
  position: absolute;
  top: 28px; left: calc(16.66% + var(--space-8)); right: calc(16.66% + var(--space-8));
  height: 1px;
  background: var(--color-border);
}
.process-step { padding: var(--space-6); position: relative; }
.process-step__number {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.process-step__number::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}
.process-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  color: var(--color-accent);
  margin-right: var(--space-1);
  flex-shrink: 0;
}
.process-step h3 { font-size: var(--text-base); font-weight: var(--weight-semi); margin-bottom: var(--space-2); }
.process-step p  { font-size: var(--text-sm); color: var(--color-text-3); line-height: var(--leading-relaxed); }

.process-step--card {
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: transform var(--ease-base), box-shadow var(--ease-base), border-color var(--ease-base);
}
@media (hover: hover) {
  .process-step--card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent-muted);
  }
}
.process-step__illus {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  transition: filter var(--ease-base);
}
.process-step__illus svg {
  width: 80px;
  height: 60px;
  transition: transform var(--ease-base);
}
.process-step--card:hover .process-step__illus svg {
  transform: scale(1.06) translateY(-2px);
}
.process-step__body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.process-step--card .process-step__number::before { display: none; }
/* ── Testimonials ────────────────────────────────────────────────────────── */

.testimonial__stars { display: flex; gap: 2px; margin-bottom: var(--space-1); }
.star { font-size: 1rem; color: var(--color-text-4); line-height: 1; }
.star--filled { color: var(--color-accent); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.testimonial {
  padding: 0;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.testimonial__top-bar {
  height: 3px;
  background: var(--t-accent, var(--color-accent));
  border-radius: 3px 3px 0 0;
}
.testimonial__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6) var(--space-6);
}
.testimonial__quote-icon {
  width: 28px; height: 21px;
  color: var(--t-accent-color, var(--color-accent));
  opacity: .18;
  margin-bottom: var(--space-1);
}
.testimonial__quote-icon svg { width: 100%; height: 100%; }
.testimonial__quote {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-2);
  line-height: var(--leading-relaxed);
  flex: 1;
}
.testimonial__author-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-soft);
}
.testimonial__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--t-accent-bg, var(--color-accent-light));
  color: var(--t-accent-color, var(--color-accent));
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.testimonial__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.testimonial__author-info strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-text);
}
.testimonial__author-info span {
  font-size: var(--text-xs);
  color: var(--color-text-4);
}
.testimonial__result {
  font-size: var(--text-xs);
  font-weight: var(--weight-semi);
  color: var(--color-accent);
  margin-top: var(--space-1);
}

/* Legacy footer layout — kept for any existing markup using testimonial__footer */
.testimonial__footer {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-soft);
}
.testimonial__footer strong {
  font-size: var(--text-sm);
  font-weight: var(--weight-semi);
  color: var(--color-text);
}
.testimonial__footer span {
  font-size: var(--text-xs);
  color: var(--color-text-4);
}

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial__inner { padding: var(--space-4) var(--space-4) var(--space-5); }
}
