:root {
  color-scheme: light;
  --bg: #f7f6f3;
  --ink: #1b3146;
  --ink-soft: #3d5166;
  --navy: #12263f;
  --accent: #0c5856;
  --line: #e4dfd6;
  --white: #ffffff;
  --header-height: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 3.65rem);
  max-width: 14em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  max-width: 16em;
}

h3 {
  font-size: 1.25rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.16em;
}

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

::selection {
  background: #d3ebea;
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  z-index: 20;
  background: var(--navy);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  transform: none;
}

#main:focus {
  outline: none;
}

.container {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow > * {
  max-width: 40rem;
}

.stack > * + * {
  margin-top: 1rem;
}

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

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.15rem;
  min-height: var(--header-height);
  padding-block: 0.7rem;
}

.logo {
  grid-row: 1;
  grid-column: 1;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta {
  grid-row: 1;
  grid-column: 2;
}

.logo:hover {
  color: var(--accent);
}

.site-nav {
  grid-row: 2;
  grid-column: 1 / -1;
}

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

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 3.25rem 0 4.25rem;
}

.subhead {
  max-width: 40rem;
  margin-top: 1.25rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.support {
  margin-top: 1.15rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 2px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #f7f6f3;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: #0c1c30;
  border-color: #0c1c30;
  color: #ffffff;
}

.button-secondary {
  background: transparent;
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--navy);
  color: #f7f6f3;
}

.button-small {
  min-height: 42px;
  padding: 0.4rem 0.9rem;
  font-size: 0.9375rem;
}

.section {
  padding: 1.25rem 0 4.5rem;
}

.problem-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.problem-list li {
  position: relative;
  padding: 0.9rem 0 0.9rem 1.4rem;
  border-top: 1px solid var(--line);
}

.problem-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.closing {
  margin-top: 1.75rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--navy);
  font-size: 1.125rem;
  line-height: 1.5;
}

.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.4rem 1.3rem 1.5rem;
}

.service-card h3 {
  margin-bottom: 0.7rem;
}

.service-card p,
.service-card li {
  line-height: 1.55;
}

.examples-label {
  margin-top: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
}

.service-card ul {
  padding-left: 1.15rem;
}

.service-card li + li {
  margin-top: 0.4rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin-top: 1.75rem;
  display: grid;
  gap: 1.5rem;
}

.step-number {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.project {
  max-width: 46rem;
  margin-top: 1.75rem;
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-meta {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 700;
}

.project h3 {
  margin-bottom: 0.85rem;
}

.project p + p {
  margin-top: 0.85rem;
}

.contact-panel {
  max-width: 44rem;
  padding: 1.6rem 1.35rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.contact-actions {
  margin-top: 0.5rem;
}

.contact-address {
  font-size: 0.975rem;
}

.contact-address a,
.site-footer a {
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem 0 3rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
}

.footer-name {
  color: var(--navy);
  font-weight: 700;
}

@media (min-width: 640px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (min-width: 800px) {
  .hero {
    padding: 5.25rem 0 5.75rem;
  }

  .section {
    padding: 2rem 0 6rem;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .service-card,
  .project,
  .contact-panel {
    padding: 1.75rem 1.6rem 1.85rem;
  }

  .contact-panel {
    padding: 2.4rem 2.2rem;
  }
}

@media (min-width: 880px) {
  html {
    scroll-padding-top: var(--header-height);
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .site-nav {
    margin-left: auto;
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid CanvasText;
  }
}

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

  .skip-link {
    transition: none;
  }
}
