/* ============================================
   ECOFACTOR - Solutions Section Styles
   Uses variables from root.css (UI Kit)
   ============================================ */

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

.solutions {
  position: relative;
  width: 100%;
  background-color: var(--color-white);
  padding: 80px 0;
  overflow: hidden;
}

/* Decorative graphic element */
.solutions__graphic {
  position: absolute;
  top: -193px;
  right: -135px;
  width: 777px;
  height: 717px;
  pointer-events: none;
  z-index: 0;
}

.solutions__content {
  position: relative;
  z-index: 1;
  max-width: 1148px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

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

.solutions__header {
  width: 100%;
}

.solutions__title {
  font-family: var(--font-primary);
  font-size: var(--h2-size); /* 32px */
  font-weight: var(--font-bold);
  line-height: var(--h2-line-height); /* 1.3 */
  color: var(--color-gray-20);
  margin: 0;
}

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

.solution-card {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
}

/* Card with text on left, photo on right */
.solution-card--left {
  flex-direction: row;
}

/* Card with photo on left, text on right */
.solution-card--right {
  flex-direction: row-reverse;
}

/* ============================================
   TEXT BOX (Glass effect)
   ============================================ */

.solution-card__text-box {
  position: relative;
  z-index: 2;
  width: 392px;
  flex-shrink: 0;
  padding: 40px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--color-gray-95);
  border-radius: var(--radius-xl); /* 16px */
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Overlap effect */
.solution-card__text-box:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.solution-card--left .solution-card__text-box {
  margin-right: -98px;
}

.solution-card--right .solution-card__text-box {
  margin-left: -98px;
}

/* Text content */
.solution-card__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.solution-card__title {
  font-family: var(--font-primary);
  font-size: var(--h3-size); /* 26px */
  font-weight: var(--font-bold);
  line-height: 1.4;
  color: var(--color-gray-20);
  margin: 0;
}

.solution-card__description {
  font-family: var(--font-primary);
  font-size: var(--body-size); /* 16px */
  font-weight: var(--font-regular);
  line-height: var(--body-line-height); /* 1.5 */
  color: var(--color-gray-20);
  margin: 0;
}

/* ============================================
   PHOTO BOX
   ============================================ */

.solution-card__photo {
  position: relative;
  z-index: 1;
  width: 853px;
  height: 441px;
  flex-shrink: 0;
  border-radius: var(--radius-xl); /* 16px */
  overflow: hidden;
}

.solution-card__photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.solution-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dark overlay on photo */
.solution-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(58, 58, 58, 0.2);
  border-radius: var(--radius-xl);
}

/* ============================================
   RESPONSIVE - Tablet
   ============================================ */

@media (max-width: 1200px) {
  .solutions__content {
    padding: 0 40px;
  }
  
  .solution-card__photo {
    width: 600px;
    height: 350px;
  }
  
  .solution-card__text-box {
    width: 350px;
  }
}

@media (max-width: 1024px) {
  .solutions {
    padding: 60px 0;
  }
  
  .solution-card {
    flex-direction: column !important;
    gap: 20px;
  }
  
  .solution-card__text-box {
    width: 100%;
    margin: 0 !important;
    order: 2;
  }
  
  .solution-card__photo {
    width: 100%;
    height: 300px;
    order: 1;
  }
  
  .solutions__graphic {
    display: none;
  }
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */

@media (max-width: 768px) {
  .solutions {
    padding: 40px 0;
  }
  
  .solutions__content {
    padding: 0 20px;
    gap: 30px;
  }
  
  .solution-card__text-box {
    padding: 24px;
    gap: 20px;
  }
  
  .solution-card__content {
    gap: 16px;
  }
  
  .solution-card__title {
    font-size: 22px;
  }
  
  .solution-card__photo {
    height: 220px;
  }
}

