/*
 * Energy & Utilities Clone — Test Page Stylesheet
 * Hand-coded (no Elementor, no GSAP). Cloned from financial-test, content/
 * images/geometry swapped to post 7751's (/by-industry/energy-utilities/)
 * real data. Two real structural differences from the sibling pages:
 * Solutions by Function has 4 cards (not 3), and Compliance & Regulatory
 * Highlights is a 4-panel collage (not 2 floating cards) — both confirmed
 * via post 7751's own _elementor_data. Scoped under .enu-page.
 */

body.page-id-15527 .rkch-spacer, body.page-id-7751 .rkch-spacer { display: none !important; height: 0 !important; }

.enu-page {
  --enu-primary: #233963;
  --enu-text: #1E2E4C;
  --enu-white: #FFFFFF;
  --enu-neutral-9: #F4F6F9;
  --enu-neutral-8: #EBEEF2;
  --enu-neutral-7: #DADEE3;
  --enu-neutral-6: #A5ABB3;
  --enu-green: #2ECC71;
  --enu-gradient-teal-green: linear-gradient(90deg, #6AC2B7 0%, #8AD6C0 50%, #8ADBBB 75%, #86DCAF 87.5%, #84DDA5 93.75%, #95E091 96.88%, #9FDD5F 100%);
  --enu-mint-gradient: linear-gradient(28deg, #E3FFCC 0%, #D0FFF1 100%);
  --enu-card-shadow: 0 10px 35px 0 rgba(35, 57, 99, 0.12);
  --enu-radius: 24px;

  position: relative;
  font-family: "Public Sans", sans-serif;
  color: var(--enu-text);
  background: #F6F9FB;
}

/* Site-wide subtle tiled background pattern (from Figma "22" node),
   64x64px tile at 50% opacity, running the full height of the page.
   Confirmed via Figma that it sits behind every section — only visible
   on sections that don't have their own photo/color background. */
.enu-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/global-pattern.png");
  background-repeat: repeat;
  background-size: 64px 64px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.enu-page * { box-sizing: border-box; }

.enu-page img { max-width: 100%; height: auto; display: block; }

.enu-page section {
  padding: 96px 4vw;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .enu-page section { padding: 56px 20px; }
}

.enu-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---------- Typography ---------- */

.enu-page h1, .enu-page h2, .enu-page h3, .enu-page h4 {
  font-family: "Public Sans", sans-serif;
  color: var(--enu-text);
  font-weight: 700;
  margin: 0;
}

.enu-page p { margin: 0; line-height: 1.55; }

.enu-h2 {
  font-size: 42px;
  line-height: 1.15;
  font-weight: 700;
}

@media (max-width: 767px) {
  .enu-h2 { font-size: 28px; line-height: 1.25; }
}

/* Two-column header row used by most sections: heading left, copy right */
.enu-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.enu-head-row p { color: var(--enu-text); font-size: 16px; max-width: 529px; }

@media (max-width: 900px) {
  .enu-head-row { flex-direction: column; gap: 16px; }
  .enu-head-row p { max-width: 100%; }
}

/* ---------- Buttons ---------- */

.enu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
}

.enu-btn--outline {
  background: var(--enu-white);
  border: 2px solid var(--enu-primary);
  color: var(--enu-primary);
}

.enu-btn--outline:hover { background: var(--enu-primary); color: var(--enu-white); }

.enu-btn--small {
  padding: 8px 12px;
  font-size: 14px;
  border: 2px solid #6AC2B7;
  background: transparent;
  color: var(--enu-text);
}

/* ---------- Hero ---------- */

.enu-hero {
  position: relative;
  min-height: 100vh;
  padding: 160px 4vw 120px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  overflow: hidden;
}


.enu-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.enu-hero-eyebrow {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
}

.enu-hero-h1 {
  color: #fff !important;
  font-size: 100px;
  line-height: 1.04;
  font-weight: 700;
  margin: 0;
}

.enu-hero-sub {
  color: #D1D5DB;
  font-size: 22px;
  line-height: 1.4;
  max-width: 860px;
}

@media (max-width: 900px) {
  .enu-hero-h1 { font-size: 56px; }
  .enu-hero-sub { font-size: 18px; }
}

/* ---------- Overview ---------- */

.enu-page section.enu-overview { text-align: center; padding-bottom: 0; }
.enu-overview .enu-h2 {
  margin-bottom: 20px;
  line-height: 52px;
  color: var(--enu-primary);
}
.enu-overview .enu-overview-copy {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 26px;
  color: var(--enu-primary);
}

/* ---------- Key Challenges (Mac-mockup frame) ---------- */

.enu-page section.enu-challenges {
  padding-top: 0;
  background-image: url("/wp-content/uploads/2025/07/image-196.png");
  background-position: top left;
  background-repeat: no-repeat;
  background-size: cover;
}

.enu-mac-frame {
  border: 5px solid var(--enu-text);
  border-radius: var(--enu-radius);
  overflow: hidden;
  background: #fff;
}

.enu-mac-toolbar img { width: 100%; display: block; }

.enu-mac-head {
  background: var(--enu-neutral-9);
  border-bottom: 1px solid var(--enu-neutral-7);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.enu-mac-head .enu-h2 { flex-shrink: 0; }
.enu-mac-head p { max-width: 693px; font-size: 16px; }

.enu-mac-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #F5FEFF;
  padding: 40px 32px;
}

.enu-mac-left h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
}

