:root {
  --wrap: 1400px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  margin: 0;

  &::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    z-index: 60;
    background: var(--bg);
  }
}

a {
  color: inherit;
}

a:is([href^="mailto:"], [href^="tel:"]),
address a {
  text-decoration: none;
}

address {
  font-style: normal;
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  letter-spacing: -.005em;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

h3 {
  font-size: 22px;
  font-weight: 600;
}

p {
  margin: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font: 600 13px/1 var(--f-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 60ch;
}

.hours {
  font-variant-numeric: tabular-nums;
}

section.s {
  padding-block: 76px;

  &.tint {
    background: var(--tint);
  }

  &.--compact {
    padding-block: 44px;
  }
}

.s-head {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
  max-width: 760px;
}

.s-head:last-child {
  margin-bottom: 0;
}

.link {
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 1px;

  &:hover {
    color: var(--blue-deep);
  }
}

.link:is([href^="mailto:"], [href^="tel:"]) {
  border-bottom: 0;
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}

.ctas:not(:has(a, button)) {
  display: none;
}

:where(.contact-form, .maintenance-contract .__form) {
  display: grid;
  gap: 20px;
  min-width: 0;

  label {
    display: grid;
    gap: 8px;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  textarea,
  select {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 12px;
    font: inherit;
    color: var(--ink);
    background: var(--bg);
  }

  textarea {
    min-height: 160px;
    resize: vertical;
  }

  input:is([type="checkbox"], [type="radio"]) {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--blue);
  }

  .__privacy {
    display: flex;
    align-items: start;
    gap: 12px;
    font-weight: 400;
  }

  .__privacy input {
    margin-top: 4px;
  }

  .__trap {
    display: none;
  }

  >.btn {
    justify-self: start;
  }
}

@media (max-width: 820px) {
  section.s {
    padding-block: 48px;
  }

  section.s.--compact {
    padding-block: 32px;
  }

  .s-head {
    margin-bottom: 28px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 80;

  &:focus {
    top: 16px;
  }
}

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

  * {
    transition: none !important;
  }
}