/* ================================================
   GROWTH WITH GRAY - Layout
   ================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* Sections */
.section {
  padding-block: var(--space-section);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-inverse);
}

.section--dark a:not(.btn) {
  color: var(--color-secondary-light);
}

.section--curved {
  position: relative;
}

.section--curved::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

/* Two-column grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.two-col--reverse > :first-child {
  order: 0;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Testimonials grid */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* Footer grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

/* Page hero / banner */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
  position: relative;
}

.page-hero h1 {
  color: var(--color-text-inverse);
}

.page-hero p {
  color: var(--color-secondary-light);
  max-width: 600px;
  margin-inline: auto;
}

/* Media queries for grids */
@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .two-col--reverse > :first-child {
    order: 2;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
