/* NexaMotion site-wide styles: fonts, design tokens, type, buttons, header and footer.
   Page-specific styles live in their own files (landing.css, legal.css). */

/* ---------- Fonts (self-hosted, SIL OFL; see fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.c5e9a9901938.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin-ext.52c63824a8f6.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-mono-500-latin.74f5c996fd97.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-mono-500-latin-ext.7d84af1b144c.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  /* Palette (HANDOFF.md) */
  --nm-linen: #F3EFE6;
  --nm-card: #FBFAF6;
  --nm-sand: #E8E2D4;
  --nm-line: #DDD6C7;
  --nm-forest: #1E3A2B;
  --nm-forest-900: #13201A;
  --nm-sage: #6E7E5F;
  --nm-sage-700: #4B5A47;
  --nm-sage-300: #A9B79C;
  --nm-mist: #CDD3C4;

  /* One-off shades used by the design */
  --nm-hero-ground: #2A3A33;
  --nm-on-photo-label: #E3E8DA;
  --nm-on-photo-text: #E9E6DC;
  --nm-on-dark-text: #E3E1D8;
  --nm-render-ground: #E4E4E1;
  --nm-sand-warm: #E9E4D8;
  --nm-placeholder-edge: #B9B09C;
  --nm-phone-body: #0B120E;
  --nm-phone-edge: #2E3D35;
  --nm-hairline-dark: rgba(243, 239, 230, 0.16);
  --nm-hairline-footer: rgba(243, 239, 230, 0.12);
  --nm-error-on-dark: #F2B8A0;

  /* Type */
  --nm-font-sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nm-font-mono: "Geist Mono", ui-monospace, monospace;

  /* Layout */
  --nm-max-width: 1280px;
  --nm-gutter: clamp(16px, 4vw, 32px);
  --nm-section-pad: clamp(80px, 10vw, 128px);
  --nm-radius: 8px;
  --nm-radius-input: 4px;
  --nm-radius-pill: 999px;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nm-linen);
  color: var(--nm-forest-900);
  font-family: var(--nm-font-sans);
  -webkit-font-smoothing: antialiased;
}
/* Zero specificity so component link colours always win, on hover too. */
:where(a) { color: var(--nm-forest); }
:where(a:hover) { color: var(--nm-forest-900); }
[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 2px solid var(--nm-forest); outline-offset: 2px; }
.nm-dark :focus-visible { outline-color: var(--nm-linen); }
.nm-dark input::placeholder { color: rgba(243, 239, 230, 0.62); }
.nm-dark select option { color: var(--nm-forest-900); background: var(--nm-linen); }
[hidden] { display: none !important; }

.nm-page {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--nm-linen);
  color: var(--nm-forest-900);
}
.nm-main { min-width: 0; }
.nm-container { max-width: var(--nm-max-width); margin: 0 auto; }
.nm-section { padding: var(--nm-section-pad) var(--nm-gutter); background: var(--nm-linen); }
.nm-section--dark { background: var(--nm-forest-900); color: var(--nm-linen); }

/* ---------- Type ---------- */

.nm-eyebrow,
.nm-label {
  margin: 0;
  font-family: var(--nm-font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nm-sage-700);
}
.nm-eyebrow { font-size: 12px; line-height: 16px; }
.nm-label { font-size: 11px; line-height: 16px; }
.nm-dark .nm-eyebrow,
.nm-dark .nm-label { color: var(--nm-sage-300); }

.nm-h2 {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--nm-forest);
}
.nm-dark .nm-h2 { color: var(--nm-linen); }

.nm-h3 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; color: var(--nm-forest); }
.nm-h3--sm { font-size: 20px; line-height: 28px; }
.nm-dark .nm-h3 { color: var(--nm-linen); }

.nm-lede { margin: 0; font-size: 18px; line-height: 28px; color: var(--nm-sage-700); }
.nm-dark .nm-lede { color: var(--nm-mist); }

.nm-body { margin: 0; font-size: 16px; line-height: 24px; color: var(--nm-forest-900); }
.nm-dark .nm-body { color: var(--nm-mist); }

.nm-intro { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }

/* ---------- Buttons ---------- */

.nm-btn {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: var(--nm-radius-pill);
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
.nm-btn--forest {
  height: 44px;
  padding: 0 22px;
  background: var(--nm-forest);
  color: var(--nm-linen);
  font-size: 15px;
  font-weight: 500;
}
.nm-btn--linen {
  height: 52px;
  padding: 0 28px;
  background: var(--nm-linen);
  color: var(--nm-forest-900);
  font-size: 16px;
  font-weight: 600;
}

/* ---------- Header ---------- */

.nm-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 230, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nm-line);
  padding: 12px var(--nm-gutter);
}
.nm-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.nm-header__home { display: flex; align-items: center; text-decoration: none; }
.nm-header__logo { height: 44px; width: auto; display: block; }
.nm-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 32px;
  margin-left: auto;
}
.nm-nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--nm-forest-900);
  text-decoration: none;
  padding: 12px 0;
}

/* ---------- Footer ---------- */

.nm-footer {
  padding: 64px var(--nm-gutter) 40px;
  background: var(--nm-forest-900);
  color: var(--nm-linen);
  border-top: 1px solid var(--nm-hairline-footer);
}
.nm-footer__inner { display: flex; flex-direction: column; gap: 40px; }
.nm-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.nm-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.nm-footer__logo { height: 48px; width: auto; display: block; align-self: flex-start; }
.nm-footer__navs { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.nm-footer__nav { display: flex; flex-direction: column; gap: 4px; }
.nm-footer__nav .nm-eyebrow { margin-bottom: 8px; }
.nm-footer__link { font-size: 15px; line-height: 32px; color: var(--nm-linen); text-decoration: none; }
.nm-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--nm-hairline-footer);
}
.nm-footer__copyright { margin: 0; font-size: 14px; line-height: 20px; color: var(--nm-mist); }
.nm-footer__notice { margin: 0; max-width: 880px; font-size: 12px; line-height: 18px; color: var(--nm-sage-300); }
