/* ============================================
   Grow Halal — Ecosystem Integration
   Subtle, premium, understated.
   ============================================ */

/* ── Ecosystem Footer Section ── */
.ecosystem {
  padding: 4rem 1.5rem;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.ecosystem__inner {
  max-width: 800px;
  margin: 0 auto;
}
.ecosystem__header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.ecosystem__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-text-subtle);
  margin-bottom: 0.6rem;
}
.ecosystem__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* Product Cards */
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.ecosystem-card {
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
}
.ecosystem-card:hover {
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.ecosystem-card--active {
  border-color: rgba(4, 120, 87, 0.15);
  background: rgba(4, 120, 87, 0.02);
}
.ecosystem-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.ecosystem-card__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-primary);
  stroke-width: 1.8;
  fill: none;
}
.ecosystem-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.2rem;
}
.ecosystem-card__tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.6rem;
}
.ecosystem-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}
.ecosystem-card__cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}
.ecosystem-card:hover .ecosystem-card__cta {
  gap: 0.5rem;
}
.ecosystem-card__cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}
.ecosystem-card__current {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-positive);
  background: rgba(4, 120, 87, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: auto;
}

/* ── Contextual Recommendation Card ── */
.eco-recommend {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
  transition: all 0.2s ease;
}
.eco-recommend:hover {
  border-color: rgba(27, 67, 50, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}
.eco-recommend__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eco-recommend__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
  stroke-width: 1.8;
  fill: none;
}
.eco-recommend__body {
  flex: 1;
  min-width: 0;
}
.eco-recommend__label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--color-text-subtle);
  margin-bottom: 0.25rem;
}
.eco-recommend__text {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.eco-recommend__cta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s ease;
}
.eco-recommend__cta:hover { gap: 0.4rem; }
.eco-recommend__cta svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .ecosystem__grid { grid-template-columns: 1fr; }
  .eco-recommend { flex-direction: column; gap: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ecosystem-card, .eco-recommend { transition: none; }
  .ecosystem-card:hover { transform: none; }
}
