/* ========================================
   HEADER COMPONENT
   ======================================== */

.header-container {
  width: calc(100% + 100px);
  transform: translateX(-50px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
  height: var(--header-h);
}

.header {
  width: 100%;
  height: var(--header-h);
  display: flex;
}

.header .header-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 800;
  padding-bottom: 10px;
  clip-path: polygon(10% 0%, 100% 0, 90% 100%, 0% 100%);
  margin: 0 -15px;
  overflow: hidden;
}

.header .header-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.header .header-item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  z-index: 5;
  pointer-events: none;
}

.header .header-item span {
  z-index: 10;
  font-size: 20px;
  position: relative;
}

/* Mobile Header (Carousel) */
.header-container-mobile {
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.header-container-mobile .splide__slide {
  position: relative;
}

.header-container-mobile .splide__slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  pointer-events: none;
  z-index: 5;
}

.header-container-mobile .splide__slide span {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 30px;
  text-transform: uppercase;
  font-style: italic;
  font-weight: 800;
}

/* ========================================
   RESPONSIVE - HEADER
   ======================================== */

@media (min-width: 850px) and (min-height: 700px) {
  .header-container {
    height: var(--header-h);
    flex-shrink: 0;
  }
}

@media (max-width: 850px) {
  .header-container {
    display: none;
  }

  .header-container-mobile {
    display: block;
  }
}

@media (max-width: 500px) {
  .header-container-mobile .splide__slide span {
    font-size: 24px;
    bottom: 14px;
  }
}
