
/* ============================================================
   TAS — Energy Management Solutions
   Scoped under .tas-energy-page  |  Prefix: tas-energy-
   No external dependencies. Self-contained CSS.
   ============================================================ */
.tas-energy-page,
.tas-energy-page *,
.tas-energy-page *::before,
.tas-energy-page *::after { box-sizing: border-box; }

.tas-energy-page {
  --tas-energy-navy: #0B2A4A;
  --tas-energy-navy-2: #0E335A;
  --tas-energy-blue: #1E40AF;
  --tas-energy-blue-2: #2563EB;
  --tas-energy-cyan: #06B6D4;
  --tas-energy-red: #DC2626;
  --tas-energy-ink: #0F172A;
  --tas-energy-text: #1F2937;
  --tas-energy-muted: #475569;
  --tas-energy-line: #E2E8F0;
  --tas-energy-bg: #FFFFFF;
  --tas-energy-bg-alt: #F1F5F9;
  --tas-energy-bg-tint: linear-gradient(180deg, #F8FAFF 0%, #EEF4FF 100%);
  --tas-energy-shadow: 0 10px 30px rgba(11, 42, 74, 0.08);
  --tas-energy-shadow-lg: 0 20px 50px rgba(11, 42, 74, 0.14);
  --tas-energy-radius: 14px;
  --tas-energy-radius-lg: 18px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tas-energy-text);
  line-height: 1.65;
  background: var(--tas-energy-bg);
  overflow: hidden;
}

.tas-energy-page img { max-width: 100%; height: auto; display: block; }
.tas-energy-page a { color: inherit; text-decoration: none; }

/* ---------- Wrappers ---------- */
.tas-energy-section {
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 56px);
}
.tas-energy-container { max-width: 1240px; margin: 0 auto; }
.tas-energy-section--alt { background: var(--tas-energy-bg-alt); }
.tas-energy-section--tint { background: var(--tas-energy-bg-tint); }

/* ---------- Section heading ---------- */
.tas-energy-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--tas-energy-blue); font-weight: 700;
  padding-bottom: 10px; position: relative; margin-bottom: 14px;
}
.tas-energy-eyebrow::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; background: var(--tas-energy-red); border-radius: 2px;
}
.tas-energy-h2 {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
  color: var(--tas-energy-navy);
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.tas-energy-lead {
  font-size: clamp(15.5px, 1.3vw, 17.5px);
  color: var(--tas-energy-muted);
  max-width: 880px;
  margin: 0 0 36px;
}

/* ---------- HERO ---------- */
.tas-energy-hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(6, 182, 212, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(30, 64, 175, 0.32), transparent 60%),
    linear-gradient(135deg, #081f37 0%, var(--tas-energy-navy) 50%, #0a2747 100%);
  color: #fff;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 56px);
  overflow: hidden;
}
.tas-energy-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none; opacity: 0.6;
}
.tas-energy-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  max-width: 1240px; margin: 0 auto;
}
.tas-energy-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 14px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: #cfe7ff;
}
.tas-energy-hero__eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--tas-energy-cyan); box-shadow: 0 0 12px var(--tas-energy-cyan);
}
.tas-energy-hero__title {
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.05; font-weight: 800; letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.tas-energy-hero__title span {
  background: linear-gradient(90deg, #ffffff 0%, #9CD8FF 60%, var(--tas-energy-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tas-energy-hero__sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: #d8e6f5; font-weight: 500; margin: 0 0 18px;
}
.tas-energy-hero__text {
  font-size: clamp(14.5px, 1.15vw, 16px);
  color: #b9c8dc; max-width: 620px; margin: 0 0 28px;
}
.tas-energy-hero__badges {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.tas-energy-hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  font-size: 13px; color: #e6f0fb; font-weight: 600;
}
.tas-energy-hero__badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tas-energy-cyan);
}
.tas-energy-hero__media {
  position: relative; border-radius: var(--tas-energy-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.tas-energy-hero__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.tas-energy-hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8, 31, 55, 0.55));
}

