/* ═══════════════════════════════════════════════════
   PPC Approach — "Our Approach" Section v3
   Layout: Left (heading + zigzag) | Right (CTA card + marquee)
   Class convention: rh-ppcapproach-[element]
   Breakpoints: 768px (tablet) · 1024px (desktop)
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  --rh-ppcapproach-primary:   #0077B6;
  --rh-ppcapproach-secondary: #2E8B57;
  --rh-ppcapproach-radius-lg: 20px;
  --rh-ppcapproach-radius-sm: 14px;
}

/* ── Section wrapper ── */
.rh-ppcapproach {
  width: 100%;
  padding: 48px 16px;
  font-family: 'Poppins', sans-serif;
}

/* ── Two-column grid (stacks mobile) ── */
.rh-ppcapproach-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ══════════════════════════════════════════
   LEFT COLUMN — Heading + Zigzag
   ══════════════════════════════════════════ */
.rh-ppcapproach-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Section header ── */
.rh-ppcapproach-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rh-ppcapproach-kicker {
  font-size: 12px;
  color: var(--rh-ppcapproach-primary);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0;
}
.rh-ppcapproach-heading {
  font-size: 32px;
  font-weight: 900;
  color: #111827;
  line-height: 1.15;
  margin: 0;
}
.rh-ppcapproach-sub {
  font-size: 15px;
  color: #6b7280;
  font-weight: 400;
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

/* ══════════════════════════════════════════
   ZIGZAG STEPPER
   ══════════════════════════════════════════ */
.rh-ppcapproach-zigzag {
  position: relative;
  width: 100%;
  padding: 10px 0 20px;
}
.rh-ppcapproach-zigzag-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.rh-ppcapproach-zigzag-svg svg { width: 100%; height: 100%; }

.rh-ppcapproach-zigpath {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}
.rh-ppcapproach-zigpath.rh-ppcapproach-animate {
  animation: rhPpcDrawPath 2.2s ease forwards;
}
@keyframes rhPpcDrawPath {
  to { stroke-dashoffset: 0; }
}

.rh-ppcapproach-zigsteps {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.rh-ppcapproach-zigstep {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transition: transform 0.3s ease;
}
.rh-ppcapproach-zigstep.rh-ppcapproach-animate {
  animation: rhPpcFadeUp 0.5s ease forwards;
}
.rh-ppcapproach-zigstep:hover { transform: scale(1.03); }

.rh-ppcapproach-zigstep--left  { justify-content: flex-start; padding-left: 8%; }
.rh-ppcapproach-zigstep--right { justify-content: flex-end;   padding-right: 8%; }

.rh-ppcapproach-zigcircle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  position: relative;
  z-index: 3;
}
.rh-ppcapproach-zigcircle svg { width: 20px; height: 20px; }
.rh-ppcapproach-zigcircle--blue  { background: var(--rh-ppcapproach-primary); }
.rh-ppcapproach-zigcircle--green { background: var(--rh-ppcapproach-secondary); }

.rh-ppcapproach-ziglabel {
  background: #fff;
  border-radius: var(--rh-ppcapproach-radius-sm);
  padding: 10px 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f0f0;
}
.rh-ppcapproach-zignum {
  display: block;
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}
.rh-ppcapproach-zigtitle {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.rh-ppcapproach-zigstep:nth-child(1) { animation-delay: 0.3s; }
.rh-ppcapproach-zigstep:nth-child(2) { animation-delay: 0.55s; }
.rh-ppcapproach-zigstep:nth-child(3) { animation-delay: 0.8s; }
.rh-ppcapproach-zigstep:nth-child(4) { animation-delay: 1.05s; }
.rh-ppcapproach-zigstep:nth-child(5) { animation-delay: 1.3s; }
.rh-ppcapproach-zigstep:nth-child(6) { animation-delay: 1.55s; }

@keyframes rhPpcFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   RIGHT COLUMN — CTA Card + Marquee
   ══════════════════════════════════════════ */
.rh-ppcapproach-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── CTA Card ── */
.rh-ppcapproach-card {
  position: relative;
  background: var(--rh-ppcapproach-primary);
  border-radius: var(--rh-ppcapproach-radius-lg);
  padding: 36px 28px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  cursor: default;
}

/* Dots decoration */
.rh-ppcapproach-dots {
  position: absolute;
  width: 80px;
  height: 80px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle, #fff 2px, transparent 2px);
  background-size: 14px 14px;
}
.rh-ppcapproach-dots--tr { top: -10px;    right: -10px; }
.rh-ppcapproach-dots--bl { bottom: -10px; left: -10px; }

/* Card content */
.rh-ppcapproach-card-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rh-ppcapproach-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.25;
}
.rh-ppcapproach-card-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
  line-height: 1.6;
  margin: 0 0 4px;
}

