/* TalentProof global footer — tp-footer-* only, not body-scoped */

/*
 * Phase 4 — Entrance: none on the footer block.
 * Utility + conversion: no scroll-triggered reveals, no fade-ins or delays.
 * Sole motion: persistent footerGlow on .tp-footer-cta-primary (see below).
 */

@keyframes footerGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 45, 45, 0);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 45, 45, 0.45);
  }
}

.tp-footer {
  position: relative;
  width: 100%;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  font-family: var(--font-sans);
}

.tp-footer-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(200px, 35vw, 500px);
  font-weight: 900;
  font-style: italic;
  color: rgba(255, 255, 255, 0.018);
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.tp-footer-top {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 8vh, 80px) var(--inset) clamp(40px, 6vh, 64px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-footer-left {
  flex: 1;
}

.tp-footer-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0 clamp(12px, 2vh, 20px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tp-footer-eyebrow .eyebrow-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: blink 1.8s ease infinite;
}

.tp-footer-eyebrow .tp-footer-eyebrow-accent {
  color: var(--red);
}

.tp-footer-thesis {
  font-size: clamp(2.4rem, 5.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin: 0 0 clamp(16px, 2.5vh, 24px);
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: nowrap;
}

.tp-footer-thesis-white {
  color: var(--white);
}

.tp-footer-thesis-red {
  color: var(--red);
  text-shadow: 0 0 40px rgba(255, 45, 45, 0.35);
}

.tp-footer-sub {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.65;
  max-width: 380px;
  margin: 0;
}

.tp-footer-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  align-items: flex-end;
}

/* ----- Phase 3: CTA buttons — hover & transitions ----- */
.tp-footer-cta-primary,
.tp-footer-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 4px;
  transition: all 0.2s;
  white-space: nowrap;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

/* Phase 4 — only continuous motion in the footer */
.tp-footer-cta-primary {
  color: var(--white);
  background: var(--red);
  border: 1px solid var(--red);
  animation: footerGlow 3s ease-in-out infinite;
}

.tp-footer-cta-primary:hover {
  background: #e01f1f;
  animation: none;
  box-shadow: 0 0 24px rgba(255, 45, 45, 0.5);
  transform: translateY(-1px);
}

.tp-footer-cta-secondary {
  color: var(--red);
  border: 1px solid rgba(255, 45, 45, 0.4);
  background: rgba(255, 45, 45, 0.05);
}

.tp-footer-cta-secondary:hover {
  background: rgba(255, 45, 45, 0.1);
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(255, 45, 45, 0.15);
}

.tp-footer-cta-primary svg,
.tp-footer-cta-secondary svg {
  width: 13px;
  height: 13px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.tp-footer-cta-primary:hover svg,
.tp-footer-cta-secondary:hover svg {
  transform: translateX(3px);
}

.tp-footer-mid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tp-footer-col {
  background: var(--black);
  padding: clamp(28px, 4vh, 44px) var(--inset) clamp(28px, 4vh, 44px);
  transition: background 0.2s;
}

/* Phase 3: column surface hover */
.tp-footer-col:hover {
  background: rgba(255, 255, 255, 0.012);
}

.tp-footer-col:not(:first-child) {
  padding-left: clamp(24px, 3vw, 44px);
}

.tp-footer-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(16px, 2.5vh, 24px);
}

.tp-footer-col-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px rgba(255, 45, 45, 0.5);
  flex-shrink: 0;
}

.tp-footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.tp-footer-links {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.4vh, 14px);
}

/* Phase 3: column links — arrow slides in, text shifts right */
.tp-footer-link {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
  transition:
    color 0.2s,
    padding-left 0.2s;
  padding-left: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.tp-footer-link::before {
  content: "→";
  font-size: 11px;
  color: var(--red);
  opacity: 0;
  position: absolute;
  left: -16px;
  transition:
    opacity 0.2s,
    left 0.2s;
}

.tp-footer-link:hover {
  color: rgba(255, 255, 255, 0.85);
  padding-left: 20px;
}

.tp-footer-link:hover::before {
  opacity: 1;
  left: 0;
}

.tp-footer-link.primary {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.tp-footer-link.primary:hover {
  color: var(--white);
}

.tp-footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vh, 24px) var(--inset);
  gap: 20px;
}

.tp-footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tp-footer-copyright {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.22);
  white-space: nowrap;
}

.tp-footer-tagline {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 45, 45, 0.5);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tp-footer-legal {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

/* Phase 3: legal links */
.tp-footer-legal a {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.tp-footer-legal a:hover {
  color: rgba(255, 255, 255, 0.55);
}

.tp-footer-legal-sep {
  width: 1px;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.tp-footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Phase 3: social links */
.tp-footer-social-link {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
  box-sizing: border-box;
}

.tp-footer-social-link:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.tp-footer-social-link svg {
  width: 13px;
  height: 13px;
}

.tp-footer-redline {
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 45, 45, 0.4) 20%,
    rgba(255, 45, 45, 0.4) 80%,
    transparent 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .tp-footer-cta-primary {
    animation: none;
    box-shadow: none;
  }
}

@media (max-width: 1024px) {
  .tp-footer-mid {
    grid-template-columns: 1fr;
  }

  .tp-footer-col {
    padding: clamp(24px, 4vh, 36px) var(--inset) clamp(24px, 4vh, 36px);
  }

  .tp-footer-link {
    line-height: 1.35;
  }

  .tp-footer-bottom {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .tp-footer-top {
    padding-left: var(--inset);
    padding-right: var(--inset);
  }

  .tp-footer-col:not(:first-child) {
    padding-left: var(--inset);
  }

  .tp-footer-legal a,
  .tp-footer-copyright,
  .tp-footer-tagline {
    white-space: normal;
  }

  .tp-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .tp-footer-social {
    align-self: flex-start;
  }
}
