/* =========================================================
   SHINING 3D HERO
   FULL WIDTH VIDEO
   DESKTOP + TABLET + MOBILE
========================================================= */


/* =========================================================
   HERO WRAPPER
   Break out of HubSpot container
========================================================= */

.shining-hero {
  position: relative;

  width: 100vw;
  max-width: none;

  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  height: 70vh;
  min-height: 560px;
  max-height: 760px;

  padding: 0;

  overflow: hidden;

  direction: rtl;

  font-family: Arial, Helvetica, sans-serif;

  background: #000;
}


/* =========================================================
   VIDEO
========================================================= */

.shining-hero__video {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center center;

  z-index: 1;
}


/* =========================================================
   MOBILE IMAGE
   Currently hidden because video is used on mobile
========================================================= */

.shining-hero__mobile-image {
  display: none;

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  z-index: 1;
}


/* =========================================================
   OVERLAY
   Darker on the right side behind Hebrew text
========================================================= */

.shining-hero__overlay {
  position: absolute;

  inset: 0;

  z-index: 2;

  pointer-events: none;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.00) 0%,
    rgba(0, 0, 0, 0.03) 35%,
    rgba(0, 0, 0, 0.15) 65%,
    rgba(0, 0, 0, 0.42) 100%
  );
}


/* =========================================================
   CONTENT CONTAINER
========================================================= */

.shining-hero__container {
  position: relative;

  z-index: 3;

  width: 100%;
  height: 100%;

  max-width: 1440px;

  margin: 0 auto;

  padding: 0 60px;

  box-sizing: border-box;

  display: flex;

  align-items: center;
  justify-content: flex-start;
}


/* =========================================================
   CONTENT
========================================================= */

.shining-hero__content {
  position: relative;

  width: 100%;
  max-width: 600px;

  margin: 0;
  padding: 0;

  text-align: right;

  color: #ffffff;
}


/* =========================================================
   SMALL TITLE / EYEBROW
========================================================= */

.shining-hero__eyebrow {
  display: inline-block;

  margin: 0 0 18px 0;
  padding: 0;

  font-size: 15px;
  line-height: 1.3;

  font-weight: 700;

  letter-spacing: 1.5px;

  color: #ffffff;

  direction: ltr;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.shining-hero h1 {
  margin: 0 0 18px 0;
  padding: 0;

  font-size: clamp(48px, 5vw, 78px);

  line-height: 1.05;

  font-weight: 700;

  letter-spacing: -1px;

  color: #ffffff;

  text-align: right;
}


/* =========================================================
   SUBTITLE
========================================================= */

.shining-hero__subtitle {
  margin: 0;
  padding: 0;

  max-width: 540px;

  font-size: clamp(21px, 2vw, 30px);

  line-height: 1.45;

  font-weight: 400;

  color: #ffffff;

  text-align: right;
}


.shining-hero__subtitle strong {
  color: #ffffff;

  font-weight: 700;
}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1500px) {

  .shining-hero {
    height: 72vh;

    min-height: 600px;
    max-height: 850px;
  }


  .shining-hero__container {
    max-width: 1600px;

    padding-right: 80px;
    padding-left: 80px;
  }


  .shining-hero__content {
    max-width: 650px;
  }

}


/* =========================================================
   NORMAL DESKTOP
========================================================= */

@media (min-width: 1101px) and (max-width: 1499px) {

  .shining-hero {
    height: 70vh;

    min-height: 560px;
    max-height: 760px;
  }


  .shining-hero__container {
    padding-right: 60px;
    padding-left: 60px;
  }

}


/* =========================================================
   TABLET / IPAD
========================================================= */

@media (min-width: 768px) and (max-width: 1100px) {

  .shining-hero {
    width: 100vw;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    height: 68vh;

    min-height: 560px;
    max-height: 720px;
  }


  .shining-hero__video {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
       If needed later, we can change this
       to move the video left/right.
    */
    object-position: center center;
  }


  .shining-hero__container {
    padding-right: 40px;
    padding-left: 40px;
  }


  .shining-hero__content {
    max-width: 480px;
  }


  .shining-hero__eyebrow {
    font-size: 13px;

    margin-bottom: 14px;
  }


  .shining-hero h1 {
    font-size: 54px;

    margin-bottom: 14px;
  }


  .shining-hero__subtitle {
    font-size: 23px;
  }

}


/* =========================================================
   MOBILE
   VIDEO REMAINS ACTIVE
========================================================= */

