/* Resolute Vector Contracting, LLC site styles */

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/source-serif-pro-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/source-serif-pro-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/source-serif-pro-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif Pro";
  src: url("../fonts/source-serif-pro-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #00308f;
  --blue-dark: #00246c;
  --black: #121417;
  --silver: #5c6168;
  --silver-line: #c5cad0;
  --band: #f4f6f8;
  --paper: #ffffff;
  --max: 1080px;
  --measure: 38.5rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--paper);
  font-family: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--blue);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue-dark);
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--paper);
  color: var(--blue);
  padding: 0.45rem 0.8rem;
  z-index: 20;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2.75rem));
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  color: #fff;
  background: var(--blue);
  border: 1px solid var(--blue);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  text-decoration: none;
}

.btn-outline {
  color: var(--blue);
  background: transparent;
  border-color: var(--blue);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

/* Header */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--silver-line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 0.85rem 0;
}

.wordmark {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--blue-dark);
  text-decoration: none;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) 0 var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 72px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--blue);
  margin: 0;
  letter-spacing: 0.01em;
}

.brand-tag {
  margin: 0.3rem 0 0;
  color: var(--silver);
  font-size: 0.84rem;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.site-nav {
  border-top: 1px solid var(--silver-line);
}

.site-header--home .site-nav {
  border-top: 0;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0.45rem 0 0.35rem;
}

.site-header--home .site-nav {
  flex: 1;
}

.site-header--home .site-nav ul {
  padding: 0;
  justify-content: center;
}

.site-nav a:not(.btn) {
  display: inline-block;
  text-decoration: none;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 0.8rem;
}

.site-nav a:not(.btn):hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  color: var(--blue-dark);
}

.site-nav a[aria-current="page"]:not(.btn) {
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* Credentials */

.credentials {
  background: var(--band);
  border-bottom: 1px solid var(--silver-line);
  padding: 1.15rem 0;
}

.credentials dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2) var(--space-3);
  margin: 0;
}

.credentials div {
  min-width: 0;
  padding-left: var(--space-3);
  border-left: 1px solid var(--silver-line);
}

.credentials div:first-child {
  padding-left: 0;
  border-left: 0;
}

.credentials dt {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  line-height: 1.3;
}

.credentials dd {
  margin: 0.25rem 0 0;
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--blue);
  font-size: 1rem;
  line-height: 1.35;
  word-break: break-word;
}

/* Hero (home) */

.hero {
  text-align: center;
  padding: var(--space-6) 0 var(--space-5);
}

.hero .seal {
  width: 132px;
  height: auto;
  display: block;
  margin: 0 auto var(--space-3);
}

.hero h1 {
  margin: 0 0 var(--space-2);
}

.hero .lead-tag {
  margin: 0 auto var(--space-3);
  max-width: 32rem;
  color: var(--silver);
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.lede {
  margin: 0 auto var(--space-2);
  max-width: 34rem;
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--black);
}

.hero-meta {
  margin: 0 auto var(--space-3);
  max-width: 34rem;
  color: var(--silver);
}

.hero-meta p {
  margin: 0.15rem 0;
}

.pullquote {
  margin: 0 auto var(--space-4);
  max-width: 28rem;
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--blue);
  line-height: 1.45;
}

/* Page content */

main {
  padding: 0 0 var(--space-6);
}

body:not(.home) main {
  padding-top: var(--space-5);
}

h1,
h2,
h3 {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  color: var(--blue);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.15rem;
  font-weight: 700;
}

h2 {
  font-size: 1.45rem;
  margin: 0 0 0.85rem;
}

h3 {
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.section {
  margin-bottom: var(--space-5);
}

.section-head {
  margin-bottom: var(--space-3);
}

.section-head h2 {
  margin: 0;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 1px;
  background: var(--silver-line);
  margin-top: 0.7rem;
}

.page-intro {
  margin-bottom: var(--space-4);
}

.page-intro h1 {
  margin: 0 0 var(--space-2);
}

/* Service cards */

.service-list,
.service-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  align-items: stretch;
}

