/* ==========================================================================
   BHARATEDGE — IT INFRASTRUCTURE SOLUTION PAGE
   Scope: it-infrastructure.html only. Loaded after the shared
   css/solutions-template.css (breadcrumb, hero badge, chips, FAQ, buttons,
   CTA are reused from there / style.css). Everything here is namespaced
   `.itx-` and fully additive: no existing selector is modified.
   Tokens reused: --primary, --primary-dark, --accent, --secondary, --gray,
   --border, --mono, --blueprint-line.
   ========================================================================== */

/* Section rhythm. `.sol-page section` (0,1,1) sets 128px; we out-rank it. */
.sol-page .itx-sec { padding: 120px 0; position: relative; overflow: hidden; }
@media (max-width: 768px) { .sol-page .itx-sec { padding: 84px 0; } }

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

/* --------------------------------------------------------------------------
   1. HERO — the rack elevation is the page's single memorable element
   -------------------------------------------------------------------------- */
.sol-page .itx-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, .08), transparent 65%),
    linear-gradient(165deg, #0b3c5d 0%, #072b42 50%, #04101c 100%);
  color: #fff;
}
.itx-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%); }
.itx-hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.itx-hero .sol-hero-inner { max-width: 640px; }
.itx-hero h1 {
  margin-bottom: 26px;
  color: #fff;
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.012em;
}
.itx-hero h1 span { display: block; }
.itx-hero h1 span + span { color: rgba(226, 240, 252, .9); }
.itx-hero h1 span:last-child { color: rgba(226, 240, 252, .78); }
.itx-hero .sol-hero-lede { margin-bottom: 38px; }

