/* =========================
   SERVICES SPLIT
========================= */

.services-split{
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
  border-bottom: 2px solid #fff;
}

.services-split__item{
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center; /* 👈 CENTER vertically */
  justify-content: center; /* 👈 CENTER horizontally */
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  min-height: 100vh;
}

.services-split__item:first-child{
  border-right: 2px solid #fff;
}

.services-split__bg{
  position: absolute;
  inset: 0;
}

.services-split__bg img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.services-split__overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.15) 100%);
  transition: background 300ms ease;
  z-index: 1;
}

.services-split__content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}

.services-split__content h2{
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #fff;
}

/* hover */

.services-split__item:hover .services-split__bg img{
  transform: scale(1.04);
}

.services-split__item:hover .services-split__overlay{
  background: linear-gradient(to top, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.20) 50%, rgba(0,0,0,0.08) 100%);
}

/* =========================
   TABLET
========================= */

@media (max-width: 991px){
  .services-split{
    min-height: 100svh;
  }

  .services-split__item{
    min-height: 100svh;
  }

  .services-split__content h2{
    font-size: clamp(30px, 6vw, 44px);
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 767px){
  .services-split{
    flex-direction: column;
    min-height: auto;
    padding-top: var(--mobile-header-height);
  }

  .services-split__item{
    min-height: calc(50svh - (var(--mobile-header-height) / 2));
    flex: none;
  }

  .services-split__item:first-child{
    border-right: 0;
    border-bottom: 2px solid #fff;
  }

  .services-split__content{
    padding: 16px;
  }

  .services-split__content h2{
    font-size: clamp(28px, 8vw, 38px);
  }
}

@media (max-width: 480px){
  .services-split__item{
    min-height: 42svh;
  }

  .services-split__content h2{
    font-size: 30px;
  }
}