:root {
  color-scheme: light;
  --paper: #fff;
  --surface: #fff;
  --ink: #223141;
  --muted: #495562;
  --blue: #003366;
  --blue-hover: #234f87;
  --line: #d8dfe6;
  --tint: #f3f6fa;
  --width: 70rem;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.16; }
p { color: var(--muted); }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid #286ba8; outline-offset: 4px; }

.wrap { width: min(var(--width), calc(100% - 3rem)); margin-inline: auto; }
.site-header, .site-footer { color: #fff; background: #333; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  padding-block: 1rem;
}

.brand { display: block; }
.brand img { display: block; width: 167px; height: auto; }
.site-header a:focus-visible, .site-footer a:focus-visible { outline-color: #b9d8ff; }

nav { display: flex; flex-wrap: wrap; column-gap: .95rem; }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  font-size: .94rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover, nav a[aria-current], nav a.active { color: #c8dfff; text-decoration: underline; }

main { flex: 1; padding-block: clamp(2rem, 5vw, 4rem); }
.hero {
  text-align: center;
  padding-bottom: clamp(1.8rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

h1 {
  font-size: clamp(2rem, 5.8vw, 3.25rem);
  letter-spacing: -.045em;
  color: var(--blue);
  text-wrap: balance;
}
.hero p, .page-intro p { margin-top: 1rem; max-width: 62ch; font-size: clamp(1.05rem, 2.2vw, 1.2rem); }
.hero p { margin-inline: auto; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .65rem 1.25rem; align-items: center; margin-top: 1.55rem; }
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: .6rem 1rem;
  border: 0;
  border-radius: .45rem;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 690;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--blue-hover); color: #fff; }
.plain-link { display: inline-flex; gap: .35rem; align-items: center; min-height: 44px; font-weight: 680; }

.hero-image {
  display: block;
  width: min(100%, 33rem);
  height: auto;
  margin: clamp(1.25rem, 4vw, 2rem) auto 0;
  border-radius: .35rem;
}

address { font-style: normal; }

.home-services { margin-top: clamp(1.75rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -.035em; }
.service-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.2rem;
}
.service, .panel {
  padding: clamp(1rem, 3vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: var(--tint);
}
.service h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; }
.panel h2 { margin-bottom: .6rem; }
.panel address { overflow-wrap: anywhere; }
.panel p + address { margin-top: .6rem; }

.page-intro { max-width: 53rem; margin-bottom: 1.8rem; }
.page-intro h1, .reading h1 { font-size: clamp(2.05rem, 6vw, 3.85rem); }
.back { display: inline-block; margin-bottom: 1.1rem; }
.reading { max-width: 70ch; }
.text-section { margin-bottom: 1.6rem; }
.text-section h2 { margin-bottom: .75rem; }
.text-section p + p { margin-top: .75rem; }
.text-section ul { padding-inline-start: 1.35rem; margin-bottom: 0; }
.text-section li + li { margin-top: .45rem; }

.search { margin-block: 1.35rem; }
.search label { display: block; font-weight: 650; margin-bottom: .25rem; }
.search div { display: flex; gap: .45rem; flex-wrap: wrap; }
.search input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: .6rem .65rem;
  border: 1px solid #657a8f;
  border-radius: .45rem;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.search-results { padding: 0; list-style: none; }
.search-results li { border-top: 1px solid var(--line); padding-block: .65rem; }
.search-results a { font-weight: 680; }

.site-footer a, .site-footer a:hover { color: #c8dfff; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.2rem; padding-block: 1.35rem; font-size: .93rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 1; top: .5rem; left: .5rem; background: var(--surface); padding: .5rem; }

@media (max-width: 42rem) {
  .wrap { width: min(var(--width), calc(100% - 2rem)); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: .65rem; }
  nav { column-gap: .55rem; }
  nav a { font-size: .85rem; }
  .service-grid, .contact-grid { grid-template-columns: 1fr; }
}
