/* ==========================================================================
   NEUMAN SOLUTIONS — Design System
   Colours sourced from the brand compass logo.
   ========================================================================== */

:root {
  /* Brand palette (from logo) */
  --navy-900: #0A1B32;   /* deep navy - primary dark bg */
  --navy-800: #10233d;
  --navy-700: #16304f;
  --navy-600: #1F324B;   /* primary navy - headings */
  --steel-500: #5b6472;
  --steel-400: #747C86;  /* secondary grey/silver accent */
  --steel-300: #9aa2ad;
  --steel-200: #c3c9d1;

  --accent-500: #2f6fd6; /* blue primary accent (buttons/links) */
  --accent-600: #245bb0;
  --accent-400: #4d8ae8;
  --accent-050: #eaf1fc;

  --grey-050: #f6f8fa;   /* light grey secondary bg */
  --grey-100: #eef1f5;
  --grey-200: #e2e7ee;
  --grey-300: #cdd4de;
  --white: #ffffff;

  --ink: #16223a;        /* body text on light */
  --ink-soft: #4a5566;
  --ink-invert: #eaeef5; /* body text on dark */
  --ink-invert-soft: #aeb9cb;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  /* Spacing scale */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,27,50,.06), 0 1px 3px rgba(10,27,50,.08);
  --shadow-md: 0 6px 16px rgba(10,27,50,.08), 0 2px 6px rgba(10,27,50,.06);
  --shadow-lg: 0 18px 40px rgba(10,27,50,.14), 0 6px 14px rgba(10,27,50,.08);

  --container: 1200px;
  --transition: 220ms cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ---------------------------- Typography -------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-600);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 700; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

/* ------------------------------ Layout ---------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--dark { background: var(--navy-900); color: var(--ink-invert); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--ink-invert-soft); }
.section--grey { background: var(--grey-050); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--sp-4);
}
.section--dark .eyebrow { color: var(--accent-400); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans);
  font-weight: 600; font-size: .98rem;
  padding: .82rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--accent-400); outline-offset: 2px; }
.btn--primary { background: var(--accent-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy-600); border-color: var(--grey-300); }
.btn--ghost:hover { border-color: var(--navy-600); background: var(--white); transform: translateY(-2px); }
.section--dark .btn--ghost, .hero .btn--ghost, .cta-band .btn--ghost, .page-hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .cta-band .btn--ghost:hover, .page-hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--light { background: #fff; color: var(--navy-700); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--sm { padding: .55rem 1.05rem; font-size: .9rem; }
.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ------------------------------ Cards ----------------------------------- */
.card {
  background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.5vw, 2rem);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--grey-300); }
.card__icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 12px; background: var(--accent-050); color: var(--accent-600);
  margin-bottom: var(--sp-4);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: .5rem; color: var(--navy-600); }
.card p { font-size: .96rem; }

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-600); background: var(--accent-050);
  padding: .3rem .65rem; border-radius: var(--radius-pill);
}
.tag--wl { color: #2c7a4b; background: #e6f5ec; }

/* ------------------------------ Skip link ------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy-900); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* utility */
.text-center { text-align: center; }
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
