/**
 * PPC Hero Section — ppchero.css
 * Location: themes/astra-child/assets/css/ppchero.css
 *
 * @package Astra Child – Remote Hive
 */

/* ═══════════════════════════════════════
   CSS Custom Properties (Accent Override)
   ═══════════════════════════════════════ */
:root {
  --rh-ppchero-accent: #13e0fb;
  --rh-ppchero-accent-rgb: 19, 224, 251;
  --rh-ppchero-blue: #314ac9;
}

/* ═══════════════════════════════════════
   Section Shell
   ═══════════════════════════════════════ */
.rh-ppchero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  font-family: 'DM Sans', sans-serif;
  display: flex;
  flex-direction: column;
}

/* ── Canvas BG ── */
.rh-ppchero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* ── Overlay ── */
.rh-ppchero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* ═══════════════════════════════════════
   Content Block
   ═══════════════════════════════════════ */
.rh-ppchero-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(70px, 12vh, 120px) 24px clamp(32px, 5vh, 60px);
  color: #fff;
}

/* ── Badge ── */
.rh-ppchero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: rgba(var(--rh-ppchero-accent-rgb), 0.06);
  border: 1px solid rgba(var(--rh-ppchero-accent-rgb), 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--rh-ppchero-accent);
  margin-bottom: clamp(18px, 3vh, 32px);
  animation: rh-ppchero-fadeUp 0.8s ease-out both;
}

.rh-ppchero-badge span {
  font-size: 8px;
}

/* ── Title (H1) ── */
.rh-ppchero-title {
  font-size: clamp(42px, 7.5vw, 82px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -2.5px;
  color: #fff;
  animation: rh-ppchero-fadeUp 0.9s ease-out 0.1s both;
}

.rh-ppchero-title__hl {
  color: var(--rh-ppchero-accent);
}

.rh-ppchero-title__grad {
  background: linear-gradient(
    135deg,
    var(--rh-ppchero-blue),
    var(--rh-ppchero-accent),
    #9d9aa1
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rh-ppchero-gradShift 5s ease infinite;
}

/* Cursor blink */
.rh-ppchero-cursor {
  animation: rh-ppchero-blink 0.8s step-end infinite;
}

/* ── Subtitle ── */
.rh-ppchero-sub {
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: 660px;
  margin: clamp(16px, 3vh, 28px) auto 0;
  font-weight: 400;
  animation: rh-ppchero-fadeUp 1s ease-out 0.25s both;
}

.rh-ppchero-sub strong {
  color: #fff;
}

/* ── CTA ── */
.rh-ppchero-cta-wrap {
  margin-top: clamp(24px, 4vh, 44px);
  animation: rh-ppchero-fadeUp 1.1s ease-out 0.4s both;
}

.rh-ppchero-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 48px;
  background: linear-gradient(135deg, var(--rh-ppchero-blue), var(--rh-ppchero-accent));
  background-size: 200% 200%;
  animation: rh-ppchero-gradShift 4s ease infinite,
    rh-ppchero-pulseGlow 3s ease-in-out infinite;
  border: none;
  border-radius: 60px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, filter 0.3s;
}

.rh-ppchero-cta:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.15);
  color: #fff;
}

.rh-ppchero-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: rh-ppchero-shimmer 2.5s ease-in-out infinite;
}

/* ═══════════════════════════════════════
   Marquee — Platforms
   ═══════════════════════════════════════ */
.rh-ppchero-platforms {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: clamp(16px, 3vh, 32px) 0 clamp(18px, 3vh, 28px);
  animation: rh-ppchero-fadeUp 1.3s ease-out 0.6s both;
}

.rh-ppchero-platforms__label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  margin: 0 0 14px;
}

.rh-ppchero-marquee-wrap {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.rh-ppchero-marquee-track {
  display: flex;
  width: max-content;
  animation: rh-ppchero-marquee 25s linear infinite;
}

.rh-ppchero-marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0 28px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.4s;
}

.rh-ppchero-marquee-item svg {
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Mobile line-break ── */
.rh-ppchero-mbr {
  display: none;
}

/* ═══════════════════════════════════════
   Responsive — Short Laptops (1366×768)
   ═══════════════════════════════════════ */
@media (max-height: 800px) {
  .rh-ppchero-cta {
    padding: 16px 38px;
    font-size: 16px;
  }
  .rh-ppchero-badge {
    padding: 6px 16px;
    font-size: 11px;
  }
}

/* ═══════════════════════════════════════
   Responsive — Tablet (≤ 1024px)
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .rh-ppchero-title {
    letter-spacing: -2px;
  }
}

/* ═══════════════════════════════════════
   Responsive — Mobile (≤ 768px)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .rh-ppchero-mbr {
    display: block;
  }
  .rh-ppchero-cta {
    padding: 16px 36px;
    font-size: 16px;
  }
}

/* ═══════════════════════════════════════
   Responsive — Small Phones (≤ 480px)
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  .rh-ppchero-cta {
    padding: 14px 32px;
    font-size: 15px;
  }
  .rh-ppchero-sub {
    line-height: 1.5;
  }
  .rh-ppchero-marquee-item {
    padding: 0 18px;
    font-size: 12px;
  }
}

/* ═══════════════════════════════════════
   Keyframes
   ═══════════════════════════════════════ */
@keyframes rh-ppchero-blink {
  50% {
    opacity: 0;
  }
}

@keyframes rh-ppchero-fadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rh-ppchero-gradShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes rh-ppchero-pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(var(--rh-ppchero-accent-rgb), 0.3),
      0 0 60px rgba(49, 74, 201, 0.15);
  }
  50% {
    box-shadow: 0 0 40px rgba(var(--rh-ppchero-accent-rgb), 0.5),
      0 0 100px rgba(49, 74, 201, 0.3);
  }
}

@keyframes rh-ppchero-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes rh-ppchero-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}