/* Autologik Controls LLC
   Palette follows the official logo and stays at WCAG 2.1 AA:
   - #ffffff on #101832 is 17.52:1
   - #101832 on #ffffff is 17.52:1
   - #5C6168 on #ffffff is 6.24:1 (steel text and UI edges)
   - #E7E8EB on #101832 is 14.30:1 (light steel on navy)
   - #3E4450 on #ffffff is 9.78:1 (muted steel text)
*/

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
  --navy: #101832;
  --navy-deep: #0a1024;
  --navy-mid: #243049;
  --ink: #12182c;
  --muted: #3e4450;
  --line: #d5d7dc;
  --paper: #f4f5f6;
  --white: #ffffff;
  --steel: #5c6168;
  --steel-light: #e7e8eb;
  --focus-on-light: #101832;
  --focus-on-navy: #e7e8eb;
  --max: 72rem;
  color-scheme: light;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Barlow", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-kerning: normal;
}

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

h1,
h2,
h3 {
  font-family: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.75rem);
  margin: 0 0 1rem;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.75rem, 1.35rem + 1vw, 2.35rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-family: "Barlow", "Segoe UI", sans-serif;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
}

a:visited {
  color: var(--navy);
}

a:hover {
  color: var(--navy-deep);
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

:focus {
  outline: 3px solid var(--focus-on-light);
  outline-offset: 3px;
}

.hero :focus,
.page-hero :focus,
.cta-box :focus,
.site-footer :focus,
.utility :focus {
  outline-color: var(--focus-on-navy);
}

:focus:not(:focus-visible),
.hero :focus:not(:focus-visible),
.page-hero :focus:not(:focus-visible),
.cta-box :focus:not(:focus-visible),
.site-footer :focus:not(:focus-visible),
.utility :focus:not(:focus-visible) {
  outline: none;
}

#main:focus {
  outline: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus,
.skip-link:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.utility {
  margin: 0;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}

.utility__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
  padding-block: 0.65rem;
}

.utility a,
.utility a:visited {
  color: var(--white);
  font-weight: 700;
}

.site-header {
  background: var(--white);
  border-bottom: 6px solid var(--steel);
}

.header-bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem 1rem;
  max-width: 100%;
}

.header-bar > * {
  min-width: 0;
  max-width: 100%;
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  max-width: 100%;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  display: block;
  height: auto;
  width: auto;
  max-height: 5.5rem;
  max-width: 100%;
  object-fit: contain;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.7rem;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}

.nav a:hover,
.nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--navy);
}

.nav a[aria-current="page"] {
  border-bottom-color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 700;
}

.hero,
.page-hero {
  background-color: var(--navy);
  color: var(--white);
}

.hero {
  padding-block: 2.5rem 2.75rem;
}

.page-hero {
  padding-block: 2.25rem 2rem;
}

.hero h1,
.hero h2,
.page-hero h1,
.cta-box h2,
.site-footer h2 {
  color: var(--white);
}

.kicker {
  margin: 0 0 0.75rem;
  color: var(--steel-light);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  font-size: 1.25rem;
  max-width: 40rem;
  margin: 0;
}

.hero a:not(.button),
.hero a:not(.button):visited,
.page-hero a:not(.button),
.page-hero a:not(.button):visited,
.cta-box a:not(.button),
.cta-box a:not(.button):visited,
.site-footer a,
.site-footer a:visited {
  color: var(--white);
  font-weight: 700;
}

.hero__grid {
  display: grid;
  gap: 1.5rem;
  min-width: 0;
}

.hero__grid > *,
.service-block > *,
.footer-grid > *,
.cards > * {
  min-width: 0;
}

.hero__side {
  display: grid;
  gap: 1rem;
  align-content: start;
  min-width: 0;
}

.hero__side > * {
  min-width: 0;
}

[id] {
  scroll-margin-top: 1rem;
}

