/* ==========================================================================
   qa-fixes-contractors.css — /contractors/-page QA fixes
   --------------------------------------------------------------------------
   Status 2026-06-27: /contractors was rebuilt to the redesign frame 11999:238691
   on self-contained registered components (.rp-feature-cards · .rp-feature-split
   [+ --navy --card] · .rp-video-feature · rp-awards · component-product-hero).
   Those components own their styling, so the original per-section page forks are
   no longer needed. After the body reconciliation, every fork rule was
   orphan-verified (0 live matches on /contractors + /ar/contractors) and removed.

   The ONLY rule still serving a live element is §H below (the hero's lavender
   gradient). It is a `.rp-contractors`-scoped hero override — candidate to migrate
   into the shared product-hero component if the gradient is the product-hero
   standard. Left here for now because it is load-bearing.

   REMOVED (all orphan-verified 0 live matches), by phase:
     pre-3   §B · §L · §N        — earlier dead rules.
     2a      §J · §M             — Streamline/Simplify L/R alternation + product-slide image-cap.
     3b      §G                  — product-slide H1 size (old cm-feature slides).
     3c      §C · §O             — old #yt-video iframe wrapper + 4 section-wrapper bg/padding rules.
     4 sweep §A · §F · §I · §K · §D · §P · §Q — feature-subheadings, trust-badge heading size,
             "Our customers love us" hero card, white-bg-mask hide, benefits white-bg rows,
             product-slide column padding, leave-modal H3. Replaced by component CSS, or targeted
             markup the redesign removed.
   ========================================================================== */

/* §H. HERO GRADIENT — live's contractors hero has a soft lavender top-fade
   (`rgba(228,235,254,0) → rgb(228,235,254) at 15%`), applied without the home-only
   rounded-bottom modifier classes. LIVE (1 match: the hero wrapper). Direction-agnostic. */
.rp-contractors .hero_double_section.new_rp_hero_double_section.new_rp_hero_double_section_bg.new_rp_hero_double_section_bg_extra_layer {
  background-image: linear-gradient(rgba(228, 235, 254, 0), rgb(228, 235, 254) 15%, rgb(228, 235, 254));
}

/* ==========================================================================
   FULL REBUILD 2026-07-07 — Contractors Management, Figma 15642-8327.
   New conversion-focused body (parts/contractors-body.html + ar- twin).
   Page-scoped under .rp-cm. Reuses the shared .rp-feature-split component for
   secs 4/5/6 (split rows, __cols, __bullets green checks, __quote); the hero,
   brands, pain cards, navy 6-feature band and blue closing CTA are page-scoped
   here. Shared across EN + AR (RTL rules at the bottom). Do NOT edit migration.min.css.
   ========================================================================== */
