/*
  move (twmove.co.uk): base styles, the move design system and site chrome.
  Brand colours come from tokens.css; the chrome reproduces the live grey/teal
  look cleanly (no Bootstrap, no ACF, no tracking). px sizes are kept where they
  define the brand's exact spacing; all colours are tokens.
  Developer: Shaun Keane
*/

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font-sans); font-size: var(--fs-200); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--mv-teal-accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); z-index: 1000; background: var(--mv-slate); color: var(--mv-white); padding: var(--space-2xs) var(--space-sm); border-radius: var(--radius-sm); }

/* WPBakery wraps raw-HTML page bodies with a default bottom margin; zero it. */
.wpb_raw_code.wpb_content_element { margin-bottom: 0; }

/* Shared content width: the chrome's .container matches the pages' .mh .wrapc
   (same max-width and gutter) so header, footer and page content all line up. */
.container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--container-pad); }

/* ---------- move design system (.mh) ---------- */
/* Alias the short var names the page blocks use to the brand tokens, scoped to
   .mh, so a page's components resolve correctly once its inline <style> (which
   defined these) is removed. Pages still carrying inline styles are unaffected. */
.mh {
	--purple: var(--mv-purple); --purple-dark: var(--mv-purple-dark);
	--teal: var(--mv-teal); --teal-dark: var(--mv-teal-dark);
	--slate: var(--mv-slate); --ink: var(--mv-ink);
	--mist: var(--mv-mist); --paper: var(--mv-paper); --line: var(--mv-line);
	color: var(--color-text); line-height: var(--lh-body); overflow-x: clip;
}
.mh, .mh * { box-sizing: border-box; }
.mh .wrapc { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.mh h1, .mh h2, .mh h3, .mh h4 { font-weight: var(--fw-black); letter-spacing: -0.02em; line-height: var(--lh-tight); margin: 0; color: var(--color-text); }
.mh p { margin: 0; }
.mh a { color: var(--color-accent-text); }
.mh .section { padding: clamp(56px, 7vw, 84px) 0; }
.mh .section.mist { background: var(--color-bg-alt); }
.mh .eyebrow { display: inline-block; background: var(--mv-teal); color: var(--color-text); font-weight: var(--fw-black); font-size: var(--fs-100); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; }
.mh .btn { display: inline-block; font-weight: var(--fw-black); font-size: 15px; text-decoration: none; padding: 15px 28px; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; transition: var(--speed); text-align: center; }
.mh .btn-purple { background: var(--mv-purple-dark); color: var(--mv-white); }
.mh .btn-purple:hover { background: var(--mv-purple); text-decoration: none; }
.mh .btn-line { background: transparent; color: var(--mv-purple-dark); border-color: var(--mv-purple-dark); }
.mh .btn-line:hover { background: var(--mv-purple-dark); color: var(--mv-white); text-decoration: none; }

/* Main display headings (hero + section headlines) in caps, matching the move
   brand. Eyebrows, sub-text and smaller card titles (h3/h4) keep their own case. */
.mh h1, .mh h2 { text-transform: uppercase; }

/* ---------- Header: top bar (grey) ---------- */
.site-header { position: relative; }
.header-top { background: var(--mv-slate); }
.header-top__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: nowrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; }
.brand img { max-height: 44px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.header-link { color: var(--mv-white); text-decoration: none; font-size: 13px; font-weight: var(--fw-medium); white-space: nowrap; }
.header-link:hover { color: var(--mv-white); text-decoration: underline; }
.btn-login, .btn-join { font-size: 12.5px; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; border-radius: 8px; text-decoration: none; white-space: nowrap; display: inline-block; transition: var(--speed); }
.btn-login { background: transparent; border: 1.5px solid var(--mv-teal-accent); color: var(--mv-white); padding: 7.5px 18.5px; }
.btn-login:hover { background: rgba(255, 255, 255, 0.08); color: var(--mv-white); text-decoration: none; }
.btn-join { background: var(--mv-purple); border: none; color: var(--mv-white); padding: 9px 20px; }
.btn-join:hover { background: var(--mv-purple-dark); color: var(--mv-white); text-decoration: none; }

/* ---------- Header: nav bar (grey, sticky) ---------- */
.header-nav { background: var(--mv-slate); border-top: 1px solid rgba(255, 255, 255, 0.14); position: sticky; top: 0; z-index: 999; }
.header-nav__inner { display: flex; align-items: center; }
.nav { list-style: none; display: flex; flex-direction: row; align-items: center; gap: 2px; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__item > a { color: var(--mv-white); font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; padding: 14px 14px; display: flex; align-items: center; gap: 6px; border-bottom: 3px solid transparent; transition: var(--speed); text-decoration: none; }
.nav__item > a:hover, .nav__item.is-current > a { color: var(--mv-white); border-bottom-color: var(--mv-teal-accent); text-decoration: none; }
.nav__item--sub > a::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; margin-top: -3px; border-right: 2px solid var(--mv-teal-accent); border-bottom: 2px solid var(--mv-teal-accent); transform: rotate(45deg); }
.nav__sub { position: absolute; top: 100%; left: 0; background: var(--mv-slate); border-top: 2px solid var(--mv-teal-accent); border-radius: 0 0 10px 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); padding: 6px 0; margin: 0; min-width: 220px; list-style: none; display: none; z-index: 10; }
.nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub { display: block; }
.nav__sub a { display: block; padding: 11px 20px; color: var(--mv-white); font-size: 13px; font-weight: var(--fw-medium); text-decoration: none; text-transform: none; letter-spacing: 0; transition: var(--speed); white-space: nowrap; }
.nav__sub a:hover { background: rgba(255, 255, 255, 0.08); color: var(--mv-white); text-decoration: none; }

