/* ==========================================================================
   Features Hero
   ========================================================================== */

.features-hero {
  background: linear-gradient(
    135deg,
    var(--color-background) 0%,
    var(--color-accent-light) 100%
  );
}

.features-hero h1 {
  max-width: 850px;
}

.features-hero .page-hero-description {
  margin-top: 20px;
}

/* ==========================================================================
   Feature Showcase
   ========================================================================== */

.feature-showcase {
  overflow: hidden;
  padding: 36px 0;
}

.feature-showcase-content h2 {
  margin-bottom: 16px;
}

.feature-showcase-content p:not(.eyebrow) {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-showcase-content p + p {
  margin-top: 18px;
}

.feature-showcase-grid {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.feature-showcase-muted {
  background: var(--color-background-alt);
}

.feature-showcase-reverse .feature-showcase-content {
  order: 2;
}

.feature-showcase-reverse .feature-showcase-images {
  order: 1;
}

/* ==========================================================================
   First Feature Spacing
   ========================================================================== */

.features-hero + .feature-showcase {
  padding-top: 24px;
}

.features-hero + .feature-showcase .feature-showcase-grid {
  align-items: start;
}


/* ==========================================================================
   Overlapping Images
   ========================================================================== */

.feature-images-pair {
  align-items: center;
  display: flex;
  min-height: 320px;
  padding: 16px;
}

.feature-images-pair .feature-image-back {
  transform: rotate(-4deg);
  width: 72%;
}

.feature-images-pair .feature-image-front {
  margin-left: -38%;
  margin-top: 80px;
  position: relative;
  transform: rotate(4deg);
  width: 72%;
  z-index: 2;
}

/* ==========================================================================
   Single Image
   ========================================================================== */

.feature-images-single {
  display: flex;
  justify-content: center;
}

.feature-images-single .feature-image {
  max-width: 480px;
  width: 100%;
}

/* ==========================================================================
   Stacked Images
   ========================================================================== */

.feature-images-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-images-stack .feature-image {
  width: 100%;
}

/* ==========================================================================
   Family Section
   ========================================================================== */

.feature-family {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.feature-family h2 {
  margin-bottom: 20px;
}

.feature-family p:not(.eyebrow) {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-family p + p {
  margin-top: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 800px) {
  .feature-showcase {
    padding: 28px 0;
  }

  .feature-showcase-grid {
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .feature-showcase-reverse .feature-showcase-content,
  .feature-showcase-reverse .feature-showcase-images {
    order: initial;
  }

  .feature-images-pair {
    min-height: 0;
    padding: 20px 8px 48px;
  }

  .feature-images-pair .feature-image-back,
  .feature-images-pair .feature-image-front {
    width: 70%;
  }

  .feature-images-pair .feature-image-front {
    margin-left: -35%;
    margin-top: 60px;
  }

  .feature-showcase-content h2 {
    margin-bottom: 16px;
  }
}

@media (max-width: 480px) {
  .feature-showcase {
    padding: 24px 0;
  }

  .feature-images-pair {
    padding-bottom: 32px;
  }

  .feature-images-pair .feature-image-front {
    margin-top: 36px;
  }
}