.rp-cm{font-family:Mulish,-apple-system,BlinkMacSystemFont,sans-serif}
.rp-cm .hl{color:#114EF7}

/* ── SEC 1 HERO + brands (lavender rounded) ───────────────────────────── */
.rp-cm-hero{background:linear-gradient(180deg,#F5F8FF 0%,#E4EBFE 55%,#E4EBFE 100%);border-radius:0 0 40px 40px}
.rp-cm-hero__inner{max-width:1200px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding:56px 24px 32px}
.rp-cm-hero__pills{display:flex;gap:12px;margin:0 0 26px;flex-wrap:wrap}
/* .rp-cm-pill retired 2026-07-11 (item 1): hero pills now use the shared g2_tags_v3 component
   (qa-fixes-global.css, incl. the global no-hover rule) — markup swapped in contractors-body + ar twin. */
.rp-cm-hero__h{font-size:48px;line-height:1.12;font-weight:800;color:#021143;margin:0 0 20px}
.rp-cm-hero__sub{font-size:17px;line-height:1.6;color:#5A6378;margin:0 0 28px;max-width:520px}
.rp-cm-hero__media img{width:100%;height:auto;display:block}
/* ── HERO VIDEO → MODAL (2026-07-11, item 2) ───────────────────────────────
   The hero media is a poster + .rp-hero-yt-play[data-yt-id] overlay that opens the video in a
   body-level modal (assets/js/hero-yt-modal.js, enqueued globally). This replaced the old inline
   [rp_youtube] facade (a407eed) whose out-of-flow iframe collapsed the hero box to height:0 — the
   modal's iframe lives on document.body, so that class of bug cannot recur. The poster keeps its
   device frame + baked rgba(0,0,0,.5) scrim uncropped; the play mark is the shared YouTube button.
   (.rp-hero-yt-play[data-yt-id] also gets position:absolute;inset:0 from figma-fixes-b.css, but the
   inline style="position:relative" on the element wins, so it wraps the poster in flow.) */
.rp-cm-hero__media .rp-hero-yt-play{width:100%;line-height:0}
.rp-cm-hero__media .rp-hero-yt-play img{width:100%!important;height:auto!important;display:block}
.rp-cm-hero__media .rp-cm-hero__playbtn{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}
.rp-cm-hero__media .rp-cm-hero__playbtn svg{width:68px;height:48px;filter:drop-shadow(0 4px 14px rgba(0,0,0,.35));transition:transform .15s ease}
.rp-cm-hero__media .rp-hero-yt-play:hover .rp-cm-hero__playbtn svg{transform:scale(1.08)}
.rp-cm-hero__media .rp-hero-yt-play:focus-visible{outline:3px solid #114EF7;outline-offset:4px;border-radius:16px}
.rp-cm-btn{display:inline-block;background:#114EF7;color:#fff;font-weight:700;font-size:16px;line-height:1;padding:16px 26px;border-radius:10px;text-decoration:none}
.rp-cm-btn:hover{background:#0d3fd0}
.rp-cm-brands{padding:12px 24px 60px;text-align:center}
.rp-cm-brands__label{font-size:18px;font-weight:800;color:#021143;margin:0 0 28px}
.rp-cm-brands__logos{display:flex;align-items:center;justify-content:center;gap:44px;flex-wrap:wrap;max-width:1080px;margin:0 auto}
/* The 7 shared wave-1 brand SVGs are authored near-white (#FAFBFF/white), so on this
   light lavender hero they render invisible. Apply the canonical brands-bar treatment
   (filter: invert(85%) → dark-grey monochrome, same as components/brands-bar.css) so they
   read on the light band. 2026-07-08. */
/* The 7 logo SVGs report intrinsic 300×150 (viewBox), so `height:30px;width:auto`
   leaves width stuck at 300 → the logos stretch ~10:1 and wrap to two rows.
   Constrain BOTH axes (max-height/max-width) with both dims auto so the intrinsic
   aspect ratio is preserved, and object-fit:contain letterboxes any odd source.
   max-width ≥100px so the widest mark (logitech ~100px @30h) isn't clipped. 2026-07-08. */
.rp-cm-brands__logos img{height:auto;width:auto;max-height:30px;max-width:112px;object-fit:contain;object-position:center;display:block;filter:invert(85%)}
/* Tablet/mobile (item 2): video sits BELOW the CTA — drop the order:-1 that lifted the media
   above the text; DOM order is pills→H1→sub→CTA→media, so natural order stacks the video last. */
@media(max-width:991px){.rp-cm-hero__inner{grid-template-columns:1fr;gap:28px;padding:36px 20px 20px}.rp-cm-hero__h{font-size:34px}.rp-cm-hero__media{order:0}}
@media(max-width:767px){.rp-cm-brands__logos{gap:24px}.rp-cm-brands__logos img{max-height:22px;max-width:90px}}

/* ── SEC 3 PAIN cards (white) ─────────────────────────────────────────── */
.rp-cm-pain{background:#fff;padding:80px 24px}
.rp-cm-pain__inner{max-width:1136px;margin:0 auto}
.rp-cm-pain__h{font-size:40px;line-height:1.2;font-weight:700;color:#021143;text-align:center;margin:0 auto 48px;max-width:860px}
.rp-cm-pain__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.rp-cm-pain__card{border:1px solid #E7ECF7;border-radius:16px;padding:32px 28px;display:flex;flex-direction:column;gap:18px;background:#fff}
.rp-cm-pain__x{width:40px;height:40px;border-radius:50%;background:#FDECEC;display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px}
.rp-cm-pain__x svg{width:18px;height:18px;display:block}
.rp-cm-pain__card p{font-size:16px;line-height:1.55;color:#3A4256;margin:0;font-weight:700}
@media(max-width:991px){.rp-cm-pain{padding:48px 20px}.rp-cm-pain__h{font-size:28px}.rp-cm-pain__grid{grid-template-columns:1fr}}

/* ── SEC 4 section background (light lavender). SEC 6 visibility now composes the
   shared rp-cm-visibility component (components/cm-visibility.css owns its own bg). ── */
.rp-cm-get{background:#EEF3FF}
/* sub-title inside a split text column (Figma "Custom workflows…" H3) */
.rp-cm-colh{font-size:22px;line-height:1.3;font-weight:700;color:#021143;margin:0 0 12px}
/* company logo chip in inline quote (Grubtech has no SVG asset — text mark) */
.rp-cm-logochip{width:44px;height:44px;border-radius:8px;background:#111;color:#fff;font-size:9px;font-weight:800;letter-spacing:.2px;display:inline-flex;align-items:center;justify-content:center;text-align:center;flex:0 0 44px}
/* inline quote author: stack name over role (spans are inline by default → they ran
   together as "Damithri FernandoStrategic HR…"). Scoped to the CM feature-split quotes. */
.rp-cm-get .rp-feature-split__quote .who .name,.rp-cm-get .rp-feature-split__quote .who .role,
.rp-cm-pay .rp-feature-split__quote .who .name,.rp-cm-pay .rp-feature-split__quote .who .role{display:block}

/* ── SEC 8 FEATURES — the 6-card navy band now composes the shared rp-cm-cards
   component (components/cm-cards.css). Only the Cristian G2 testimonial card stays
   page-scoped; it sits on the same navy band, below the grid. 2026-07-08. */
.rp-cm-cards .rp-cm-tcard{max-width:1312px;margin:56px auto 0}
.rp-cm-tcard{background:#26315C;border-radius:24px;padding:40px 48px;display:flex;gap:40px;align-items:center}
.rp-cm-tcard__photo{width:180px;height:180px;flex:0 0 180px;object-fit:contain;display:block}
.rp-cm-tcard__body{flex:1 1 auto;min-width:0}
.rp-cm-tcard__rate{display:flex;align-items:center;gap:10px;margin:0 0 16px}
.rp-cm-tcard__stars{color:#FFB800;font-size:18px;letter-spacing:2px;line-height:1}
.rp-cm-tcard__score{color:#fff;font-size:14px;font-weight:600}
.rp-cm-tcard__g2{width:24px;height:24px;display:block}
.rp-cm-tcard .q{color:#fff;font-size:20px;line-height:1.4;font-weight:700;margin:0 0 20px}
.rp-cm-tcard__foot{display:flex;align-items:center;justify-content:space-between;gap:24px}
.rp-cm-tcard__foot .name{display:block;color:#fff;font-weight:700;font-size:15px}
.rp-cm-tcard__foot .role{display:block;color:#B9C3E4;font-size:14px}
.rp-cm-tcard__btn{flex:0 0 auto;background:transparent;border:1px solid rgba(255,255,255,.55);color:#fff;border-radius:10px;padding:14px 26px;font-weight:700;font-size:14px;line-height:1;text-decoration:none;white-space:nowrap}
.rp-cm-tcard__btn:hover{background:rgba(255,255,255,.12)}
@media(max-width:991px){.rp-cm-cards .rp-cm-tcard{margin-top:40px}.rp-cm-tcard{flex-direction:column;text-align:center;padding:28px 22px}.rp-cm-tcard__foot{flex-direction:column;gap:16px}}

/* ── SEC 9 closing CTA — now composes the SHARED rp-cm-cta card (components/cta.css).
   The old page-scoped .rp-cm-cta__inner fork was removed 2026-07-08. ─────────── */

/* ── SEC 7 integrations (page copy of the home integrations swiper) ───── */
.rp-cm-integ{background:#fff;padding:72px 24px}
.rp-cm-integ__inner{max-width:1200px;margin:0 auto}
.rp-cm-integ__h{font-size:40px;line-height:1.2;font-weight:700;color:#021143;margin:0 0 16px;max-width:760px}
.rp-cm-integ__sub{font-size:18px;line-height:1.55;color:#5A6378;margin:0 0 12px;max-width:720px}
.rp-cm-integ__link{display:inline-block;color:#114EF7;font-weight:700;text-decoration:none;margin:0 0 36px}
.rp-cm-integ__link:hover{text-decoration:underline}
.rp-cm-integ .int-item{background:#F6F8FE;border-radius:16px;padding:24px;text-align:center}
.rp-cm-integ .int-item .expand{display:flex;align-items:center;justify-content:center;height:64px}
.rp-cm-integ .int-item-img{max-height:58px;width:auto;object-fit:contain}
.rp-cm-integ .intname{font-size:15px;font-weight:700;color:#021143;margin-top:16px}
.rp-cm-integ .int-type{font-size:13px;color:#8A93AB;margin-top:4px}
@media(max-width:991px){.rp-cm-integ{padding:48px 20px}.rp-cm-integ__h{font-size:28px}}

/* ── SEC 4/5 quote: pin the media so tall images don't overflow ───────── */
.rp-cm-get .rp-feature-split__media-img,.rp-cm-pay .rp-feature-split__media-img{border-radius:16px}
.rp-cm-get .rp-feature-split__quote{margin-top:40px}

/* ── RTL (AR twin) ────────────────────────────────────────────────────── */
[dir="rtl"] .rp-cm-hero__sub{margin-left:auto}
[dir="rtl"] .rp-cm-colh,[dir="rtl"] .rp-cm-integ__h,[dir="rtl"] .rp-cm-integ__sub{text-align:right}
[dir="rtl"] .rp-cm-pain__card{text-align:right}
/* sec 6 visibility RTL handled by cm-visibility-rtl.css; sec 8 cards by cm-cards-rtl.css;
   sec 9 CTA by cta-rtl.css. */
[dir="rtl"] .rp-cm-tcard{text-align:right}
