/* ============================================================
   Saral SAAS Ecosystem — Professional Design System
   Human-crafted with deliberate spacing, depth layering,
   and industry-grade typographic contrast.
   ============================================================ */

/* ── Design tokens & page shell ──────────────────── */

.eco-page {
  --eco-brand: #1276c6;
  --eco-brand-light: #4ebdff;
  --eco-dark: #0d2137;
  --eco-text: #1e293b;
  --eco-muted: #64748b;
  --eco-surface: #f8fafc;
  --eco-border: #e2e8f0;
  --eco-glow: rgba(78, 189, 255, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover: 0 2px 6px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  --shadow-hero: 0 8px 32px rgba(0,0,0,0.15);

  overflow-x: hidden;
  padding: 40px 0 80px;
  font-family: var(--font-family);
  color: var(--eco-text);
  line-height: 1.7;
  background: #f4f7fb;
  -webkit-font-smoothing: antialiased;
}

.eco-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Hero (professional gradient + subtle glass effect) ── */

.eco-hero {
  display: flex;
  align-items: center;
  gap: 48px;
  background: linear-gradient(135deg, var(--eco-dark) 0%, #152238 30%, var(--eco-brand) 100%);
  border-radius: var(--radius);
  padding: 52px 44px;
  color: #fff;
  margin-bottom: 40px;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}
.eco-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.eco-hero::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -30px;
  width: 200px; height: 200px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.eco-hero__text { flex: 1.35; position: relative; z-index: 1; }
.eco-hero__img  { flex: 1; position: relative; z-index: 1; }

.eco-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.22;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.eco-hero__subtitle {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 10px;
  font-weight: 500;
  line-height: 1.5;
}
.eco-hero__desc {
  font-size: 0.95rem;
  opacity: 0.78;
  margin-bottom: 22px;
  line-height: 1.65;
  max-width: 520px;
}

.eco-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.13);
  backdrop-filter: blur(4px);
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.eco-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--eco-brand);
  padding: 13px 28px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.eco-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
}

.eco-hero img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  min-height: 200px;
  max-height: 280px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ── Section cards (depth-layered white cards) ──── */

.eco-section {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 36px 38px 38px;
  margin-bottom: 28px;
  border: 1px solid var(--eco-border);
  box-shadow: var(--shadow-card);
}

