/* JustMultimedia: static clone of the Wix site.
   Values are measured from the live Wix pages (wix-clone/tools/build/measure/
   until wix-clone/capture/ arrives). Desktop values between 1024 and 1440 px
   are linear fits of the two measurements, written as calc(px + vw).
   Wix breakpoints: mobile layout at 750 px and below. */

/* ---------- Fonts (OFL, self-hosted) ----------
   Family names mirror Wix's so computed styles compare one to one:
   "worksans-semibold" is Work Sans SemiBold at normal weight and Work Sans
   Bold at 700, exactly as Wix declares it. "madefor-text" (Wix's own font,
   not redistributable) is replaced by Inter. */
@font-face {
  font-family: "azeret-mono";
  src: url("../fonts/azeret-mono-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Wix also names Azeret Mono "azeret-mono-v2" (hero line, review label). */
@font-face {
  font-family: "azeret-mono-v2";
  src: url("../fonts/azeret-mono-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "worksans-semibold";
  src: url("../fonts/work-sans-600-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "worksans-semibold";
  src: url("../fonts/work-sans-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "madefor-text";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --cream: #faf7ea;        /* header background, rgb(250, 247, 234) */
  --ink-cream: #fbf7e9;    /* text on black, rgb(251, 247, 233) */
  --footer-link: #f0f0f0;  /* footer nav, rgb(240, 240, 240) */
  --yellow: #eafa0c;       /* CONTACT button, rgb(234, 250, 12) */
  --black: #000;
  --mono: "azeret-mono", "azeret mono", monospace;
  --sans: "worksans-semibold", "work sans", sans-serif;
  --madefor: "madefor-text", sans-serif;
  --header-h: 74px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font: 10px/normal Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
/* Wix clips sideways overflow (3D panels, wide galleries) on its page
   container; clip, unlike hidden, keeps position: sticky working. */
main { overflow-x: clip; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 100;
  padding: 8px 12px; background: var(--yellow); color: var(--black);
  font: 14px var(--sans);
}
.skip-link:focus { top: 8px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Header ----------
   Fixed on every page, as on Wix (capture/MOTION.md 2). Page content starts
   below it via body padding; the home hero will sit under it. */
body { padding-top: var(--header-h); }
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--cream);
  display: flex;
  align-items: center;
}
.site-header .logo {
  position: absolute;
  left: 4.5vw;               /* 65 at 1440, 46 at 1024 */
  top: 29px;
  font: 14px/22.4px var(--mono);
  letter-spacing: 0.7px;
  line-height: 16px;
  color: var(--black);
  animation: jm-fade-in 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.site-nav {
  position: absolute;
  right: 17.7vw;             /* nav cell ends at 82.3% of the width */
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: max(0px, calc(1.683vw - 16.23px));
  animation: jm-pop-in 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
.site-nav a {
  font: 0.9375vw/1.4 var(--mono);   /* 13.5 px at 1440, 9.6 px at 1024 */
  color: var(--black);
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 2px; }
.btn-contact {
  position: absolute;
  left: calc(82.3vw + 1.442vw - 0.77px);  /* 1205 at 1440, 857 at 1024 */
  top: 14px;
  width: 164px;
  height: 48px;
  border-radius: 300px;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 14px var(--sans);
  color: var(--black);
  transition: transform 0.3s ease-in-out;
  animation: jm-pop-in 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) backwards;
}
/* Wix: the pill shifts about 8 px right on hover, colour unchanged. */
.btn-contact:hover { transform: translateX(8px); }
.menu-toggle { display: none; }
.mobile-menu[hidden] { display: none; }

/* Load fade (capture/MOTION.md 1): nav group and CONTACT from opacity 0.1,
   scale 0.8; wordmark link fades from 0.03; about 1.1 s ease-out. */
@keyframes jm-pop-in { from { opacity: 0.1; transform: scale(0.8); } }
@keyframes jm-fade-in { from { opacity: 0.03; } }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  height: 17.3vw;            /* 249 at 1440, 177 at 1024 */
  min-height: 177px;
  background: var(--black);
}
/* Refund policy: Wix has an empty black block, 613 px at 1440, 436 at 1024. */
.site-footer--empty { height: calc(42.55vw); min-height: 0; }
.footer-nav {
  position: absolute;
  left: 3.26vw;
  top: 3.27vw;
  display: grid;
  gap: 10px;
}
.footer-nav a {
  font: 700 14px/19.6px var(--sans);
  color: var(--footer-link);
}
.footer-nav a:hover { color: var(--ink-cream); }
.footer-nav a[aria-current="page"] { color: var(--yellow); }
.footer-legal {
  position: absolute;
  left: 34.44vw;
  width: 15.56vw;           /* 224 at 1440, 159 at 1024: TERMS AND CONDITIONS wraps at 1024 */
  top: calc(3.27vw + 1px);
  font: 700 14px/18.2px var(--sans);
  color: var(--ink-cream);
  white-space: pre-line;
}
.footer-address {
  position: absolute;
  left: 68.75vw;
  top: calc(3.27vw + 5px);
  display: grid;
  row-gap: 10.5px;
}
.footer-address p {
  font: 12px/19.2px var(--mono);
  letter-spacing: 0.6px;
  color: var(--ink-cream);
}
.footer-email, .footer-legal a { text-decoration: underline; }

/* ---------- Legal pages ---------- */
.legal {
  background: var(--black);
  color: var(--ink-cream);
  padding: calc(10.817vw - 43.77px) 3vw calc(4.087vw - 0.85px);
}
.legal h1 {
  font: calc(11.38px + 2.404vw)/1 var(--sans);
  letter-spacing: -0.01em;
  margin-bottom: calc(31.77px + 1.683vw);
}
.legal-body { max-width: 799px; }
.legal h2 {
  font: 700 14px/18.2px var(--sans);
  margin-top: 41px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
  font: 12px/19.2px var(--mono);
  letter-spacing: 0.6px;
}
.legal h2 + p { margin-top: 20px; }
.legal p.lh-wide { line-height: 21.6px; }
.legal p.gap { margin-top: 20px; margin-top: 1lh; }
.legal p.lh-wide-d { line-height: 21.6px; }   /* terms: desktop only (QA-006) */
/* A blank line Wix keeps inside a paragraph, before or after its text (QA-007). */
.legal p.pad-before { padding-top: 19.2px; padding-top: 1lh; }
.legal p.pad-after { padding-bottom: 19.2px; padding-bottom: 1lh; }
.legal a { text-decoration: underline; }

/* Refund policy: same column, more space below (145 px at 1440, 127 at 1024) */
.legal.refund { padding-bottom: calc(82.69px + 4.327vw); }

/* Accessibility statement: Wix's sectioned template */
/* Desktop values scale with the width between 1024 and 1440 (QA-004, QA-005):
   heading 12 px below the header at 1440 and 12.5 px under it at 1024;
   section gaps 87 -> 62 px; space above the footer 171 -> 121 px. */
.legal.a11y { padding-top: 0; padding-bottom: calc(12.02vw - 2.1px); }
.legal.a11y h1 { margin-top: calc(5.889vw - 72.8px); }
.legal.a11y h1 { margin-bottom: 40px; max-width: none; }
.legal.a11y .a11y-intro { max-width: 800px; }
.legal.a11y .a11y-intro p + p { margin-top: 20px; }
.legal.a11y section { margin-top: calc(6.0096vw + 0.46px); max-width: 800px; }
.legal.a11y h2 { margin-top: 0; }
.legal.a11y h2 + p { margin-top: 39px; }
.legal.a11y h2 + ul { margin-top: 39px; }
.legal.a11y p + ul { margin-top: 40px; }
.legal.a11y p + ul.tight { margin-top: 3px; }
.legal.a11y ul { padding-left: 22px; list-style: disc; }

/* ---------- Mobile (Wix mobile layout, 750 px and below) ---------- */
@media (max-width: 750px) {
  :root { --header-h: 68px; }
  .site-header .logo, .site-nav { display: none; }
  .menu-toggle {
    display: block;
    position: absolute;
    left: 16px;
    top: 18px;
    width: 54px;
    height: 32px;
    border-radius: 8px;
    font: 700 20px/32px var(--mono);
    color: var(--black);
    text-align: center;
  }
  .btn-contact {
    left: auto;
    right: 15px;
    top: 17px;
    width: 98px;
    height: 38px;
    font-size: 11px;
  }
  /* Wix hamburger overlay (measured on Wix, tools/build/probe-menu.mjs):
     full viewport, rgba(0,0,0,.6) backdrop under a #eafa0c panel with 20 px
     corners, opacity fade 0.4 s cubic-bezier(.645,.045,.355,1); links centred,
     Madefor 18 px / 25.2, 41.5 px pitch; 40 x 40 close button at 330, 25. */
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 60;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
  }
  .mobile-menu[data-open] { opacity: 1; }
  .mobile-menu-panel {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu nav { display: grid; justify-items: center; row-gap: 16.5px; }
  .mobile-menu nav a { font: 400 18px/25.2px var(--madefor); color: var(--black); }
  .menu-close {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
  }

  .site-footer { height: 458px; text-align: center; }
  .footer-nav {
    left: 0; right: 0; top: 63px;
    justify-items: center;
    gap: 12px;
  }
  .footer-nav a { font: 700 12px/15px var(--madefor); }
  .site-footer--empty { height: 87.7vw; }
  .footer-address {
    left: 0; right: 0; top: 214px;
    row-gap: 3px;
  }
  .footer-legal {
    left: 0; right: 0; top: 356px; width: auto;
    font-size: 12px;
    line-height: 9.6px;
  }

  .legal { padding: 52px 5vw 79px; }
  .legal p.lh-wide-d { line-height: 19.2px; }
  .legal h1 { font-size: 20px; margin-bottom: 29px; }
  .legal-body, .legal.a11y .a11y-intro { max-width: none; }
  .legal h2 { margin-top: 40px; }

  .legal.refund { padding-bottom: 80px; }
  .legal.refund h1 { margin-bottom: 24px; }
  .legal.a11y { padding-top: 11px; padding-bottom: 84px; }
  .legal.a11y h1 { font-size: 30px; margin-top: 0; margin-bottom: 20px; }
  .legal.a11y section { margin-top: 79px; }
  .legal.a11y h2 + p, .legal.a11y h2 + ul { margin-top: 20px; }
  .legal.a11y p + ul { margin-top: 20px; }
  .legal.a11y ul { padding-left: 21px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Go-live legal text (GL-3): paragraphs and list items follow each other with a line between. */
.legal-body p + p, .legal.a11y section p + p { margin-top: 20px; margin-top: 1lh; }
.legal.a11y li + li { margin-top: 10px; }
