/**
 * Larix Slider Plugin - Styles
 * @version 1.0.0
 */

/* Main Slider Container */
.larix-slider {
  width: 100vw;
  height: 80vh;
  position: relative;
  overflow: hidden;
}

.larix-slider article {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--i);
}

/* Hero Info Container */
.hero-info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  text-align: center;
  width: 100%;
}

/* Company Text Container */
.company-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  background-color: transparent;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.1s ease-in;
}

/* Logo */
.company-logo {
  margin-bottom: 15px;
  padding: 0;
  background-color: transparent;
  display: block;
}

.company-logo img {
  height: auto;
  max-width: 280px;
  width: auto;
  display: block;
  width: 100%;
  max-width: min(280px, 80vw);
}

/* Description - First Row */
.company-description {
  color: #ffffff!important;
  font-size: clamp(0.95rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 10px 0;
  padding: 10px 15px;
  background-color: #f7ba00;
  display: block;
  text-transform: uppercase;
  text-align: center;
  width: fit-content;
  max-width: 90vw;
}

/* Description - Second Row */
.company-description-2 {
  color: #ffffff!important;
  font-size: clamp(0.95rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin: 0;
  padding: 10px 15px;
  background-color: #f7ba00;
  display: block;
  text-transform: uppercase;
  text-align: center;
  width: fit-content;
  max-width: 90vw;
}

/* Hide text on dark slides */
.larix-slider article[data-dark="true"] .hero-info {
  opacity: 0;
  visibility: hidden;
}

/* Hero Image */
.hero-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .hero-info {
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 0 1rem;
  }
  
  .company-logo {
    margin-bottom: 12px;
  }
  
  .company-logo img {
    max-width: min(220px, 70vw);
  }
  
  .company-description {
    font-size: clamp(0.85rem, 3.5vw, 1.4rem);
    padding: 8px 12px;
    margin: 0 0 8px 0;
  }
  
  .company-description-2 {
    font-size: clamp(0.85rem, 3.5vw, 1.4rem);
    padding: 8px 12px;
  }
}

@media screen and (max-width: 480px) {
  .hero-info {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  .company-logo img {
    max-width: min(180px, 65vw);
  }
  
  .company-description {
    font-size: clamp(0.75rem, 4vw, 1.2rem);
    padding: 6px 10px;
    margin: 0 0 6px 0;
  }
  
  .company-description-2 {
    font-size: clamp(0.75rem, 4vw, 1.2rem);
    padding: 6px 10px;
  }
}