/* CTA form */
.rh-ppcapproach-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.rh-ppcapproach-input {
  width: 100%;
  border: 2px solid rgba(255,255,255,0.3);
  outline: none;
  font-size: 14px;
  color: #111827;
  background: rgba(255,255,255,0.1);
  padding: 12px 16px;
  border-radius: 12px;
  font-family: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.rh-ppcapproach-input::placeholder { color: rgba(0,0,0,0.4); }
.rh-ppcapproach-input:focus {
  border-color: #fff;
  background: rgba(255,255,255,0.15);
}

.rh-ppcapproach-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--rh-ppcapproach-primary);
  border: none;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rh-ppcapproach-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(255,255,255,0.25);
  background: #fff;
  color: var(--rh-ppcapproach-primary);
}
.rh-ppcapproach-btn-arrow { flex-shrink: 0; }

/* ── Floating labels ── */
.rh-ppcapproach-float {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  display: none;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 5;
  white-space: nowrap;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}
.rh-ppcapproach-float-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rh-ppcapproach-float-icon svg { width: 12px; height: 12px; }

.rh-ppcapproach-float--1 { top: -14px;    left: -20px;  transform: rotate(-6deg)  translate(-30px,-10px); opacity: 0; }
.rh-ppcapproach-float--2 { top: 30%;      left: -28px;  transform: rotate(-4deg)  translate(-30px,0);     opacity: 0; }
.rh-ppcapproach-float--3 { bottom: -14px; left: -16px;  transform: rotate(-3deg)  translate(-30px,10px);  opacity: 0; }
.rh-ppcapproach-float--4 { top: -14px;    right: -20px; transform: rotate(6deg)   translate(30px,-10px);  opacity: 0; }
.rh-ppcapproach-float--5 { top: 30%;      right: -28px; transform: rotate(4deg)   translate(30px,0);      opacity: 0; }
.rh-ppcapproach-float--6 { bottom: -14px; right: -16px; transform: rotate(3deg)   translate(30px,10px);   opacity: 0; }

.rh-ppcapproach-card:hover .rh-ppcapproach-float--1 { transform: rotate(-6deg)  translate(0,0); opacity: 1; }
.rh-ppcapproach-card:hover .rh-ppcapproach-float--2 { transform: rotate(-4deg)  translate(0,0); opacity: 1; }
.rh-ppcapproach-card:hover .rh-ppcapproach-float--3 { transform: rotate(-3deg)  translate(0,0); opacity: 1; }
.rh-ppcapproach-card:hover .rh-ppcapproach-float--4 { transform: rotate(6deg)   translate(0,0); opacity: 1; }
.rh-ppcapproach-card:hover .rh-ppcapproach-float--5 { transform: rotate(4deg)   translate(0,0); opacity: 1; }
.rh-ppcapproach-card:hover .rh-ppcapproach-float--6 { transform: rotate(3deg)   translate(0,0); opacity: 1; }

.rh-ppcapproach-float--1 { transition-delay: 0s; }
.rh-ppcapproach-float--4 { transition-delay: 0.04s; }
.rh-ppcapproach-float--2 { transition-delay: 0.08s; }
.rh-ppcapproach-float--5 { transition-delay: 0.12s; }
.rh-ppcapproach-float--3 { transition-delay: 0.16s; }
.rh-ppcapproach-float--6 { transition-delay: 0.20s; }

/* ══════════════════════════════════════════
   SCROLLING IMAGE MARQUEE
   3 columns, bottom-to-top, infinite loop
   ══════════════════════════════════════════ */
.rh-ppcapproach-marquee {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 420px;
  height: 280px;
  overflow: hidden;
  border-radius: var(--rh-ppcapproach-radius-lg);
  position: relative;
}

