/* ==========================================================================
   MG Electronic — Products and Services page sections (Hero, intro card,
   services, featured games, final CTA). Matches the site's black-section /
   Poppins+Roboto / red-yellow-blue accent language (see about-sections.css,
   contact-sections.css, footer.css). Nav + CTA band + footer are shared
   markup, left untouched. The rental-request form keeps its original field
   ids/names so the existing Mailchimp integration keeps working.
   ========================================================================== */

.mg-section {
  position: relative;
  background: #000000;
  padding: 90px 6% 70px;
}

/* ---------- Hero ---------- */

.mg-products-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.mg-products-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fef204;
}

.mg-products-hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fef204;
  display: block;
  flex-shrink: 0;
}

.mg-products-hero__title {
  margin: 26px 0 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.mg-products-hero__title-accent {
  color: #09b3f1;
}

.mg-products-hero__lead {
  margin: 24px 0 0;
  max-width: 560px;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.75);
}

.mg-products-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.mg-products-hero__cta {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mg-products-hero__cta--solid {
  background: var(--mg-accent, #ff0106);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(255, 1, 6, 0.35);
}

.mg-products-hero__cta--solid:hover {
  background: #fef204;
  color: #0a1118;
}

.mg-products-hero__cta--ghost {
  border: 1px solid rgba(9, 179, 241, 0.55);
  color: #09b3f1;
}

.mg-products-hero__cta--ghost:hover {
  background: #09b3f1;
  color: #041018;
}

.mg-products-hero__media {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #101010;
  transition: border-color 0.2s ease;
}

.mg-products-hero__media:hover {
  border-color: #fef204;
}

.mg-products-hero__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

/* ---------- Intro statement ---------- */

.mg-products-intro {
  padding-top: 0;
  padding-bottom: 46px;
}

.mg-products-intro__card {
  max-width: 100%;
  padding: 44px 48px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #fef204;
}

.mg-products-intro__card p {
  margin: 0;
  max-width: 940px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.6;
  color: #eaf3f8;
}

.mg-products-intro__card strong {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
}

/* ---------- Services ---------- */

.mg-products-services {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mg-products-services__eyebrow {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #09b3f1;
}

.mg-products-services__heading {
  margin: 16px 0 44px;
  max-width: 760px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.18;
  color: #ffffff;
}

.mg-products-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mg-products-services__card {
  padding: 26px 26px 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--card-accent, #09b3f1);
}

.mg-products-services__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #16242f;
}

.mg-products-services__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mg-products-services__card-title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
}

.mg-products-services__card-text {
  margin: 12px 0 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.66;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- Featured games ---------- */

.mg-products-games__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.mg-products-games__heading {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 40px);
  color: #ffffff;
}

.mg-products-games__browse {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(9, 179, 241, 0.5);
  color: #09b3f1;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mg-products-games__browse:hover {
  background: #09b3f1;
  color: #041018;
}

.mg-products-games__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.mg-products-games__card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mg-products-games__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #16242f;
}

.mg-products-games__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mg-products-games__body {
  padding: 22px 24px 26px;
}

.mg-products-games__title {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.mg-products-games__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mg-products-games__call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--mg-accent, #ff0106);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mg-products-games__call:hover {
  background: #fef204;
  color: #0a1118;
}

/* ---------- Final CTA (rental request) ---------- */

.mg-products-cta {
  background: #09b3f1;
  padding: 56px 6%;
}

.mg-products-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.mg-products-cta__heading {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.16;
  color: #041018;
}

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

.mg-products-cta__divider {
  width: 72px;
  height: 3px;
  background: #041018;
  margin: 20px 0;
}

.mg-products-cta .mg-contact-card {
  padding: 32px;
  border-radius: 18px;
}

.mg-products-cta .mg-contact-card__heading {
  font-size: 22px;
}

.mg-products-cta .mg-contact-form {
  margin-top: 18px;
  gap: 16px;
}

@media (max-width: 860px) {
  .mg-products-hero__grid {
    grid-template-columns: 1fr;
  }

  .mg-products-hero__media {
    order: -1;
  }

  .mg-products-intro__card {
    padding: 32px 26px;
  }

  .mg-products-services__grid,
  .mg-products-games__grid {
    grid-template-columns: 1fr;
  }

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