/*
 * Professional Services Clone — Test Page Stylesheet
 * Hand-coded (no Elementor, no GSAP). Cloned from financial-test, content/
 * images/geometry swapped to post 7780's (/by-industry/professional-
 * services/) real data. Back to the family's default shape: 4 Key
 * Challenges mockups, 3 Solutions cards, 2 Compliance charts, 4 Benefits
 * cards. Scoped under .prs-page.
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.prs-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;

  /* Was an inline style on the section pointing at the 2.13 MB
     image-7-scaled.png (2560x1447) at every viewport — the heaviest hero in
     the clone family. Moved here so it can be sized and served as WebP:
       desktop  1600w  2185 KB PNG -> 100 KB WebP  (-95%)
       <=1024   1000w  2185 KB PNG ->  42 KB WebP  (-98%)
     The plain url() line is the universal fallback; image-set() wins where
     supported and prefers WebP. */
  background-image: url("/wp-content/uploads/2025/11/image-7-1536x868.png");
  background-image: image-set(
    url("/wp-content/uploads/2025/11/image-7-1600.webp") type("image/webp"),
    url("/wp-content/uploads/2025/11/image-7-1536x868.png") type("image/png")
  );
}

@media (max-width: 1024px) {
  .prs-hero {
    background-image: url("/wp-content/uploads/2025/11/image-7-1024x579.png");
    background-image: image-set(
      url("/wp-content/uploads/2025/11/image-7-1000.webp") type("image/webp"),
      url("/wp-content/uploads/2025/11/image-7-1024x579.png") type("image/png")
    );
  }
}


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.prs-check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.prs-check-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.prs-check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--prs-green);
  position: relative;
}
.prs-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.
   FOUR panels here:
     mockup 1: left + top (no orientation flags at all)
     mockup 2: RIGHT + BOTTOM     mockups 3 & 4: RIGHT + top

   Container `.prs-mac-right` min-heights (566 / 477 / 596) are post 7780's
   own real values — this page's collage is notably taller than the
   sibling pages' (~440-447 desktop), a genuinely different real size, not
   a typo. */
.prs-mac-right {
  position: relative;
  min-height: 566px;
}
/* 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. */
.prs-mac-mockup {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.prs-mac-mockup--1 { left:  39%; top:    14%; width: 55%; height: 190px; background-size: cover; }
.prs-mac-mockup--2 { right:  8%; bottom:  9%; width: 40%; height: 191px; background-size: cover; }
.prs-mac-mockup--3 { right: 50%; top:    34%; width: 43%; height: 235px; background-size: auto; }
.prs-mac-mockup--4 { right: 58%; top:     5%; width: 42%; height: 176px; background-size: cover; }

@media (max-width: 1024px) {
  .prs-mac-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .prs-mac-content { grid-template-columns: 1fr; }
  .prs-mac-right { min-height: 477px; margin-top: 24px; }
  .prs-mac-mockup--1 { left:   2%; top:  4%; width: 90%; height: 167px; }
  .prs-mac-mockup--2 { right: -10%; bottom: 30%; width: 75%; height: 161px; }
  .prs-mac-mockup--3 { right:  51%; top: 43%; width: 55%; height: 182px; background-size: cover; }
  .prs-mac-mockup--4 { right:  -7%; top: 74%; width: 82%; height: 137px; }
}
@media (max-width: 767px) {
  .prs-mac-right { min-height: 596px; }
  .prs-mac-mockup--1 { width:  74%; height: 131px; }
  .prs-mac-mockup--2 { bottom:  3%; width: 68%; height: 185px; }
  .prs-mac-mockup--3 { right: -7%; top: 26%; width: 74%; height: 205px; }
  .prs-mac-mockup--4 { right: 29%; top: 52%; width: 73%; height: 131px; }
}

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

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

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

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

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

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

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

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

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

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

/* Same anchor-resolution method as .prs-mac-mockup above. Anchors:
   chart 1 RIGHT+BOTTOM, chart 2 RIGHT+top. Container height not a live
   value (1-row CSS Grid, absolutely-positioned children only); 360px
   chosen to comfortably contain both real per-page panel positions —
   computed overlaps stay at 11-14% at every breakpoint, consistent with
   the corner-overlap pattern already confirmed safe (title untouched) on
   earlier pages in this family. */
.prs-compliance-charts {
  position: relative;
  flex: 1 1 400px;
  min-height: 360px;
}
/* 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. */
.prs-compliance-chart {
  position: absolute;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.prs-compliance-chart--1 { right:  8%; bottom: 38%; width: 45%; height: 228px; background-size: cover; }
.prs-compliance-chart--2 { right: 46%; top:    10%; width: 58%; height: 183px; background-size: auto; }

@media (max-width: 1024px) {
  .prs-compliance-charts { width: 100%; min-height: 360px; }
  .prs-compliance-chart--1 { right: -2%; bottom: 36%; width: 71%; height: 184px; }
  .prs-compliance-chart--2 { right: 24%; top:    54%; width: 100%; height: 167px; background-size: cover; }
}
@media (max-width: 767px) {
  .prs-compliance-charts { min-height: 320px; }
  .prs-compliance-chart--1 { right: -2%; bottom: -5%; width: 78%; height: 237px; }
  .prs-compliance-chart--2 { right: 10%; top:    -1%; width: 98%; height: 131px; }
}

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

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

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

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

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

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

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

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

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

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

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

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