/* ============================================================
   CORE VALUES SECTION — "How We Operate"
   Design: Numbered editorial list. Each value is a row,
   not a card. The oversized number is the visual anchor.
   Grid: 2-col at desktop — left = the large number,
   right = title + description. Reads like a precision manual.
   ============================================================ */

.values {
  background: var(--color-dominant);
  padding: var(--section-padding-y) 0;
  position: relative;
}

/* Subtle diagonal stripe across top — editorial device */
.values::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--color-secondary) 60%, var(--color-accent) 60%);
}

/* ---- Section header: left-aligned, max-width restrained ---- */
.values .section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: var(--space-16);
}

.values .section-label {
  color: var(--color-secondary);
}

.values .section-label::before {
  background: var(--color-secondary);
}

.values .section-title {
  color: var(--color-secondary);
  letter-spacing: -0.03em;
}

.values .section-subtitle {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 52ch;
}

/* ================================================================
   VALUES GRID — 2-col at desktop
   Each value = full-width row in a 2-col masonry-like grid
   ================================================================ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  /* Full-width under the header */
  border-top: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================================
   PILLAR — Each core value as a bordered list item
   The oversized number and bold title create the hierarchy,
   NO card background needed. Space and typography do the work.
   ================================================================ */
.values .pillar {
  display: grid;
  /* Number column = fixed, content column = flexible */
  grid-template-columns: 72px 1fr;
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-10) var(--space-6);
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
  background: var(--gray-50); /* Force light background on all cards */
  transition: background var(--transition-fast);
  cursor: default;
}

/* Remove right border from last in each row */
@media (min-width: 768px) {
  .values .pillar:nth-child(2n) {
    border-right: none;
  }
}

@media (min-width: 1200px) {
  .values .pillar:nth-child(2n) {
    border-right: 1px solid var(--gray-200);
  }

  .values .pillar:nth-child(3n) {
    border-right: none;
  }
}

.values .pillar:hover {
  background: var(--gray-100);
}

/* Yellow top-line permanently active for all cards */
.values .pillar::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(1); /* ALWAYS showing the yellow top border */
  transform-origin: left;
  transition: background var(--transition-fast);
}

.values .pillar:hover::before {
  background: var(--primary-blue-light); /* Slight change on hover to show interaction */
}

/* ---- NUMBER: HIERARCHY LEVEL 1 ----
   ALWAYS visible, permanently using the yellow accent color */
.values .pillar-number {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-accent); /* Permanently Yellow */
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  padding-top: var(--space-1);
  transition: color var(--transition-fast);
}

.values .pillar:hover .pillar-number {
  color: var(--primary-blue); /* Subtle hover interaction */
}

/* ---- Content column ---- */
.pillar-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ---- TITLE: HIERARCHY LEVEL 2 ---- */
.values .pillar-title {
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0;
}

/* ---- DESCRIPTION: HIERARCHY LEVEL 3 ---- */
.values .pillar-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}