:root {
  color-scheme: light;
  --ink: #172031;
  --muted: #455065;
  --link: #163f83;
  --visited: #573b73;
  --rule: #b5bdc9;
  --error: #992523;
  --paper: #fff;
  font: 100%/1.55 Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  max-width: 65rem;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.75rem);
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: anywhere;
}

h1, h2, .site-header nav {
  font-family: Georgia, "Times New Roman", serif;
}

h1, h2 { margin: 0 0 .65rem; line-height: 1.17; }
h1 { font-size: clamp(1.625rem, 3.5vw, 2rem); }
h2 { font-size: 1.25rem; }
p { margin: 0 0 .75rem; max-width: 68ch; }
section > :last-child, .policy > :last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: .16em; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }

.skip-link, .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 1;
  top: .5rem;
  left: .5rem;
  width: auto;
  height: auto;
  padding: .6rem .9rem;
  clip-path: none;
  background: var(--paper);
}

.site-header {
  display: grid;
  justify-items: center;
  gap: .8rem;
  padding: 1.65rem 0 .45rem;
  border-bottom: 1px solid var(--ink);
}

.brand { display: block; width: min(100%, 12rem); }
.brand img { display: block; width: 100%; height: auto; }

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(.75rem, 3vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

a[aria-current="page"] { color: var(--ink); font-weight: bold; }
main { padding: clamp(1.8rem, 4vw, 3rem) 0 2rem; }
.home {
  --link: #000080;
  --visited: #551a8b;
  max-width: 53rem;
  font-family: "Times New Roman", Times, serif;
  line-height: 1.4;
}

.home .site-header {
  gap: 0;
  padding: 1.4rem 0 .25rem;
}

.home .brand { width: min(100%, 10rem); }
.masthead-location { margin: .55rem 0 0; text-align: center; }
.home main { padding: 1.55rem 0 1.4rem; }
.home h1,
.home h2 { font-family: inherit; }
.home h1 { font-size: clamp(1.5rem, 3.8vw, 1.875rem); text-align: center; }
.home-lead { margin: 0 auto 1.35rem; text-align: center; }

.services {
  padding: .9rem 0 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem 2.5rem;
  margin: 0;
  padding-inline-start: 1.25rem;
}

.fleet-note { margin: 1rem 0 .6rem; }
.inquiry-link { margin: 0; }

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem 2rem;
  border-top: 1px solid var(--ink);
  padding: 1rem 0 1.6rem;
  color: var(--muted);
  font-size: .96rem;
}

address { font-style: normal; }
.site-footer nav a { min-height: 2.5rem; }
.policy h2 { margin-top: 1.35rem; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.65fr);
  gap: 1.5rem 2rem;
  margin-top: 1.4rem;
}

.inquiry { min-width: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
}

.full-width { grid-column: 1 / -1; }
label { display: block; margin-bottom: .25rem; font-weight: bold; }
label span { font-weight: normal; }
.form-note { margin: .8rem 0; color: var(--muted); }

input, select, textarea, button {
  color: var(--ink);
  font: inherit;
  border: 1px solid #69758a;
  border-radius: 0;
  min-height: 2.75rem;
}

input, select, textarea {
  width: 100%;
  padding: .45rem .55rem;
  background: var(--paper);
}

textarea { display: block; resize: vertical; }
button { padding: .45rem .9rem; color: var(--paper); background: var(--link); cursor: pointer; }
button:disabled { color: var(--ink); background: #e8ebef; cursor: default; }
input:disabled, select:disabled, textarea:disabled { opacity: 1; background: #f5f6f8; }
[aria-invalid="true"] { border-color: var(--error); }
.field-error { display: block; color: var(--error); font-size: .95rem; }
label + input + .field-error, textarea + .field-error { margin-top: .25rem; }
#form-status, #form-error { margin-top: .65rem; }
#form-status:empty, #form-error:empty { margin: 0; }

@media (max-width: 42rem) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .site-footer { flex-direction: column; }
}

@media (max-width: 30rem) {
  .service-list, .form-grid { grid-template-columns: minmax(0, 1fr); }
}

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