/* ==========================================================================
   Home: "Hire Senior Developers On Demand" — intro with illustration and facts on the
   left, the five roles on the right. Class names avoid the "-card" suffix, which
   luxury.js would otherwise animate.
   Shared type sizes and section spacing come from css/home-scale.css.
   ========================================================================== */

.hire2-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0;
  background: linear-gradient(180deg, #F1F6FD 0%, #F8FAFD 100%);
  font-family: var(--font-sans);
}

.hire2-wave {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.hire2-wave--left {
  top: -220px;
  left: -260px;
  width: 640px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(191, 219, 254, 0.7), rgba(191, 219, 254, 0));
}

.hire2-wave--right {
  right: -240px;
  bottom: -260px;
  width: 620px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(147, 197, 253, 0.5), rgba(147, 197, 253, 0));
}

.hire2-inner {
  max-width: 1440px;
}

.hire2-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 56px;
}

/* ---- Left: intro ---- */
.hire2-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  align-items: end;
  column-gap: 8px;
}

.hire2-text {
  position: relative;
  z-index: 1;
}

.hire2-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  border: 1px solid #E3EBF6;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1D4ED8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 10px 22px -16px rgba(11, 34, 57, 0.45);
}

.hire2-pill svg {
  width: 20px;
  height: 20px;
}

.hire2-heading {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 3.9vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #071827;
}

.hire2-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  color: #1D4ED8;
  white-space: nowrap;
}

.hire2-swoosh {
  position: absolute;
  left: 22%;
  bottom: -8px;
  width: 92%;
  height: 16px;
}

.hire2-lead {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #334155;
}

.hire2-points {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hire2-points li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #071827;
}

.hire2-check {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #E3EDFC;
  color: #1D4ED8;
}

.hire2-check svg {
  width: 18px;
  height: 18px;
}

.hire2-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  height: 56px;
  padding: 0 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 18px 30px -16px rgba(29, 78, 216, 0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hire2-cta svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.hire2-cta:hover {
  color: #FFFFFF;
  box-shadow: 0 24px 36px -16px rgba(29, 78, 216, 0.8);
}

.hire2-cta:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 3px;
}

/* the illustration, on a soft blue shape with a floating code tile */
.hire2-art {
  position: relative;
  margin: 0 -16px 0 0;
}

.hire2-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 2%;
  top: -16%;
  bottom: 8%;
  border-radius: 48% 52% 44% 56% / 46% 50% 50% 54%;
  background: linear-gradient(160deg, #DBEAFE 0%, #BFDBFE 55%, rgba(191, 219, 254, 0) 100%);
}

.hire2-art img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

.hire2-code {
  position: absolute;
  top: -10%;
  right: 6%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(145deg, #60A5FA, #2563EB 60%, #1D4ED8);
  color: #FFFFFF;
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, 0.45), 0 16px 26px -12px rgba(29, 78, 216, 0.6);
  transform: rotate(-8deg);
}

.hire2-code svg {
  width: 30px;
  height: 30px;
}

.hire2-code::after {
  content: "";
  position: absolute;
  top: -22px;
  right: -20px;
  width: 26px;
  height: 22px;
  background:
    linear-gradient(#2563EB, #2563EB) 2px 4px / 3px 12px no-repeat,
    linear-gradient(#2563EB, #2563EB) 12px 2px / 3px 12px no-repeat,
    linear-gradient(#2563EB, #2563EB) 20px 10px / 3px 12px no-repeat;
  transform: rotate(30deg);
}

.hire2-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 32px 0 0;
  padding: 16px 8px;
  border: 1px solid #E3EBF6;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 40px -30px rgba(11, 34, 57, 0.45);
  list-style: none;
}

.hire2-facts li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
}

.hire2-facts li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 40px;
  background: #E2E8F0;
  transform: translateY(-50%);
}

.hire2-fact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #EEF5FD;
  color: #2563EB;
}

.hire2-fact-icon svg {
  width: 24px;
  height: 24px;
}

.hire2-fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: #071827;
  font-variant-numeric: tabular-nums;
}

