@font-face {
  font-family: "Encode Sans";
  src: url("../fonts/encode-sans-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #23303B;
  --shingle: #3C4954;
  --muted: #55616B;
  --stone: #E6E8E3;
  --paper: #F3F4F0;
  --sun: #EBA53A;
  --sun-press: #DD9426;
  --mist: #B9C2C8;
  --edge: #7D8890;

  --s-1: .5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --section: clamp(3.5rem, 7vw, 6rem);
  --pause: clamp(5rem, 10vw, 8rem);
  --head-gap: clamp(2rem, 3.5vw, 3rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 80rem;

  --font: "Encode Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--slate);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; }
.storm :focus-visible, .site-footer :focus-visible, .notice :focus-visible, .callbar:focus-visible { outline-color: var(--sun); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 30;
  background: var(--slate); color: var(--stone); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

/* Notice bar */
.notice { background: var(--slate); color: var(--stone); font-size: .8125rem; line-height: 1.4; }
.notice-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2rem; }
.notice a { color: var(--mist); }
.notice a:hover { color: var(--stone); }

/* Header */
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 4.75rem; }
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; font-weight: 850; font-stretch: 120%; font-size: 1.25rem; letter-spacing: -.01em; line-height: 1;
}
.brand-mark { flex: none; fill: none; }
.brand-sub { font-weight: 500; font-stretch: 100%; color: var(--muted); letter-spacing: 0; }
.nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a { text-decoration: none; font-weight: 560; font-size: .9375rem; padding-block: .5rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: .45em; }
.header-phone {
  text-decoration: none; font-weight: 700; font-stretch: 110%; font-size: .9375rem;
  border: 2px solid var(--slate); border-radius: 2px; padding: .5rem .9rem;
}
.header-phone:hover { background: var(--slate); color: var(--stone); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: .8rem 1.4rem;
  font: inherit; font-weight: 700; font-stretch: 112%; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer;
}
.btn-sun { background: var(--sun); border-color: var(--sun); color: var(--slate); }
.btn-sun:hover { background: var(--sun-press); border-color: var(--sun-press); }
.btn-line { border-color: var(--slate); color: var(--slate); background: transparent; }
.btn-line:hover { background: var(--slate); color: var(--stone); }

/* Hero */
.hero { padding-top: clamp(2rem, 5vw, 3.5rem); border-bottom: 3px solid var(--slate); overflow-x: clip; }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.hero h1 {
  font-size: clamp(2.6rem, 1.2rem + 4.4vw, 4.5rem);
  line-height: 1;
  font-weight: 900;
  font-stretch: 118%;
  letter-spacing: -.02em;
  margin-bottom: var(--s-3);
  max-width: 11ch;
  text-wrap: balance;
}
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: var(--shingle); max-width: 34ch; margin-bottom: var(--s-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: var(--s-3); }
.hero-note { font-size: .9375rem; color: var(--muted); }

.gable { position: relative; width: 88%; margin-inline: auto; aspect-ratio: 5 / 4; }
.gable picture { display: block; width: 100%; height: 100%; clip-path: polygon(0 30%, 50% 0, 100% 30%, 100% 100%, 0 100%); background: var(--shingle); }
.gable img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.rafters { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rafters polyline, .rafters line { fill: none; vector-effect: non-scaling-stroke; stroke-width: 8; }
.roofline { stroke: var(--slate); stroke-linejoin: miter; }
.sunline { stroke: var(--sun); transform-box: fill-box; transform-origin: 100% 0; }

@media (prefers-reduced-motion: no-preference) {
  .sunline { animation: sun-in .8s cubic-bezier(.2, .7, .2, 1) .1s both; }
  @keyframes sun-in { from { transform: scale(0); } }
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
  .gable {
    width: clamp(20rem, calc((100svh - 11rem) * .75), 100%);
    aspect-ratio: 3 / 4;
    margin: 0 0 0 auto;
    align-self: end;
  }
  .rafters polyline, .rafters line { stroke-width: 12; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-paper { background: var(--paper); }
h2 {
  font-size: clamp(1.9rem, 1rem + 2.6vw, 3rem);
  line-height: 1.05;
  font-weight: 850;
  font-stretch: 120%;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h2.head { margin-bottom: var(--head-gap); }
.intro { color: var(--shingle); max-width: 36ch; margin-top: var(--s-2); margin-bottom: var(--head-gap); }
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 750; font-stretch: 115%; letter-spacing: -.01em; }

.split { display: grid; gap: var(--head-gap); }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* Services */
.services-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 2px; }
.service-list li { display: grid; gap: .4rem 2rem; padding-block: 1.5rem; border-top: 2px solid var(--slate); }
.service-list li:last-child { border-bottom: 2px solid var(--slate); }
.service-list p { color: var(--shingle); max-width: 46ch; }
@media (min-width: 640px) {
  .service-list li { grid-template-columns: 13.5rem minmax(0, 1fr); align-items: baseline; }
}

/* Steps */
.steps { display: grid; gap: var(--s-4); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--slate); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: .75rem;
  font-weight: 900; font-stretch: 118%; font-size: 3.5rem; line-height: 1; color: var(--slate);
}
.steps h3 { margin-bottom: .5rem; }
.steps p { color: var(--shingle); max-width: 30ch; }
@media (max-width: 719px) {
  .steps li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: .75rem; align-items: start; }
  .steps li::before { grid-row: span 2; font-size: 2.75rem; margin-bottom: 0; }
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
  .steps li:nth-child(1) { margin-top: 4.5rem; }
  .steps li:nth-child(2) { margin-top: 3rem; }
  .steps li:nth-child(3) { margin-top: 1.5rem; }
}

/* Storm */
.storm { position: relative; isolation: isolate; background: var(--slate); color: var(--stone); padding-block: var(--pause); overflow: hidden; }
.storm-bg, .storm-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.storm::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(35, 48, 59, .92);
}
@media (min-width: 900px) {
  .storm::before { background: linear-gradient(90deg, rgba(35, 48, 59, .95) 0%, rgba(35, 48, 59, .92) 58%, rgba(35, 48, 59, .55) 100%); }
}
.storm h2 { max-width: 15ch; margin-bottom: var(--s-3); }
.storm p { max-width: 42ch; color: #D9DEE0; margin-bottom: var(--s-4); }
.storm .storm-note { font-size: .9375rem; color: var(--mist); margin-top: var(--s-2); margin-bottom: 0; }

/* FAQ */
.faq-photo { display: none; }
.faq-photo img { width: 100%; max-width: 26rem; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
@media (min-width: 900px) { .faq-photo { display: block; } }
.faq-list details { border-top: 2px solid var(--slate); }
.faq-list details:last-child { border-bottom: 2px solid var(--slate); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.2rem; cursor: pointer; list-style: none;
  font-weight: 750; font-stretch: 115%; font-size: 1.375rem; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--slate), var(--slate)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--slate), var(--slate)) center / 2.5px 100% no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.faq-list details p { color: var(--shingle); max-width: 56ch; padding-bottom: 1.4rem; }

