/* ==========================================================
   HRDelivered — PEO Referral Partnership Page
   Depends on: hrdelivered-global.css (tokens, nav, footer, btn-primary, etc.)
   ========================================================== */

/* ── Shared content width (mirrors homepage) ──────────────── */
.pt-hero-inner,
.section-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .pt-hero-inner,
  .section-inner {
    padding-inline: 2.5rem;
  }
}

/* ── Section base ─────────────────────────────────────────── */
.section {
  padding-block: 4rem;
}

.section--white { background: #ffffff; }
.section--cream { background: var(--color-cream, #F6F3E8); }

.section-header {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.65;
}

/* ── Card base ──────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.75rem;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); }

.card--step { position: relative; overflow: hidden; }
.card-num {
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(9,79,254,0.10);
  line-height: 1;
  pointer-events: none;
}

.card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9,79,254,0.08);
  border-radius: 10px;
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-navy, #001342);
  margin-bottom: 0.5rem;
}
.card-body {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.pt-hero {
  background-color: #001342;
  padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--nav-height, 5rem) + 1.5rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.pt-hero-glow1 {
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: rgba(9, 79, 254, 0.25);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.pt-hero-glow2 {
  position: absolute;
  top: 4rem;
  left: 33%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: rgba(215, 1, 63, 0.20);
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.pt-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .pt-hero-inner {
    grid-template-columns: 1fr 460px;
    gap: 3rem;
  }
}

.pt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}

.pt-hero-text h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.pt-hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}
.pt-hero-sub strong { color: #ffffff; font-weight: 600; }

.pt-hero-h1-accent { color: var(--color-blue-light, #5b8cff); }

.pt-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.55);
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.pt-hero-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM CTA
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  position: relative;
  overflow: hidden;
  background: #001342;
  padding-block: 5rem;
  text-align: center;
}
.cta-glow1, .cta-glow2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-glow1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(9,79,254,0.25) 0%, transparent 70%);
  top: -150px; left: -100px;
}
.cta-glow2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(91,140,255,0.18) 0%, transparent 70%);
  bottom: -100px; right: -80px;
}
.cta-inner {
  position: relative;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
@media (min-width: 768px) {
  .cta-inner { padding-inline: 2.5rem; }
}
.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.cta-inner p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  line-height: 1.65;
}
.cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════
   REFERRAL PAGE — page-specific styles (ref- prefix)
   ══════════════════════════════════════════════════════════════ */

.ref-hero-h1-accent {
  color: var(--color-blue-light, #5b8cff);
}

/* ── Stat strip (91% retention) ────────────────────────────── */
.ref-stat-strip {
  background: var(--color-navy, #001342);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 2.5rem;
}
.ref-stat-strip-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
}
@media (min-width: 768px) {
  .ref-stat-strip-inner { padding-inline: 2.5rem; }
}
.ref-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 160px;
}
.ref-stat-number {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--color-blue-light, #5b8cff);
  line-height: 1;
}
.ref-stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}

/* ── How It Works (3-step process) ────────────────────────── */
.ref-steps-section {
  padding-top: 5rem;
  padding-bottom: 2rem;
  background: #fff;
}

.ref-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
}
@media (min-width: 768px) {
  .ref-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Connecting line */
  .ref-steps-grid::before {
    content: "";
    position: absolute;
    top: 2.25rem;
    left: calc(16.667% + 1.5rem);
    right: calc(16.667% + 1.5rem);
    height: 2px;
    background: linear-gradient(90deg, var(--color-blue, #094ffe) 0%, var(--color-blue-light, #5b8cff) 100%);
    z-index: 0;
  }
}

.ref-step-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ref-step-card:hover {
  box-shadow: 0 8px 28px rgba(0,19,66,0.08);
  transform: translateY(-2px);
}
.ref-step-number {
  width: 48px;
  height: 48px;
  background: var(--color-blue, #094ffe);
  color: #fff;
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.ref-step-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 0.6rem;
}
.ref-step-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.65;
}

/* ── Partner Benefits section ──────────────────────────────── */
.ref-benefits-section {
  padding-block: 5rem;
  background: var(--color-cream, #F6F3E8);
}

.ref-benefits-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .ref-benefits-layout {
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
  }
}

.ref-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .ref-benefits-grid { grid-template-columns: 1fr 1fr; }
}

.ref-benefit-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}
.ref-benefit-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.ref-benefit-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: #eff4ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue, #094ffe);
}
.ref-benefit-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 0.35rem;
}
.ref-benefit-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.6;
}

.ref-benefits-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* Bullet list inside benefits */
.ref-benefit-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ref-benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: #374151;
  line-height: 1.55;
}
.ref-benefit-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue, #094ffe);
  margin-top: 0.5rem;
}

/* ── Who Makes a Good Partner section ─────────────────────── */
.ref-ideal-section {
  padding-block: 5rem;
  background: #fff;
}

.ref-ideal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .ref-ideal-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .ref-ideal-grid { grid-template-columns: repeat(3, 1fr); }
}

.ref-ideal-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 2rem 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ref-ideal-card:hover {
  box-shadow: 0 8px 28px rgba(0,19,66,0.08);
  transform: translateY(-2px);
}
.ref-ideal-card-icon {
  width: 48px;
  height: 48px;
  background: #eff4ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-blue, #094ffe);
}
.ref-ideal-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy, #001342);
  margin-bottom: 0.5rem;
}
.ref-ideal-card p {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.65;
}

/* ── Authorized Agents / Logos section ────────────────────── */
.ref-logos-section {
  padding-block: 3.5rem;
  background: var(--color-cream, #F6F3E8);
  border-top: 1px solid #e2dece;
  border-bottom: 1px solid #e2dece;
}
.ref-logos-label {
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 2rem;
}
.ref-logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: center;
  justify-content: center;
}
.ref-logos-grid img {
  height: 36px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(30%);
  transition: opacity 0.2s, filter 0.2s;
}
.ref-logos-grid img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ── Affiliates callout ────────────────────────────────────── */
.ref-affiliates {
  padding-top: 1rem;
  padding-bottom: 3rem;
  background: #fff;
  text-align: center;
}
.ref-affiliates-inner {
  max-width: 700px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.ref-affiliates p {
  font-size: 0.9375rem;
  color: var(--color-text-muted, #4b5563);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.ref-affiliates p a {
  color: var(--color-blue, #094ffe);
  text-decoration: none;
  font-weight: 600;
}
.ref-affiliates p a:hover { text-decoration: underline; }
.ref-affiliate-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: center;
  align-items: center;
}
.ref-affiliate-logos img {
  height: 44px;
  width: auto;
}

/* ── Partner logo marquee ─────────────────────────────────── */
@keyframes ab-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ab-marquee-outer {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ab-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: ab-marquee 28s linear infinite;
}
.ab-marquee-outer:hover .ab-marquee-track {
  animation-play-state: paused;
}

.ab-marquee-logo {
  flex-shrink: 0;
  padding: 0.75rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ab-marquee-logo img {
  max-width: 200px;
  height: auto;
  width: auto;
  display: block;
  filter: grayscale(40%);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}
.ab-marquee-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ab-marquee-track { animation: none; }
}