.service-list {
  grid-template-columns: 1fr;
  max-width: var(--measure);
  gap: var(--space-3);
}

.service-card,
.service-links a {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--silver-line);
  padding: 1.4rem 1.35rem 1.45rem;
  background: var(--paper);
  min-height: 100%;
}

.service-links a {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-links a:hover,
.service-links a:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  text-decoration: none;
  color: inherit;
}

.service-card .code,
.service-links .code {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.service-card h2,
.service-card h3,
.service-links h3 {
  margin: 0 0 0.55rem;
}

.service-links h3 {
  font-size: 1.08rem;
}

.service-card p {
  margin: 0;
}

.note {
  margin-top: var(--space-3);
  color: var(--silver);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
  max-width: var(--measure);
}

.contact-item dt {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.contact-item dd {
  margin: 0;
  font-size: 1.05rem;
}

.contact-item a {
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

a[href^="tel:"] {
  white-space: nowrap;
}

/* Policy pages */

.policy h2 {
  margin-top: var(--space-4);
  font-size: 1.2rem;
}

.policy h2:first-of-type {
  margin-top: var(--space-3);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--silver-line);
  padding: var(--space-4) 0 var(--space-5);
  background: var(--paper);
  color: var(--black);
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.6;
}

.footer-name {
  font-family: "Source Serif Pro", Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 0 0 0.2rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-ids {
  margin-top: 0.7rem !important;
  color: var(--silver);
  font-size: 0.875rem;
}

.footer-nav {
  margin: var(--space-2) 0 0 !important;
  font-size: 0.875rem;
}

.footer-nav a {
  color: var(--blue);
  margin: 0 0.45rem;
}

/* Responsive */

@media (max-width: 800px) {
  html {
    font-size: 17px;
  }

  .credentials dl,
  .service-links,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .credentials div {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 1.7rem));
  }

  .header-bar,
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
  }

  .brand {
    flex-direction: column;
    gap: 0.65rem;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero {
    padding: var(--space-5) 0 var(--space-4);
  }

  .hero .seal {
    width: 108px;
  }

  h1 {
    font-size: 1.75rem;
  }

  body:not(.home) main {
    padding-top: var(--space-4);
  }

  main {
    padding-bottom: var(--space-5);
  }

  .credentials dl,
  .service-links,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav ul {
    justify-content: center;
  }

  .site-nav a:not(.btn) {
    padding: 0.5rem 0.55rem;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
  }

  .nav-extra {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Print: black text on white, no color fills */

@media print {
  :root {
    --blue: #000;
    --blue-dark: #000;
    --black: #000;
    --silver: #000;
    --silver-line: #000;
    --band: #fff;
    --paper: #fff;
  }

  html {
    font-size: 12pt;
  }

  body {
    color: #000;
    background: #fff;
  }

  body::before,
  .section-head h2::after {
    background: #000;
  }

  .site-header,
  .credentials,
  .site-footer,
  .service-card,
  .service-links a,
  .btn,
  .btn-outline {
    background: #fff !important;
    border-color: #000;
    color: #000 !important;
    box-shadow: none;
  }

  .site-nav {
    display: none;
  }

  .header-top .btn,
  .header-bar .btn,
  .hero .btn {
    display: none;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .site-footer a[href^="tel"]::after,
  .site-footer a[href^="mailto"]::after,
  .contact-item a[href^="tel"]::after,
  .contact-item a[href^="mailto"]::after {
    content: none;
  }

  .hero {
    padding: 1.2rem 0 1.4rem;
  }

  main {
    padding: 1.2rem 0 1.5rem;
  }

  .section,
  .service-card,
  .hero {
    break-inside: avoid;
  }

  .footer-nav {
    display: none;
  }

  @page {
    margin: 0.6in;
  }
}

.after-credentials {
  padding-top: var(--space-5);
}
