/* Onward Software LLC — onwardsw.com */

:root {
  --paper: #FBFBF9;
  --ink: #1A2321;
  --muted: #5B6663;
  --line: #E3E6E2;
  --accent: #1E6B4F;
  --accent-dark: #164F3B;
  --accent-soft: #EAF2EE;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-body: "Public Sans", "Segoe UI", "Helvetica Neue", sans-serif;

  --measure: 40rem;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

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

/* ---------- Header ---------- */

.site-header {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem var(--gutter);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* The onward arrow: a short rule that resolves into an arrowhead. */
.wordmark-arrow {
  display: inline-block;
  width: 1.5em;
  height: 0.62em;
  margin-left: 0.3em;
  background:
    linear-gradient(var(--accent), var(--accent)) left center / calc(100% - 0.28em) 2px no-repeat;
  position: relative;
}

.wordmark-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: center;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(3.5rem, 10vh, 7rem) 0 clamp(3rem, 8vh, 5.5rem);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lede {
  max-width: var(--measure);
  margin-top: 1.75rem;
  font-size: 1.1875rem;
  color: var(--muted);
}

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.button {
  display: inline-block;
  padding: 0.8em 1.6em;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
}

.button:hover {
  background: var(--accent-dark);
  color: var(--paper);
}

.hero-cta-note {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Onward line (section divider) ---------- */

.onward-line {
  max-width: 68rem;
  height: 11px;
  position: relative;
  background: linear-gradient(var(--line), var(--line)) left center / calc(100% - 14px) 1px no-repeat;
}

.onward-line::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- Sections ---------- */

section {
  padding: clamp(3rem, 8vh, 5rem) 0;
}

section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2.25rem;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.5rem 3rem;
}

.service h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-top: 0.9rem;
  border-top: 2px solid var(--accent);
}

.service p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Approach ---------- */

.approach-body {
  max-width: var(--measure);
  display: grid;
  gap: 1.25rem;
}

.approach-body p {
  color: var(--muted);
  font-size: 1.0625rem;
}

.approach-body p:first-child {
  color: var(--ink);
  font-size: 1.1875rem;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.5rem 3rem;
  max-width: 52rem;
}

.contact-block h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.contact-block p {
  font-size: 1.0625rem;
}

.contact-note {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem !important;
  max-width: 26rem;
}

/* ---------- Footer ---------- */

.site-footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    gap: 1.25rem;
  }
}
