/* ===== HERO ===== */
.sol-hero {
  position: relative;
  margin-left: 3%;
  height: 580px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 0 6% 110px;
}

.sol-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sol-hero-darken {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.sol-hero-band {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.45);
  clip-path: polygon(0 50%, 100% 20%, 100% 100%, 0 100%);
  z-index: 1;
}

.sol-hero-mask {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 100px;
  background: #537780;
  clip-path: polygon(0 60%, 100% 30%, 100% 100%, 0 100%);
  z-index: 2;
}

.sol-hero-content {
  position: relative;
  z-index: 3;
}

.sol-hero-content h1 {
  font-size: clamp(3.5rem, 5vw + 1.5rem, 6.5rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

/* ===== TEAL INTRO ===== */
.sol-intro {
  background: #537780;
  margin-left: 3%;
  padding: 0 6% 60px;
}

.sol-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1100px;
}

.sol-intro-grid p {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

/* ===== DIAGRAM ===== */
.sol-diagram {
  background: #c9d1d3;
  margin-left: 3%;
  padding: 50px 8%;
  display: flex;
  justify-content: center;
}

.sol-diagram-mobile {
  display: none;
}

.sol-diagram img,
.sol-diagram video {
  max-width: 860px;
  width: 100%;
  height: auto;
}

/* ===== FILTER TABS ===== */
.sol-filters {
  background: #3c3b3b;
  margin-left: 3%;
  padding: 40px 5% 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sol-tab {
  padding: 10px 18px;
  font-size: 19px;
  font-weight: 400;
  color: #c9d1d3;
  background: #2e2c2c;
  border: 1px solid #c9d1d3;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}

.sol-tab:hover {
  color: #ffa700;
}

.sol-tab.active {
  background: #c9d1d3;
  color: #3c4a4a;
  border-color: #c9d1d3;
}

/* ===== SOLUTIONS GRID ===== */
.sol-listing {
  background: #3c3b3b;
  margin-left: 3%;
  padding: 30px 5% 70px;
}

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 16px;
  row-gap: 20px;
}

/* Each card: trapezoid — odd rows */
.sol-card {
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
  margin-bottom: 0;
}

.sol-card.hidden {
  display: none;
}

/* Even rows assigned by JS via .row-even class */
.sol-card.row-even {
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
}

.sol-card-body {
  padding: 30px 20px 50px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 170px;
}

.sol-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #537780;
  line-height: 1.25;
  margin: 0;
}

.sol-card-subtitle {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffa700;
}

.sol-card-excerpt {
  font-size: 19px;
  color: #333;
  line-height: 1.7;
  flex-grow: 1;
  margin: 0;
}

/* LEARN MORE: dark transparent box with orange border */
.sol-learn-more {
  display: inline-block;
  display: none;
  align-self: flex-start;
  font-size: 19px;
  font-weight: 700;
  color: #ffa700;
  text-decoration: none;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border: 1px solid #ffa700;
  padding: 5px 13px;
  background: rgba(0, 0, 0, 0.5);
  transition: background 0.2s ease;
}

.sol-learn-more:hover {
  background: rgba(0, 0, 0, 0.72);
}

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


@media (max-width: 768px) {
  .sol-hero {
    margin-left: 0;
    height: 40vh;
    min-height: unset;
    padding: 0 5% 60px 20px;
    align-items: flex-end;
  }

  .sol-hero-band,
  .sol-hero-mask {
    left: 3%;
    width: 97%;
    height: 100px;
  }

  .sol-hero-content {
    top: -30px;
  }

  .sol-hero-content h1 {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1px;
  }

  .sol-intro {
    margin-left: 3%;
  }

  .sol-intro-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .sol-hero {
    margin-left: 0;
  }

  .sol-intro {
    margin-left: 3%;
  }

  .sol-diagram {
    margin-left: 3%;
  }

  .sol-diagram-desktop {
    display: none;
  }

  .sol-diagram-mobile {
    display: block;
  }

  .sol-filters {
    margin-left: 0;
    gap: 6px;
  }

  .sol-tab {
    padding: 8px 16px;
    font-size: 19px;
    flex: 0 0 calc(33.333% - 4px);
    text-align: center;
    white-space: normal;
    line-height: 1.3;
  }

  .sol-listing {
    margin-left: 0;
  }

  .sol-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .sol-hero-content h1 {
    font-size: 28px;
  }
}