/* ==========================================================================
   MG Electronic — Site-wide "Get in touch" CTA band + footer.
   Shared across all pages (Section E on the homepage, and the footer
   everywhere else).
   ========================================================================== */

.mg-section-e {
  position: relative;
  background: #000000;
  padding: 48px 6% 0;
}

.mg-cta-band {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 260px;
  background: #ececec;
  border-top-left-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
}

.mg-cta-band__cut {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 14px;
  height: 140%;
  background: #000000;
  transform: translateX(-50%) rotate(45deg);
  z-index: 2;
}

.mg-cta-band__panel {
  position: relative;
  z-index: 1;
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mg-cta-band__panel--left {
  padding: 48px 48px 48px 56px;
}

.mg-cta-band__panel--right {
  padding: 48px 56px;
  align-items: center;
  text-align: center;
}

.mg-cta-band__eyebrow {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #ef4444;
}

.mg-cta-band__heading {
  margin: 0 0 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.2;
  color: var(--mg-accent, #e43f70);
}

.mg-cta-band__link {
  display: inline-block;
  width: fit-content;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #17181a;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mg-cta-band__link:hover {
  color: var(--mg-accent, #e43f70);
  border-color: var(--mg-accent, #e43f70);
}

.mg-cta-band__text {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #17181a;
}

.mg-footer {
  position: relative;
  background: #000000;
  padding: 60px 6% 22px;
}

.mg-footer__top {
  position: absolute;
  top: -38px;
  right: 6%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 92px;
  padding: 12px 10px 10px;
  background: #ffffff;
  border: none;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  color: #17181a;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.mg-footer__top svg {
  width: 22px;
  height: 22px;
}

.mg-footer__top:hover {
  color: var(--mg-accent, #e43f70);
}

.mg-footer__grid {
  display: grid;
  grid-template-columns: 240px 1fr 220px;
  gap: 36px;
}

.mg-footer__logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}

.mg-footer__social {
  display: flex;
  gap: 12px;
}

.mg-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  color: #17181a;
  transition: color 0.2s ease;
}

.mg-footer__social a:hover {
  color: var(--mg-accent, #e43f70);
}

.mg-footer__social svg {
  width: 18px;
  height: 18px;
}

.mg-footer__heading {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #ffffff;
}

.mg-footer__heading--underline {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.mg-footer__col p {
  margin: 0 0 18px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.mg-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mg-footer__menu a {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
}

.mg-footer__menu a.is-underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mg-footer__menu a:hover {
  color: var(--mg-accent, #e43f70);
}

.mg-footer__copyright {
  margin: 28px 0 0;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 860px) {
  .mg-section-e {
    padding: 40px 6% 0;
  }

  .mg-cta-band {
    flex-direction: column;
    border-radius: 24px;
  }

  .mg-cta-band__cut {
    top: auto;
    bottom: 50%;
    left: -10%;
    width: 120%;
    height: 12px;
    transform: translateY(50%) rotate(8deg);
  }

  .mg-cta-band__panel--left,
  .mg-cta-band__panel--right {
    flex: none;
    text-align: center;
    align-items: center;
    padding: 36px 8%;
  }

  .mg-cta-band__link {
    margin: 0 auto;
  }

  .mg-footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .mg-footer__logo {
    margin: 0 auto 24px;
  }

  .mg-footer__social {
    justify-content: center;
  }

  .mg-footer__top {
    right: 50%;
    transform: translateX(50%);
  }
}
