/* ==========================================================================
   Layout
   ========================================================================== */

.wrapper {
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--max-width);
  margin-inline: auto;
}

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

.section {
  position: relative;
  padding-block: var(--section-gap);
}

/* Backgrounds */
.bg-white {
  background-color: rgba(255, 255, 255, 0.75);
}

.section.bg-white {
  background: none;
  background-color: rgba(255, 255, 255, 0.75);
}

.section.bg-navy {
  background-color: rgba(10, 36, 99, 0.35);
}

.bg-off-white { background-color: rgba(250, 249, 247, 0.85); }
.bg-navy {
  background-color: rgba(10, 36, 99, 0.82);
  color: var(--text-light);
}
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4,
.bg-navy p, .bg-navy span, .bg-navy a {
  color: var(--text-light);
}
.bg-navy .text-muted {
  color: rgba(255, 255, 255, 0.6);
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

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

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.caps {
  font-family: var(--font-sans);
  font-size: var(--text-xxs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
}

/* Divider line */
.divider-line {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

/* Section header */
.section-header {
  margin-bottom: 3.5rem;
}

.section-header--center {
  text-align: center;
}

.section-header__label {
  display: block;
  margin-bottom: 1rem;
}

.section-header__title {
  font-size: var(--text-big);
}

.section-header__subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 560px;
  line-height: 1.7;
}

.section-header--center .section-header__subtitle {
  margin-inline: auto;
}
