/* Sections of the "Solution Page" template (page-solution.php) + new design of the shared sections */

/* Common */
.sol-eyebrow {
  margin: 0;
  color: #000;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}
.sol-eyebrow a {
  color: inherit;
  text-decoration: none;
  transition: color 300ms ease;
}
.sol-eyebrow a:hover {
  color: #f05c37;
}
.sol-title {
  margin: 0;
  color: #000;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.65px;
  text-align: center;
}
.sol-intro {
  max-width: 780px;
  margin: 17px auto 0;
  color: #000;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
}
.sol-intro p,
.sol-cta__text p,
.sol-solutions__text p,
.sol-testimonials__quote p,
.home-hero__image-text p {
  margin: 0;
}
.sol-link {
  color: #000;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.sol-link__arrow {
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.32em;
  vertical-align: -0.12em;
}

/* Hero (newHeroHomePage): link next to the button, text under the image */
.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.home-hero__link {
  color: #000;
  font-size: 17px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home-hero__visual {
  width: 100%;
}
.home-hero__image-text {
  margin-top: 21px;
  color: #000;
  font-size: 18px;
  line-height: 1.4;
}

/* Advantages list */
.sol-advantages {
  padding: 22px 0;
  background-color: #fff;
}
.sol-advantages__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #000;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}
.sol-advantages__item {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.sol-advantages__item::before {
  content: "•";
}
.sol-advantages__item a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Trusted by - logos */
.sol-trusted {
  padding: 22px 0;
  background-color: #242d37;
  margin-top: 40px;
}
.sol-trusted__container {
  display: flex;
  align-items: center;
  gap: 39px;
}
.sol-trusted__text {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1.35;
}
.sol-trusted__text p {
  margin: 0;
}
.sol-trusted--light .sol-trusted__text {
  color: #fff;
}
.sol-trusted--dark .sol-trusted__text {
  color: #000;
}
.sol-trusted__logos {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 39px;
}
.sol-trusted__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 43px;
}

/* Solutions list - 3 columns */
.sol-solutions {
  padding: 57px 0;
}
.sol-solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 33px;
  margin-top: 34px;
}
.sol-solutions__item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sol-solutions__image img {
  display: block;
  width: 166px;
  height: 166px;
  margin-bottom: 23px;
  object-fit: contain;
  border-radius: 14px;
}
.sol-solutions__title {
  margin: 13px 0 15px;
  color: #000;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.sol-solutions__text {
  margin-bottom: 23px;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.sol-solutions__link {
  margin-top: auto;
  transition: color 300ms ease;
}
.sol-solutions__link:hover {
  color: #f05c37;
}

/* Testimonials list */
.sol-testimonials {
  padding: 57px 0;
  background-color: #e8eff6;
}
.sol-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 31px;
}
.sol-testimonials__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 13px;
  background-color: #fff;
}
.sol-testimonials__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 87px;
  padding: 20px;
  background-color: #242d37;
}
.sol-testimonials__logo img {
  width: auto;
  height: auto;
  max-width: 170px;
  max-height: 45px;
}
.sol-testimonials__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 23px 23px 25px;
}
.sol-testimonials__heading {
  margin: 0;
  color: #000;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.sol-testimonials__quote {
  margin: 22px 0 27px;
  padding: 0;
  border: 0;
  color: #000;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}
.sol-testimonials__quote p:first-child::before {
  content: "“";
}
.sol-testimonials__quote p:last-child::after {
  content: "”";
}
.sol-testimonials__credit {
  margin: auto 0 0;
  color: #000;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.sol-testimonials__credit strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

/* Benefit (benefitsList) - new design */
.sol-features {
  overflow: hidden;
}
.sol-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: 55px;
  padding: 52px 0;
}
/* The separator lives on .sol-feature, which sits inside .container, so the
   line keeps the content width. The second selector covers the case of each
   Benefit being added as its own section. */
.sol-feature + .sol-feature,
.sol-features + .sol-features .sol-feature:first-child {
  border-top: 2px solid #e8eff6;
}
.sol-feature--reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}
.sol-feature--reverse .sol-feature__copy {
  order: 2;
}
.sol-feature__title {
  margin: 15px 0 18px;
  color: #000;
  font-size: 31px;
  font-weight: 600;
  line-height: 1.16;
}
.sol-feature__text {
  color: #000;
  font-size: 17px;
  line-height: 1.5;
}
.sol-feature__text p {
  margin: 0;
}
.sol-feature__text ul {
  margin: 18px 0 0;
  padding-left: 21px;
  font-size: 16px;
  list-style: disc;
}
.sol-feature__text li + li {
  margin-top: 7px;
}
.sol-feature__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.sol-feature__image--animation > div {
  position: relative;
  width: 100%;
}
.sol-feature__image--animation svg {
  display: block;
  width: 100%;
  height: auto;
}

