/* ==========================================================================
   YADEA — M6 product page
   Full-width photo sections with real HTML text over them (hero, LED light,
   motor + battery, "wind and joy", storage), a three-feature grid, the film,
   the specifications and the Yadea Mauritius contact block.
   Shared pieces (.p-specs, .spec-table, .p-color) come from product.css.
   ≤1023 px the photo sits above its text instead of behind it (see the
   "M6 page" block in responsive.css).
   ========================================================================== */

body.page-m6 { background: #fff; }

/* ---------- Photo sections ---------- */
.m6s { position: relative; max-width: 1920px; margin-inline: auto; overflow: hidden; background: #1c1a18; color: #fff; }
.m6s__bg { display: block; width: 100%; height: auto; }
.m6s::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.m6s__copy, .m6s-hero__copy, .m6s-stats { position: absolute; z-index: 1; }

.m6s-h { color: #fff; font-size: clamp(1.625rem, .6rem + 2.3vw, 2.75rem); font-weight: 600; line-height: 1.15; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.m6s-p { margin-top: 16px; max-width: 34em; font-size: clamp(.9375rem, .75rem + .5vw, 1.125rem); line-height: 1.6; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }

/* hero */
.m6s-hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .72) 100%); }
.m6s-hero__copy { left: var(--gutter); top: clamp(96px, 11vw, 170px); right: 40%; }
.m6s-eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; color: rgba(255, 255, 255, .85); }
.m6s-title { color: #fff; margin-top: 4px; font-size: clamp(3.5rem, 2rem + 6vw, 7rem); font-weight: 700; line-height: 1; letter-spacing: -.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, .4); }
.m6s-lead { margin-top: 10px; font-size: clamp(.9375rem, .8rem + .5vw, 1.25rem); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.m6s-stats { left: var(--gutter); right: var(--gutter); bottom: clamp(18px, 3.2vw, 56px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; text-align: center; }
.m6s-stats > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m6s-stats dd, .m6s-facts dd { font-weight: 600; line-height: 1; color: #ff7a21; font-variant-numeric: tabular-nums; }
.m6s-stats dd { font-size: clamp(1.5rem, .6rem + 2.6vw, 3.25rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.m6s-stats small, .m6s-facts small { font-size: .42em; font-weight: 500; margin-left: .15em; }
.m6s-stats dt { font-size: clamp(.75rem, .6rem + .3vw, 1rem); font-weight: 500; }

/* LED light */
.m6s-led::after { background: linear-gradient(90deg, rgba(10, 10, 10, .72) 0, rgba(10, 10, 10, .5) 34%, rgba(10, 10, 10, 0) 62%); }
.m6s-led .m6s__copy { left: calc(var(--gutter) + 2vw); top: 50%; transform: translateY(-50%); width: min(30em, 40%); }

/* wind and joy */
.m6s-ride::after { background: linear-gradient(90deg, rgba(12, 10, 8, .78) 0, rgba(12, 10, 8, .55) 36%, rgba(12, 10, 8, 0) 62%); }
.m6s-ride .m6s__copy { left: calc(var(--gutter) + 2vw); top: clamp(36px, 7vw, 120px); width: min(34em, 46%); }
.m6s-points { display: grid; gap: clamp(14px, 2vw, 30px); margin-top: clamp(24px, 4vw, 72px); }
.m6s-points h3 { font-size: clamp(1.125rem, .8rem + 1.1vw, 1.75rem); font-weight: 600; line-height: 1.2; color: #ff8a3d; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.m6s-points p { margin-top: 4px; font-size: clamp(.8125rem, .7rem + .3vw, 1rem); color: rgba(255, 255, 255, .88); }

/* storage */
.m6s-storage { background: #ede8e4; }
.m6s-storage::after { background: linear-gradient(270deg, rgba(10, 8, 6, .55) 0, rgba(10, 8, 6, .35) 40%, rgba(10, 8, 6, 0) 70%); }
.m6s-storage .m6s__copy { right: calc(var(--gutter) + 1vw); top: 50%; transform: translateY(-50%); width: min(30em, 44%); }
.m6s-facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: clamp(16px, 3vw, 48px); margin-top: clamp(14px, 2vw, 32px); }
.m6s-storage .m6s-h { font-size: clamp(1.25rem, .5rem + 1.9vw, 2.25rem); }
.m6s-facts dd { font-size: clamp(2rem, .8rem + 3vw, 3.75rem); text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.m6s-facts dt { margin-top: 6px; font-size: clamp(.8125rem, .7rem + .3vw, 1rem); }

/* ---------- Motor + battery ---------- */
.m6-power { padding-block: clamp(36px, 5vw, 96px); background: #fff; }
.m6-power__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3.4vw, 64px); max-width: 1240px; }
.m6-power__item img { display: block; width: 100%; height: auto; }
.m6-power__h { margin-top: clamp(18px, 2vw, 32px); padding-top: clamp(14px, 1.4vw, 22px); border-top: 2px solid var(--c-ink); font-size: clamp(1.25rem, .9rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.2; color: var(--c-ink); }
.m6-power__item p { margin-top: 14px; font-size: 1rem; line-height: 1.6; color: #3a3a3a; max-width: 34em; }

/* ---------- Feature grid ---------- */
.m6-grid { padding: clamp(8px, 2vw, 40px) var(--gutter) clamp(36px, 5vw, 96px); background: #fff; }
.m6-grid__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(1080px, 100%); margin-inline: auto; }
.m6-cell { min-height: 0; overflow: hidden; }
.m6-cell--img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.m6-cell--text { display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 3vw, 56px); background: #efece8; }
.m6-cell--text h2 { font-size: clamp(1rem, .75rem + .8vw, 1.5rem); font-weight: 600; line-height: 1.25; color: var(--c-ink); }
.m6-cell--text p { margin-top: 8px; font-size: clamp(.8125rem, .7rem + .3vw, 1rem); color: #444; }

/* ---------- Film ---------- */
.m6-film { padding-block: clamp(28px, 3.4vw, 72px) clamp(8px, 1vw, 20px); background: #fff; }
.m6-film__frame {
  position: relative;
  width: min(1600px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  aspect-ratio: 1280 / 536;
  overflow: hidden;
  background: #0b0b0b;
}
/* the source clip is letter-boxed 1280×720; cover crops the black bars */
.m6-film__video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.012); }
.m6-film__ctrl { position: absolute; right: clamp(10px, 1.4vw, 22px); bottom: clamp(10px, 1.4vw, 22px); z-index: 2; display: flex; gap: 10px; }
.m6-film__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 18px; color: #fff;
  background: rgba(15, 15, 15, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.m6-film__btn:hover { background: var(--c-brand); transform: scale(1.06); }
.m6-film__btn .icon--pause, .m6-film__btn .icon--sound-on { display: none; }
.m6-film__frame.is-playing .icon--play { display: none; }
.m6-film__frame.is-playing .icon--pause { display: block; }
.m6-film__frame.is-unmuted .icon--sound-off { display: none; }
.m6-film__frame.is-unmuted .icon--sound-on { display: block; }
/* large centred play button while the clip is not running */
.m6-film__big {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  display: grid; place-items: center;
  width: clamp(56px, 6vw, 88px); aspect-ratio: 1;
  margin: calc(clamp(56px, 6vw, 88px) / -2) 0 0 calc(clamp(56px, 6vw, 88px) / -2);
  border-radius: 50%;
  font-size: clamp(22px, 2.4vw, 34px); color: #fff;
  background: rgba(15, 15, 15, .5);
  border: 1px solid rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-expo), background var(--dur-fast) var(--ease);
}
.m6-film__big:hover { background: var(--c-brand); border-color: var(--c-brand); transform: scale(1.08); }
/* one play button at a time: big while stopped, small pause button while playing */
.m6-film__frame.is-playing .m6-film__big { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(.85); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease-expo), visibility 0s linear var(--dur); }
.m6-film__frame:not(.is-playing) .m6-film__ctrl [data-film-toggle] { display: none; }

/* ---------- Specifications (colour picker + table) ---------- */
.m6-specs { padding-top: clamp(40px, 5vw, 96px); }
.m6-specs .p-specs__stage { width: min(520px, 86%); aspect-ratio: 540 / 372; }
.p-color--red { --sw: #c8262b; }
.p-color--blue { --sw: #2c4a7c; }
.p-specs__colorname { margin-top: 14px; font-size: .875rem; font-weight: 500; letter-spacing: .04em; color: #444; }

/* ---------- Yadea Mauritius contact ---------- */
.m6-contact { background: var(--c-cream); padding-block: clamp(48px, 5.5vw, 108px); }
.m6-contact__title { font-size: clamp(1.625rem, 1.1rem + 1.4vw, 2.5rem); font-weight: 500; color: var(--c-ink); }
.m6-contact__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 80px); margin-top: clamp(28px, 3vw, 60px); padding-top: clamp(24px, 2.4vw, 44px); border-top: 1px solid rgba(0, 0, 0, .14); }
.m6-contact__col h3 { margin-bottom: 18px; font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.m6-contact address { font-style: normal; font-size: 1rem; line-height: 1.5; color: #222; }
.m6-contact address p + p { margin-top: 14px; }
.m6-contact address span, .m6-places span { display: block; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.m6-contact a { transition: color var(--dur-fast) var(--ease); }
.m6-contact address a:hover { color: var(--c-brand); }
.m6-places { display: grid; gap: 20px; font-size: 1rem; line-height: 1.5; color: #222; }
.m6-places span { margin-bottom: 3px; }
.m6-socials { margin-top: 0; }
.m6-socials a { width: 40px; height: 40px; font-size: 20px; color: var(--c-ink); border: 1px solid rgba(0, 0, 0, .22); border-radius: 50%; }
.m6-socials a:hover { color: #fff; background: var(--c-brand); border-color: var(--c-brand); }
