/* =============================================================
   NewCombin — "Not ready to hire now?" reusable resources promo
   Used (identical structure/style) on:
     /it-agencies/            -> Salary guide only
     /staffing-latam-recruiters/ -> Recruiters guide only
     /home/                   -> both guides

   A light section with a centered two-line title and one or two
   large resource cards (dark / orange) carrying a CSS guide-cover
   mock, short copy and a pill CTA to the gated resource page.
   Adapted to the NewCombin design system. No JS required.
   ============================================================= */

.rp {
  background: var(--nc-seasalt);
  padding: 92px 0;
}
.rp__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- Heading ---- */
.rp__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}
.rp__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .4px;
  line-height: 1.06;
  font-size: clamp(30px, 3.8vw, 46px);
  text-wrap: balance;
}
.rp__title-1 {
  display: block;
  color: var(--nc-ink-500);
  font-weight: 700;
}
.rp__title-2 {
  display: block;
  color: var(--nc-dark-gray);
}
.rp__sub {
  margin: 16px auto 0;
  max-width: 560px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--nc-ink-600);
  text-wrap: pretty;
}

/* ---- Grid ---- */
.rp__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  align-items: stretch;
}
.rp__grid--one {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

/* ---- Card ---- */
.rp-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 32px;
  padding: 52px 48px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.rp-card__eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.rp-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 2.4vw, 34px);
  line-height: 1.1;
  letter-spacing: .3px;
  text-wrap: balance;
}
.rp-card__desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 440px;
  text-wrap: pretty;
}
.rp-card__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .18s var(--ease-out, ease), box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.rp-card__cta svg { display: block; transition: transform .2s ease; }
.rp-card__cta:hover svg { transform: translateX(3px); }

/* push the CTA to the bottom so cards align when copy length differs */
.rp-card__desc { flex: 1 0 auto; }

/* ---- Dark card (recruiters guide) ---- */
.rp-card--dark {
  background: var(--nc-dark-gray);
  color: var(--nc-seasalt);
}
.rp-card--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(620px 360px at 18% 4%, rgba(234, 127, 10, 0.26), rgba(234, 127, 10, 0) 60%),
    radial-gradient(560px 420px at 100% 100%, rgba(250, 188, 120, 0.12), rgba(250, 188, 120, 0) 60%);
}
.rp-card--dark .rp-card__eyebrow { color: var(--nc-fawn); }
.rp-card--dark .rp-card__title   { color: var(--nc-white); }
.rp-card--dark .rp-card__desc    { color: rgba(250, 250, 250, 0.82); }
.rp-card--dark .rp-card__cta {
  background: var(--nc-orange);
  color: var(--nc-white);
  box-shadow: 0 10px 24px rgba(234, 127, 10, 0.28);
}
.rp-card--dark .rp-card__cta:hover {
  background: var(--nc-deep-orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(234, 88, 24, 0.34);
}

/* ---- Orange card (salary guide) ---- */
.rp-card--orange {
  background: linear-gradient(145deg, var(--nc-orange) 0%, var(--nc-deep-orange) 100%);
  color: var(--nc-white);
}
.rp-card--orange::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px 360px at 84% 8%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 60%);
}
.rp-card--orange .rp-card__eyebrow { color: rgba(255, 255, 255, 0.85); }
.rp-card--orange .rp-card__title   { color: var(--nc-white); }
.rp-card--orange .rp-card__desc    { color: rgba(255, 255, 255, 0.92); }
.rp-card--orange .rp-card__cta {
  background: var(--nc-white);
  color: var(--nc-deep-orange);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.rp-card--orange .rp-card__cta:hover {
  background: var(--nc-seasalt);
  color: var(--nc-deep-orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

/* =============================================================
   Guide-cover mock — a tilted cream "report cover" sheet.
   Pure CSS, no images, so the markup stays identical everywhere.
   ============================================================= */
.rp-cover {
  perspective: 900px;
  padding: 6px 0 2px;
}
.rp-cover__sheet {
  position: relative;
  width: 196px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  background:
    radial-gradient(circle at 1px 1px, rgba(64, 64, 64, 0.07) 1px, transparent 1.6px) 0 0 / 14px 14px,
    linear-gradient(160deg, #ffffff 0%, #faf4ec 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 26px 48px rgba(0, 0, 0, 0.34),
    0 8px 18px rgba(0, 0, 0, 0.22);
  transform: rotate(-5deg);
  transition: transform .35s var(--ease-out, ease), box-shadow .35s ease;
}
/* top accent band */
.rp-cover__sheet::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 34px;
  height: 5px;
  border-radius: 999px;
  background: var(--nc-orange);
}
.rp-card:hover .rp-cover__sheet {
  transform: rotate(-1.5deg) translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 60px rgba(0, 0, 0, 0.40),
    0 10px 22px rgba(0, 0, 0, 0.24);
}
.rp-cover__kicker {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--nc-deep-orange);
}
.rp-cover__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: .2px;
  color: var(--nc-dark-gray);
  text-wrap: balance;
}
.rp-cover__rule {
  margin-top: auto;
  width: 100%;
  height: 1px;
  background: rgba(64, 64, 64, 0.14);
}
.rp-cover__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .4px;
  color: var(--nc-gray);
}
.rp-cover__brand::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--nc-orange);
  flex: none;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 860px) {
  .rp { padding: 72px 0; }
  .rp__grid { grid-template-columns: 1fr; gap: 22px; }
  .rp__grid--one { grid-template-columns: 1fr; }
  .rp-card { padding: 44px 32px 38px; }
}
@media (max-width: 640px) {
  .rp { padding: 56px 0; }
  .rp__inner { padding: 0 20px; }
  .rp__head { margin-bottom: 36px; }
  .rp-card { padding: 38px 24px 34px; border-radius: 26px; }
  .rp-cover__sheet { width: 168px; }
  .rp-card__cta { width: 100%; justify-content: center; }
}
