/* ==========================================================================
   Nova Magna Group — base styles
   Design tokens, reset and a few global helpers used by every page.
   ========================================================================== */

:root {
  /* Brand */
  --gold-900: #705d32;
  --gold-700: #8a6a2f;
  --gold-500: #bb8942;
  --gold-400: #d8aa5f;
  --gold-200: #f0c880;
  --gold-gradient: linear-gradient(135deg, #705d32 0%, #bb8942 25%, #f0c880 50%, #d8aa5f 70%, #8a6a2f 100%);

  /* Neutrals */
  --black: #000;
  --ink: #0b0b0c;
  --ink-2: #16161a;
  --text: #1a1a1d;
  --muted: #6b6760;
  --stone: #b9b2a4;
  --sand: #e9e4da;
  --cream: #faf7f0;
  --line: #e8e1d3;
  --line-strong: #d9cdb4;
  --error: #a5342a;

  /* Type */
  --font-display: Cinzel, serif;
  --font-label: Montserrat, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--gold-400);
  text-decoration: none;
}
a:hover {
  color: var(--gold-200);
}

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Helpers ------------------------------------------------------ */

/* Wrapper that does not affect layout (used for show/hide groups in forms/jobs). */
.contents {
  display: contents;
}

/* Photo that fills its positioned frame. */
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 4 → 2 → 1 column grid (Home sectors / standards). */
.cols-4 {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 600px) {
  .cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Sticky side panel on wide screens only (Employers / Candidates forms). */
@media (min-width: 1000px) {
  .sticky-lg {
    position: sticky;
  }
}

/* Design-system document page */
body.doc {
  background: var(--sand);
}