.enu-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.enu-check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.enu-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--enu-green);
  position: relative;
}
.enu-check-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* FIXED 2026-08-17. Every value below is read from post 7691's real
   _elementor_data + the matching uploads/elementor/css/post-7691.css, not
   guessed — the previous version (`top:0;left:10%;width:78%` etc, no
   breakpoint overrides at all) was placeholder positioning on `<img>` tags
   that had no explicit height, so it could never track live regardless of
   viewport width.

   ANCHOR RESOLUTION — same trap hit on other pages in this project, so
   resolved carefully: `_offset_orientation_h: end` means the panel is
   anchored by RIGHT (value `_offset_x_end`), not left; likewise
   `_offset_orientation_v: end` means BOTTOM. Orientation has no per-device
   variants, so each panel keeps the same anchor pair at every breakpoint —
   only the values change:
     mockup 1: RIGHT + BOTTOM     mockup 2: RIGHT + top     mockup 3: left + top
   A value omitted at a breakpoint means live leaves that device field
   empty and genuinely inherits the next larger breakpoint's value.

   These 3 panels are fragments of ONE composite "Manual vs Automated Trend"
   scene (see section-2's PHP docblock) — panel 3 is deliberately TALL
   (421px desktop, nearly the full container height) and DOES overlap panel
   2's right edge by design on desktop (~34%, checked against the actual
   images: both titles sit at their own top-left and survive; what overlaps
   is chart content, not a heading). This is intentional layering, not a
   bug to eliminate — don't "fix" it toward zero overlap.

   Container `.enu-mac-right` min-heights (447 / 425 / 484) are post 7751's
   own real values (confirmed via its _elementor_data, not copied from a
   sibling — they coincidentally match financial-services' numbers here). */
.enu-mac-right {
  position: relative;
  min-height: 447px;
}
/* No box-shadow / border-radius here: verified across all 8 live pages that
   NOT ONE positioned panel carries any Elementor shadow or radius setting.
   These PNGs already have their own white card + soft shadow baked into the
   artwork, so adding a CSS shadow drew a SECOND, larger shadowed rectangle
   around the letterboxed empty space of the box. Removed 2026-08-18. */
.enu-mac-mockup {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.enu-mac-mockup--1 { right: 43%; bottom:  5%; width: 88%; height: 146px; }
.enu-mac-mockup--2 { right: 12%; top:    22%; width: 86%; height: 101px; }
.enu-mac-mockup--3 { left:  59%; top:     0%; width: 39%; height: 421px; }

@media (max-width: 1024px) {
  .enu-mac-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .enu-mac-content { grid-template-columns: 1fr; }
  .enu-mac-right { min-height: 425px; margin-top: 24px; }
  .enu-mac-mockup--1 { right:  2%; bottom:  3%; width: 100%; height: 109px; }
  .enu-mac-mockup--2 { right: 12%; top:    37%; width:  79%; height: 152px; background-size: cover; }
  .enu-mac-mockup--3 { left:   2%; top:     4%; width: 100%; height: 130px; }
}
@media (max-width: 767px) {
  .enu-mac-right { min-height: 484px; }
  .enu-mac-mockup--1 {                          bottom:  7%; width: 100%; height: 110px; }
  .enu-mac-mockup--2 { right:  7%; top:    38%; width:  72%; height: 145px; }
  .enu-mac-mockup--3 { left:   2%;              width:  94%; height: 175px; }
}

/* ---------- Solutions by Function ---------- */

.enu-solutions { background: #fff; }
.enu-solutions .enu-h2 { margin-bottom: 8px; }
.enu-solutions-intro { font-size: 20px; margin-bottom: 32px; }

.enu-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* This page has 4 real solution cards, not the family's usual 3 — confirmed
   via post 7751's own data. */
.enu-solutions-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) {
  .enu-solutions-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.enu-solution-card {
  background: var(--enu-neutral-9);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enu-solution-label {
  display: inline-block;
  align-self: flex-start;
  background: var(--enu-text);
  color: #fff;
  font-weight: 600;
  font-size: 24px;
  padding: 3px 8px;
}

.enu-solution-card p {
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  color: var(--enu-text);
}

@media (max-width: 900px) {
  .enu-solutions-grid { grid-template-columns: 1fr; }
}

/* ---------- Compliance & Regulatory Highlights ---------- */

.enu-compliance { background: #fff; }
.enu-compliance-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.enu-compliance-copy { max-width: 490px; }
.enu-compliance-copy .enu-h2 { margin-bottom: 20px; }
.enu-compliance-copy p { font-size: 20px; }

/* FOUR panels here, not the family's usual 2 — confirmed real via post
   7751's own data. Unlike the sibling pages' 2-panel version (a simple
   fix ported here proactively) each of these 4 IS its own genuinely
   independent complete card ("Staff Capacity Gauge" / "FERC Regulation
   Tracking" / "Task Prioritization Matrix" / "Maturity Level Progress" —
   confirmed by opening the files, all opaque with a title top-left), so
   title-covering overlap would be a real defect here, unlike section-2's
   deliberately-overlapping scene fragments.

   Anchors: panels 1 & 2 RIGHT+BOTTOM, panels 3 & 4 RIGHT+top. Container
   height is not a live value (same 1-row CSS Grid, absolutely-positioned-
   only children as every sibling page) — 320px/320px/300px chosen to
   comfortably contain all four real per-page panel positions.

   Computed overlaps at these heights stay in the 4-19% range at every
   breakpoint and — checked against each image's actual top-left title
   band — land on lower/side chart content (axis labels, grid cells), not
   any title. NOT yet confirmed with a live screenshot, unlike the 2-panel
   version's fix: this is a more complex 4-panel composition than anything
   verified visually so far in this family. Verify in a browser before
   trusting this is bug-free the way the 2-panel version now is. */
.enu-compliance-charts {
  position: relative;
  flex: 1 1 400px;
  min-height: 320px;
}
/* No box-shadow / border-radius here: verified across all 8 live pages that
   NOT ONE positioned panel carries any Elementor shadow or radius setting.
   These PNGs already have their own white card + soft shadow baked into the
   artwork, so adding a CSS shadow drew a SECOND, larger shadowed rectangle
   around the letterboxed empty space of the box. Removed 2026-08-18. */
.enu-compliance-chart {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.enu-compliance-chart--1 { right:  8%; bottom: 57%; width: 44%; height: 176px; }
.enu-compliance-chart--2 { right: 64%; bottom: 38%; width: 53%; height: 176px; }
.enu-compliance-chart--3 { right: 46%; top:    45%; width: 45%; height: 146px; }
.enu-compliance-chart--4 { right:  5%; top:    57%; width: 36%; height: 146px; }

@media (max-width: 1024px) {
  .enu-compliance-charts { width: 100%; min-height: 320px; }
  .enu-compliance-chart--1 { right:  -2%; bottom: 53%; width: 68%; height: 139px; }
  .enu-compliance-chart--2 { right:  52%; bottom: 36%; width: 68%; height: 139px; }
  .enu-compliance-chart--3 { right: -11%; top:    50%; width: 59%; height: 137px; }
  .enu-compliance-chart--4 { right:  49%; top:    54%; width: 59%; height: 137px; }
}
@media (max-width: 767px) {
  .enu-compliance-charts { min-height: 300px; }
  .enu-compliance-chart--1 { right:  -2%; bottom: -5%; width: 52%; height: 140px; }
  .enu-compliance-chart--2 { right:  48%; bottom: -5%; width: 57%; height: 140px; }
  .enu-compliance-chart--3 { right:  52%; top:    18%; width: 58%; height: 101px; }
  .enu-compliance-chart--4 { right:   0%; top:     6%; width: 57%; height: 101px; }
}

/* ---------- Benefits ---------- */

.enu-benefits { background: var(--enu-mint-gradient); }
.enu-benefits .enu-h2 { margin-bottom: 48px; }

.enu-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.enu-benefit-card {
  background: #fff;
  border-radius: var(--enu-radius);
  overflow: hidden;
}

.enu-benefit-media {
  height: 191px;
  background: var(--enu-neutral-9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--enu-neutral-7);
  padding: 24px;
}
.enu-benefit-media img { max-height: 100%; width: auto; object-fit: contain; }

.enu-benefit-body { padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.enu-benefit-body h3 { font-size: 22px; font-weight: 600; color: #09101D; }

.enu-benefit-pill {
  align-self: flex-start;
  background: var(--enu-neutral-8);
  color: var(--enu-primary);
  font-weight: 700;
  font-size: 12px;
  padding: 3px 11px;
  border-radius: 9999px;
}

.enu-benefit-body p { font-size: 16px; font-weight: 500; }

@media (max-width: 1100px) {
  .enu-benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .enu-benefits-grid { grid-template-columns: 1fr; }
}

/* ---------- Related posts / CTA section wrappers ---------- */

.enu-related { background: #fff; }
.enu-cta {
  background: #fff;
  padding-top: 0 !important;
  padding-bottom: 96px !important;
  overflow-x: hidden;
  overflow-y: visible;
}
@media (max-width: 767px) {
  .enu-cta { padding-bottom: 56px !important; }
}

/* ---------- Lead magnet CTA (.lm-cta-banner) — page-scope override ----------
   .enu-page section{padding:96px 4vw} (0,1,1) otherwise beats the module's
   own .lm-cta-banner padding (0,1,0) — same bug already fixed once for
   .eet-page; ported here. */
.enu-page section.lm-cta-banner {
  padding: 0 4vw;
}
@media (max-width: 900px) {
  .enu-page section.lm-cta-banner {
    padding: 56px 20px !important;
  }
}

/* ---------- CTA section-8 on-scroll pattern layer ----------
   Vanilla-JS port of the live post 7691's .pattern-wrapper/.hrimgwrapperlft
   GSAP ScrollTrigger effect (this page excludes all site GSAP). Fixed
   dimensions from first paint — only `transform` is ever touched by JS,
   never width/height/margin, to avoid reflow. */
.enu-cta-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 170%;
  height: 100%;
  background-image: url("/wp-content/uploads/2025/07/54a768dcea5da5e17c5698fa431189da72b85889-scaled-1.png");
  background-repeat: no-repeat;
  background-position: 0% 0%;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
  transform: translateX(0%);
}
