/* Value Cards — structural CSS
   Based on MTT Values. Numbers replaced with ghost keywords.
   Animations driven by module JS via data-vc-anim. */

.vc {
  background: #F7F6F3;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Ghost text */
.vc__ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(200px, 24vw, 380px);
  color: rgba(51, 49, 50, 0.025);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  will-change: transform;
}

/* Header */
.vc__header {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 48px 56px;
}

.vc__heading {
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  padding: 0;
}

.vc__top { color: #333132; display: block; }
.vc__ctx { color: #EAAA00; display: block; }

.vc__sub {
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(51, 49, 50, 0.55);
  line-height: 1.65;
  max-width: 480px;
  margin: 10px 0 0;
  padding: 0;
}
.vc__sub a {
  color: #333132 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.vc__sub a:hover { color: #EAAA00 !important; }


/* ═══════════════════════════════════════
   CARDS — edge-to-edge grid
   ═══════════════════════════════════════ */

.vc__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr);
}

/* Column count based on card count */
.vc__grid--2 { grid-template-columns: repeat(2, 1fr); }
.vc__grid--3 { grid-template-columns: repeat(3, 1fr); }
.vc__grid--4 { grid-template-columns: repeat(4, 1fr); }
.vc__grid--5 { grid-template-columns: repeat(3, 1fr); }
.vc__grid--6 { grid-template-columns: repeat(3, 1fr); }

/* Center orphan cards on last row (5 cards = 3+2 centered) */
.vc__grid--5 .vc__card:nth-child(4),
.vc__grid--5 .vc__card:nth-child(5) {
  /* Push 2 orphans to center: offset by half a column */
}
.vc__grid--5 {
  justify-items: stretch;
}
.vc__grid--5 .vc__card:nth-child(4) {
  grid-column-start: 1;
}

/* For 5 cards, center the last row by using a 6-col subgrid trick */
@supports (grid-template-columns: repeat(6, 1fr)) {
  .vc__grid--5 {
    grid-template-columns: repeat(6, 1fr);
  }
  .vc__grid--5 .vc__card:nth-child(-n+3) {
    grid-column: span 2;
  }
  .vc__grid--5 .vc__card:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .vc__grid--5 .vc__card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.vc__card {
  padding: 52px 40px 56px;
  background: #FFFFFF;
  border-right: 1px solid rgba(51, 49, 50, 0.05);
  position: relative;
  overflow: hidden !important;
  transition: background 0.35s ease;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vc__card:last-child { border-right: none; }

/* Border cleanup per column count */
.vc__grid--2 .vc__card:nth-child(2n) { border-right: none; }
.vc__grid--3 .vc__card:nth-child(3n),
.vc__grid--5 .vc__card:nth-child(3n),
.vc__grid--6 .vc__card:nth-child(3n) { border-right: none; }
.vc__grid--5 .vc__card:nth-child(-n+3),
.vc__grid--6 .vc__card:nth-child(-n+3) {
  border-bottom: 1px solid rgba(51, 49, 50, 0.05);
}

/* Hover — flip dark */
.vc__card:hover { background: #333132; }
.vc__card:hover .vc__card-ghost { color: rgba(234, 170, 0, 0.12); }
.vc__card:hover .vc__card-title { color: #EAAA00; }
.vc__card:hover .vc__card-desc { color: rgba(255, 255, 255, 0.55); }
.vc__card:hover .vc__card-link { color: #EAAA00; }

/* Ghost keyword — same position/size as original card-num, clipped to card width */
.vc__card-ghost {
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 3.8vw, 54px);
  color: rgba(51, 49, 50, 0.08);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden !important;
  max-width: 100%;
  transition: color 0.35s ease;
}

.vc__card-title {
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #333132;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 24px;
  line-height: 1.3;
  transition: color 0.35s ease;
}

.vc__card-rule {
  width: 28px;
  height: 2px;
  background: #EAAA00;
  margin-top: 18px;
}

.vc__card-desc {
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(51, 49, 50, 0.5);
  line-height: 1.8;
  margin-top: 16px;
  transition: color 0.35s ease;
}
.vc__card-desc a {
  color: #333132 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.35s ease;
}
.vc__card-desc a:hover { color: #EAAA00 !important; }
.vc__card:hover .vc__card-desc a { color: #FFFFFF !important; }
.vc__card:hover .vc__card-desc a:hover { color: #EAAA00 !important; }

/* Card link — gold, uppercase, arrow, pushed to bottom */
.vc__card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #EAAA00;
  text-decoration: none;
  margin-top: auto;
  padding-top: 18px;
  transition: color 0.35s ease;
}
.vc__card-link:hover { color: #CC8A00; }
.vc__card-link svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.vc__card-link:hover svg { transform: translateX(3px); }


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .vc__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vc__card {
    border-bottom: 1px solid rgba(51, 49, 50, 0.05);
  }
  .vc__card:nth-child(2n) { border-right: none; }
}

/* Tablet portrait */
@media (max-width: 768px) {
  .vc__header { padding: 56px 20px 36px; }
  .vc__heading { font-size: clamp(28px, 7vw, 38px); }
  .vc__sub { font-size: 13px; margin-top: 12px; }
  .vc__ghost { display: none; }
  .vc__grid { grid-template-columns: 1fr; }
  .vc__card {
    padding: 36px 20px 40px;
    border-right: none;
    border-bottom: 1px solid rgba(51, 49, 50, 0.05);
  }
  .vc__card:last-child { border-bottom: none; }
  .vc__card-ghost { font-size: 36px; }
  .vc__card-title { font-size: 14px; margin-top: 16px; }
  .vc__card-desc { font-size: 13px; margin-top: 12px; }

  /* Disable hover on mobile */
  .vc__card:hover { background: #FFFFFF; }
  .vc__card:hover .vc__card-ghost { color: rgba(51, 49, 50, 0.08); }
  .vc__card:hover .vc__card-title { color: #333132; }
  .vc__card:hover .vc__card-desc { color: rgba(51, 49, 50, 0.5); }

  /* Alternating: even cards flip dark */
  .vc__card:nth-child(even) {
    background: #333132;
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }
  .vc__card:nth-child(even) .vc__card-ghost { color: rgba(234, 170, 0, 0.12); }
  .vc__card:nth-child(even) .vc__card-title { color: #EAAA00; }
  .vc__card:nth-child(even) .vc__card-desc { color: rgba(255, 255, 255, 0.55); }
  .vc__card:nth-child(even) .vc__card-desc a { color: #FFFFFF !important; }
  .vc__card:nth-child(even) .vc__card-desc a:hover { color: #EAAA00 !important; }
  .vc__card:nth-child(even) .vc__card-rule { background: #EAAA00; }

  /* Override hover on even cards too */
  .vc__card:nth-child(even):hover { background: #333132; }
  .vc__card:nth-child(even):hover .vc__card-ghost { color: rgba(234, 170, 0, 0.12); }
  .vc__card:nth-child(even):hover .vc__card-title { color: #EAAA00; }
  .vc__card:nth-child(even):hover .vc__card-desc { color: rgba(255, 255, 255, 0.55); }
}

/* Large phones — Pro Max / Samsung (430px) */
@media (max-width: 430px) {
  .vc__header { padding: 48px 16px 28px; }
  .vc__heading { font-size: 28px; }
  .vc__card { padding: 28px 16px 32px; }
  .vc__card-ghost { font-size: 32px; }
  .vc__card-title { font-size: 13px; margin-top: 14px; }
  .vc__card-desc { font-size: 12px; line-height: 1.7; }
}

/* Medium phones — mid-range (390px) */
@media (max-width: 390px) {
  .vc__header { padding: 44px 14px 24px; }
  .vc__heading { font-size: 26px; }
  .vc__sub { font-size: 12px; }
  .vc__card { padding: 24px 14px 28px; }
  .vc__card-ghost { font-size: 28px; }
}

/* Small phones — iPhone SE (360px) */
@media (max-width: 360px) {
  .vc__header { padding: 40px 12px 20px; }
  .vc__heading { font-size: 24px; }
  .vc__card { padding: 22px 12px 26px; }
  .vc__card-ghost { font-size: 26px; }
  .vc__card-title { font-size: 12px; }
  .vc__card-desc { font-size: 11px; }
}
