/* Probity Services marketing site. No framework: plain CSS with a few tokens. */

@font-face {
  font-display: swap;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root {
  --navy: #00123e;
  --navy-2: #0b2463;
  --orange: #f69a00;
  --orange-dark: #d97f00;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --tint: #f8fafc;
  --surface: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 32px -12px rgb(15 23 42 / 0.18);
  --header-height: 68px;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  -webkit-font-smoothing: antialiased;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 750;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin: 0 0 1em;
}

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

.container {
  margin-inline: auto;
  max-width: 1160px;
  padding-inline: clamp(16px, 4vw, 32px);
}

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

.skip-link {
  background: var(--navy);
  border-radius: 8px;
  color: #fff;
  left: 16px;
  padding: 8px 14px;
  position: fixed;
  top: -60px;
  z-index: 100;
}

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

/* ---------- buttons ---------- */

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  padding: 12px 22px;
  text-decoration: none;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}

.button svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.button-primary {
  background: var(--orange);
  box-shadow: 0 6px 16px -6px rgb(246 154 0 / 0.6);
  color: var(--navy);
}

.button-primary:hover {
  background: #ffab1f;
  transform: translateY(-1px);
}

.button-primary:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.button-small {
  font-size: 0.9rem;
  padding: 8px 16px;
}

.button-block {
  width: 100%;
}

/* ---------- header ---------- */

.site-header {
  backdrop-filter: saturate(180%) blur(12px);
  background: rgb(255 255 255 / 0.82);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  transition: border-color 0.2s;
  z-index: 50;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  height: var(--header-height);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 10px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--tint);
  color: var(--ink);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 16px;
}

.link-quiet {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.link-quiet:hover {
  color: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(60% 50% at 85% 10%, rgb(246 154 0 / 0.12), transparent 70%),
    radial-gradient(50% 60% at 0% 0%, rgb(11 36 99 / 0.07), transparent 70%);
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 8vw, 104px);
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  grid-template-columns: 1.05fr 1fr;
}

.eyebrow {
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--orange);
}

.lead {
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 32px 40px;
}

.stats {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding-top: 28px;
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
}

.stats dt {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

.stats dd {
  color: var(--navy);
  font-size: 2rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.hero-media {
  margin: 0;
  position: relative;
}

.hero-media img {
  aspect-ratio: 6 / 4;
  border-radius: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.hero-badge {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  bottom: -22px;
  box-shadow: var(--shadow);
  display: flex;
  font-size: 0.9rem;
  gap: 12px;
  left: -20px;
  line-height: 1.35;
  padding: 12px 16px;
  position: absolute;
}

.hero-badge strong {
  display: block;
}

.badge-icon {
  align-items: center;
  background: #dcfce7;
  border-radius: 10px;
  color: #15803d;
  display: inline-flex;
  flex: none;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.badge-icon svg {
  fill: currentColor;
  height: 20px;
  width: 20px;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-tinted {
  background: var(--tint);
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 48px;
  max-width: 640px;
}

.about-grid,
.safety-grid {
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: 1fr 1.2fr;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.125rem;
}

.about-copy strong {
  color: var(--ink);
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card p {
  color: var(--muted);
  font-size: 0.975rem;
  margin: 0;
}

.card-icon {
  align-items: center;
  background: rgb(246 154 0 / 0.12);
  border-radius: 12px;
  color: var(--orange-dark);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  margin-bottom: 20px;
  width: 44px;
}

.card-icon svg {
  fill: currentColor;
  height: 22px;
  width: 22px;
}

.checklist {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  align-items: flex-start;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  font-weight: 500;
  gap: 12px;
  padding: 14px 18px;
}

.checklist li::before {
  background: #16a34a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E")
    center / 14px no-repeat;
  border-radius: 50%;
  content: '';
  flex: none;
  height: 22px;
  margin-top: 2px;
  width: 22px;
}

/* ---------- contact ---------- */

.section-dark {
  background:
    radial-gradient(50% 70% at 100% 0%, rgb(246 154 0 / 0.16), transparent 70%),
    linear-gradient(160deg, var(--navy-2), var(--navy) 65%);
  color: #fff;
}

.contact-grid {
  align-items: start;
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  grid-template-columns: 1fr 1.15fr;
}

.contact-intro > p:not(.eyebrow) {
  color: #cbd5e1;
  font-size: 1.1rem;
}

.contact-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.contact-list li {
  align-items: flex-start;
  display: flex;
  gap: 14px;
}

.contact-list a {
  font-weight: 600;
  text-decoration: none;
}

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

.contact-list address {
  font-style: normal;
  font-weight: 600;
}

.contact-icon {
  align-items: center;
  background: rgb(255 255 255 / 0.1);
  border-radius: 10px;
  display: inline-flex;
  flex: none;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.contact-icon svg {
  fill: var(--orange);
  height: 18px;
  width: 18px;
}

.contact-list li:has(a) {
  align-items: center;
}

.contact-form {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.5);
  color: var(--ink);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 36px);
}

.field-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field textarea {
  background: var(--surface);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  padding: 11px 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--navy-2);
  box-shadow: 0 0 0 3px rgb(11 36 99 / 0.15);
  outline: none;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: #dc2626;
}

.honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.form-status {
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0;
  padding: 12px 14px;
}

.form-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.form-status.is-error {
  background: #fee2e2;
  color: #991b1b;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  padding-block: 28px;
}

.footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.footer-inner p {
  margin: 0;
}

.brand-footer {
  font-weight: 400;
  line-height: 1.3;
}

.brand-footer > span:last-child {
  display: grid;
}

.brand-footer .brand-mark {
  height: 34px;
  width: 34px;
}

/* ---------- scroll reveal (only when JS runs and motion is welcome) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

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

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-grid,
  .about-grid,
  .safety-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    left: 12px;
  }
}

@media (max-width: 560px) {
  .link-quiet {
    display: none;
  }

  .stats {
    gap: 16px;
  }

  .stats dd {
    font-size: 1.6rem;
  }

  .card-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    flex: 1 1 100%;
  }
}