/* ---------- Card grids ---------- */
.tas-energy-grid { display: grid; gap: 22px; }
.tas-energy-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.tas-energy-grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.tas-energy-grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.tas-energy-card {
  background: #fff;
  border: 1px solid var(--tas-energy-line);
  border-radius: var(--tas-energy-radius);
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: var(--tas-energy-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tas-energy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tas-energy-shadow-lg);
  border-color: #cfe0ff;
}
.tas-energy-card__icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(30,64,175,0.12), rgba(6,182,212,0.16));
  color: var(--tas-energy-blue);
  font-size: 22px; font-weight: 700; margin-bottom: 14px;
}
.tas-energy-card h3 {
  font-size: 17.5px; color: var(--tas-energy-navy);
  margin: 0 0 8px; font-weight: 700;
}
.tas-energy-card p { margin: 0; font-size: 14.5px; color: var(--tas-energy-muted); line-height: 1.65; }

/* ---------- Problem cards (red accent) ---------- */
.tas-energy-problem .tas-energy-card { border-top: 3px solid var(--tas-energy-red); }
.tas-energy-problem .tas-energy-card__icon {
  background: rgba(220, 38, 38, 0.08);
  color: var(--tas-energy-red);
}

/* ---------- Process flow ---------- */
.tas-energy-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  counter-reset: tasflow;
  margin-bottom: 36px;
}
.tas-energy-flow__step {
  position: relative;
  background: #fff;
  border: 1px solid var(--tas-energy-line);
  border-radius: var(--tas-energy-radius);
  padding: 22px 18px 20px;
  box-shadow: var(--tas-energy-shadow);
  counter-increment: tasflow;
}
.tas-energy-flow__step::before {
  content: counter(tasflow, decimal-leading-zero);
  position: absolute; top: -14px; left: 18px;
  background: linear-gradient(135deg, var(--tas-energy-blue), var(--tas-energy-cyan));
  color: #fff; font-weight: 800; font-size: 13px;
  padding: 6px 10px; border-radius: 8px;
  letter-spacing: 0.06em;
}
.tas-energy-flow__step h4 {
  margin: 6px 0 6px; font-size: 16px;
  color: var(--tas-energy-navy); font-weight: 700;
}
.tas-energy-flow__step p { margin: 0; font-size: 13.5px; color: var(--tas-energy-muted); line-height: 1.6; }

/* ---------- Banner image ---------- */
.tas-energy-banner {
  border-radius: var(--tas-energy-radius-lg);
  overflow: hidden;
  box-shadow: var(--tas-energy-shadow-lg);
  border: 1px solid var(--tas-energy-line);
  background: var(--tas-energy-navy);
}
.tas-energy-banner img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }

/* ---------- KPI tiles ---------- */
.tas-energy-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.tas-energy-kpi {
  background: #fff;
  border: 1px solid var(--tas-energy-line);
  border-left: 4px solid var(--tas-energy-cyan);
  border-radius: 10px;
  padding: 16px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tas-energy-navy);
  box-shadow: 0 4px 14px rgba(11, 42, 74, 0.05);
  transition: transform .2s ease, border-color .2s ease;
}
.tas-energy-kpi:hover { transform: translateY(-2px); border-left-color: var(--tas-energy-blue); }

/* ---------- Solution areas (large cards w/ accent strip) ---------- */
.tas-energy-solutions .tas-energy-card {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  align-items: flex-start;
}
.tas-energy-solutions .tas-energy-card__bar {
  width: 6px; height: 100%; min-height: 70px; border-radius: 4px;
  background: linear-gradient(180deg, var(--tas-energy-blue), var(--tas-energy-cyan));
  grid-row: span 2; justify-self: start;
}
.tas-energy-solutions .tas-energy-card__body h3 {
  font-size: 18px; margin: 0 0 8px;
}

/* ---------- Reference architecture (5 stacked layers) ---------- */
.tas-energy-arch { display: grid; gap: 14px; }
.tas-energy-layer {
  display: grid; grid-template-columns: 110px 1fr; gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--tas-energy-line);
  border-radius: var(--tas-energy-radius);
  padding: 22px clamp(20px, 2.5vw, 28px);
  box-shadow: var(--tas-energy-shadow);
  position: relative;
  overflow: hidden;
}
.tas-energy-layer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--tas-energy-blue), var(--tas-energy-cyan));
}
.tas-energy-layer__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 88px; height: 88px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(30,64,175,0.10), rgba(6,182,212,0.16));
  color: var(--tas-energy-blue); font-weight: 800;
  font-size: 13px; letter-spacing: 0.1em; text-align: center; line-height: 1.3;
  border: 1px solid rgba(30, 64, 175, 0.14);
}
.tas-energy-layer__num strong { display: block; font-size: 26px; color: var(--tas-energy-navy); }
.tas-energy-layer__body h3 { margin: 0 0 6px; font-size: 18px; color: var(--tas-energy-navy); font-weight: 700; }
.tas-energy-layer__body p { margin: 0; font-size: 14.5px; color: var(--tas-energy-muted); }

