/* www.sergeantservices.com. Tokens follow the Sergeant Services brand guide v1.0. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --brand-navy: #032750;
  --brand-blue: #067DFC;
  --brand-teal: #08B9BA;
  --brand-orange: #FD7904;
  --wordmark-navy: #061F3E;
  --ice-blue: #EAF5FD;
  --action-blue: #075BC1;
  --text: #122942;
  --muted: #536579;
  --line: #DCE7EF;
  --page: #F6F9FC;
  --white: #FFFFFF;
  --accent-gradient: linear-gradient(90deg, #0475EB 0%, #00B8BD 50%, #FF9019 100%);
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

/* scroll-padding keeps anchor targets clear of the floating header */
html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 1.0625rem/1.65 var(--font);
}

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

a { color: var(--action-blue); text-underline-offset: 0.15em; }
a:hover { color: var(--wordmark-navy); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--brand-teal);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -999rem; top: 0;
  background: var(--white); color: var(--wordmark-navy); padding: 0.5rem 1rem;
}
.skip:focus { left: 0; z-index: 10; }

h1, h2, h3, .point dt {
  color: var(--wordmark-navy);
  font-optical-sizing: auto;
  line-height: 1.15; margin: 0; text-wrap: balance;
}
p { margin: 0 0 1rem; }

/* Header: the horizontal wordmark on white, with the brand gradient as a hairline */
.site-header {
  background: var(--white); position: sticky; top: 0; z-index: 20;
  box-shadow: 0 6px 18px rgb(9 42 75 / 8%);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--accent-gradient);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; flex-wrap: wrap;
  padding-top: 1rem; padding-bottom: 1rem;
}
.brand { display: block; line-height: 0; }
.brand img { width: 215px; }
.site-header nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--wordmark-navy); text-decoration: none; font-weight: 600; font-size: 0.975rem;
  padding: 0.25rem 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: var(--brand-blue); }

/* Hero */
.hero { padding: 4.5rem 0 4.5rem; background: var(--white); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: 3.5rem; align-items: center;
}
.hero-emblem { display: block; width: 100%; }
.eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: #41637B; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; max-width: 19ch; }
.lede { font-size: 1.1875rem; max-width: 42rem; margin: 1.5rem 0 2rem; }
.actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin: 0; }

.button {
  display: inline-block; background: var(--action-blue); color: var(--white);
  font-weight: 650; text-decoration: none;
  padding: 0.8rem 1.4rem; border-radius: 7px; border: 2px solid var(--action-blue);
}
.button:hover { background: var(--brand-navy); border-color: var(--brand-navy); color: var(--white); }
.button.secondary { background: transparent; color: var(--action-blue); }
.button.secondary:hover { background: var(--action-blue); border-color: var(--action-blue); color: var(--white); }
.text-link { font-weight: 650; }

/* Sections */
section { padding: 4.25rem 0; }
.band { background: var(--ice-blue); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 1rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 750; letter-spacing: -0.03em; }
/* The short gradient rule from under the wordmark */
.section-head h2::after {
  content: ""; display: block; width: 4.5rem; height: 4px; border-radius: 4px;
  background: var(--accent-gradient); margin-top: 0.8rem;
}
.section-intro { color: var(--muted); max-width: 44rem; margin-bottom: 2.25rem; }

/* Consulting points */
.points { margin: 0; border-top: 1px solid #C9DCEC; }
.point {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  gap: 0.5rem 2.5rem; padding: 1.5rem 0; border-bottom: 1px solid #C9DCEC;
}
.point dt { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.point dd { margin: 0; max-width: 40rem; }

/* Apps */
.app {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  gap: 2.5rem; align-items: start;
  padding: 2.25rem 0; border-top: 1px solid var(--line);
}
.app-plain { grid-template-columns: minmax(0, 1fr); }
.app-text { max-width: 40rem; }
.app h3 { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.025em; display: flex; align-items: center; gap: 0.75rem; }
.app-mark { width: 44px; height: auto; flex: none; }
.app-tag { color: #41637B; font-weight: 650; margin: 0.5rem 0 1rem; }
.app ul { margin: 0 0 1.25rem; padding-left: 1.2rem; }
.app li { margin-bottom: 0.4rem; }
.app li::marker { color: var(--brand-teal); }
.app-note { font-size: 0.95rem; color: var(--muted); }
.app-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.app-shots img {
  display: block; width: 100%;
  border: 1px solid var(--line); border-radius: 15px;
  box-shadow: 0 12px 30px rgb(9 42 75 / 12%);
}
.app-shots img:nth-child(2) { margin-top: 2rem; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 3rem; }
.facts {
  background: var(--white); border: 1px solid var(--line); border-radius: 15px;
  border-top: 4px solid var(--brand-orange);
  padding: 1.25rem 1.4rem; align-self: start;
}
.facts h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.facts p { font-size: 0.975rem; margin: 0; }

/* Footer */
.site-footer { background: var(--brand-navy); color: #CCE1F3; padding: 2rem 0 2.5rem; font-size: 0.9rem; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: #77D6F2; }

/* 404 */
.notfound { padding: 6rem 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1rem; }

@media (max-width: 820px) {
  .hero { padding: 2.75rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-emblem { display: none; } /* the header wordmark already carries it */
  section { padding: 3rem 0; }
  html { scroll-padding-top: 7.5rem; }
  .header-row { padding-top: 0.6rem; padding-bottom: 0.7rem; gap: 0.35rem 1.25rem; }
  .brand img { width: 140px; }
  .site-header nav { gap: 1.1rem; }
  .site-header nav a { font-size: 0.9rem; }
  .point { grid-template-columns: 1fr; padding: 1.25rem 0; }
  .app, .contact { grid-template-columns: 1fr; gap: 1.75rem; }
  .app-shots { max-width: 24rem; }
}

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