/* Text Module */

.text_module {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text-module-color, #232426);
}

.text_module::before,
.text_module::after {
  content: none;
}


/* Background overlay */

.text_module--has-background-media::before,
.text_module--has-background-image::before,
.text_module--has-background-video::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  background: rgba(0, 0, 0, 0.65);
  content: "";
  pointer-events: none;
}


/* Section watermark */

.text_module--has-watermark::after {
  position: absolute;
  z-index: 2;
  top: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 520 / 890;
  background-image: url(
    "/wp-content/uploads/2026/09/autosales-identity-icon2.png"
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  opacity: 0.055;
  pointer-events: none;
}

.text-module-color-dark.text_module--has-watermark::after,
.text-module-color-media.text_module--has-watermark::after {
  filter: brightness(0) invert(1);
  opacity: 0.07;
}

.text_module--watermark-left::after {
  right: auto;
  left: 0;
  transform: none;
}

.text_module--watermark-center::after {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

.text_module--watermark-right::after {
  right: 0;
  left: auto;
  transform: none;
}


/* Background video */

.text_module__background-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}


/* Content */

.text_module__content {
  position: relative;
  z-index: 3;
  width: 90%;
  max-width: var(--ib-container, 1200px);
  margin: 0 auto;
  color: var(--text-module-color, #232426);
  font-size: 18px;
  line-height: 1.7;
}

.text_module__content > :first-child {
  margin-top: 0;
}

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


/* Eyebrow */

.text_module__eyebrow {
  margin: 0 0 16px;
  color: var(--text-module-accent-color, #b02020);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* Module heading */

.text_module__content > .text_module__heading {
  margin: 0;
  color: var(--text-module-color, #232426);
  line-height: 1.1;
}


/* Main body */

.text_module__body {
  margin-top: 24px;
  color: inherit;
}

.text_module__body > :first-child {
  margin-top: 0;
}

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

.text_module__body p {
  color: inherit;
}

.text_module__body h1,
.text_module__body h2,
.text_module__body h3,
.text_module__body h4,
.text_module__body h5,
.text_module__body h6 {
  margin-top: 1.5em;
  margin-bottom: 0.65em;
  color: inherit;
  line-height: 1.2;
}


/* Links */

.text_module__body a {
  color: var(--text-module-accent-color, #b02020);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text_module__body a:hover {
  text-decoration-thickness: 2px;
}

.text_module__body a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(
    --text-module-accent-color,
    #b02020
  );
  outline-offset: 3px;
}


/* Lists */

.text_module__body ul,
.text_module__body ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.text_module__body li {
  margin-bottom: 0.5em;
  padding-left: 0.35em;
  color: inherit;
}

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

.text_module__body li::marker {
  color: var(--text-module-accent-color, #b02020);
  font-weight: 700;
}


/* Text over background media */

.text_module--has-background-media
.text_module__content,
.text_module--has-background-image
.text_module__content,
.text_module--has-background-video
.text_module__content {
  color: #ffffff;
}

.text_module--has-background-media
.text_module__heading,
.text_module--has-background-image
.text_module__heading,
.text_module--has-background-video
.text_module__heading {
  color: #ffffff;
}

.text_module--has-background-media
.text_module__eyebrow,
.text_module--has-background-image
.text_module__eyebrow,
.text_module--has-background-video
.text_module__eyebrow {
  color: #ffffff;
}

.text_module--has-background-media
.text_module__body a,
.text_module--has-background-media
.text_module__body li::marker,
.text_module--has-background-image
.text_module__body a,
.text_module--has-background-image
.text_module__body li::marker,
.text_module--has-background-video
.text_module__body a,
.text_module--has-background-video
.text_module__body li::marker {
  color: #ffffff;
}

.text_module--has-background-media
.text_module__body a:focus-visible,
.text_module--has-background-image
.text_module__body a:focus-visible,
.text_module--has-background-video
.text_module__body a:focus-visible {
  outline-color: #ffffff;
}


/* Mobile */

@media (max-width: 767px) {

  .text_module__content {
    font-size: 16px;
  }

}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

  .text_module__background-video {
    display: none;
  }

}