/* ==========================================================================
   MG Electronic — Home Hero
   Black background, oversized "Quality Time / To / Families" typography,
   with a continuously sliding strip of machine images layered on top.
   ========================================================================== */

.mg-hero {
  position: relative;
  overflow: hidden;
  background: #000000;
  min-height: 640px;
  height: 92vh;
  max-height: 900px;
  display: block;
}

.mg-hero__word {
  position: absolute;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  line-height: 0.95;
  color: #ffffff;
  font-size: clamp(40px, 9vw, 130px);
  white-space: nowrap;
  z-index: 1;
  letter-spacing: -0.01em;
}

.mg-hero__word--1 {
  top: calc(var(--mg-nav-height) + 64px);
  left: 4%;
}

.mg-hero__word--2 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--mg-accent, #e43f70);
}

.mg-hero__word--3 {
  bottom: 6%;
  right: 4%;
  text-align: right;
}

.mg-hero__marquee {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  overflow: hidden;
  height: 46%;
  pointer-events: none;
}

.mg-hero__marquee-track {
  display: flex;
  align-items: center;
  height: 100%;
  width: max-content;
  gap: 28px;
  transform: translateX(-50%);
  animation: mg-hero-slide 34s linear infinite;
}

.mg-hero__marquee-track img {
  height: 100%;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}

@keyframes mg-hero-slide {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0%);
  }
}

.mg-hero__cta-wrap {
  position: absolute;
  left: 4%;
  bottom: 5%;
  z-index: 3;
}

.mg-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  background: var(--mg-accent, #e43f70);
  padding: 16px 30px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(228, 63, 112, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mg-hero__cta:hover {
  background: var(--mg-accent-dark, #bd104a);
  transform: translateY(-2px);
}

.mg-footer-bar {
  background: #000000;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  line-height: 1.6;
  padding: 22px 20px;
}

@media (max-width: 860px) {
  .mg-hero {
    height: 100vh;
    min-height: 560px;
  }

  .mg-hero__word {
    font-size: clamp(32px, 12vw, 72px);
  }

  .mg-hero__marquee {
    height: 34%;
  }

  .mg-hero__cta {
    font-size: 14px;
    padding: 13px 22px;
  }

  .mg-hero__cta-wrap {
    left: 50%;
    top: 71%;
    bottom: auto;
    transform: translateX(-50%);
  }

  .mg-hero__cta:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}
