/* =============================================================
   MIRAI — Core Values Section  (Second Section / HP Title)
   Palette: White canvas · dark headings · --gray body text
   Accent: --red #DB324D (Amaranth) — no iris gradient
   Font: Cormorant Garamond headings · Montserrat body
   ============================================================= */

/* ===== BLOCK: Section shell ===== */
.core-values-section {
  background-color: var(--white);
  color: var(--text-body);
  padding: 96px 20px;
  font-family: var(--ff-body);
}

/* ===== BLOCK: Two-column container ===== */
.core-values-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 56px;
  align-items: flex-start;
}

/* ===== BLOCK: Left column ===== */
.core-values-left {
  flex: 1 1 500px;
}

/* ===== BLOCK: Section heading ===== */
.core-values-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: block;
  border-bottom: none;
  padding-bottom: 0;
}

/* ===== BLOCK: Red rule under heading ===== */
.core-values-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 16px;
  border-radius: 1px;
  background: var(--red);
}

/* ===== BLOCK: Intro paragraph ===== */
.core-values-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-body);
  margin-bottom: 48px;
  max-width: 560px;
}

/* ===== BLOCK: Right column — image ===== */
.core-values-right {
  flex: 1 1 400px;
}

.core-values-image {
  width: 100%;
  height: 620px;
  object-fit: cover;
  display: block;
}

/* ===== BLOCK: Card grid ===== */
.core-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ===== BLOCK: Individual card ===== */
.core-value-card {
  background-color: var(--yellow);    /* light cream — matches slide deck cards */
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
  overflow: hidden;
  color: var(--text-body);
}

.core-value-card:hover {
  background-color: var(--red);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(219, 50, 77, 0.2);
}

/* ===== BLOCK: Card icon ===== */
.core-value-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  height: 56px;
}

.core-value-icon img {
  width: auto;
  height: 50%;
  transition: filter 0.25s ease;
  filter: brightness(0);      /* black icon on cream */
}

.core-value-card:hover .core-value-icon img {
  filter: brightness(0) invert(1);   /* white icon on red */
}

/* ===== BLOCK: Card title ===== */
.core-value-title {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--text-dark);
  margin-bottom: 8px;
  transition: color 0.25s;
}

.core-value-card:hover .core-value-title {
  color: var(--white);
}

/* ===== BLOCK: Card description (revealed on hover) ===== */
.core-value-desc {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-body);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, color 0.25s;
}

.core-value-card:hover .core-value-desc {
  max-height: 120px;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== BLOCK: Responsive ===== */
@media (max-width: 1024px) {
  .core-values-container {
    flex-direction: column-reverse;
  }

  .core-values-right { order: -1; }

  .core-values-image { height: 400px; }
}

@media (max-width: 768px) {
  .core-values-section { padding: 64px 20px; }

  .core-values-left { flex: 1 1 100%; }

  .core-values-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }

  .core-values-image { height: 320px; }
}

@media (max-width: 480px) {
  .core-values-image { height: 260px; }
}
