/* MO GROUP website mockups – shared base: reset, accessibility, reveal motion, world map.
   Each mockup sets its own look through the custom properties below. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px; background: #F2480A; color: #fff; font-weight: 600;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--focus, #F2480A); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Placeholder marker – for content MO GROUP still needs to supply or confirm */
.ph { display: inline-block; font: 600 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em;
  padding: 3px 7px; border-radius: 4px; border: 1px dashed currentColor; opacity: .75; vertical-align: middle; }

/* ---------- Reveal on scroll ---------- */
.js .reveal, .js .reveal-stagger > * {
  opacity: 0; translate: 0 22px;
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), translate .8s cubic-bezier(.2,.7,.2,1), transform .3s ease-out, box-shadow .3s ease-out, border-color .3s ease-out;
}
.js .reveal.in, .js .reveal-stagger > .in { opacity: 1; translate: none; }

/* ---------- World map ---------- */
.worldmap { position: relative; width: 100%; color: var(--map-land, #cfc7c3); }
.wm-svg { width: 100%; height: auto; overflow: visible; }
.wm-land { stroke: currentColor; transition: opacity 1.2s ease; }
.js .worldmap .wm-land { opacity: 0; }
.worldmap.in .wm-land { opacity: 1; }

.wm-arc { fill: none; stroke: var(--map-arc, #F2480A); stroke-width: .35; stroke-linecap: round; opacity: .7;
  stroke-dasharray: 220; stroke-dashoffset: 220; }
.worldmap.in .wm-arc { animation: wm-draw 1.8s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(.6s + var(--i) * .15s); }
@keyframes wm-draw { to { stroke-dashoffset: 0; } }

.wm-pin { opacity: 0; transition: opacity .6s ease; transition-delay: calc(.9s + var(--i) * .15s); }
.worldmap.in .wm-pin { opacity: 1; }
.wm-dot { fill: var(--map-pin, #F2480A); stroke: var(--map-pin-ring, #fff); stroke-width: .45; }
.wm-hq .wm-dot { fill: var(--map-hq, #F2480A); }
.wm-pulse { fill: var(--map-pin, #F2480A); opacity: 0; transform-box: fill-box; transform-origin: center; }
.worldmap.in .wm-pulse { animation: wm-pulse 3.2s ease-out infinite; animation-delay: calc(2s + var(--i) * .35s); }
@keyframes wm-pulse { 0% { opacity: .45; transform: scale(.6); } 80%, 100% { opacity: 0; transform: scale(2.6); } }

/* Phone: zoom the map on Africa / Europe / Middle East so markers stay readable */
@media (max-width: 600px) {
  .map-crop { overflow: hidden; }
  .map-crop .wm-svg { width: 170%; margin-left: -50%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; translate: none; }
  .wm-arc { stroke-dashoffset: 0; }
  .wm-pulse { display: none; }
}
