/* ============================================================
   FEATURE GRID COMPONENT - BASE STYLES (Shared)
   Used by: Both showcase and standard variants
   Includes: Grid layout, animations, responsive design
============================================================ */

/* BASE: Feature grid wrapper - 3-column responsive grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* BASE: Individual feature card - common base styles */
.feature-card {
  background: white;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  text-align: left;
  transition: transform 200ms ease, box-shadow 200ms ease, opacity 640ms var(--ease-settle);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  
  /* Scroll reveal animation - cards start hidden and fade in */
  opacity: 0;
  transform: translateY(16px);
}

/* BASE: Card visible state (added by feature-grid.js on scroll) */
.feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 640ms var(--ease-settle), transform 640ms var(--ease-settle), box-shadow 200ms ease;
}

/* BASE: Card hover effect (only when visible) */
.feature-card.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
}

/* BASE: Card title */
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000000;
}

/* BASE: Card description */
.feature-card p {
  font-size: 13px;
  color: #5A5A5A;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* BASE: Responsive grid - tablet */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* BASE: Responsive grid - mobile */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-card h3 {
    font-size: 14px;
  }

  .feature-card p {
    font-size: 12px;
  }
}

/* BASE: Responsive grid - small mobile */
@media (max-width: 480px) {
  .feature-card {
    padding: 20px 16px;
  }

  .feature-card h3 {
    font-size: 13px;
  }

  .feature-card p {
    font-size: 11px;
  }
}
