/* Outsourcea Hero Video Banner */
.os-video-hero{
  position:relative;
  width:100vw;
  max-width:100vw;
  min-height:var(--os-video-hero-height,820px);
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  overflow:hidden;
  background:#0b1110;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
}

.os-video-hero,
.os-video-hero *{
  box-sizing:border-box;
}

.os-video-hero-media,
.os-video-hero-overlay,
.os-video-hero-video,
.os-video-hero-poster,
.os-video-hero-fallback{
  position:absolute;
  inset:0;
}

.os-video-hero-media{
  z-index:0;
  overflow:hidden;
}

.os-video-hero-video{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}

.os-video-hero-poster,
.os-video-hero-fallback{
  background-size:cover;
  background-position:center center;
}

.os-video-hero-fallback{
  background:
    linear-gradient(120deg, rgba(0,0,0,.42), rgba(0,0,0,.1), rgba(0,0,0,.48)),
    radial-gradient(circle at center, rgba(0,166,81,.22), transparent 38%),
    #0b1110;
}

.os-video-hero-overlay{
  z-index:1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.36) 0%, rgba(0,0,0,.12) 47%, rgba(0,0,0,.48) 100%),
    rgba(0,0,0,var(--os-video-hero-overlay,.46));
}

.os-video-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    radial-gradient(circle at 50% 62%, rgba(255,255,255,.12), transparent 24%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.14));
}

.os-video-hero-nav-wrap{
  position:absolute;
  top:18px;
  left:0;
  right:0;
  z-index:5;
  display:flex;
  justify-content:center;
  padding:0 22px;
}

.os-video-hero-nav{
  width:min(var(--os-video-hero-nav-width,1040px), 100%);
  min-height:64px;
  border-radius:999px;
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  display:grid;
  grid-template-columns:220px 1fr 150px;
  align-items:center;
  gap:24px;
  padding:10px 14px 10px 26px;
  box-shadow:0 18px 50px rgba(0,0,0,.24);
}

.os-video-hero-logo{
  display:inline-flex;
  align-items:center;
  text-decoration:none!important;
  color:#fff!important;
  min-width:0;
}

.os-video-hero-logo img{
  max-width:170px;
  max-height:42px;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
}

.os-video-hero-logo span{
  color:#fff;
  font-size:24px;
  font-weight:900;
  letter-spacing:-.8px;
}

.os-video-hero-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:27px;
}

.os-video-hero-menu a{
  color:rgba(255,255,255,.84)!important;
  text-decoration:none!important;
  font-size:15px;
  line-height:1;
  font-weight:700;
  transition:color .2s ease;
}

.os-video-hero-menu a:hover{
  color:#fff!important;
}

.os-video-hero-nav-btn{
  height:44px;
  min-width:128px;
  padding:0 24px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#00a651;
  color:#fff!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:800;
  transition:background .2s ease, transform .2s ease;
}

.os-video-hero-nav-btn:hover{
  background:#009647;
  transform:translateY(-1px);
}

.os-video-hero-content{
  position:relative;
  z-index:4;
  width:min(var(--os-video-hero-content-width,760px), calc(100% - 42px));
  margin:0 auto;
  padding-top:92px;
  text-align:center;
}

.os-video-hero-content h1{
  margin:0;
  color:#fff;
  font-size:clamp(42px,4.3vw,74px);
  line-height:1.08;
  font-weight:400;
  letter-spacing:-2.5px;
  text-wrap:balance;
  text-shadow:0 10px 34px rgba(0,0,0,.38);
}

.os-video-hero-content p{
  max-width:650px;
  margin:24px auto 0;
  color:rgba(255,255,255,.82);
  font-size:18px;
  line-height:1.55;
  font-weight:500;
  text-shadow:0 6px 22px rgba(0,0,0,.38);
}

.os-video-hero-buttons{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin-top:36px;
  flex-wrap:wrap;
}

.os-video-hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  height:58px;
  padding:0 28px;
  border-radius:999px;
  text-decoration:none!important;
  color:#fff!important;
  font-size:16px;
  line-height:1;
  font-weight:900;
  transition:background .2s ease, transform .2s ease;
}

.os-video-hero-btn:hover{
  color:#fff!important;
  transform:translateY(-2px);
}

.os-video-hero-primary{
  background:#00a651;
}

.os-video-hero-primary:hover{
  background:#009647;
}

