/* ==========================================================================
   BHARATEDGE — ELECTRICAL INFRASTRUCTURE SOLUTION PAGE
   Scope: electrical-infrastructure.html only. Loaded after the shared
   css/solutions-template.css (breadcrumb, hero badge, FAQ, buttons, CTA reused).
   Everything here is namespaced `.elx-` and fully additive.
   ========================================================================== */

.sol-page .elx-sec { padding: 120px 0; position: relative; overflow: hidden; }
@media (max-width: 768px) { .sol-page .elx-sec { padding: 84px 0; } }

.elx-head { max-width: 760px; margin: 0 0 56px; }
.elx-head h2 { color: var(--secondary); font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.18; text-wrap: balance; }
.elx-head p { margin-top: 16px; max-width: 640px; color: var(--gray); font-size: 17px; line-height: 1.75; }
.elx-on-dark .elx-head h2, .elx-on-dark.elx-head h2 { color: #fff; }
.elx-on-dark .elx-head p, .elx-on-dark.elx-head p { color: rgba(226, 240, 252, .72); }

/* --------------------------------------------------------------------------
   1. HERO — single-line diagram
   -------------------------------------------------------------------------- */
.sol-page .elx-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 164px 0 92px;
  background:
    radial-gradient(ellipse 820px 600px at 82% 40%, rgba(20, 100, 145, .42), transparent 62%),
    radial-gradient(ellipse 600px 420px at 6% 100%, rgba(245, 158, 11, .09), transparent 65%),
    linear-gradient(165deg, #0b3c5d 0%, #072b42 50%, #04101c 100%);
  color: #fff;
}
.elx-hero .sol-hero-grid { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 74% 46%, #000 30%, transparent 86%); mask-image: radial-gradient(ellipse 70% 80% at 74% 46%, #000 30%, transparent 86%); }
.elx-hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.elx-hero .sol-hero-inner { max-width: 600px; }
.elx-hero h1 { margin-bottom: 20px; color: #fff; font-size: clamp(34px, 4.4vw, 58px); font-weight: 800; line-height: 1.1; letter-spacing: -.012em; }
.elx-hero h1 span { display: block; }
.elx-hero h1 span + span { color: rgba(226, 240, 252, .82); }
.elx-tagline { margin-bottom: 20px; padding-left: 16px; border-left: 3px solid var(--accent); color: #fff; font-size: clamp(15px, 1.4vw, 17.5px); font-weight: 500; line-height: 1.55; }
.elx-hero .sol-hero-lede { margin-bottom: 36px; }

.elx-sld-stage { position: relative; justify-self: end; width: min(100%, 540px); }
.elx-sld-stage::before { content: ""; position: absolute; inset: 6% 6% 2%; background: radial-gradient(ellipse at 50% 42%, rgba(245, 158, 11, .13), transparent 66%); filter: blur(26px); z-index: -1; }
.elx-sld { width: 100%; height: auto; display: block; overflow: visible; }
.elx-sld .s-line { stroke: rgba(148, 197, 230, .5); stroke-width: 2; fill: none; stroke-linecap: round; }
.elx-sld .s-bus { stroke: rgba(190, 222, 244, .85); stroke-width: 6; stroke-linecap: round; fill: none; }
.elx-sld .s-bus-sm { stroke-width: 4; }
.elx-sld .s-flow { stroke: var(--accent); stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-dasharray: 3 15; opacity: .95; }
.elx-sld .s-flow-bus { stroke-width: 2; opacity: .9; }
.elx-sld .s-box { fill: #08304a; stroke: rgba(148, 197, 230, .8); stroke-width: 1.8; }
.elx-sld .s-ups { stroke: var(--accent); }
.elx-sld .s-sym { stroke: rgba(226, 240, 252, .9); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.elx-sld .s-sym-t { fill: #e2f0fc; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.elx-sld .s-lbl { fill: #fff; font-family: "IBM Plex Sans", Arial, sans-serif; font-size: 14.5px; font-weight: 600; }
.elx-sld .s-lbl-c { font-size: 13.5px; font-weight: 500; fill: rgba(226, 240, 252, .92); }
.elx-sld .s-lbl-e { fill: rgba(245, 158, 11, .95); font-size: 13px; }
.elx-sld .s-earth { stroke: rgba(245, 158, 11, .6); stroke-width: 1.6; stroke-dasharray: 7 6; }
.elx-sld .s-earth-s { stroke: rgba(245, 158, 11, .8); stroke-width: 1.6; fill: none; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated moment: the diagram energises top to bottom, then current keeps flowing. */
  .elx-sld .s-node, .elx-sld .s-line, .elx-sld .s-bus { opacity: 0; animation: elxIn .55s ease-out forwards; animation-delay: calc(.15s + var(--i, 0) * .22s); }
  .elx-sld .s-flow { animation: elxFlow 1.6s linear infinite; animation-delay: calc(.9s + var(--i, 0) * .22s); }
  .elx-sld .s-flow-bus { animation-name: elxFlow; }
}
@keyframes elxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes elxFlow { to { stroke-dashoffset: -36; } }

@media (max-width: 960px) {
  .sol-page .elx-hero { padding: 140px 0 72px; }
  .elx-hero-layout { grid-template-columns: 1fr; gap: 44px; }
  .elx-sld-stage { justify-self: center; width: min(100%, 460px); }
}

/* --------------------------------------------------------------------------
   2. POWER PATH — a trunk that steps inward at every tier
   -------------------------------------------------------------------------- */
.elx-pathsec { background: linear-gradient(180deg, #fff 0%, #f3f8fc 100%); }
.elx-path { list-style: none; margin: 0; padding: 0; max-width: 940px; }
.elx-tier { position: relative; margin-left: calc(var(--lvl) * 34px); padding: 0 0 30px 46px; }
.elx-tier-node { position: absolute; left: 0; top: 8px; width: 18px; height: 18px; border: 2px solid rgba(11, 60, 93, .4); border-radius: 3px; background: #fff; transition: border-color .5s ease, background .5s ease, box-shadow .5s ease; }
.elx-tier-node::after { content: ""; position: absolute; left: 3px; top: 3px; width: 8px; height: 8px; background: rgba(11, 60, 93, .35); clip-path: polygon(0 100%, 100% 0, 100% 22%, 22% 100%); transition: background .5s ease; }
.elx-tier:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 28px; bottom: -17px; width: 2px; background: rgba(11, 60, 93, .22); transition: background .6s ease; }
.elx-tier:not(:first-child)::before { content: ""; position: absolute; left: -26px; top: 16px; width: 26px; height: 2px; background: rgba(11, 60, 93, .22); transition: background .6s ease; }
.elx-tier.is-live .elx-tier-node { border-color: var(--accent); background: #fff8eb; box-shadow: 0 0 0 4px rgba(245, 158, 11, .14); }
.elx-tier.is-live .elx-tier-node::after { background: #d98208; }
.elx-tier.is-live:not(:last-child)::after, .elx-tier.is-live:not(:first-child)::before { background: var(--accent); }
.elx-tier-body { padding: 20px 24px 22px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.elx-tier-body h3 { color: var(--secondary); font-size: 19px; font-weight: 700; }
.elx-tier-body p { margin: 6px 0 14px; max-width: 56ch; color: var(--gray); font-size: 15px; line-height: 1.7; }
.elx-tag { display: inline-block; padding: 6px 14px; border: 1px solid rgba(11, 60, 93, .22); border-radius: 999px; color: var(--primary); font-size: 13.5px; font-weight: 600; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.elx-tag:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.elx-ground { display: flex; align-items: flex-start; gap: 14px; max-width: 940px; margin-top: 8px; padding: 18px 22px; border: 1px dashed rgba(217, 130, 8, .6); border-radius: 10px; background: #fff8eb; color: var(--dark); font-size: 15px; line-height: 1.65; }
.elx-ground i { flex: 0 0 auto; margin-top: 4px; color: #d98208; }
@media (max-width: 600px) {
  .elx-tier { margin-left: calc(var(--lvl) * 14px); padding-left: 38px; }
  .elx-tier:not(:first-child)::before { left: -6px; width: 6px; }
  .elx-tier-body { padding: 16px 18px 18px; }
}

/* --------------------------------------------------------------------------
   3. CORE DISCIPLINES — technical drawings beside the copy
   -------------------------------------------------------------------------- */
.elx-core {
  background:
    repeating-linear-gradient(0deg, var(--blueprint-line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--blueprint-line) 0 1px, transparent 1px 44px),
    linear-gradient(165deg, #0b3c5d 0%, #072b42 55%, #04101c 100%);
  color: #fff;
}
.elx-feature { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; padding: 56px 0; border-top: 1px solid rgba(148, 197, 230, .2); }
.elx-feature:first-of-type { border-top: 0; padding-top: 8px; }
.elx-feature.is-flip .elx-art-wrap { order: 2; }
.elx-art-wrap { padding: 28px; border: 1px solid rgba(148, 197, 230, .28); border-radius: 12px; background: rgba(4, 16, 28, .5); }
.elx-art { width: 100%; height: auto; display: block; }
.elx-art * { stroke: rgba(170, 212, 238, .78); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.elx-art .a { stroke: var(--accent); }
.elx-art circle.a { fill: rgba(245, 158, 11, .25); }
.elx-feature-copy h3 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; line-height: 1.2; }
.elx-feature-copy p { margin: 14px 0 22px; max-width: 52ch; color: rgba(226, 240, 252, .78); font-size: 16.5px; line-height: 1.75; }
.elx-feature-copy ul { display: grid; gap: 10px; }
.elx-feature-copy li { position: relative; padding-left: 24px; color: #e2f0fc; font-size: 15.5px; line-height: 1.55; }
.elx-feature-copy li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .elx-feature.is-in path.a { stroke-dasharray: 6 9; animation: elxFlow 1.6s linear infinite; }
}
@media (max-width: 900px) {
  .elx-feature { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .elx-feature.is-flip .elx-art-wrap { order: 0; }
  .elx-art-wrap { padding: 18px; }
}

/* --------------------------------------------------------------------------
   4. SUPPORTING DISCIPLINES
   -------------------------------------------------------------------------- */
.elx-support { background: #fff; }
.elx-sup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.elx-sup { padding: 28px 24px 26px; border-top: 4px solid var(--accent); background: #f3f8fc; border-radius: 0 0 10px 10px; }
.elx-sup i { display: block; margin-bottom: 18px; color: var(--primary); font-size: 26px; }
.elx-sup h3 { color: var(--secondary); font-size: 18px; font-weight: 700; line-height: 1.3; }
.elx-sup p { margin: 10px 0 16px; color: var(--gray); font-size: 14.5px; line-height: 1.7; }
.elx-sup ul { display: grid; gap: 7px; }
.elx-sup li { position: relative; padding-left: 18px; color: var(--dark); font-size: 14px; line-height: 1.5; }
.elx-sup li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 2px; background: var(--accent); }
.elx-scope { display: flex; gap: 12px; align-items: flex-start; margin-top: 30px; color: var(--gray); font-size: 14.5px; line-height: 1.65; }
.elx-scope i { margin-top: 4px; color: var(--primary); }
@media (max-width: 1100px) { .elx-sup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .elx-sup-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   5. LIFECYCLE — each stage sits higher than the last
   -------------------------------------------------------------------------- */
.elx-life { background: linear-gradient(165deg, #0b3c5d 0%, #072b42 55%, #04101c 100%); color: #fff; }
.elx-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: end; }
.elx-step { margin-top: calc((6 - var(--s)) * 28px); padding: 22px 18px 26px; border-top: 4px solid rgba(148, 197, 230, .3); background: rgba(255, 255, 255, .05); transition: border-color .5s ease, background .5s ease; }
.elx-step.is-live { border-top-color: var(--accent); background: rgba(255, 255, 255, .08); }
.elx-step-n { display: block; margin-bottom: 14px; color: var(--accent); font-family: var(--mono); font-size: 26px; font-weight: 600; line-height: 1; }
.elx-step h3 { color: #fff; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.elx-step p { color: rgba(226, 240, 252, .72); font-size: 14px; line-height: 1.65; }
@media (max-width: 1100px) {
  .elx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .elx-step { margin-top: 0; }
}
@media (max-width: 640px) { .elx-steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   6. INDUSTRIES — a ruled matrix, not cards
   -------------------------------------------------------------------------- */
.elx-indsec { background: #fff; }
.elx-ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.elx-ind-grid .elx-ind { position: static; padding: 32px 28px 34px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; transition: background var(--transition); }
.elx-ind-grid .elx-ind:hover { background: #f3f8fc; }
.elx-ind-grid i { display: block; margin-bottom: 16px; color: var(--accent); font-size: 24px; }
.elx-ind-grid h3 { color: var(--secondary); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.elx-ind-grid p { color: var(--gray); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 960px) { .elx-ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .elx-ind-grid { grid-template-columns: 1fr; } .elx-ind-grid .elx-ind { padding: 24px 22px; } }

/* --------------------------------------------------------------------------
   7. WHY BHARATEDGE
   -------------------------------------------------------------------------- */
.elx-why { background: linear-gradient(180deg, #f3f8fc 0%, #e9f1f8 100%); }
.elx-why-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.elx-why .elx-head { margin: 0; }
.elx-reasons { border-top: 1px solid rgba(11, 60, 93, .2); }
.elx-reason { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid rgba(11, 60, 93, .2); }
.elx-reason h3 { color: var(--secondary); font-size: 18px; font-weight: 700; line-height: 1.35; }
.elx-reason h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 12px; background: var(--accent); }
.elx-reason p { color: var(--gray); font-size: 15.5px; line-height: 1.75; }
@media (max-width: 960px) { .elx-why-layout { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .elx-reason { grid-template-columns: 1fr; gap: 6px; } }

.sol-page .elx-faq { padding: 110px 0; }
.elx-faq .elx-head { margin: 0 auto 48px; text-align: center; }
.elx-faq .elx-head h2 { margin: 0; }
