/* ============================================================
   HR Hero Module — Scoped Styles
   Theme-inheriting: no hardcoded brand colours.
   All colour/font values fall back to HubSpot theme variables
   generated by fields.json (body_background_color, etc.).
   ============================================================ */

/* ---------- Module shell ---------- */
.hr-hero-module {
  background: transparent;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
  box-sizing: border-box;
  font-family: inherit;
}

/* ---------- Container ---------- */
.hr-hero__container {
  display: grid;
  grid-template-columns: 50fr 50fr;
  gap: 40px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media screen and (max-width: 1240px) {
  .hr-hero__container { padding: 40px 20px; }
}

/* ---------- Left Content ---------- */
.hr-hero__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- Badge ---------- */
.hr-hero__badge {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  border-left: 3px solid var(--color-primary, #087FCB);
  border-radius: 0;
  color: var(--color-primary, #087FCB);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 0 2px 10px;
  width: fit-content;
}

.hr-hero__badge-icon {
  font-size: 15px;
  line-height: 1;
}

/* ---------- Headline ---------- */
.hr-hero__headline {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  display: block;
}

/* Line 1 — plain, inherits theme colour */
.hr-hero__headline-line1 {
  -webkit-text-fill-color: initial;
}

/* Line 2 — animated gradient */
.hr-hero__headline--gradient {
  background: linear-gradient(135deg, #087FCB 0%, #1ab8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: hrHeroShimmer 4s linear infinite;
  display: inline;
}

@keyframes hrHeroShimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* Line 3 — plain, inherits theme colour (same as line 1) */
.hr-hero__headline-line3 {
  -webkit-text-fill-color: initial;
}

/* ---------- Subheading ---------- */
.hr-hero__subheading,
.hr-hero__subheading p {
  font-size: clamp(0.95rem, 1.1vw, 1rem)
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
  color: inherit !important;
}

/* ---------- Checklist ---------- */
.hr-hero__checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hr-hero__checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.875rem, 1.15vw, 0.9675rem);
  font-weight: 500;
  color: #4a5568;
}

.hr-hero__check-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(
    135deg,
    var(--color-primary, #087FCB),
    var(--color-primary-dark, #0066a0)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- CTA Group ---------- */
.hr-hero__cta-group {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.hr-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px !important;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.hr-hero__btn:hover,
.hr-hero__btn:focus,
.hr-hero__btn:active,
.hr-hero__btn:visited {
  text-decoration: none;
}

/* Primary */
.hr-hero__btn--primary {
  background: #087FCB;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(8,127,203,0.30);
}

.hr-hero__btn--primary:hover {
  background: #0e8fd8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8,127,203,0.35);
}

/* Secondary — text link with arrow */
.hr-hero__btn--secondary {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  color: #2b3856;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s ease, gap 0.2s ease, color 0.2s ease;
}

.hr-hero__btn--secondary:hover {
  background: none;
  box-shadow: none;
  transform: none;
  opacity: 1;
  gap: 10px;
  color: #087FCB;
}

/* ---------- Image Side ---------- */
.hr-hero__image-wrap {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
  padding-top: 24px;
  padding-bottom: 28px;
  padding-right: 24px;
}

.hr-hero__image-inner {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: visible;
  will-change: auto;
}

.hr-hero__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 20px 60px color-mix(in srgb, var(--color-primary-dark, #064367) 18%, transparent);
  background: color-mix(in srgb, var(--color-primary, #087FCB) 10%, #ffffff);
  position: relative;
  z-index: 1;
}

/* ---------- Floating badge card ---------- */
.hr-hero__badge-card {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--body-background-color, #ffffff);
  border-radius: 12px;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-primary-dark, #064367) 14%, transparent);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: inherit !important;
  z-index: 5;
  white-space: nowrap;
}

.hr-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #087FCB);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #087FCB) 20%, transparent);
  flex-shrink: 0;
}

/* ---------- Floating stat card ---------- */
.hr-hero__stat-card {
  position: absolute;
  bottom: 0;
  left: -28px;
  background: var(--body-background-color, #ffffff);
  border-radius: 14px;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--color-primary-dark, #064367) 18%, transparent);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  z-index: 5;
}

.hr-hero__stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2adc7e, #1ab864);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hr-hero__stat-num {
  font-size: 18px;
  font-weight: 700;
  color: inherit !important;
  line-height: 1;
}

.hr-hero__stat-label {
  font-size: 12px;
  opacity: 0.6;
  margin-top: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.hr-hero--animated .hr-hero__badge {
  animation: hr-fadeUp 0.6s ease both;
  animation-delay: 0.05s;
}

.hr-hero--animated .hr-hero__headline-wrap {
  animation: hr-fadeUp 0.7s ease both;
  animation-delay: 0.1s;
}

.hr-hero--animated .hr-hero__subheading {
  animation: hr-fadeUp 0.7s ease both;
  animation-delay: 0.2s;
}

.hr-hero--animated .hr-hero__checklist {
  animation: hr-fadeUp 0.7s ease both;
  animation-delay: 0.3s;
}

.hr-hero--animated .hr-hero__cta-group {
  animation: hr-fadeUp 0.7s ease both;
  animation-delay: 0.4s;
}

.hr-hero--animated .hr-hero__image-wrap {
  animation: hr-slideFromRight 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.15s;
}

@keyframes hr-fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hr-slideFromRight {
  from { opacity: 0; transform: translateX(80px) scale(0.94); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .hr-hero-module { min-height: auto; }

  .hr-hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
  }

  .hr-hero__badge        { margin: 0; }
  .hr-hero__subheading,
  .hr-hero__subheading p { max-width: 480px; }
  .hr-hero__cta-group    { justify-content: flex-start; }
  .hr-hero__checklist    { align-items: flex-start; }

  .hr-hero__image-wrap {
    justify-content: center;
    padding: 24px;
  }
  .hr-hero__image-inner  { max-width: 100%; }
  .hr-hero__stat-card    { left: 0; }
  .hr-hero__badge-card   { right: 0; }

  .hr-hero--animated .hr-hero__image-wrap {
    animation-name: hr-fadeUp;
  }
}

@media (max-width: 520px) {
  .hr-hero__cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }
  .hr-hero__btn--primary  { flex: 0 0 auto; }
  .hr-hero__btn--secondary { flex: 0 0 auto; }
}