.hire2-fact-label {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  white-space: nowrap;
  color: #334155;
}

/* ---- Right: roles ---- */
.hire2-roles {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hire2-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 22px 20px 20px;
  border: 1.5px solid #E3EBF6;
  border-radius: 22px;
  background: #FFFFFF;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 16px 34px -28px rgba(11, 34, 57, 0.45);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

/* the first role is highlighted until another one is pointed at */
.hire2-roles:not(:hover) > li:first-child .hire2-row,
.hire2-row:hover,
.hire2-row:focus-visible {
  border-color: #3B82F6;
  background: linear-gradient(180deg, #F5F9FF 0%, #EDF4FE 100%);
  box-shadow: 0 22px 40px -28px rgba(29, 78, 216, 0.55);
}

.hire2-row:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 3px;
}

.hire2-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid #E3EBF6;
  border-radius: 20px;
  background: #FFFFFF;
  color: #2563EB;
  box-shadow: 0 12px 22px -16px rgba(11, 34, 57, 0.45);
}

.hire2-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.hire2-logo svg {
  width: 40px;
  height: 40px;
}

.hire2-body {
  flex: 1;
  min-width: 0;
}

.hire2-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.hire2-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #071827;
}

.hire2-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: #E3EDFC;
  color: #1D4ED8;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hire2-desc {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: #334155;
}

.hire2-skills {
  margin: 8px 0 0;
  font-family: var(--font-code);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0B2239;
}

.hire2-go {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #E2E8F0;
  border-radius: 50%;
  background: #FFFFFF;
  color: #0B2239;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.hire2-go svg {
  width: 20px;
  height: 20px;
}

.hire2-roles:not(:hover) > li:first-child .hire2-go,
.hire2-row:hover .hire2-go,
.hire2-row:focus-visible .hire2-go {
  border-color: #1D4ED8;
  background: #1D4ED8;
  color: #FFFFFF;
}

/* ---- Responsive ---- */
@media (max-width: 1399px) {
  .hire2-layout {
    gap: 40px;
  }

  .hire2-lead {
    font-size: 16px;
  }

  .hire2-points li {
    font-size: 16px;
  }

  .hire2-row {
    gap: 18px;
    padding: 18px 18px 18px 16px;
  }

  .hire2-logo {
    width: 64px;
    height: 64px;
  }

  .hire2-logo img,
  .hire2-logo svg {
    width: 34px;
    height: 34px;
  }

  .hire2-title {
    font-size: 19px;
  }

  .hire2-desc {
    font-size: 14.5px;
  }

  .hire2-skills {
    font-size: 12px;
  }

  .hire2-fact-value {
    font-size: 21px;
  }

  .hire2-fact-label {
    font-size: 13px;
  }

  .hire2-facts li {
    padding: 4px 10px;
  }
}

@media (max-width: 1099px) {
  .hire2-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hire2-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }
}

@media (max-width: 680px) {
  .hire2-section {
    padding: 72px 0;
  }

  .hire2-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .hire2-art {
    max-width: 320px;
    margin: 32px auto 0;
  }

  .hire2-cta {
    width: 100%;
    justify-content: center;
  }

  .hire2-facts {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px 6px;
  }

  .hire2-facts li {
    padding: 12px 12px;
  }

  .hire2-facts li + li::before {
    left: 14px;
    right: 14px;
    top: 0;
    width: auto;
    height: 1px;
    transform: none;
  }

  .hire2-row {
    align-items: flex-start;
    gap: 14px;
    padding: 16px 14px;
  }

  .hire2-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .hire2-logo img,
  .hire2-logo svg {
    width: 28px;
    height: 28px;
  }

  .hire2-go {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hire2-cta:hover {
    transform: translateY(-2px);
  }

  .hire2-cta:hover svg {
    transform: translateX(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hire2-row,
  .hire2-go,
  .hire2-cta,
  .hire2-cta svg {
    transition: none;
  }
}

/* 1100–1279px: the facts strip is narrow, so it drops its icons */
@media (min-width: 1100px) and (max-width: 1279px) {
  .hire2-fact-icon {
    display: none;
  }
}
