/* ============================================================
   MEBL – Homepage Styles
   ============================================================ */

/* -- Hero -------------------------------------------------- */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  /* text-align: center; */
  padding: 0 1.5rem;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-title {
  font-size: 6rem;
  font-weight: 700;
  /* padding: 0 1.5rem; */
}

.hero-description {
  max-width: 460px;
  font-size: 1rem;
  /* padding: 1rem 1.5rem 0; */
  /* line-height: 1.8; */
  text-align: center;
}

.hero .btn {
  margin-top: 2rem;
}

/* -- Intro text section ------------------------------------ */
.intro-section {
  background: var(--primary-color);
}

.intro-inner {
  max-width: var(--screen-width-limit);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  padding: 4rem;
  color: white;
}

.intro-col-heading {
  flex-basis: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.intro-col-heading h2 {
  font-size: 2rem;
  font-weight: 900;
  max-width: 320px;
}

.intro-col-body {
  flex-basis: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.8;
}

/* -- Carousel ---------------------------------------------- */
.carousel-section {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 2s ease;
}

/* .wrapInWidth {
  max-width: 1280px;
  width: 100%;
} */

.carousel-slide {
  min-width: 100%;
  min-height: 700px;
  margin: 0 auto;
  padding: 10rem 4rem;
  display: flex;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.carousel-slide.light {
  color: var(--primary-color);
}

.carousel-content {
  flex-basis: 50%;
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  gap: 1rem;
  max-width: 400px;
}

.carousel-label {
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.carousel-title {
  font-size: 2rem;
  font-weight: 900;
  max-width: 400px;
}

.carousel-slide:not(.light) .carousel-title {
  color: var(--secondary-color);
}

.carousel-description {
  max-width: 400px;
}

.carousel-controls {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  z-index: 2;
}

.carousel-dot {
  width: 15px;
  height: 15px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid white;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.carousel-dot.active {
  opacity: 1;
}

/* -- Products gallery -------------------------------------- */
.products-section {
  background: black;
}

.products-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  color: white;
}

.gallery-item {
  position: relative;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 1.875rem;
  cursor: pointer;
  text-decoration: none;
  color: white;
  overflow: hidden;
}

.gallery-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.gallery-item:hover .gallery-video {
  opacity: 1;
}

.gallery-name {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 900;
  text-align: center;
  transition: opacity 0.7s ease;
}

.gallery-desc {
  position: relative;
  z-index: 2;
  font-size: 1rem;
  text-align: center;
  opacity: 0.85;
  transition: opacity 0.7s ease;
}

.gallery-item:hover .gallery-name,
.gallery-item:hover .gallery-desc {
  opacity: 0;
}

/* -- Career CTA -------------------------------------------- */
.career-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* .career-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 65, 97, 0.75);
} */

.career-content {
  position: relative;
  z-index: 1;
  color: white;
  /* padding: 5rem 4rem; */
  padding: 10rem 4rem;
  max-width: var(--screen-width-limit);
  margin: 0 auto;
  width: 100%;
}

.career-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.career-title {
  /* font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  max-width: 600px;
  line-height: 1.2; */

  /* color: var(--heading-color); */
  color: var(--secondary-color);
  font-size: 2rem;
  font-weight: 900;

}

.career-description {
  font-size: 1rem;
  /* line-height: 1.8; */
  max-width: 560px;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

/* -- Media / Top blogs ------------------------------------- */
.top-media-section {
  background: #f2f2f2;
  padding: 5rem 2rem;
}

.top-media-inner {
  max-width: var(--screen-width-limit);
  margin: 0 auto;
}

.top-media-header {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.top-media-header h2 {
  font-size: 2rem;
  font-weight: 900;
}

.top-media-header p {
  margin-top: 0.5rem;
  font-size: 1rem;
  opacity: 0.8;
}

.top-media-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.top-media-card {
  flex-basis: 22%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.top-media-card img {
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}

.top-media-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.4;
}

.top-media-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary-color);
  text-decoration: underline;
}

/* -- Responsive -------------------------------------------- */
@media screen and (max-width: 780px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero {
    justify-content: flex-end;
    padding-bottom: 20vh;
    align-items: start;
  }

  .hero-description {
    justify-content: flex-end;
    text-align: left;
  }

  .intro-inner {
    flex-direction: column;
    padding: 4rem 2.5rem;
    gap: 1rem;
  }

  .intro-col-body {
    display: none;
  }

  .carousel-slide {
    padding: 2.5rem;
  }

  .carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    z-index: 0;
  }

  .carousel-content {
    flex-basis: 100%;
    max-width: 100%;
    justify-content: flex-end;
    min-height: 700px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
  }

  .carousel-title {
    font-size: 1.5rem;
    max-width: 100%;
  }

  .carousel-description {
    max-width: 100%;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .products-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 700px;
  }

  .gallery-name {
    font-size: 2rem;
  }

  .career-content {
    padding: 4rem 1.5rem;
  }

  .career-title {
    font-size: 1.5rem;
  }

  .top-media-card {
    flex-basis: calc(50% - 1rem);
  }
}