/* CTA (option 5) */
.sol-cta {
  padding: 0 0 48px;
}
.sol-cta__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 47px;
  padding: 36px;
  border-radius: 14px;
  background-color: #e8eff6;
}
.sol-cta .sol-title {
  font-size: 31px;
}
.sol-cta__text {
  margin-top: 15px;
  color: #000;
  font-size: 17px;
  line-height: 1.5;
}
.sol-cta__button {
  white-space: nowrap;
}

.page-template-page-solution .home-hero__link::after {
  content: "↓";
}

/* Text under the hero image: styled by paragraph position, so no classes are needed in the editor.
   1st line - stat, last line - credit, lines in between - context */
.page-template-page-solution .home-hero__image-text p:first-child {
  margin-bottom: 8px;
  font-size: 31px;
}

.page-template-page-solution .home-hero__image-text p:first-child span {
  font-size: inherit !important;
}

.page-template-page-solution .home-hero__image-text p:first-child strong {
  font-weight: 500;
}

.page-template-page-solution
  .home-hero__image-text
  p:not(:first-child):not(:last-child) {
  margin-bottom: 11px;
}

.page-template-page-solution
  .home-hero__image-text
  p:last-child:not(:first-child) {
  font-size: 14px;
}

.page-template-page-solution .cta-block {
  margin-bottom: 60px;
}

.page-template-page-solution .home-hero__text ul {
  padding: 0 0 0 42px;
  list-style: none;
  display: inline-flex;
  flex-direction: column;
}

.page-template-page-solution .home-hero__text ul li {
  position: relative;
  margin-bottom: 10px;
  text-align: left;
}

.page-template-page-solution .home-hero__text ul li:last-child {
  margin: 0;
}

.page-template-page-solution .home-hero__text ul li::before {
  position: absolute;
  content: "";
  top: 50%;
  transform: translateY(-50%);
  left: -42px;
  background: url("../images/svg/list-style-icon.svg") no-repeat;
  background-size: cover;
  width: 32px;
  height: 32px;
}

@media (max-width: 767.98px) {
  .page-template-page-solution .home-hero__text ul li::before {
    width: 29px;
    height: 29px;
  }
}

.page-template-page-solution .home-hero__image {
  aspect-ratio: 467/333;
}

.page-template-page-solution .home-hero__container {
  gap: 50px;
  align-items: start;
}

.page-template-page-solution .cr-text-link,
.page-template-page-solution .home-hero__link {
  transition: all 0.3s;
}

.page-template-page-solution .cr-text-link:hover,
.page-template-page-solution .home-hero__link:hover {
  color: #f05c37;
}

@media (min-width: 767.98px) {
  .home-hero--row .home-hero__actions {
    justify-content: flex-start;
  }
  .home-hero--row .home-hero__visual {
    flex: 1 1 0;
    min-width: 0;
  }
  .home-hero--row .home-hero__visual .home-hero__image {
    width: 100%;
  }

  .home-hero__link {
    font-size: 20px;
  }
}

