/* lib/styles/sections/industry_grid.css */

.industry-grid-section {
  background-color: var(--color-surface, #FFFFFF);
  padding: var(--spacing-xxl, 80px) 0;
}

.industry-grid-section__container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--spacing-md, 24px);
}

.industry-grid-section__header {
  text-align: center;
  margin-bottom: var(--spacing-xl, 48px);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.industry-grid-section__title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--color-trust-navy, #0F294A);
  line-height: 1.2;
  margin: 0 0 var(--spacing-sm, 16px) 0;
}

.industry-grid-section__subtitle {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text-secondary, #4A4D55);
  line-height: 1.6;
  max-width: 45rem;
  margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .industry-grid-section {
    padding: var(--spacing-xl, 64px) 0;
  }
  .industry-grid-section__container {
    padding-inline: var(--spacing-lg, 32px);
  }
}

@media (max-width: 768px) {
  .industry-grid-section {
    padding: var(--spacing-xl, 64px) 0;
  }
  .industry-grid-section__container {
    padding-inline: var(--spacing-md, 16px);
  }
  .industry-grid-section__header {
    margin-bottom: var(--spacing-lg, 32px);
  }
  .industry-grid-section__title {
    font-size: 28px;
  }
}

/* =========================================================================
   Choreographed Load Sequence (ScrollReveal Integration)
   ========================================================================= */

@media (prefers-reduced-motion: no-preference) {
  /* * Initial hidden states.
   * Target the header and deeply target the direct children of the layout 
   * wrapper to ensure the stagger applies properly to the cards.
   */
  .industry-grid-section__header,
  .industry-grid-section__grid-wrapper > div > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--motion-duration-medium, 400ms) var(--motion-ease-out, ease-out),
                transform var(--motion-duration-medium, 400ms) var(--motion-ease-out, ease-out);
  }

  /* Reveal sequence when ScrollAnimationWrapper attaches .is-visible */
  .is-visible .industry-grid-section__header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
  }

  /* Grid card stagger sequence */
  .is-visible .industry-grid-section__grid-wrapper > div > * {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggering up to 10 entities defined in the Master Plan */
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(1) { transition-delay: 0.2s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(2) { transition-delay: 0.3s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(3) { transition-delay: 0.4s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(4) { transition-delay: 0.5s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(5) { transition-delay: 0.6s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(6) { transition-delay: 0.7s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(7) { transition-delay: 0.8s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(8) { transition-delay: 0.9s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(9) { transition-delay: 1.0s; }
  .is-visible .industry-grid-section__grid-wrapper > div > :nth-child(n+10) { transition-delay: 1.1s; }
}