/* Contact */
.contact-info .intro { margin-bottom: var(--s-4); }
.phone-big { display: inline-block; font-size: clamp(1.875rem, 1rem + 2.2vw, 2.75rem); font-weight: 850; font-stretch: 120%; letter-spacing: -.02em; line-height: 1.1; text-decoration: none; }
.phone-big:hover { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 4px; }
.email { display: block; width: fit-content; margin-top: .4rem; margin-bottom: var(--s-4); font-weight: 560; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; border-top: 2px solid var(--slate); padding-top: 1.25rem; margin-bottom: var(--s-3); }
.hours dt { font-weight: 650; }
.hours dd { color: var(--shingle); }
.area { color: var(--shingle); }

.request-form { background: var(--paper); border: 2px solid var(--slate); border-radius: 2px; padding: clamp(1.25rem, 3vw, 2.5rem); }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 650; margin-bottom: .4rem; }
.hint { font-size: .9375rem; color: var(--muted); margin-bottom: .5rem; }
.field input, .field textarea {
  display: block; width: 100%; min-height: 3.1rem;
  font: inherit; color: var(--slate); background: #fff;
  border: 2px solid var(--edge); border-radius: 2px; padding: .7rem .85rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--slate); }
.request-form .btn { width: 100%; }
.form-msg { margin-top: 1rem; padding: .9rem 1rem; background: var(--slate); color: var(--stone); border-radius: 2px; font-weight: 600; }
@media (min-width: 640px) { .request-form .btn { width: auto; } }

/* Footer */
.site-footer { background: var(--slate); color: var(--stone); padding-top: var(--section); padding-bottom: 2rem; font-size: .9375rem; }
.site-footer a { color: var(--stone); }
.footer-grid { display: grid; gap: var(--s-4); padding-bottom: var(--s-5); }
.footer-brand .brand { margin-bottom: 1rem; text-decoration: none; }
.footer-brand .brand-sub { color: var(--mist); }
.footer-brand p { color: var(--mist); max-width: 34ch; }
.footer-head { font-size: 1.1875rem; font-stretch: 115%; font-weight: 750; letter-spacing: 0; margin-bottom: .6rem; }
.site-footer p + p { margin-top: .25rem; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-top: 1.25rem; color: var(--mist); }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: #44525E; }
.footer-base a { color: var(--mist); }
.footer-base p { margin-right: auto; }
.credits { margin-top: 1rem; font-size: .8125rem; color: var(--mist); }
.credits a { color: var(--mist); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Mobile call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.75rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: var(--slate); color: var(--stone);
  font-weight: 750; font-stretch: 115%; font-size: 1.0625rem; text-decoration: none;
  border-top: 3px solid var(--sun);
}

@media (max-width: 759px) {
  body { padding-bottom: 4rem; }
  .hero-call { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
}
@media (min-width: 760px) { .callbar { display: none; } }
@media (max-width: 899px) { .nav { display: none; } }
@media (max-width: 479px) {
  .header-phone { display: none; }
  .header-inner { min-height: 4rem; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-list summary::after { transition: none; }
}
@media (min-width: 900px) { h2.head-desk { margin-bottom: var(--head-gap); } }