.hero__email {
  margin: 1rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border: 2px solid transparent;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button:hover,
.button:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.button--primary,
.button--primary:visited {
  background: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.button--primary:hover {
  background: var(--steel-light);
  border-color: var(--navy);
  color: var(--navy);
}

.button--ghost,
.button--ghost:visited {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.button--ghost:hover {
  background: var(--white);
  color: var(--navy);
}

.button--navy,
.button--navy:visited {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.button--navy:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
}

.plate {
  background: var(--paper);
  color: var(--ink);
  border-top: 6px solid var(--steel);
  padding: 1.15rem 1.15rem 0.35rem;
}

.plate__shop {
  margin: 0;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
  overflow-wrap: break-word;
}

.plate__loc {
  margin: 0.35rem 0 0;
  font-weight: 600;
}

.plate dl {
  margin: 0.85rem 0 0;
}

.plate dl > div {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.plate dt {
  font-weight: 700;
  color: var(--navy);
}

.plate dd {
  margin: 0;
}

.photo-slot {
  margin: 0;
  min-height: 12.5rem;
  display: flex;
  align-items: flex-end;
  background-color: var(--navy);
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(92, 97, 104, 0.85) 0 10px,
    #101832 10px 20px
  );
  border: 2px solid var(--steel-light);
  color: var(--white);
}

.photo-slot--tall {
  min-height: 18rem;
}

.photo-slot figcaption {
  margin: 0;
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--navy);
  color: var(--white);
}

.photo-tag {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--steel-light);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-slot:has(img) {
  display: block;
  min-height: 0;
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.photo-slot:has(img) img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-slot:has(img) figcaption {
  background: transparent;
  color: var(--ink);
  padding-inline: 0;
}

/* The home hero is navy, so the caption must stay light. --steel-light on
   --navy is 14.30:1, which meets WCAG 2.1 AA. */
.hero .photo-slot:has(img) figcaption {
  color: var(--steel-light);
}

.section {
  padding-block: 2.75rem;
}

.section--paper {
  background: var(--paper);
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.cards article {
  height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--steel);
  padding: 1.15rem 1.15rem 1.2rem 1.05rem;
}

.cards .index {
  margin: 0 0 0.3rem;
  color: var(--steel);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.states {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.states li {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  padding: 0.8rem 1rem;
}

.cta-box {
  background: var(--navy);
  color: var(--white);
  border-left: 8px solid var(--steel-light);
  padding: 1.5rem 1.25rem;
}

.service-block {
  display: grid;
  gap: 1.25rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}

.service-block:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-block h2 {
  margin-top: 0;
}

.facts {
  margin: 0;
}

.facts > div {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-weight: 700;
  color: var(--navy);
}

.facts dd {
  margin: 0;
}

.note {
  background: var(--paper);
  border-left: 6px solid var(--steel);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}

address {
  font-style: normal;
}

.quote-form {
  max-width: 40rem;
  margin-top: 1.5rem;
}

.form-row {
  margin: 0 0 1.15rem;
}

.quote-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  max-width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--navy);
  padding: 0.65rem 0.75rem;
  min-height: 48px;
}

.quote-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status {
  margin-top: 1rem;
}

#form-status:focus {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.site-footer {
  background: var(--navy-deep);
  color: var(--white);
  border-top: 6px solid var(--steel-light);
  padding-block: 2.5rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.site-footer h2 {
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.site-footer .footer-brand {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.6rem;
  background: var(--white);
  line-height: 0;
  letter-spacing: 0;
  text-transform: none;
}

.site-footer .footer-brand img {
  display: block;
  height: 4.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.site-footer p {
  max-width: 38rem;
}

.a11y-note {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--navy-mid);
}

.colophon {
  margin: 1.25rem 0 0;
  font-size: 1rem;
}

@media (max-width: 40rem) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

@media (min-width: 40rem) {
  .states {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  }

  .facts > div {
    grid-template-columns: 14rem 1fr;
    column-gap: 1.25rem;
    align-items: baseline;
  }
}

@media (min-width: 45rem) {
  .brand img {
    max-height: 7rem;
  }

  .header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: 2rem;
    align-items: start;
  }

  .service-block {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-contrast: more) {
  .cards article,
  .button--ghost,
  .photo-slot {
    border-width: 3px;
  }
}

@media (forced-colors: active) {
  .button,
  .photo-slot,
  .plate,
  .states li,
  .cta-box,
  .cards article {
    border: 2px solid ButtonText;
  }

  .button,
  .button--primary,
  .button--ghost,
  .button--navy {
    background: ButtonFace;
    color: ButtonText;
    forced-color-adjust: none;
  }

  .skip-link:focus {
    background: Canvas;
    color: CanvasText;
    outline-color: Highlight;
  }

  :focus {
    outline-color: Highlight;
  }
}
