/**
 * Section: Pillars
 * Ported from .docs/mockup/css/sections.css lines 207–291 (PILLARS block)
 * plus the .pillar-grid rule in the shared responsive block (980px
 * breakpoint). Tokens only — no hardcoded colours, sizes or fonts beyond the
 * small structural values the mockup itself hardcodes (#fff, aspect-ratio,
 * a few px values with no matching token).
 */

.pillars {
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
  background: var(--pebble);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-s);
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal);
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pillar-card .card-img {
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
}

.pillar-card .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding: var(--space-m) var(--space-m);
}

.pillar-card .card-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--terracotta);
  line-height: 1;
}

.pillar-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.pillar-card p {
  font-size: var(--text-small);
  color: var(--graphite);
  line-height: 1.55;
}

.pillar-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep-ocean);
  letter-spacing: 0.3px;
  transition: color var(--duration-fast);
  margin-top: var(--space-2xs);
}

.pillar-card .card-link .material-symbols-outlined {
  font-size: 16px;
}

.pillar-card .card-link:hover {
  color: var(--terracotta);
}


/* === RESPONSIVE === */
@media (max-width: 980px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
}