.os-video-hero-secondary{
  background:rgba(255,255,255,.26);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.os-video-hero-secondary:hover{
  background:rgba(255,255,255,.34);
}

.fusion-fullwidth:has(.os-video-hero),
.fusion-builder-row:has(.os-video-hero),
.fusion-layout-column:has(.os-video-hero),
.fusion-column-wrapper:has(.os-video-hero){
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
}

@media (max-width: 1080px){
  .os-video-hero{
    min-height:var(--os-video-hero-height-tablet,720px);
  }

  .os-video-hero-nav{
    grid-template-columns:180px 1fr 128px;
    gap:14px;
  }

  .os-video-hero-menu{
    gap:18px;
  }

  .os-video-hero-menu a{
    font-size:14px;
  }

  .os-video-hero-content h1{
    font-size:clamp(40px,7vw,62px);
  }
}

@media (max-width: 820px){
  .os-video-hero-nav{
    grid-template-columns:1fr auto;
    min-height:58px;
    padding:8px 10px 8px 18px;
  }

  .os-video-hero-menu{
    display:none;
  }

  .os-video-hero-logo img{
    max-width:150px;
  }

  .os-video-hero-nav-btn{
    min-width:116px;
  }

  .os-video-hero-content{
    padding-top:80px;
  }

  .os-video-hero-content p{
    font-size:16px;
  }
}

@media (max-width: 560px){
  .os-video-hero{
    min-height:var(--os-video-hero-height-mobile,640px);
  }

  .os-video-hero-nav-wrap{
    top:12px;
    padding:0 14px;
  }

  .os-video-hero-nav{
    border-radius:26px;
  }

  .os-video-hero-nav-btn{
    display:none;
  }

  .os-video-hero-logo img{
    max-width:145px;
  }

  .os-video-hero-content{
    width:calc(100% - 32px);
    padding-top:78px;
  }

  .os-video-hero-content h1{
    font-size:38px;
    line-height:1.12;
    letter-spacing:-1.4px;
  }

  .os-video-hero-content p{
    font-size:15px;
    line-height:1.55;
  }

  .os-video-hero-buttons{
    flex-direction:column;
    align-items:stretch;
    gap:12px;
    margin-top:28px;
  }

  .os-video-hero-btn{
    width:100%;
    height:56px;
  }
}


/* v1.0.1 simplified: no logo, no menu, no navigation */
.os-video-hero-simple{
  align-items:center !important;
  justify-content:center !important;
}

.os-video-hero-simple .os-video-hero-content{
  padding-top:0 !important;
  transform:translateY(48px);
}

.os-video-hero-simple .os-video-hero-content h1{
  font-size:clamp(42px,4.1vw,68px);
  line-height:1.08;
  letter-spacing:-2.4px;
}

.os-video-hero-simple .os-video-hero-content p{
  max-width:720px;
  margin-top:22px;
}

.os-video-hero-simple .os-video-hero-buttons{
  margin-top:34px;
}

.os-video-hero-simple .os-video-hero-btn{
  min-width:158px;
  height:58px;
}

.os-video-hero-nav-wrap,
.os-video-hero-nav,
.os-video-hero-menu,
.os-video-hero-logo,
.os-video-hero-nav-btn{
  display:none !important;
}

@media (max-width: 820px){
  .os-video-hero-simple .os-video-hero-content{
    padding-top:0 !important;
    transform:translateY(24px);
  }
}

@media (max-width: 560px){
  .os-video-hero-simple .os-video-hero-content{
    padding-top:0 !important;
    transform:none;
  }
}


/* v1.0.2 responsive refinement: better device layout and moves CTA buttons upward */
.os-video-hero-simple{
  min-height:clamp(620px, 78vh, var(--os-video-hero-height,820px)) !important;
}

.os-video-hero-simple .os-video-hero-media{
  background:#0b1110;
}

.os-video-hero-simple .os-video-hero-video,
.os-video-hero-simple .os-video-hero-poster{
  object-fit:cover !important;
  object-position:center center !important;
}

.os-video-hero-simple .os-video-hero-overlay{
  background:
    linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 50%, rgba(0,0,0,.48) 100%),
    linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,.06) 45%, rgba(0,0,0,.35) 100%),
    rgba(0,0,0,var(--os-video-hero-overlay,.46)) !important;
}

.os-video-hero-simple .os-video-hero-content{
  width:min(var(--os-video-hero-content-width,760px), calc(100% - 40px)) !important;
  padding-top:0 !important;
  transform:translateY(6px) !important;
}

