/* =========================================================
   ECAMEC
   Solutions
========================================================= */

/* =========================================================
   SECTION
========================================================= */

.solutions {
  background: #262d2f;
}

/* =========================================================
   HEADER
========================================================= */

.solutions__header {
  max-width: 920px;

  margin-bottom: 54px;
}

.solutions__header .section-title {
  margin-bottom: 20px;
}

/* =========================================================
   GRID
========================================================= */

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}

/* =========================================================
   CARD
========================================================= */

.solution-card {
  overflow: hidden;

  display: flex;
  flex-direction: column;

  min-height: 100%;

  background: var(--bg-secondary);

  border: 1px solid var(--border-light);
  border-radius: 24px;

  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base);
}

.solution-card:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 255, 255, 0.2);

  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.2);
}

/* =========================================================
   IMAGE
========================================================= */

.solution-card__media {
  position: relative;

  aspect-ratio: 16 / 10;

  overflow: hidden;

  background: #202729;
}

.solution-card__media::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 55%,
    rgba(0, 0, 0, 0.18) 100%
  );

  pointer-events: none;
}

.solution-card__media img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.55s ease;
}

.solution-card:hover .solution-card__media img {
  transform: scale(1.035);
}

/* =========================================================
   CONTENT
========================================================= */

.solution-card__content {
  display: flex;
  flex-direction: column;

  flex: 1;

  padding: 28px;
}

.solution-card__number {
  display: block;

  margin-bottom: 16px;

  color: var(--text-muted);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 0.1em;
}

.solution-card__title {
  margin-bottom: 18px;

  color: var(--color-orange);

  font-size: clamp(25px, 2vw, 32px);
  font-weight: 600;

  letter-spacing: -0.035em;
}

.solution-card__text {
  margin-bottom: 15px;

  color: var(--text-secondary);

  font-size: 14px;
  line-height: 1.75;
}

.solution-card__text:last-of-type {
  margin-bottom: 0;
}

/* =========================================================
   LINK
========================================================= */

.solution-card__link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  width: fit-content;

  margin-top: auto;
  padding-top: 28px;

  color: var(--color-white);

  font-size: 13px;
  font-weight: 600;

  transition:
    color var(--transition-fast),
    gap var(--transition-fast);
}

.solution-card__link span {
  color: var(--color-orange);

  font-size: 17px;

  transition: transform var(--transition-fast);
}

.solution-card__link:hover {
  gap: 12px;

  color: var(--color-orange);
}

.solution-card__link:hover span {
  transform: translate(2px, -2px);
}

/* =========================================================
   ORANGE DETAIL
========================================================= */

.solution-card {
  position: relative;
}

.solution-card::after {
  content: "";

  position: absolute;

  left: 28px;
  right: 28px;
  bottom: 0;

  height: 2px;

  background: var(--color-orange);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform var(--transition-base);
}

.solution-card:hover::after {
  transform: scaleX(1);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1100px) {
  .solutions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-card:last-child {
    grid-column: 1 / -1;

    max-width: calc(50% - 9px);
  }
}

@media (max-width: 820px) {
  .solutions__header {
    margin-bottom: 40px;
  }

  .solutions__grid {
    grid-template-columns: 1fr;

    gap: 14px;
  }

  .solution-card:last-child {
    grid-column: auto;

    max-width: none;
  }

  .solution-card__content {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .solutions__header {
    margin-bottom: 32px;
  }

  .solution-card {
    border-radius: 18px;
  }

  .solution-card__media {
    aspect-ratio: 16 / 9;
  }

  .solution-card__content {
    padding: 22px;
  }

  .solution-card__number {
    margin-bottom: 12px;
  }

  .solution-card__title {
    margin-bottom: 14px;

    font-size: 27px;
  }

  .solution-card__text {
    font-size: 14px;
    line-height: 1.7;
  }

  .solution-card__link {
    padding-top: 22px;
  }
}

/* =========================================================
   SOLUTIONS - VISUAL BACKGROUND
   Standard ECAMEC treatment
========================================================= */

.solutions {
  position: relative;
  isolation: isolate;

  background: var(--bg-main);

  overflow: hidden;
}

/* =========================================================
   DESKTOP BACKGROUND
========================================================= */

.solutions::before {
  content: "";

  position: absolute;
  z-index: -2;

  inset: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(16, 21, 23, 0.97) 0%,
      rgba(16, 21, 23, 0.9) 30%,
      rgba(16, 21, 23, 0.62) 65%,
      rgba(16, 21, 23, 0.42) 100%
    ),
    url("../assets/images/solutions/solutions-bg.jpg");

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  opacity: 0.30;

  pointer-events: none;
}

/* =========================================================
   AMBIENT OVERLAY
========================================================= */

.solutions::after {
  content: "";

  position: absolute;
  z-index: -1;

  inset: 0;

  pointer-events: none;

  background: linear-gradient(
    180deg,
    rgba(48, 56, 58, 0.1) 0%,
    rgba(48, 56, 58, 0.22) 38%,
    rgba(48, 56, 58, 0.48) 72%,
    var(--bg-main) 100%
  );
}

/* =========================================================
   HEADER
========================================================= */

.solutions__header {
  position: relative;
  z-index: 1;
}

/* =========================================================
   CARDS
   Dark glass treatment
========================================================= */

.solution-card {
  position: relative;
  z-index: 1;

  background: linear-gradient(
    135deg,
    rgba(20, 26, 29, 0.94),
    rgba(26, 31, 34, 0.88)
  );

  border-color: rgba(255, 255, 255, 0.18);

  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.solution-card:hover {
  background: linear-gradient(
    135deg,
    rgba(22, 28, 31, 0.97),
    rgba(29, 34, 37, 0.92)
  );

  border-color: rgba(233, 91, 12, 0.55);

  box-shadow:
    0 26px 65px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(233, 91, 12, 0.06);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .solutions::before {
    background-image:
      linear-gradient(
        180deg,
        rgba(16, 21, 23, 0.88) 0%,
        rgba(16, 21, 23, 0.74) 34%,
        rgba(16, 21, 23, 0.82) 68%,
        rgba(48, 56, 58, 0.98) 100%
      ),
      url("../assets/images/solutions/solutions-bg-mobile.jpg");

    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;

    opacity: 0.68;
  }

  .solutions::after {
    background: linear-gradient(
      180deg,
      rgba(48, 56, 58, 0.1) 0%,
      rgba(48, 56, 58, 0.24) 40%,
      rgba(48, 56, 58, 0.58) 74%,
      var(--bg-main) 100%
    );
  }

  .solution-card {
    background: rgba(20, 26, 29, 0.92);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}