@media (max-width: 767px) {

  .shining-hero {
    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /*
       Full mobile screen height
    */
    height: 100svh;

    min-height: 580px;
    max-height: none;

    padding: 0;

    overflow: hidden;

    background: #000;
  }


  /* =====================================================
     MOBILE VIDEO
  ===================================================== */

  .shining-hero__video {
    display: block !important;

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
       This determines which part of the wide
       video remains visible on portrait screens.
    */
    object-position: center center;

    z-index: 1;
  }


  /* =====================================================
     STATIC IMAGE OFF
  ===================================================== */

  .shining-hero__mobile-image {
    display: none !important;
  }


  /* =====================================================
     MOBILE OVERLAY
  ===================================================== */

  .shining-hero__overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    /*
       On mobile the gradient is vertical.
       The bottom is darker because text sits there.
    */
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.02) 0%,
      rgba(0, 0, 0, 0.05) 30%,
      rgba(0, 0, 0, 0.15) 55%,
      rgba(0, 0, 0, 0.60) 100%
    );
  }


  /* =====================================================
     MOBILE CONTENT
  ===================================================== */

  .shining-hero__container {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    max-width: none;

    margin: 0;

    padding:
      0
      24px
      55px
      24px;

    box-sizing: border-box;

    display: flex;

    align-items: flex-end;
    justify-content: flex-start;
  }


  .shining-hero__content {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    text-align: right;

    color: #ffffff;
  }


  /* =====================================================
     MOBILE EYEBROW
  ===================================================== */

  .shining-hero__eyebrow {
    display: inline-block;

    margin: 0 0 12px 0;

    font-size: 12px;
    line-height: 1.3;

    font-weight: 700;

    letter-spacing: 1px;

    color: #ffffff;
  }


  /* =====================================================
     MOBILE TITLE
  ===================================================== */

  .shining-hero h1 {
    margin: 0 0 12px 0;

    padding: 0;

    font-size: 43px;

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -0.5px;

    color: #ffffff;

    text-align: right;
  }


  /* =====================================================
     MOBILE SUBTITLE
  ===================================================== */

/* =========================================================
   MOBILE – OPTIMIZED VIDEO
========================================================= */

@media (max-width: 767px) {

  .shining-hero {
    width: 100vw;
    max-width: none;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /*
       Hero slightly shorter than full screen.
       Better proportions for the horizontal video.
    */
    height: 78svh;

    min-height: 520px;
    max-height: 680px;

    padding: 0;

    overflow: hidden;

    background: #000;
  }


  /* =====================================================
     VIDEO
  ===================================================== */

  .shining-hero__video {
    display: block !important;

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
       Controls which part of the original video
       remains visible on portrait screens.
    */
    object-position: 50% center;

    z-index: 1;
  }


  /* =====================================================
     HIDE MOBILE STATIC IMAGE
  ===================================================== */

  .shining-hero__mobile-image {
    display: none !important;
  }


  /* =====================================================
     OVERLAY
  ===================================================== */

  .shining-hero__overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    pointer-events: none;

    /*
       Gentle gradient.
       Keeps the video visible while helping
       the text remain readable.
    */
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.00) 0%,
      rgba(0, 0, 0, 0.00) 45%,
      rgba(0, 0, 0, 0.12) 65%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }


  /* =====================================================
     CONTENT CONTAINER
  ===================================================== */

  .shining-hero__container {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    max-width: none;

    margin: 0;

    padding:
      0
      24px
      70px
      24px;

    box-sizing: border-box;

    display: flex;

    align-items: flex-end;

    justify-content: flex-start;
  }


  /* =====================================================
     CONTENT
  ===================================================== */

  .shining-hero__content {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    text-align: right;

    color: #ffffff;
  }


  /* =====================================================
     EYEBROW
  ===================================================== */

  .shining-hero__eyebrow {
    display: inline-block;

    margin: 0 0 10px 0;

    font-size: 11px;
    line-height: 1.3;

    font-weight: 700;

    letter-spacing: 1px;

    color: #ffffff;

    direction: ltr;
  }


  /* =====================================================
     TITLE
  ===================================================== */

  .shining-hero h1 {
    margin: 0 0 10px 0;

    padding: 0;

    font-size: 40px;

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -0.5px;

    color: #ffffff;

    text-align: right;
  }


  /* =====================================================
     SUBTITLE
  ===================================================== */

  .shining-hero__subtitle {
    margin: 0;

    padding: 0;

    max-width: 100%;

    font-size: 19px;

    line-height: 1.4;

    font-weight: 400;

    color: #ffffff;

    text-align: right;
  }


  .shining-hero__subtitle strong {
    color: #ffffff;

    font-weight: 700;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .shining-hero {
    height: 76svh;

    min-height: 500px;

    max-height: 650px;
  }


  .shining-hero__container {
    padding-right: 20px;

    padding-left: 20px;

    padding-bottom: 60px;
  }


  .shining-hero h1 {
    font-size: 36px;
  }


  .shining-hero__subtitle {
    font-size: 18px;
  }


  .shining-hero__eyebrow {
    font-size: 10px;
  }

}