@media (max-width: 920px) {
  .sol-trusted__container {
    gap: 24px;
  }
  .sol-solutions__grid {
    gap: 23px;
  }
  .sol-solutions__title {
    font-size: 22px;
  }
  .sol-testimonials__body {
    padding: 21px 18px;
  }
  .sol-testimonials__heading {
    font-size: 21px;
  }
  .sol-feature {
    gap: 32px;
  }
  .sol-feature__title {
    font-size: 28px;
  }
}

@media (max-width: 650px) {
  .sol-title,
  .sol-cta .sol-title,
  .sol-feature__title {
    font-size: 29px;
  }
  .sol-intro {
    font-size: 16px;
  }
  .sol-advantages__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .sol-trusted__container {
    flex-direction: column;
  }
  .sol-trusted__text {
    text-align: center;
    font-size: 13px;
  }
  .sol-trusted__text br {
    display: none;
  }
  .sol-trusted__logo img {
    max-height: 29px;
  }
  .sol-solutions,
  .sol-testimonials {
    padding: 39px 0;
  }
  .sol-solutions__grid,
  .sol-testimonials__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 29px;
  }
  .sol-solutions__item {
    padding-bottom: 29px;
    border-bottom: 1px solid #ccd6df;
  }
  .sol-solutions__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .sol-solutions__image img {
    width: 104px;
    height: 104px;
    margin-bottom: 20px;
  }
  .sol-testimonials__body {
    padding: 24px;
  }
  .sol-feature,
  .sol-feature--reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 38px 0;
  }
  .sol-feature--reverse .sol-feature__copy {
    order: 0;
  }
  .sol-cta {
    padding-bottom: 35px;
  }
  .sol-cta__box {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 25px;
  }
}

/* Text under the hero image: centered on mobile */
@media (max-width: 767px) {
  .home-hero__image-text {
    text-align: center;
  }
}

/* Trusted by: on tablets the logos are shrunk to fit in a single row */
@media (min-width: 651px) and (max-width: 968px) {
  .sol-trusted__container {
    gap: 20px;
  }
  .sol-trusted__logos {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 16px;
  }
  .sol-trusted__logo {
    flex: 0 1 auto;
    min-width: 0;
  }
  .sol-trusted__logo img {
    max-height: 30px;
  }
}

/* Trusted by: the same single row on mobile, the logos shrink by width */
@media (max-width: 650px) {
  .sol-trusted__logos {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
  }
  .sol-trusted__logo {
    flex: 0 1 auto;
    min-width: 0;
  }
}

/* Benefit: content appearance on scroll - the same motion as the old strip.
   The start state is applied only after the JS marks the section as ready,
   so without JS the content stays visible. */
@media (min-width: 993px) {
  .sol-features--reveal-ready .sol-feature__copy {
    transform: translateY(250px);
    opacity: 0;
    transition: 20ms all cubic-bezier(0.18, 0.8, 0.18, 0.8);
  }
  .sol-features--reveal-ready .sol-feature__image {
    transform: translateX(200%);
    opacity: 0;
    filter: blur(5px);
    transition: 750ms all cubic-bezier(0.18, 0.8, 0.18, 0.8);
  }
  .sol-features--reveal-ready .sol-feature--reverse .sol-feature__image {
    transform: translateX(-200%);
  }
  .sol-features--reveal-ready .sol-feature.is-visible .sol-feature__copy {
    transform: translateY(0);
    opacity: 1;
    transition: 750ms all cubic-bezier(0.18, 0.8, 0.18, 0.8);
  }
  .sol-features--reveal-ready .sol-feature.is-visible .sol-feature__image,
  .sol-features--reveal-ready
    .sol-feature--reverse.is-visible
    .sol-feature__image {
    transform: translateX(0);
    opacity: 1;
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sol-features--reveal-ready .sol-feature__copy,
  .sol-features--reveal-ready .sol-feature__image,
  .sol-features--reveal-ready .sol-feature--reverse .sol-feature__image {
    transform: none;
    opacity: 1;
    filter: none;
    transition: none;
  }
}