.os-video-hero-simple .os-video-hero-content h1{
  font-size:clamp(42px, 4.15vw, 70px) !important;
  line-height:1.08 !important;
  letter-spacing:-2.2px !important;
  max-width:860px;
  margin-left:auto !important;
  margin-right:auto !important;
}

.os-video-hero-simple .os-video-hero-content p{
  max-width:760px !important;
  margin:20px auto 0 !important;
  font-size:clamp(16px, 1.15vw, 20px) !important;
  line-height:1.5 !important;
}

.os-video-hero-simple .os-video-hero-buttons{
  margin-top:24px !important;
  gap:14px !important;
  transform:translateY(-10px) !important;
}

.os-video-hero-simple .os-video-hero-btn{
  height:56px !important;
  min-width:170px !important;
  padding:0 30px !important;
  font-size:16px !important;
  white-space:nowrap !important;
}

/* Avada wrapper compatibility */
.fusion-fullwidth:has(.os-video-hero-simple),
.fusion-builder-row:has(.os-video-hero-simple),
.fusion-layout-column:has(.os-video-hero-simple),
.fusion-column-wrapper:has(.os-video-hero-simple),
.fusion-code:has(.os-video-hero-simple),
.fusion-text:has(.os-video-hero-simple){
  padding-left:0 !important;
  padding-right:0 !important;
  padding-bottom:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  margin-bottom:0 !important;
}

/* Laptop / smaller desktop */
@media (max-width: 1366px){
  .os-video-hero-simple{
    min-height:clamp(600px, 76vh, 760px) !important;
  }

  .os-video-hero-simple .os-video-hero-content{
    transform:translateY(-4px) !important;
  }

  .os-video-hero-simple .os-video-hero-content h1{
    font-size:clamp(40px, 4vw, 62px) !important;
  }

  .os-video-hero-simple .os-video-hero-content p{
    max-width:700px !important;
  }

  .os-video-hero-simple .os-video-hero-buttons{
    margin-top:22px !important;
    transform:translateY(-14px) !important;
  }
}

/* Tablet */
@media (max-width: 1024px){
  .os-video-hero-simple{
    min-height:var(--os-video-hero-height-tablet,680px) !important;
  }

  .os-video-hero-simple .os-video-hero-content{
    width:min(720px, calc(100% - 48px)) !important;
    transform:translateY(-6px) !important;
  }

  .os-video-hero-simple .os-video-hero-content h1{
    font-size:clamp(38px, 6.3vw, 58px) !important;
    letter-spacing:-1.8px !important;
  }

  .os-video-hero-simple .os-video-hero-content p{
    font-size:16px !important;
    max-width:640px !important;
  }

  .os-video-hero-simple .os-video-hero-buttons{
    margin-top:22px !important;
    transform:translateY(-12px) !important;
  }
}

/* Mobile landscape and large phones */
@media (max-width: 760px){
  .os-video-hero-simple{
    min-height:var(--os-video-hero-height-mobile,620px) !important;
  }

  .os-video-hero-simple .os-video-hero-content{
    width:calc(100% - 34px) !important;
    transform:translateY(-8px) !important;
  }

  .os-video-hero-simple .os-video-hero-content h1{
    font-size:clamp(34px, 8.4vw, 48px) !important;
    line-height:1.13 !important;
    letter-spacing:-1.35px !important;
  }

  .os-video-hero-simple .os-video-hero-content p{
    font-size:15px !important;
    line-height:1.55 !important;
    max-width:560px !important;
    margin-top:18px !important;
  }

  .os-video-hero-simple .os-video-hero-buttons{
    margin-top:24px !important;
    transform:none !important;
  }

  .os-video-hero-simple .os-video-hero-btn{
    min-width:155px !important;
    height:54px !important;
  }
}

/* Small phones */
@media (max-width: 480px){
  .os-video-hero-simple{
    min-height:600px !important;
  }

  .os-video-hero-simple .os-video-hero-content{
    width:calc(100% - 28px) !important;
  }

  .os-video-hero-simple .os-video-hero-content h1{
    font-size:34px !important;
    line-height:1.15 !important;
  }

  .os-video-hero-simple .os-video-hero-content p{
    font-size:14.5px !important;
  }

  .os-video-hero-simple .os-video-hero-buttons{
    flex-direction:column !important;
    align-items:stretch !important;
    width:100% !important;
    max-width:340px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    gap:12px !important;
  }

  .os-video-hero-simple .os-video-hero-btn{
    width:100% !important;
    min-width:0 !important;
    height:54px !important;
  }
}

