/* ==========================================================
   STAKEHOLDER ENGAGEMENT — stakeholder-engagement.css
   Companion to style.css — uses the same CSS variables.
   Responsive + dark/light theme aware.
   ========================================================== */

/* Page-local accents */
:root {
  --se-input: #d98a13;      /* Inputs from Stakeholders */
  --se-output: #0f8a7e;     /* Outputs from Tata Power */
  --se-input-soft: #fbf2dd;
  --se-output-soft: #e2f3f0;
}
html[data-theme="dark"] {
  --se-input: #f0b44e;
  --se-output: #43c7b8;
  --se-input-soft: #2a2410;
  --se-output-soft: #0f2826;
}

/* ─────────────────────────  HERO  ───────────────────────── */
.se-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 60px 0 70px;
  background: linear-gradient(135deg, #042e2c 0%, #0a4f4b 50%, #0c5e58 100%);
}
.se-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 85% 25%, rgba(76, 199, 184, 0.28) 0%, transparent 65%);
  pointer-events: none;
}
.se-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.se-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px;
}
.se-hero-title {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 26px;
}
.se-hero-lead {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 560px;
}

/* Approach panel inside hero */
.se-approach {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
  padding: 30px 32px 34px;
}
.se-approach-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}
.se-approach-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 26px;
}
.se-proc-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 200px;
  line-height: 1.4;
}
.se-proc {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.se-proc-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 6px;
}
.se-proc-ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.se-proc-ic svg { width: 24px; height: 24px; }
.se-proc-step p {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.se-proc-arrow {
  align-self: center;
  margin-top: 24px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
}
.se-proc-arrow svg { width: 18px; height: 18px; display: block; }

/* ─────────────────────────  MATRIX SECTION  ───────────────────────── */
.se-section {
  padding: 64px 0 72px;
  background: var(--bg);
}
.se-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 16px;
}
.se-rule h2 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}
.se-rule-line { flex: 1; height: 1.5px; background: var(--border); }
.se-section-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.85;
  max-width: 720px;
  margin: 0 0 36px;
}

/* Legend */
.se-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin: 0 0 30px;
}
.se-legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.se-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}
.se-dot--in { background: var(--se-input); }
.se-dot--out { background: var(--se-output); }

/* Stakeholder tables — two tables side by side, faithful to the PDF */
.se-tables {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.se-table-wrap {
  border: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.se-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  background: var(--surface);
}
.se-table th {
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 11px 16px;
  color: #fff;
  vertical-align: middle;
  line-height: 1.3;
}
.se-th-why { background: #111; width: 44%; }
html[data-theme="dark"] .se-th-why { background: #05080f; }
.se-th-vc { background: var(--green); border-left: 2px solid var(--surface); }
.se-table td {
  vertical-align: top;
  padding: 16px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.se-td-why { background: var(--surface); width: 44%; }
.se-td-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.se-td-why p {
  margin: 0;
  font-size: 16px;
  font-weight:400;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.9;
}
.se-td-in { background: var(--se-input-soft); width: 28%; border-left: 1px solid var(--border); }
.se-td-out { background: var(--se-output-soft); width: 28%; border-left: 1px solid var(--border); }
.se-table ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.se-table li {
  position: relative;
  padding-left: 15px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
}
.se-table li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.se-td-in li::before { color: var(--se-input); }
.se-td-out li::before { color: var(--se-output); }

/* ─────────────────────────  RESPONSIVE  ───────────────────────── */
@media (max-width: 991px) {
  .se-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .se-tables { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .se-hero { padding: 44px 0 52px; }
  .se-section { padding: 44px 0 52px; }
  .se-approach { padding: 24px 22px 28px; }
  .se-rule h2 { white-space: normal; }
}
@media (max-width: 560px) {
  .se-proc { flex-direction: column; gap: 18px; align-items: stretch; }
  .se-proc-step { flex-direction: row; text-align: left; gap: 14px; }
  .se-proc-arrow { display: none; }
}

/* Scroll reveal (shared .anim behaviour) */
.anim {
  opacity: 0;
  transform: translateY(22px);
  transition: none;
}