.tas-energy-arch__note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff;
  border-left: 4px solid var(--tas-energy-blue);
  border-radius: 10px;
  color: var(--tas-energy-muted);
  font-size: 14.5px;
  box-shadow: var(--tas-energy-shadow);
}

/* ---------- Outcomes ---------- */
.tas-energy-outcomes .tas-energy-card {
  display: flex; align-items: flex-start; gap: 14px;
}
.tas-energy-outcomes .tas-energy-card__check {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tas-energy-blue), var(--tas-energy-cyan));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; margin-top: 2px;
}
.tas-energy-outcomes .tas-energy-card p {
  margin: 0; font-size: 15px; color: var(--tas-energy-text); line-height: 1.6; font-weight: 500;
}

/* ---------- Implementation timeline ---------- */
.tas-energy-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.tas-energy-timeline__step {
  position: relative;
  background: #fff;
  border: 1px solid var(--tas-energy-line);
  border-radius: var(--tas-energy-radius);
  padding: 26px 22px 22px;
  box-shadow: var(--tas-energy-shadow);
}
.tas-energy-timeline__num {
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--tas-energy-navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px;
  border: 3px solid #fff;
  box-shadow: 0 6px 16px rgba(11,42,74,0.2);
}
.tas-energy-timeline__step h4 {
  margin: 8px 0 8px; font-size: 16.5px; color: var(--tas-energy-navy); font-weight: 700;
}
.tas-energy-timeline__step p { margin: 0; font-size: 14px; color: var(--tas-energy-muted); }

/* ---------- Tech tags ---------- */
.tas-energy-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tas-energy-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tas-energy-line);
  color: var(--tas-energy-navy);
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(11,42,74,0.04);
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.tas-energy-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tas-energy-cyan);
}
.tas-energy-tag:hover { transform: translateY(-2px); border-color: var(--tas-energy-blue); color: var(--tas-energy-blue); }

/* ---------- CTA ---------- */
.tas-energy-cta {
  background:
    radial-gradient(900px 400px at 80% 0%, rgba(6,182,212,0.20), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(30,64,175,0.32), transparent 60%),
    linear-gradient(135deg, #081f37 0%, var(--tas-energy-navy) 50%, #0a2747 100%);
  color: #fff;
  text-align: center;
  padding: clamp(64px, 8vw, 110px) clamp(20px, 5vw, 56px);
  position: relative;
}
.tas-energy-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px; opacity: 0.5; pointer-events: none;
}
.tas-energy-cta__inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.tas-energy-cta h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.2; margin: 0 0 16px;
  color: #fff; font-weight: 800; letter-spacing: -0.01em;
}
.tas-energy-cta p {
  font-size: clamp(15px, 1.3vw, 17px);
  color: #cfdcee; margin: 0 0 32px;
}
.tas-energy-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px;
  background: linear-gradient(135deg, var(--tas-energy-cyan) 0%, var(--tas-energy-blue-2) 100%);
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 14px 30px rgba(6,182,212,0.32), 0 0 0 4px rgba(6,182,212,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.tas-energy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(6,182,212,0.42), 0 0 0 6px rgba(6,182,212,0.10);
}
.tas-energy-btn::after { content: "→"; font-size: 18px; line-height: 1; }

/* ---------- Subtle reveal animation ---------- */
@keyframes tasEnergyFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tas-energy-page .tas-energy-card,
.tas-energy-page .tas-energy-flow__step,
.tas-energy-page .tas-energy-layer,
.tas-energy-page .tas-energy-timeline__step,
.tas-energy-page .tas-energy-kpi {
  animation: tasEnergyFadeUp .6s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .tas-energy-page * { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tas-energy-hero__grid { grid-template-columns: 1fr; }
  .tas-energy-layer { grid-template-columns: 1fr; gap: 14px; }
  .tas-energy-layer__num { width: 100%; height: auto; padding: 14px; }
  .tas-energy-layer__num strong { display: inline; margin-right: 8px; }
}
@media (max-width: 640px) {
  .tas-energy-section { padding: 56px 18px; }
  .tas-energy-hero { padding: 64px 18px; }
  .tas-energy-cta { padding: 64px 18px; }
  .tas-energy-solutions .tas-energy-card { grid-template-columns: 6px 1fr; gap: 14px; }
}

