/* ======================
   FlexTram — Solutions Hub
   /solutions/index.html
   ====================== */

.hub {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--page-padding);
}

/* ---- HERO ---- */
.hero-heading {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}
.hero-heading em {
  font-style: italic;
  color: var(--color-text-secondary);
}
.hero-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 2rem;
}

/* ---- VALUE PROPS ---- */
.props-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 2.5rem;
}
.prop {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
}
.prop-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}
.prop-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ---- INDUSTRY GRID ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 2.5rem;
}
.card {
  display: block;
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.card-body {
  padding: 1.25rem;
}
.card:hover {
  border-color: var(--color-border-mid);
  background: var(--color-bg-secondary);
}
.card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.card-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

/* ---- CTA STRIP ---- */
.cta-strip {
  background: var(--color-bg-secondary);
  border: 0.5px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.cta-text strong {
  display: block;
  font-size: 15px;
  color: var(--color-text-primary);
  font-weight: 500;
  margin-bottom: 2px;
}
.cta-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 50px;
  border: none;
  background: #f5593d;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cta-btn:hover {
  transform: scale(1.05);
  background: #f33816;
  box-shadow: 0 4px 15px rgba(245, 89, 61, 0.25);
  color: #fff;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hub {
    padding: 2rem var(--page-padding);
  }

  .hero-heading {
    font-size: clamp(26px, 5vw, 36px);
  }

  .hero-sub {
    max-width: 100%;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .props-row { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }

  .card-img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .props-row { grid-template-columns: 1fr; }

  .hero-heading {
    font-size: clamp(22px, 5vw, 30px);
  }

  .hero-sub {
    font-size: 14px;
  }

  .prop {
    padding: 0.75rem;
  }

  .card-title {
    font-size: 13px;
  }

  .card-desc {
    font-size: 11px;
  }

  .cta-strip {
    padding: 1rem;
  }

  .cta-text {
    font-size: 13px;
  }

  .cta-btn {
    font-size: 12px;
    padding: 8px 14px;
  }
}

@media (max-width: 375px) {
  .hub {
    padding: 1.5rem var(--page-padding);
  }

  .card-img {
    height: 120px;
  }
}