.eco-section h2 {
  font-size: 1.55rem;
  color: var(--eco-dark);
  margin: 0 0 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.eco-section h3 {
  font-size: 1.08rem;
  margin: 22px 0 10px;
  color: var(--eco-text);
  font-weight: 700;
}

.eco-section p {
  font-size: 0.94rem;
  color: var(--eco-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ── Split (text + image side by side) ──────────── */

.eco-split {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.eco-split__text { flex: 1.4; min-width: 260px; }
.eco-split__img  { flex: 1; min-width: 200px; }
.eco-split img, .eco-split__img img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  max-height: 270px;
  min-height: 170px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ── Grids ──────────────────────────────────────── */

.eco-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.eco-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

/* ── Cards (subtle depth + hover lift) ──────────── */

.eco-card {
  background: var(--eco-surface);
  border-radius: var(--radius-sm);
  padding: 24px 26px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.eco-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--eco-brand-light);
}
.eco-card strong { color: var(--eco-brand); }
.eco-card h3 {
  font-size: 1.03rem;
  margin: 0 0 8px;
  color: var(--eco-text);
}
.eco-card p {
  color: var(--eco-muted);
  margin-top: 6px;
  line-height: 1.6;
}

/* ── Table (clean, modern stripes) ──────────────── */

.eco-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--eco-border);
}
.eco-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.89rem;
}
.eco-table thead { background: var(--eco-brand); color: #fff; }
.eco-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.eco-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--eco-border);
  vertical-align: middle;
}
.eco-table tbody tr { transition: background 0.15s ease; }
.eco-table tbody tr:hover { background: #f8fbff; }
.eco-table tbody tr:last-child td { border-bottom: none; }
.eco-table td img {
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── FAQ items ──────────────────────────────────── */

.eco-faq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--eco-border);
}
.eco-faq-item:last-child { border-bottom: none; }
.eco-faq-item strong {
  display: block;
  color: var(--eco-text);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.eco-faq-item p {
  color: var(--eco-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Final CTA (gradient background) ────────────── */

.eco-cta {
  background: linear-gradient(135deg, var(--eco-dark) 0%, var(--eco-brand) 100%);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  color: #fff;
  margin-top: 30px;
  box-shadow: var(--shadow-hero);
  position: relative;
  overflow: hidden;
}
.eco-cta::before {
  content: '';
  position: absolute;
  top: -50%; left: -30%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.eco-cta h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.eco-cta p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.eco-cta img {
  max-width: 400px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
}
.eco-cta .eco-hero__cta {
  position: relative;
  z-index: 1;
  display: inline-block;
}

/* ── Promo banner ───────────────────────────────── */

.eco-promo {
  background: linear-gradient(135deg, #f0f6ff 0%, #e8f2ff 100%);
  border-radius: var(--radius-sm);
  padding: 16px 22px;
  margin: 18px 0;
  font-size: 0.92rem;
  border: 1px solid var(--eco-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.eco-promo strong { color: var(--eco-brand); }

/* ── Success story ──────────────────────────────── */

.eco-success {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f2f9f2 0%, #e8f5e9 100%);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin: 20px 0;
  border: 1px solid #c8e6c9;
}
.eco-success img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.eco-success__text { flex: 1; }
.eco-success__text strong {
  display: block;
  margin-bottom: 6px;
  color: #2e7d32;
  font-size: 0.93rem;
}
.eco-success__text div {
  font-size: 0.9rem;
  color: var(--eco-muted);
  line-height: 1.65;
}

/* ── Projects section ───────────────────────────── */

.eco-projects__lead {
  color: var(--eco-muted);
  margin-bottom: 20px;
  font-size: 0.93rem;
}

.eco-project__tag {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--eco-brand);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 10px;
}

.eco-project h3 {
  font-size: 1rem;
  margin: 6px 0;
  color: var(--eco-text);
}

/* ── List ───────────────────────────────────────── */

.eco-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.eco-list li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--eco-text);
  line-height: 1.6;
}
.eco-list li::before {
  content: '✓';
  color: var(--eco-brand);
  font-weight: 700;
  margin-right: 10px;
}

/* ── Card with image (Who We Serve / service cards) ── */

.eco-card-img {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0 0 14px 0;
  border: 1px solid var(--eco-border);
  overflow: hidden;
  text-align: center;
  font-size: 0.88rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}
.eco-card-img:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.eco-card-img img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.eco-card-img strong {
  color: var(--eco-brand);
  font-size: 0.93rem;
}
.eco-card-img h3 {
  color: var(--eco-brand);
  font-size: 1rem;
  margin: 10px 14px 6px;
  text-align: left;
}
.eco-card-img p {
  padding: 0 14px;
  color: var(--eco-muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 4px 0;
  text-align: left;
}

/* ── FAQ split (image + QA side by side) ────────── */

.eco-faq-split {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 20px 0;
  align-items: flex-start;
}
.eco-faq-split__img { flex: 1; min-width: 240px; }
.eco-faq-split__img img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  min-height: 200px;
  max-height: 380px;
  box-shadow: var(--shadow-card);
}
.eco-faq-split__qa { flex: 2; min-width: 280px; }

/* ── CTA with image (Gen1 final CTA) ────────────── */

.eco-cta-img {
  background: linear-gradient(135deg, var(--eco-dark) 0%, var(--eco-brand) 100%);
  border-radius: var(--radius);
  padding: 38px 32px;
  text-align: center;
  color: #fff;
  margin-top: 30px;
  box-shadow: var(--shadow-hero);
}
.eco-cta-img img {
  width: 100%;
  max-width: 460px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  object-fit: cover;
  max-height: 160px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.eco-cta-img p {
  margin-bottom: 8px;
  font-size: 0.94rem;
  opacity: 0.9;
}
.eco-cta-img .eco-cta-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 1;
}
.eco-cta-img .eco-hero__cta {
  display: inline-block;
  margin-top: 14px;
}

/* ── Gold-accent CTA (Events, Health) ───────────── */

.eco-cta-gold {
  background: #FFD700 !important;
  color: var(--eco-brand) !important;
}

/* ── Hard Truth section ─────────────────────────── */

.eco-hard-truth h2 {
  color: var(--eco-brand);
}

/* ── Utility icon + badge (Utilities page service cards) ── */

.eco-utility-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--eco-surface);
  color: var(--eco-brand);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.eco-utility-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--eco-surface);
  color: var(--eco-brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--eco-border);
}

/* ── Metric value (Success Metrics stat cards) ──── */

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--eco-brand);
  margin-bottom: 4px;
}