/* Rack stage */
.itx-rack-stage { position: relative; justify-self: end; width: min(100%, 560px); }
.itx-rack-stage::before {
  content: "";
  position: absolute;
  inset: 4% 8% 2% 14%;
  background: radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, .14), transparent 66%);
  filter: blur(26px);
  z-index: -1;
}
.itx-rack { width: 100%; height: auto; display: block; overflow: visible; }
.itx-rack .r-cab { fill: rgba(4, 16, 28, .62); stroke: rgba(148, 197, 230, .45); stroke-width: 1.6; }
.itx-rack .r-inner { fill: rgba(2, 10, 18, .7); stroke: rgba(148, 197, 230, .18); stroke-width: 1; }
.itx-rack .r-tick { stroke: rgba(148, 197, 230, .28); stroke-width: 1; }
.itx-rack .r-unit { fill: rgba(148, 197, 230, .07); stroke: rgba(148, 197, 230, .42); stroke-width: 1; }
.itx-rack .r-unit-net { fill: rgba(56, 140, 190, .14); }
.itx-rack .r-unit-srv { fill: rgba(148, 197, 230, .09); }
.itx-rack .r-unit-sto { fill: rgba(56, 140, 190, .1); }
.itx-rack .r-unit-pwr { fill: rgba(245, 158, 11, .09); stroke: rgba(245, 158, 11, .5); }
.itx-rack .r-unit-blank { fill: rgba(148, 197, 230, .03); }
.itx-rack .r-port { fill: rgba(2, 10, 18, .95); stroke: rgba(148, 197, 230, .5); stroke-width: .8; }
.itx-rack .r-bay { fill: rgba(2, 10, 18, .85); stroke: rgba(148, 197, 230, .32); stroke-width: .8; }
.itx-rack .r-vent { stroke: rgba(148, 197, 230, .2); stroke-width: 1; }
.itx-rack .r-led { fill: var(--accent); }
.itx-rack .r-empty { fill: none; stroke: rgba(148, 197, 230, .22); stroke-width: 1; stroke-dasharray: 4 5; }
.itx-rack .r-grow { fill: rgba(226, 240, 252, .42); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.itx-rack .r-disp { fill: rgba(2, 10, 18, .9); stroke: rgba(245, 158, 11, .55); stroke-width: 1; }
.itx-rack .r-batt { fill: rgba(245, 158, 11, .85); }
.itx-rack .r-batt-4 { fill: rgba(245, 158, 11, .35); }
.itx-rack .r-ups-t { fill: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.itx-rack .r-lead { stroke: rgba(245, 158, 11, .6); stroke-width: 1.2; fill: none; }
.itx-rack .r-lbl { fill: #fff; font-family: "IBM Plex Sans", Arial, sans-serif; font-size: 13px; font-weight: 600; }
.itx-rack .r-lbl-sub { fill: #fff; }

@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated moment: units seat into the rack from the bottom up. */
  .itx-rack .r-u { opacity: 0; transform: translateX(26px); animation: itxSeat .7s cubic-bezier(.22, .61, .36, 1) forwards; animation-delay: calc(.2s + (16 - var(--i)) * .07s); }
  .itx-rack .r-led { animation: itxBlink 2.8s steps(1, end) infinite; animation-delay: var(--d, 0s); }
}
@keyframes itxSeat { to { opacity: 1; transform: translateX(0); } }
@keyframes itxBlink { 0%, 70% { opacity: 1; } 76%, 84% { opacity: .18; } 90%, 100% { opacity: 1; } }

@media (max-width: 960px) {
  .sol-page .itx-hero { padding: 140px 0 72px; }
  .itx-hero-layout { grid-template-columns: 1fr; gap: 44px; }
  .itx-rack-stage { justify-self: center; width: min(100%, 420px); }
}
@media (max-width: 560px) {
  .itx-hero .sol-hero-actions { margin-bottom: 40px; }
}

/* --------------------------------------------------------------------------
   2. SOLUTION CATEGORIES — asymmetric bento, each tile sized to its content
   -------------------------------------------------------------------------- */
.itx-solutions { background: linear-gradient(180deg, #fff 0%, #f3f8fc 100%); }
.itx-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.itx-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 32px 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.itx-card:hover { border-color: rgba(245, 158, 11, .55); box-shadow: var(--shadow-sm); }
.itx-card h3 { color: var(--secondary); font-size: 22px; font-weight: 700; line-height: 1.25; }
.itx-card > p { margin: 12px 0 22px; max-width: 46ch; color: var(--gray); font-size: 15.5px; line-height: 1.7; }
.itx-card ul { display: grid; gap: 9px; margin-top: auto; }
.itx-card li { position: relative; padding-left: 22px; color: var(--dark); font-size: 14.5px; line-height: 1.55; }
.itx-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 11px; height: 2px; background: var(--accent); }
.itx-card-art { flex: 0 0 auto; width: 56px; height: 56px; margin-bottom: 20px; }
.itx-card-art * { stroke: rgba(11, 60, 93, .45); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.itx-card-art .a { stroke: rgba(245, 158, 11, .75); }

.itx-c-comp { grid-column: span 5; }
.itx-c-srv  { grid-column: span 7; }
.itx-c-sto, .itx-c-net, .itx-c-pwr { grid-column: span 4; }
.itx-c-dep  { grid-column: span 12; }

/* Dark tiles break the rhythm so the grid does not read as one repeated card */
.itx-card.is-dark { border-color: rgba(148, 197, 230, .22); background: linear-gradient(160deg, #0b3c5d 0%, #072b42 100%); }
.itx-card.is-dark h3 { color: #fff; }
.itx-card.is-dark > p { color: rgba(226, 240, 252, .75); }
.itx-card.is-dark li { color: #e2f0fc; }
.itx-card.is-dark .itx-card-art * { stroke: rgba(148, 197, 230, .3); }
.itx-card.is-dark .itx-card-art .a { stroke: rgba(245, 158, 11, .85); }
.itx-c-srv ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 28px; }
.itx-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--primary); font-size: 14px; font-weight: 600; }
.itx-card-link:hover { color: #b45309; }
.itx-card-link i { font-size: 11px; transition: transform var(--transition); }
.itx-card-link:hover i { transform: translateX(4px); }

.itx-c-dep { flex-direction: row; align-items: center; gap: 40px; border-color: rgba(245, 158, 11, .4); border-left-width: 4px; border-left-color: var(--accent); background: linear-gradient(135deg, #fff, #fff8eb); }
.itx-c-dep .itx-dep-copy { flex: 1 1 46%; }
.itx-c-dep .itx-dep-copy > p { margin: 12px 0 0; max-width: 50ch; color: var(--gray); font-size: 15.5px; line-height: 1.7; }
.itx-card .itx-dep-steps { flex: 1 1 54%; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
.itx-card .itx-dep-steps li { padding: 9px 16px; border: 1px solid rgba(11, 60, 93, .18); border-radius: 999px; background: #fff; color: var(--primary); font-size: 14px; font-weight: 600; }
.itx-card .itx-dep-steps li::before { display: none; }
.itx-card .itx-dep-steps li:not(:last-child)::after { content: "\2192"; margin-left: 12px; color: var(--accent); font-weight: 700; }
.itx-dep-link { white-space: nowrap; }

@media (max-width: 1040px) {
  .itx-c-comp, .itx-c-srv { grid-column: span 6; }
  .itx-c-sto, .itx-c-net, .itx-c-pwr { grid-column: span 6; }
  .itx-c-pwr { grid-column: span 12; }
  .itx-c-srv ul { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .itx-grid { gap: 16px; }
  .itx-c-comp, .itx-c-srv, .itx-c-sto, .itx-c-net, .itx-c-pwr, .itx-c-dep { grid-column: span 12; }
  .itx-card { padding: 28px 24px; }
  .itx-c-dep { flex-direction: column; align-items: flex-start; gap: 22px; }
  .itx-card .itx-dep-steps li:not(:last-child)::after { display: none; }
}

/* --------------------------------------------------------------------------
   3. ARCHITECTURE — how the layers sit together
   -------------------------------------------------------------------------- */
.itx-eco {
  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;
}
.itx-stage { display: grid; gap: 0; }
.itx-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  border: 1px solid rgba(148, 197, 230, .28);
  background: rgba(255, 255, 255, .04);
  color: #e2f0fc;
  font-size: 15px;
  line-height: 1.55;
}
.itx-bar i { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: rgba(245, 158, 11, .14); color: var(--accent); font-size: 16px; }
.itx-bar strong { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }
.itx-bar-top { border-radius: 12px 12px 0 0; border-bottom-style: dashed; }
.itx-bar-base { border-radius: 0 0 12px 12px; border-top-style: dashed; background: rgba(245, 158, 11, .07); border-color: rgba(245, 158, 11, .4); }

.itx-flow { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 30px 0; border-left: 1px solid rgba(148, 197, 230, .28); border-right: 1px solid rgba(148, 197, 230, .28); background: rgba(4, 16, 28, .35); }
.itx-node { position: relative; padding: 4px 22px 4px; }
.itx-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 41px;
  width: 2px;
  height: 0;
}
/* connector line between nodes: dashed track + an accent fill that lights up in sequence */
.itx-node .itx-link { position: absolute; top: 40px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 2px; background: repeating-linear-gradient(90deg, rgba(148, 197, 230, .45) 0 6px, transparent 6px 12px); pointer-events: none; }
.itx-node .itx-link::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s ease; }
.itx-node:last-child .itx-link { display: none; }
.itx-node-ico { position: relative; z-index: 1; width: 82px; height: 82px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid rgba(148, 197, 230, .4); border-radius: 14px; background: #08304a; color: #cfe6f7; font-size: 28px; transition: border-color .5s ease, color .5s ease, box-shadow .5s ease; }
.itx-node h3 { color: #fff; font-size: 18px; font-weight: 700; text-align: center; }
.itx-node p { margin-top: 8px; color: rgba(226, 240, 252, .7); font-size: 14px; line-height: 1.65; text-align: center; }
.itx-node.is-live .itx-node-ico { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, .1), 0 0 26px rgba(245, 158, 11, .25); }
.itx-node.is-live .itx-link::after { transform: scaleX(1); }

@media (max-width: 1000px) {
  .itx-flow { grid-template-columns: 1fr; padding: 12px 0; }
  .itx-node { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; align-items: start; padding: 18px 24px; }
  .itx-node-ico { grid-row: span 2; width: 64px; height: 64px; margin: 0; font-size: 22px; }
  .itx-node h3, .itx-node p { text-align: left; }
  .itx-node p { margin-top: 4px; }
  .itx-node .itx-link { top: calc(18px + 64px); bottom: -18px; left: calc(24px + 31px); right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(148, 197, 230, .45) 0 6px, transparent 6px 12px); }
  .itx-node .itx-link::after { transform: scaleY(0); transform-origin: top; }
  .itx-node.is-live .itx-link::after { transform: scaleY(1); }
  .itx-bar { padding: 16px 20px; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   4. LIFECYCLE — a real sequence, so numbered
   -------------------------------------------------------------------------- */
.itx-life { background: #fff; }
.itx-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px; counter-reset: itx; }
.itx-steps::before, .itx-steps::after { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; }
.itx-steps::before { background: rgba(11, 60, 93, .14); }
.itx-steps::after { background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.22, .61, .36, 1); }
.itx-steps.is-live::after { transform: scaleX(1); }
.itx-step { position: relative; padding-top: 0; }
.itx-step-n {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 2px solid rgba(11, 60, 93, .28);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  transition: border-color .4s ease, background .4s ease, color .4s ease;
}
.itx-step.is-live .itx-step-n { border-color: var(--accent); background: var(--accent); color: #071827; }
.itx-step h3 { color: var(--secondary); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.itx-step p { color: var(--gray); font-size: 14.5px; line-height: 1.7; }

@media (max-width: 1100px) {
  .itx-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 44px; }
  .itx-steps::before, .itx-steps::after { display: none; }
}
@media (max-width: 640px) {
  .itx-steps { grid-template-columns: 1fr; row-gap: 0; padding-left: 0; }
  .itx-steps::before, .itx-steps::after { display: block; left: 23px; right: auto; top: 24px; bottom: 56px; width: 2px; height: auto; }
  .itx-steps::after { transform: scaleY(0); transform-origin: top; }
  .itx-steps.is-live::after { transform: scaleY(1); }
  .itx-step { display: grid; grid-template-columns: 48px 1fr; gap: 0 20px; padding-bottom: 30px; }
  .itx-step-n { margin-bottom: 0; grid-row: span 2; }
  .itx-step h3 { margin-bottom: 4px; padding-top: 11px; }
}

/* --------------------------------------------------------------------------
   5. INDUSTRIES — what each environment asks of its IT
   -------------------------------------------------------------------------- */
.itx-ind {
  background: linear-gradient(165deg, #0b3c5d 0%, #072b42 55%, #04101c 100%);
  color: #fff;
}
.itx-ind-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.itx-ind .itx-head { margin: 0; position: sticky; top: 120px; }
.itx-ind-list { border-top: 1px solid rgba(148, 197, 230, .25); }
.itx-ind-row { display: grid; grid-template-columns: 46px minmax(0, 220px) minmax(0, 1fr); gap: 20px; align-items: start; padding: 26px 0; border-bottom: 1px solid rgba(148, 197, 230, .25); }
.itx-ind-row i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: rgba(245, 158, 11, .12); color: var(--accent); font-size: 17px; }
.itx-ind-row h3 { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.35; padding-top: 8px; }
.itx-ind-row p { color: rgba(226, 240, 252, .72); font-size: 15px; line-height: 1.7; padding-top: 6px; }
@media (max-width: 960px) {
  .itx-ind-layout { grid-template-columns: 1fr; gap: 44px; }
  .itx-ind .itx-head { position: static; }
}
@media (max-width: 600px) {
  .itx-ind-row { grid-template-columns: 42px 1fr; gap: 6px 16px; }
  .itx-ind-row h3 { padding-top: 9px; }
  .itx-ind-row p { grid-column: 2; padding-top: 0; }
}

/* --------------------------------------------------------------------------
   6. WHY BHARATEDGE
   -------------------------------------------------------------------------- */
.itx-why { background: linear-gradient(180deg, #f3f8fc 0%, #fff 100%); }
.itx-why-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; }
.itx-why .itx-head { margin: 0; }
.itx-reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 44px; }
.itx-reason { padding-left: 22px; border-left: 3px solid var(--accent); }
.itx-reason h3 { color: var(--secondary); font-size: 19px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.itx-reason p { color: var(--gray); font-size: 15.5px; line-height: 1.75; }
@media (max-width: 960px) {
  .itx-why-layout { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 600px) {
  .itx-reasons { grid-template-columns: 1fr; gap: 32px; }
}

/* FAQ + CTA reuse shared classes; only tighten the section spacing a touch */
.sol-page .itx-faq { padding: 110px 0; }
.itx-faq .itx-head { margin: 0 auto 48px; text-align: center; }
.itx-faq .itx-head h2 { margin: 0; }

/* Respect reduced motion: show every state-change element in its final state */
@media (prefers-reduced-motion: reduce) {
  .itx-node .itx-link::after, .itx-steps::after { transition: none; }
  .itx-node-ico, .itx-step-n, .itx-card, .itx-card-link i { transition: none; }
}