/* Fade masks top & bottom for smooth edges */
.rh-ppcapproach-marquee::before,
.rh-ppcapproach-marquee::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 2;
  pointer-events: none;
}
.rh-ppcapproach-marquee::before {
  top: 0;
  background: linear-gradient(to bottom, #fff 0%, transparent 100%);
}
.rh-ppcapproach-marquee::after {
  bottom: 0;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
}

/* Each column */
.rh-ppcapproach-marquee-col {
  overflow: hidden;
  position: relative;
}

/* Track: holds all images (original + duplicate), scrolls up */
.rh-ppcapproach-marquee-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: rhPpcMarqueeUp 20s linear infinite;
}

/* Speed variants */
.rh-ppcapproach-marquee-track--slow { animation-duration: 24s; }
.rh-ppcapproach-marquee-track--mid  { animation-duration: 18s; }

/* Pause on hover for accessibility */
.rh-ppcapproach-marquee:hover .rh-ppcapproach-marquee-track {
  animation-play-state: paused;
}

@keyframes rhPpcMarqueeUp {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Each image item */
.rh-ppcapproach-marquee-item {
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.rh-ppcapproach-marquee-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/* ── Screen-reader only ── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════════════
   TABLET — 768px
   ══════════════════════════════════════════ */
@media (min-width: 768px) {
  .rh-ppcapproach { padding: 64px 24px; }

  /* Two-column layout */
  .rh-ppcapproach-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 36px;
  }
  .rh-ppcapproach-left { flex: 1; min-width: 0; }
  .rh-ppcapproach-right {
    flex: 0 0 340px;
    position: sticky;
    top: 100px;
    align-items: stretch;
  }

  .rh-ppcapproach-kicker  { font-size: 13px; letter-spacing: 4px; }
  .rh-ppcapproach-heading { font-size: 36px; }
  .rh-ppcapproach-sub     { font-size: 15px; }

  /* Card */
  .rh-ppcapproach-card {
    max-width: 340px;
    padding: 32px 26px;
  }

  /* Show floating labels */
  .rh-ppcapproach-float {
    display: flex;
    font-size: 12px;
    padding: 8px 14px;
  }
  .rh-ppcapproach-float-icon { width: 28px; height: 28px; border-radius: 8px; }
  .rh-ppcapproach-float-icon svg { width: 14px; height: 14px; }

  /* Dots bigger */
  .rh-ppcapproach-dots { width: 100px; height: 100px; }

  /* Marquee */
  .rh-ppcapproach-marquee {
    max-width: 340px;
    height: 300px;
    gap: 10px;
  }
}

/* ══════════════════════════════════════════
   DESKTOP — 1024px
   ══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .rh-ppcapproach { padding: 80px 48px; }
  .rh-ppcapproach-inner { gap: 56px; }

  .rh-ppcapproach-right { flex: 0 0 400px; }

  .rh-ppcapproach-card {
    max-width: 400px;
    padding: 40px 32px;
  }
  .rh-ppcapproach-card-title { font-size: 26px; }
  .rh-ppcapproach-card-sub   { font-size: 15px; }

  .rh-ppcapproach-heading { font-size: 42px; }
  .rh-ppcapproach-sub     { font-size: 16px; }

  /* Float labels */
  .rh-ppcapproach-float { font-size: 13px; padding: 9px 16px; }
  .rh-ppcapproach-float-icon { width: 32px; height: 32px; border-radius: 9px; }
  .rh-ppcapproach-float-icon svg { width: 16px; height: 16px; }

  /* Dots */
  .rh-ppcapproach-dots {
    width: 120px;
    height: 120px;
    opacity: 0.15;
    background-size: 16px 16px;
  }
  .rh-ppcapproach-dots--tr { top: -16px;    right: -16px; }
  .rh-ppcapproach-dots--bl { bottom: -16px; left: -16px; }

  /* Marquee */
  .rh-ppcapproach-marquee {
    max-width: 400px;
    height: 340px;
    gap: 12px;
  }
}

/* ══════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .rh-ppcapproach-float,
  .rh-ppcapproach-card,
  .rh-ppcapproach-zigstep,
  .rh-ppcapproach-btn,
  .rh-ppcapproach-input {
    transition: none;
  }
  .rh-ppcapproach-zigstep.rh-ppcapproach-animate {
    animation: none;
    opacity: 1;
  }
  .rh-ppcapproach-zigpath.rh-ppcapproach-animate {
    animation: none;
    stroke-dashoffset: 0;
  }
  .rh-ppcapproach-marquee-track {
    animation: none;
  }
}