/*
 * Text section layout.
 * Olive band with optional left headline and Maven Pro body.
 * Horizontal inset matches hero (--fx-content-pad-x). Typography in shared.css.
 */

.fx-section--text {
  --fx-text-pad-y: var(--fx-section-pad);
  --fx-text-headline-size: 2.5rem;
  --fx-text-body-size: 1.125rem;
  --fx-text-list-title-size: 0.875rem;
  --fx-text-gap: clamp(1.5rem, 4vw, 5rem);
  --fx-text-addons-gap: clamp(1.5rem, 3vw, 2.5rem);
  /* Always keep top pad (do not collapse). Left/right match hero headline. */
  padding: var(--fx-text-pad-y) var(--fx-content-pad-x) var(--fx-text-pad-y);
  background-color: var(--fx-color-olive);
  color: #ffffff;
}

/* Same full-bleed content column as hero (not the centered 1300px shell) */
.fx-section--text .fx-section__inner {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.fx-text__layout {
  display: grid;
  gap: var(--fx-text-gap);
  width: 100%;
}

.fx-text--with-headline .fx-text__layout {
  grid-template-columns: 1fr;
}

.fx-text__aside {
  min-width: 0;
}

.fx-text__headline {
  margin: 0;
  color: #ffffff;
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-headline-size);
  font-style: normal;
  font-weight: 400;
  line-height: 0.89;
  letter-spacing: 0.01em;
  text-transform: none;
}

.fx-text__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fx-text__body {
  color: #ffffff;
}

/* Ratio uppercase / light weight on headings: reset to Figma */
.fx-section--text .fx-text__body h1,
.fx-section--text .fx-text__body h2,
.fx-section--text .fx-text__body h3 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-family: var(--fx-font-display);
  font-size: var(--fx-text-headline-size);
  font-style: normal;
  font-weight: 400;
  line-height: 0.89;
  letter-spacing: 0.01em;
  text-transform: none;
}

.fx-section--text .fx-text__body h3 {
  font-size: calc(var(--fx-text-headline-size) * 0.7);
}

.fx-section--text .fx-text__body p {
  margin: 0 0 1.25rem;
  color: #ffffff;
  font-family: var(--fx-font-intro);
  font-size: var(--fx-text-body-size);
  font-style: normal;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.01em;
  text-transform: none;
}

.fx-section--text .fx-text__body ul,
.fx-section--text .fx-text__body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25em;
  color: #ffffff;
  font-family: var(--fx-font-intro);
  font-size: var(--fx-text-body-size);
  font-style: normal;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.01em;
}

.fx-section--text .fx-text__body li {
  margin: 0 0 0.5rem;
}

.fx-section--text .fx-text__body li:last-child {
  margin-bottom: 0;
}

.fx-text__body > :last-child {
  margin-bottom: 0;
}

.fx-text__body a:not(.fx-section__button) {
  color: inherit;
  text-decoration: underline;
}

.fx-text__addons {
  display: grid;
  gap: var(--fx-text-addons-gap);
  width: 100%;
  margin-top: var(--fx-text-gap);
}

.fx-text__list-title {
  margin: 0;
  color: #ffffff;
  font-family: var(--fx-font-eyebrow);
  font-size: var(--fx-text-list-title-size);
  font-style: normal;
  font-weight: 600;
  line-height: 1.37;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.fx-text__list {
  margin: 0;
  padding-left: 1.25em;
  color: #ffffff;
  list-style: disc;
  font-family: var(--fx-font-intro);
  font-size: var(--fx-text-body-size);
  font-style: normal;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.01em;
  column-count: 1;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.fx-text__list li {
  margin: 0 0 0.5rem;
  break-inside: avoid;
}

.fx-text__list li:last-child {
  margin-bottom: 0;
}

.fx-text__body .fx-section__button,
.fx-text__actions {
  margin-top: 2rem;
}

.fx-text__actions .fx-section__button {
  margin-top: 0;
}

.fx-text__actions {
  display: flex;
}

/* Alignment */
.fx-text--align-left .fx-text__body,
.fx-text--align-left .fx-text__headline {
  text-align: left;
}

.fx-text--align-left .fx-text__actions {
  justify-content: flex-start;
}

.fx-text--align-center .fx-text__body,
.fx-text--align-center .fx-text__headline {
  text-align: center;
}

.fx-text--align-center .fx-text__actions {
  justify-content: center;
}

.fx-text--align-right .fx-text__body,
.fx-text--align-right .fx-text__headline {
  text-align: right;
}

.fx-text--align-right .fx-text__actions {
  justify-content: flex-end;
}

.fx-text--align-center .fx-text__body ul,
.fx-text--align-center .fx-text__body ol,
.fx-text--align-right .fx-text__body ul,
.fx-text--align-right .fx-text__body ol {
  display: inline-block;
  text-align: left;
}

@media (min-width: 768px) {
  .fx-section--text {
    --fx-text-headline-size: 3.75rem;
    --fx-text-body-size: 1.5rem;
    --fx-text-list-title-size: 1rem;
  }

  .fx-text__list {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .fx-section--text {
    --fx-text-headline-size: 4.6875rem;
    --fx-text-body-size: 2.5rem;
    --fx-text-list-title-size: 1.5rem;
  }

  .fx-text--with-headline .fx-text__layout {
    grid-template-columns: minmax(12rem, 28%) 1fr;
    align-items: start;
  }

  .fx-text__addons {
    grid-template-columns: minmax(12rem, 28%) 1fr;
    align-items: start;
    column-gap: var(--fx-text-gap);
    row-gap: var(--fx-text-addons-gap);
  }

  .fx-text__addons .fx-text__list-title {
    grid-column: 1;
  }

  .fx-text__addons .fx-text__list {
    grid-column: 2;
  }

  /* Title-only or list-only still occupy the intended column. */
  .fx-text__addons > .fx-text__list:only-child {
    grid-column: 2;
  }
}

@media (min-width: 1400px) {
  .fx-section--text {
    --fx-text-pad-y: 6rem;
  }
}

@media (max-width: 767px) {
  .fx-section--text {
    --fx-text-headline-size: 2rem;
    --fx-text-body-size: 1rem;
  }

  .fx-section--text .fx-text__body p,
  .fx-section--text .fx-text__body ul,
  .fx-section--text .fx-text__body ol,
  .fx-text__list {
    line-height: 1.4;
  }
}