/* ── Section lead paragraph ──────────────────────── */

.eco-table__lead {
  color: var(--eco-muted);
  margin-bottom: 18px;
  font-size: 0.93rem;
}

/* ── Two-column text serve items ────────────────── */

.eco-serve-text-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.eco-serve-text-item {
  background: var(--eco-surface);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid var(--eco-border);
  line-height: 1.55;
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
  .eco-page { padding: 24px 0 48px; }
  .eco-container { padding: 0 16px; }
  .eco-hero {
    flex-direction: column;
    padding: 36px 24px;
    gap: 28px;
  }
  .eco-hero h1 { font-size: 1.55rem; }
  .eco-hero img { max-height: 200px; min-height: 150px; }
  .eco-section { padding: 24px 18px; }
  .eco-section h2 { font-size: 1.25rem; }
  .eco-split { flex-direction: column; }
  .eco-split img, .eco-split__img img { max-height: 200px; }
  .eco-cta { padding: 32px 22px; }
  .eco-cta h2 { font-size: 1.3rem; }
  .eco-success { flex-direction: column; align-items: center; text-align: center; }
  .eco-faq-split { flex-direction: column; }
  .eco-faq-split__img img { max-height: 220px; }
  .eco-cta-img img { max-height: 120px; }
}

/* ── Legacy class support (older templates may use these) ── */

.eco-page .grid-2,
.eco-page .pillars-grid,
.eco-page .pillar-grid,
.eco-page .metrics-grid,
.eco-page .app-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 18px 0;
}

.eco-page .card,
.eco-page .pillar-card,
.eco-page .stat-card,
.eco-page .metric-card,
.eco-page .app-card,
.eco-page .success-story {
  background: var(--eco-surface);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  border: 1px solid var(--eco-border);
  font-size: 0.9rem;
  transition: box-shadow 0.2s ease;
}
.eco-page .card:hover,
.eco-page .pillar-card:hover,
.eco-page .stat-card:hover,
.eco-page .metric-card:hover,
.eco-page .app-card:hover {
  box-shadow: var(--shadow-hover);
}

.eco-page .card img,
.eco-page .pillar-card img,
.eco-page .app-card img {
  width: 100%;
  max-height: 170px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.eco-page .btn,
.eco-page .app-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--eco-brand);
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}
.eco-page .btn:hover,
.eco-page .app-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* Vehicle icons (transport) */
.eco-page .vehicle-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin: 20px 0;
}
.eco-page .vehicle-icon {
  width: 110px;
  text-align: center;
  color: var(--eco-text);
  font-size: 0.82rem;
}
.eco-page .vehicle-icon img {
  width: 80px;
  height: 80px;
  max-height: 80px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 8px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
