
/* Stafflancer Hero Control - minimal, performance-first CSS */
.slc-hero{
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  /* Safety: never show underlying section colors inside the hero. */
  background: #000;
  min-height: var(--slc-h-desktop, 700px);
  isolation: isolate;
}

@media (max-width: 1023px){
  .slc-hero{ min-height: var(--slc-h-tablet, 620px); }
}
@media (max-width: 767px){
  .slc-hero{ min-height: var(--slc-h-mobile, 640px); }
}

.slc-hero__media{
  position:absolute;
  inset:0;
  z-index:0;
  /* Fallback behind the image to avoid any color bleed if a theme overrides image sizing. */
  background:#000;
}

/* Hard-lock <picture>/<img> to fill the hero even if the theme applies img{height:auto !important}. */
.slc-hero__media picture{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}

.slc-hero__img{
  width:100% !important;
  height:100% !important;
  max-width:none;
  object-fit:cover !important;
  object-position: var(--slc-fx,70%) var(--slc-fy,35%) !important;
  display:block;
}
@media (max-width: 767px){
  .slc-hero__img{ object-position: var(--slc-mfx,50%) var(--slc-mfy,25%) !important; }
}

.slc-hero__content-wrap{
  position:relative;
  z-index:2;
  min-height: inherit;
  display:flex;
  align-items:center;
  padding-left: clamp(20px, 6vw, 90px);
  padding-right: clamp(16px, 4vw, 48px);
}

@media (max-width: 1023px){
  .slc-hero__content-wrap{ padding-left: clamp(18px, 5vw, 50px); padding-right: clamp(16px, 4vw, 40px); }
}
@media (max-width: 767px){
  .slc-hero__content-wrap{ padding-left: 16px; padding-right: 16px; align-items:flex-start; padding-top: 72px; }
}

.slc-hero__content{
  max-width: var(--slc-content-maxw, 600px);
  transform: translateY(var(--slc-content-offset-y, -10px));
}

@media (max-width: 767px){
  .slc-hero__content{ transform: translateY(0); }
}

.slc-hero__h{
  margin:0 0 14px 0;
  color:#fff;
  font-weight:700;
  line-height:1.08;
  font-size: clamp(44px, 4.2vw, 68px);
  letter-spacing: -0.02em;
}
@media (max-width: 1023px){
  .slc-hero__h{ font-size: clamp(40px, 5.2vw, 54px); }
}
@media (max-width: 767px){
  .slc-hero__h{ font-size: 40px; line-height: 1.10; }
}

.slc-hero__p{
  margin:0 0 22px 0;
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1.55;
  max-width: var(--slc-p-maxw, 650px);
}
@media (max-width: 1023px){
  .slc-hero__p{ font-size: 16px; }
}
@media (max-width: 767px){
  .slc-hero__p{ font-size: 16px; margin-bottom: 18px; }
}

.slc-hero__buttons{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
@media (max-width: 767px){
  .slc-hero__buttons{ flex-direction: column; gap: 12px; align-items: flex-start; }
  .slc-hero__buttons .slc-hero__btn{ width: 100%; max-width: 320px; }
}

.slc-hero__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration:none;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease;
  will-change: transform;
}
.slc-hero__btn:focus{ outline: 2px solid rgba(255,255,255,0.65); outline-offset: 3px; }

.slc-hero__btn--primary{
  background: #6D28D9;
  color:#fff;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}
.slc-hero__btn--secondary{
  background: rgba(255,255,255,0.92);
  color:#111;
}

@media (hover:hover){
  .slc-hero__btn:hover{ transform: translateY(-1px); }
}




/* Mobile LCP stabilization */
@media (max-width: 767px){
  .slc-hero{
    min-height:100svh;
    height:auto;
  }
  .slc-hero__content-wrap{
    contain:layout style paint;
  }
  .slc-hero__media{
    aspect-ratio:8/11;
  }
}


/* Fix D — Safe LCP Bias (mobile): decouple hero media from flex/layout so it can paint immediately */
@media (max-width: 767px){
  .slc-hero{
    position: relative;
    isolation: isolate;
  }
  .slc-hero__media{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }
  .slc-hero__media picture,
  .slc-hero__media img{
    display:block;
    width:100%;
    height:100%;
  }
  .slc-hero__media img{
    object-fit: cover;
    object-position: var(--slc-imgpos-m, center) var(--slc-imgpos-d, center);
  }
  .slc-hero__content-wrap{
    position: relative;
    z-index: 2;
  }
}
