/*
 * Manufacturing & Supply Chain Clone — Test Page Stylesheet
 * Hand-coded (no Elementor, no GSAP). Cloned from financial-test, content/
 * images/geometry swapped to post 7771's (/by-industry/manufacturing-and-
 * supply-chain/) real data. Compliance & Regulatory Highlights is a single
 * flat image here, not a floating chart collage — see that section's PHP
 * docblock. Scoped under .msc-page.
 */

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

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

  position: relative;
  font-family: "Public Sans", sans-serif;
  color: var(--msc-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. */
.msc-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.msc-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;
}

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

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

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

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

.msc-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;
}


.msc-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

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

.msc-hero-h1 {
  color: #fff !important;
  font-size: 100px;
  line-height: 1.04;
  font-weight: 700;
  margin: 0;
  overflow-wrap: break-word;
  min-width: 0;
  max-width: 100%;
}

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

@media (max-width: 900px) {
  .msc-hero-h1 { font-size: 56px; }
  .msc-hero-sub { font-size: 18px; }
}
@media (max-width: 480px) {
  /* "Manufacturing" alone is wider than a ~360px content column at 56px —
     the only hero title in this family long enough to need this. Dropping
     to 42px lets it fit as one whole word instead of breaking mid-syllable
     (the overflow-wrap/min-width fix above stays as a safety net). */
  .msc-hero-h1 { font-size: 42px; }
}

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

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

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

.msc-page section.msc-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;
}

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

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

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

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

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

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

.msc-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.msc-check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.msc-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--msc-green);
  position: relative;
}
.msc-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, not left; `_offset_orientation_v: end` means BOTTOM.
     mockup 1: RIGHT + BOTTOM     mockup 2: RIGHT + top     mockup 3: left + top

   DIFFERENT HEIGHT TECHNIQUE from every other page's collage: these 3
   panels use PERCENTAGE min-heights (`{unit:"custom", size:"40%"}` etc, a
   % of the CONTAINER's own height) rather than fixed px. Converted to px
   here against `.msc-mac-right`'s own real min-heights (440/306/455) so
   this stays consistent with the fixed-px technique used everywhere else
   in this codebase — re-derive if this container's height is ever changed.
   Panel 3 has NO offset controls at all in the real data (not omitted by
   accident — checked the full settings dump), which Elementor resolves to
   left:0/top:0; reproduced literally rather than guessed.

   Container `.msc-mac-right` min-heights (440 / 306 / 455) are post 7771's
   own real values — note this page's TABLET height (306) is notably
   smaller than every sibling page's (~425), and mobile (455) sits between
   them rather than being the tallest, a different growth curve again. */
.msc-mac-right {
  position: relative;
  min-height: 440px;
}
/* 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. */
.msc-mac-mockup {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.msc-mac-mockup--1 { right: 0%; bottom: -4%; width:  95%; height: 176px; }
.msc-mac-mockup--2 { right: 0%; top:    33%; width:  58%; height: 220px; }
.msc-mac-mockup--3 { left:  0%; top:     0%; width:  64%; height: 220px; }

@media (max-width: 1024px) {
  .msc-mac-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .msc-mac-content { grid-template-columns: 1fr; }
  .msc-mac-right { min-height: 306px; margin-top: 24px; }
  .msc-mac-mockup--1 { height: 122px; }
  .msc-mac-mockup--2 { height: 153px; }
  .msc-mac-mockup--3 { height: 153px; }
}
@media (max-width: 767px) {
  .msc-mac-right { min-height: 455px; }
  .msc-mac-mockup--1 { width: 100%; height: 137px; background-size: auto; }
  .msc-mac-mockup--2 { top: 35%; height: 228px; }
  .msc-mac-mockup--3 { height: 228px; }
}

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

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

.msc-solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

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

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

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

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

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

/* SINGLE FLAT IMAGE here, not a floating chart collage — unlike every
   other page in this family. Post 7771's real second column has no
   offset/absolute-position settings at all: one plain centered
   background-image at background-size:contain, min-height 295px desktop /
   146px tablet (real values). No real mobile min-height is set on live
   either (empty custom value) — 220px chosen here to comfortably fit the
   image's own 2.024:1 real aspect ratio at a typical mobile column width
   rather than left unset (an unset min-height on a flex item with only a
   background-image and no content would collapse to 0 height and the
   image would never show at all). */
.msc-compliance-image {
  flex: 1 1 400px;
  min-height: 295px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

@media (max-width: 1024px) {
  .msc-compliance-image { width: 100%; min-height: 146px; }
}
@media (max-width: 767px) {
  .msc-compliance-image { min-height: 220px; }
}

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

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

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

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

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

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

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

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

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

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

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

/* ---------- Lead magnet CTA (.lm-cta-banner) — page-scope override ----------
   .msc-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. */
.msc-page section.lm-cta-banner {
  padding: 0 4vw;
}
@media (max-width: 900px) {
  .msc-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. */
.msc-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%);
}
