/* Atkinson Hyperlegible, SIL Open Font License. See fonts/OFL.txt. */

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #e7f0ea;
  --ink: #10211a;
  --on-dark: #f4faf6;
  --hvac: #0e3b32;
  --hvac-hover: #145445;
  --plumbing: #0c3a48;
  --plumbing-hover: #124d5e;
  --roofing: #1c2838;
  --roofing-hover: #27364c;
  --notice: #d6ef62;
  --line: #10211a;
  --font: "Atkinson Hyperlegible", Verdana, Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--hvac) var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.5;
}

::selection {
  background: var(--hvac);
  color: var(--on-dark);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--on-dark);
  color: var(--ink);
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.frame {
  width: min(100%, 44rem);
  margin-inline: auto;
  padding-inline: 1.15rem;
}

.top {
  background: var(--ink);
  color: var(--on-dark);
}

.top .frame {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.95rem;
}

.brand,
.product-mark {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
}

.anchor {
  position: absolute;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page {
  position: relative;
  padding-top: 0.95rem;
  padding-bottom: 2.5rem;
}

h1,
h2 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 7.5vw, 3.5rem);
  max-width: 16ch;
}

.lead {
  margin: 0.55rem 0 0;
  max-width: 36rem;
  font-size: 1.15rem;
}

.notice {
  margin: 1.15rem 0 0;
  padding: 0.8rem 1rem;
  background: var(--notice);
  color: var(--ink);
  font-weight: 700;
}

.switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.55rem 0.35rem;
  border: 2px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.switch a:hover {
  background: #d5e4da;
}

.switch a:focus-visible,
.call:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

html.js .switch a[aria-selected="true"] {
  color: var(--on-dark);
}

html.js .switch a[href="#hvac"][aria-selected="true"] {
  background: var(--hvac);
  border-color: var(--hvac);
}

html.js .switch a[href="#hvac"][aria-selected="true"]:hover {
  background: var(--hvac-hover);
  border-color: var(--hvac-hover);
}

html.js .switch a[href="#plumbing"][aria-selected="true"] {
  background: var(--plumbing);
  border-color: var(--plumbing);
}

html.js .switch a[href="#plumbing"][aria-selected="true"]:hover {
  background: var(--plumbing-hover);
  border-color: var(--plumbing-hover);
}

html.js .switch a[href="#roofing"][aria-selected="true"] {
  background: var(--roofing);
  border-color: var(--roofing);
}

html.js .switch a[href="#roofing"][aria-selected="true"]:hover {
  background: var(--roofing-hover);
  border-color: var(--roofing-hover);
}

.panel {
  margin-top: 0.85rem;
}

html.js .panel {
  display: none;
}

html.js .panel.is-selected {
  display: block;
}

.slot {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.panel h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2rem);
}

.panel p {
  margin: 0.3rem 0 0;
  max-width: 38rem;
}

.call {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 1.2rem 1.05rem 1.15rem;
  border-radius: 2px;
  color: var(--on-dark);
  text-decoration: none;
  transition: background-color 180ms ease-out;
}

.call[data-trade="hvac"] {
  background: var(--hvac);
}

.call[data-trade="hvac"]:hover {
  background: var(--hvac-hover);
}

.call[data-trade="plumbing"] {
  background: var(--plumbing);
}

.call[data-trade="plumbing"]:hover {
  background: var(--plumbing-hover);
}

.call[data-trade="roofing"] {
  background: var(--roofing);
}

.call[data-trade="roofing"]:hover {
  background: var(--roofing-hover);
}

.call:active {
  transform: translateY(1px);
}

.call-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.phone-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

.call-number {
  font-size: 2.4rem;
  font-size: clamp(1.7rem, 11cqi, 4.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  line-height: 1.05;
  white-space: nowrap;
}

.try {
  font-size: 1.125rem;
}

.how {
  margin-top: 2.5rem;
}

.how h2 {
  margin: 0 0 0.9rem;
  font-size: 1.55rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.85rem;
}

.steps li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.7rem;
  align-items: baseline;
  max-width: 38rem;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.price {
  margin: 1.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}

.foot {
  background: var(--ink);
  color: var(--on-dark);
}

.foot p {
  margin: 0;
  padding-block: 1.25rem 1.5rem;
  max-width: 38rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 22rem) {
  .call-number {
    font-size: 1.7rem;
  }
}

@media (min-width: 52rem) {
  .page {
    padding-top: 2.4rem;
  }

  .lead {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call {
    transition: none;
  }

  .call:active {
    transform: none;
  }
}
