/* Movatic static site — shared stylesheet.
   Measurements mirror the live Wix site (980px content column, 1440 canvas). */
:root {
  --navy: #003057;        /* rgb(0,48,87) headings, nav */
  --navy-2: #182f59;      /* rgb(24,47,89) buttons, footer */
  --ink: #181818;
  --orange: #ff8c62;
  --teal: #00c6c8;
  --white: #fff;
  --col: 980px;
  --font: 'Montserrat', sans-serif;
  /* Wix-licensed fonts are replaced by close open-licence matches (see SITE-NOTES.md):
     Avenir LT -> Nunito Sans, Futura LT -> Jost, Lulo Clean -> Montserrat 800 wide-tracked */
  /* One family site-wide (owner's QA brief: one clear hierarchy on every page). The old
     Avenir/Futura/Lulo stand-ins now all resolve to Montserrat. */
  --font-light: var(--font);
  --f-avenir: var(--font);
  --f-futura: var(--font);
  --f-lulo: var(--font);

  /* Type scale: h1 / h2 / h3 / lead / body / small (desktop; tablet + phone below) */
  --fs-h1: 34px;  --lh-h1: 42px;
  --fs-h2: 26px;  --lh-h2: 34px;
  --fs-h3: 19px;  --lh-h3: 26px;
  --fs-lead: 18px; --lh-lead: 28px;
  --fs-body: 16px; --lh-body: 26px;
  --fs-small: 14px; --lh-small: 21px;

  /* Spacing scale (8px grid). Use only these for margins, paddings and gaps. */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --section: 80px;     /* vertical padding of a page section */
  --gutter: 20px;      /* side margin of the content column */
}
@media (max-width: 1023px) {
  :root { --fs-h1: 30px; --lh-h1: 38px; --fs-h2: 24px; --lh-h2: 32px; --fs-h3: 18px; --lh-h3: 25px;
          --fs-lead: 17px; --lh-lead: 27px; --section: 64px; --gutter: 32px; }
}
@media (max-width: 699px) {
  :root { --fs-h1: 24px; --lh-h1: 30px; --fs-h2: 20px; --lh-h2: 27px; --fs-h3: 16px; --lh-h3: 22px;
          --fs-lead: 15px; --lh-lead: 23px; --fs-body: 15px; --lh-body: 23px; --fs-small: 13px; --lh-small: 19px;
          --section: 48px; --gutter: 16px; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink); background: #fff; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
/* the hierarchy: every page uses these, page CSS only sets colour / alignment / spacing */
h1, .t-h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; }
h2, .t-h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 700; }
h3, .t-h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; }
h4, h5, h6 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 700; }
.t-lead { font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 400; }
.t-body { font-size: var(--fs-body); line-height: var(--lh-body); }
.t-small { font-size: var(--fs-small); line-height: var(--lh-small); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
main a:not(.btn):not(.pbtn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a img { transition: opacity .35s var(--ease, ease), transform .35s var(--ease, ease); }
a:hover > img, a:focus-visible > img { opacity: .82; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
main { display: block; outline: none; overflow-x: clip; }
.wrap { width: min(var(--col), 100% - 2 * var(--gutter)); margin: 0 auto; position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-width: 200px; max-width: 100%; height: 48px; padding: 0 var(--s5); border: 1px solid var(--navy-2); border-radius: 7px; font-size: 16px; font-weight: 500; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s; }
.btn-fill { background: var(--navy-2); color: #fff; }
.btn-fill:hover { background: #fff; color: var(--navy-2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy-2); }
.btn-sm { min-width: 0; height: 32px; font-size: 12px; padding: 0 var(--s4); }
.btn small, .btn em { font-size: 12px; font-style: italic; font-weight: 400; }

/* ---------- header ---------- */
.site-header { background: #fff; height: 82px; position: relative; z-index: 20; }
.hdr-inner { width: min(1180px, 100% - 2 * var(--gutter)); margin: 0 auto; height: 100%; display: flex; align-items: center; }
.hdr-logo { display: block; flex: none; }
.hdr-logo img { width: 199px; height: 58px; object-fit: cover; }
.hdr-menu { display: contents; }
.hdr-nav { display: flex; gap: var(--s6); margin-left: var(--s7); }
.hdr-nav a { color: var(--navy); font-size: 16px; padding: var(--s1) 0; }
.hdr-nav a:hover, .hdr-admin:hover { color: #00999b; text-decoration: underline; text-underline-offset: 4px; }
.hdr-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s3); }
.hdr-admin { color: var(--navy); font-size: 12px; padding: var(--s1) 0; }
.hdr-actions .btn-outline { width: 128px; }
.hdr-actions .btn-fill { width: 138px; }
.hdr-toggle { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-2); color: #fff; overflow: hidden; }
.ftr-inner { width: min(var(--col), 100% - 2 * var(--gutter)); margin: 0 auto; position: relative; min-height: 382px;
  display: grid; grid-template-columns: 250px 247px 231px 236px; column-gap: 0; padding-top: var(--s8); align-content: start; }
.ftr-title { font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 400; margin-bottom: var(--s4); }
.ftr-col a { display: block; font-size: var(--fs-body); line-height: 29px; }
.ftr-col a:hover { text-decoration: underline; }
.ftr-btns { display: flex; flex-direction: column; gap: var(--s5); }
.ftr-btns .btn { width: 236px; }
.ftr-card { grid-column: 1 / 3; font-size: var(--fs-small); line-height: var(--lh-small); max-width: 420px; margin-top: var(--s9); padding-bottom: var(--s7); opacity: .9; }
.ftr-lines { position: absolute; right: -200px; bottom: 50px; width: 636px; height: 100px; pointer-events: none; }
.ftr-lines img { position: absolute; }
.ftr-lines .l38 { left: 0; top: 25px; width: 496px; }
.ftr-lines .l37 { left: 212px; top: 0; width: 384px; }
.ftr-lines .l36 { left: 364px; top: 49px; width: 267px; }

/* ---------- motion (mirrors Wix FloatIn / FadeIn, softened) ----------
   One easing everywhere: a gentle ease-out, so things glide in and settle instead of snapping. */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }
.btn, .pbtn { transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
a { transition: color .25s var(--ease); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* Entrance: start a little lower/aside and transparent, glide into place once scrolled into view.
     The transition is declared on the base state too, so nothing jumps if the class changes. */
  .js [data-anim] { opacity: 0; transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); will-change: opacity, transform; }
  .js [data-anim="float-left"] { transform: translate3d(-32px, 0, 0); }
  .js [data-anim="float-right"] { transform: translate3d(32px, 0, 0); }
  .js [data-anim="float-up"] { transform: translate3d(0, 24px, 0); }
  .js [data-anim].in { opacity: 1; transform: none; }
  /* Images that load after the page is shown fade in instead of popping in. */
  .js img.img-fade { opacity: 0; transition: opacity .6s var(--ease); }
  .js img.img-fade.loaded { opacity: 1; }
  /* Page-to-page navigation: a short cross-fade instead of a white flash (Chrome, Edge, Safari 18+). */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; animation-timing-function: ease; }
}

/* ---------- tablet + phone: header links move into a menu (button top right) ---------- */
@media (max-width: 1023px) {
  .hdr-inner { justify-content: space-between; }
  .hdr-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: calc(-1 * var(--s2));
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--navy); border-radius: 6px; transition: background-color .25s var(--ease); }
  .hdr-toggle:hover { background: #eef3f8; }
  .hdr-toggle svg { display: block; }
  .hdr-toggle .i-close { display: none; }
  .hdr-toggle[aria-expanded="true"] .i-open { display: none; }
  .hdr-toggle[aria-expanded="true"] .i-close { display: block; }
  .hdr-menu { display: flex; flex-direction: column; align-items: stretch; gap: var(--s2);
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: var(--s4) var(--gutter) var(--s5);
    box-shadow: 0 12px 24px rgba(0, 48, 87, .12); border-top: 1px solid #e6ebf0;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
  .hdr-menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
  .hdr-nav, .hdr-actions { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .hdr-nav a, .hdr-admin { display: block; font-size: 16px; padding: var(--s3) 0; border-bottom: 1px solid #eef1f4; }
  .hdr-actions { gap: var(--s3); }
  .hdr-actions .btn-outline, .hdr-actions .btn-fill { width: 100%; height: 44px; font-size: 15px; margin-top: var(--s1); }
  .ftr-inner { grid-template-columns: repeat(3, 1fr); row-gap: var(--s6); }
  .ftr-btns { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: var(--s4); }
  .ftr-card { grid-column: 1 / -1; margin-top: 0; }
}
@media (max-width: 699px) {
  .site-header { height: 69px; }
  .hdr-logo img { width: 140px; height: 41px; }
  .btn { min-width: 200px; height: 44px; font-size: 15px; }
  .ftr-inner { grid-template-columns: 1fr; padding: var(--s7) 0 0; row-gap: 0; min-height: 0; }
  .ftr-col { margin-bottom: var(--s6); }
  .ftr-title { margin-bottom: var(--s2); }
  .ftr-btns { flex-direction: column; align-items: center; gap: var(--s3); }
  .ftr-btns .btn { width: 248px; }
  .ftr-card { margin: var(--s6) 0 0; padding: 0 0 128px; }
  .ftr-lines { right: 0; left: auto; bottom: 30px; width: 300px; height: 80px; }
  .ftr-lines .l38 { width: 252px; top: 54px; left: 0; }
  .ftr-lines .l37 { width: 195px; top: 41px; left: 105px; }
  .ftr-lines .l36 { width: 190px; top: 0; left: 55px; }
}

/* ---------- shared helpers for one-off pages ---------- */
.lulo { font-family: var(--f-lulo); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.avenir { font-family: var(--f-avenir); }
.futura { font-family: var(--f-futura); font-weight: 300; }
