/* ==========================================================================
   Spring Valley Consulting — base
   Tokens, reset, typography.

   Palette is navy + steel blue on white. There is no black surface and no
   yellow anywhere in the system; if you find either, it is a leftover.
   ========================================================================== */

:root {
  /* Brand palette */
  --sv-navy: #1a3a5c; /* primary text, headings, footer surface */
  --sv-navy-deep: #12293f; /* hover states, deepest surface */
  --sv-blue: #2e6e96; /* accent: links, buttons, card fill */
  --sv-blue-mid: #3a7ca8; /* card fill top of range, gradients */
  --sv-blue-hover: #245878;
  --sv-blue-pale: #eaf1f6; /* tinted surfaces */
  --sv-blue-wash: #f4f8fb; /* faintest tint */

  /* Neutrals — all tinted toward navy, never pure grey */
  --sv-white: #ffffff;
  --sv-paper: #fbfcfd; /* page background, off-white */
  --sv-surface: #f4f8fb;
  --sv-text: #1a3a5c;
  --sv-text-muted: #4a6480;
  --sv-text-soft: #6b829b;
  --sv-line: #dce5ec;
  --sv-line-strong: #c3d3e0;

  /* On-blue foregrounds */
  --sv-on-blue: #ffffff;
  --sv-on-blue-muted: rgba(255, 255, 255, 0.82);
  --sv-on-blue-line: rgba(255, 255, 255, 0.38);

  /* Type scale — moderate. Deliberately not a display scale: headings top
     out near 2.75rem rather than 5rem, at weight 700 rather than 900. */
  --fs-hero: clamp(1.95rem, 1.45rem + 2.1vw, 3rem);
  --fs-h1: clamp(1.8rem, 1.4rem + 1.7vw, 2.6rem);
  --fs-h2: clamp(1.4rem, 1.2rem + 1vw, 1.95rem);
  --fs-h3: clamp(1.12rem, 1.04rem + 0.38vw, 1.32rem);
  --fs-h4: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --fs-lede: clamp(1.02rem, 0.98rem + 0.22vw, 1.14rem);
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.73rem;

  /* Spacing */
  --space-2xs: 0.375rem;
  --space-xs: 0.75rem;
  --space-sm: 1.25rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4.5rem;
  --section-y: clamp(3rem, 2rem + 4.5vw, 5.5rem);

  /* Layout */
  --container: 1180px;
  --container-narrow: 780px;
  --header-h: 74px;

  /* Effects — squarer corners than before, softer shadows */
  --radius-sm: 3px;
  --radius: 5px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(26, 58, 92, 0.06), 0 2px 6px rgba(26, 58, 92, 0.05);
  --shadow: 0 2px 8px rgba(26, 58, 92, 0.08), 0 10px 30px rgba(26, 58, 92, 0.07);
  --shadow-lg: 0 8px 24px rgba(26, 58, 92, 0.1), 0 24px 56px rgba(26, 58, 92, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --font: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------- reset -- */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--sv-paper);
  color: var(--sv-text);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--sv-line);
}

:focus-visible {
  outline: 2px solid var(--sv-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-blue :focus-visible,
.sv-footer :focus-visible {
  outline-color: var(--sv-white);
}

::selection {
  background: var(--sv-blue);
  color: var(--sv-white);
}

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

/* ----------------------------------------------------------- typography -- */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--sv-navy);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.011em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  line-height: 1.16;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
}
h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.35;
}

p {
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

strong,
b {
  font-weight: 600;
  color: var(--sv-navy);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--sv-text-muted);
  max-width: 64ch;
}

.eyebrow {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sv-blue);
  margin-bottom: var(--space-xs);
}

.on-blue .eyebrow,
.sv-footer .eyebrow {
  color: var(--sv-on-blue-muted);
}

.muted {
  color: var(--sv-text-muted);
}

/* Accent rule used under section headings and card headings. */
.rule-accent {
  display: block;
  width: 46px;
  height: 2px;
  background: var(--sv-blue);
  margin-top: var(--space-sm);
}

.on-blue .rule-accent {
  background: var(--sv-on-blue-line);
}

/* Utilities */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--sv-blue);
  color: var(--sv-white);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
}