/* ---------- Hamburger ---------- */
.nav-toggle { display: none; border: none; padding: 12px 0; background: none; cursor: pointer; margin-left: auto; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: var(--mv-teal-accent); margin: 5px 0; transition: var(--speed); }

/* ---------- Footer (grey, accordion) ---------- */
.site-footer { background: var(--mv-slate); color: var(--mv-white); padding: 40px 0 20px; }
.site-footer a { color: var(--mv-white); text-decoration: none; }
.site-footer a:hover { color: var(--mv-white); text-decoration: underline; }
.footer-top { display: flex; gap: 48px; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-brand { flex: 0 0 auto; }
.footer-logo { display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 42px; width: auto; display: block; }
.footer-nav { flex: 1 1 auto; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-group { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-toggle { width: 100%; background: none; border: none; cursor: pointer; padding: 15px 2px; display: flex; align-items: center; justify-content: space-between; color: var(--mv-white); font: inherit; font-size: 13px; font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; }
.footer-icon { position: relative; width: 16px; height: 16px; flex: 0 0 auto; }
.footer-icon::before, .footer-icon::after { content: ""; position: absolute; background: var(--mv-teal-accent); transition: opacity 0.2s, transform 0.2s; }
.footer-icon::before { top: 50%; left: 0; width: 16px; height: 2px; transform: translateY(-50%); }
.footer-icon::after { left: 50%; top: 0; width: 2px; height: 16px; transform: translateX(-50%); }
.footer-group.is-open .footer-icon::after { opacity: 0; }
.footer-panel { overflow: hidden; max-height: 0; transition: max-height 0.28s ease; }
.footer-group.is-open .footer-panel { max-height: 800px; }
.footer-panel ul { list-style: none; margin: 0; padding: 2px 2px 16px; }
.footer-panel li { margin: 0 0 9px; }
.footer-panel a { font-size: 13.5px; line-height: 1.35; }
.footer-panel a:hover { text-decoration: underline; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; }
.footer-copy p { margin: 0; color: rgba(255, 255, 255, 0.7); font-weight: var(--fw-regular); }
.footer-copy .copy-main { font-size: 12.5px; }
.footer-copy .copy-sub { font-size: 11px; }
.footer-parent img { height: 50px; width: auto; opacity: 0.9; }

/* ---------- Mobile ---------- */
@media (max-width: 991px) {
	.header-actions .header-link { display: none; }
	.header-actions { gap: 12px; }
	.nav-toggle { display: block; }
	.header-nav__inner { justify-content: flex-end; position: relative; }
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--mv-slate); border-top: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); z-index: 90; }
	.nav.is-open { display: flex; }
	.nav__item { width: 100%; position: static; }
	.nav__item > a { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); justify-content: space-between; }
	.nav__item--sub > a::after { margin-left: auto; }
	.nav__sub { position: static; display: block; background: transparent; border-top: none; border-radius: 0; box-shadow: none; padding: 0; min-width: 0; }
	.nav__sub a { padding: 12px 18px 12px 34px; }
	.footer-top { flex-direction: column; gap: 24px; align-items: center; }
	.footer-brand { display: flex; flex-direction: column; align-items: center; }
	.footer-nav { width: 100%; }
	.footer-bottom { flex-direction: column-reverse; text-align: center; gap: 16px; align-items: center; }
	.footer-parent img { margin: 0 auto; }
}

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