/**
 * @file
 * Solutions Section component styles.
 * Mirrored icon/label features around a centered product image.
 */

.solutions {
  padding: 2rem 0;
}

.solutions__intro {
  text-align: center;
  margin-bottom: 3rem;
}

/* Eyebrow label with a short cyan underline (matches the brand section header). */
.solutions__eyebrow {
  display: inline-block;
  position: relative;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  color: #6c757d;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.solutions__eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: var(--pp-cyan, #009CDD);
}

.solutions__heading {
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.solutions__text {
  max-width: 720px;
  margin: 0.5rem auto 0;
  color: var(--pp-black, #2D2926);
}

/* Three columns: left features | product image | right features */
.solutions__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.solutions__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}

.solutions__product {
  display: flex;
  align-items: center;
  justify-content: center;
}

.solutions__product img {
  max-width: 300px;
  width: 100%;
  height: auto;
}

/* A single feature: label + icon on one row. A 2-track grid keeps the icons
   in a clean vertical line while the label hugs the icon (text on the outboard
   side, gap on the outboard edge). */
.solutions__item {
  display: grid;
  align-items: center;
  column-gap: 1.25rem;
  text-decoration: none;
}

/* Left column: label track | icon. Label right-aligned, against the icon. */
.solutions__col--left .solutions__item {
  grid-template-columns: 1fr auto;
}

.solutions__col--left .solutions__label {
  justify-self: end;
  text-align: right;
}

/* Right column: icon | label track. Label left-aligned, against the icon. */
.solutions__col--right .solutions__item {
  grid-template-columns: auto 1fr;
}

.solutions__col--right .solutions__label {
  justify-self: start;
  text-align: left;
}

.solutions__label {
  color: var(--pp-cyan, #009CDD);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  /* Box shrinks to the longest word, so each word wraps to its own line. */
  width: min-content;
}

.solutions__icon {
  flex-shrink: 0;
  width: 71px;
  height: 71px;
}

/* Hover: dark-blue label, no underline (overrides the global green a:hover). */
.solutions__item:hover,
.solutions__item:focus {
  text-decoration: none;
}

.solutions__item:hover .solutions__label,
.solutions__item:focus .solutions__label {
  color: var(--pp-dark-blue, #001A72);
}

/* Stack on small screens: image first, then features full width. */
@media (max-width: 767px) {
  .solutions {
    padding: 3rem 0;
  }

  .solutions__heading {
    font-size: 1.4rem;
  }

  /* Keep the desktop layout (features flanking the valve image), just smaller.
     minmax(0, 1fr) stops the side columns from overflowing the narrow viewport. */
  .solutions__grid {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.35rem;
    padding: 0 0.3rem;
  }

  .solutions__col {
    gap: 1.5rem;
  }

  .solutions__item {
    column-gap: 0.4rem;
  }

  .solutions__icon {
    width: 44px;
    height: 44px;
  }

  .solutions__label {
    font-size: 0.66rem;
    letter-spacing: 0;
  }

  .solutions__product img {
    max-width: 86px;
  }
}
