/* Palette, page width and shared spacing */
:root {
  color-scheme: light;
  --ink: #172d28;
  --muted: #465a54;
  --paper: #fff;
  --sage: #edf2ed;
  --line: #cdd8d0;
  --accent: #fac47d;
  --dark: #173630;
  --content: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 8.5rem; }
body {
  margin: 0;
  font: 1rem/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.09; }
h1 { font-size: clamp(2.65rem, 5.5vw, 5rem); letter-spacing: -.055em; max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.045em; }
h3 { font-size: 1.25rem; letter-spacing: -.02em; }
p { color: var(--muted); }
a { color: inherit; }
:focus-visible { outline: 3px solid #a74712; outline-offset: 4px; }
.hero :focus-visible { outline-color: var(--accent); }
.wrap { width: min(var(--content), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.visually-hidden, .skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 3; top: .75rem; left: .75rem; padding: .75rem; background: white; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-inner { min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.brand-icon {
  width: .95rem;
  height: .95rem;
  border-top: 3px solid #276458;
  border-left: 3px solid #276458;
  transform: translateY(.2rem) rotate(45deg);
}
nav { display: flex; gap: clamp(.75rem, 2.5vw, 2rem); }
nav a { display: grid; align-items: center; min-height: 44px; text-decoration: none; font-weight: 650; }
nav a:hover, .service-link:hover { text-decoration: underline; text-underline-offset: .2em; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  background: var(--accent);
  color: #2b2117;
  font: inherit;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease;
}
.button:hover { background-color: #ffdaaa; }
.header-cta, form .button { background: var(--dark); color: #fff; }
.header-cta:hover, form .button:hover { background-color: #285348; }
.secondary { color: #fff; background: transparent; border-color: #a8bdb4; }
.secondary:hover { background-color: #2a4b42; }

.hero { background: var(--dark); color: #f8fcf8; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5.5rem); padding-block: clamp(3rem, 7vw, 6.5rem); }
.eyebrow { margin-bottom: .8rem; font-size: .875rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow { color: var(--accent); }
.hero p:not(.eyebrow) { color: #d8e6df; }
.intro { max-width: 39ch; margin-top: 1.25rem; font-size: 1.125rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.6rem; }
.disclosure { margin-top: 1.45rem; font-size: .875rem; }

/* Original CSS illustration of a house and its roof */
.illustration {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.19;
  border: 1px solid #90a69b;
  border-radius: .75rem;
  background: linear-gradient(160deg, #ccdcd2 44%, #8cae9f 100%);
}
.sun { position: absolute; top: 13%; right: 15%; width: 21%; aspect-ratio: 1; border-radius: 50%; background: #f8cc91; }
.house { position: absolute; inset: 22% 9% 16%; z-index: 1; }
.chimney { position: absolute; top: 7%; left: 66%; width: 10%; height: 40%; background: #aa694c; border-top: .35rem solid #794732; }
.wall { position: absolute; inset: 43% 12% 0; display: flex; align-items: center; justify-content: space-evenly; background: #f4e8d0; border-bottom: .5rem solid #baa282; }
.wall span { width: 16%; height: 40%; border: .2rem solid #fcf5e8; background: linear-gradient(90deg, #315b56 46%, #fcf5e8 46% 54%, #315b56 54%); }
.wall span:nth-child(2) { align-self: end; height: 65%; background: #986045; }
.roof {
  position: absolute;
  inset: 0 0 50%;
  clip-path: polygon(50% 0, 100% 94%, 96% 100%, 50% 94%, 4% 100%, 0 94%);
  background: repeating-linear-gradient(0deg, #284a44 0 9px, #3c6059 10px 12px);
}
.ground { position: absolute; inset: 78% -12% -24%; border-radius: 50% 50% 0 0; background: #668c7d; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.7rem; }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: .65rem; }
.service-icon { display: block; width: 1.75rem; height: 1.75rem; position: relative; margin-block: .2rem .5rem; }
.pitched::before { content: ""; position: absolute; inset: .35rem; border-top: 3px solid #276458; border-left: 3px solid #276458; transform: rotate(45deg); }
.inspection::before { content: ""; position: absolute; inset: 0 .35rem .35rem 0; border: 3px solid #276458; border-radius: 50%; }
.inspection::after { content: ""; position: absolute; bottom: .2rem; right: -.04rem; width: .72rem; border-top: 3px solid #276458; transform: rotate(45deg); }
.flat::before { content: ""; position: absolute; inset: .35rem 0 .18rem; border: 3px solid #276458; border-top-width: 5px; }
.service-link { display: flex; align-items: center; min-height: 44px; margin-top: auto; font-weight: 700; text-underline-offset: .2em; }

.process, .quote { background: var(--sage); }
.process-grid, .quote-grid, .areas { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(1.5rem, 6vw, 5rem); }
.section h2 + p { margin-top: 1rem; max-width: 36ch; }
.steps { margin: 0; padding-left: 1.65rem; }
.steps li { padding: .85rem 0 .85rem .45rem; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 0; }
.steps li::marker { font-weight: 800; color: #276458; }
.steps p { margin-top: .35rem; }
.area-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; list-style: none; margin: 0; padding: 0; }
.area-list li { padding: .55rem .75rem; border-bottom: 1px solid var(--line); font-weight: 650; }

form { padding: clamp(1rem, 3vw, 2rem); background: white; border: 1px solid var(--line); border-radius: .65rem; }
fieldset { display: grid; gap: .45rem; min-width: 0; margin: 0; padding: 0; border: 0; }
label { font-weight: 700; }
input, select, textarea { width: 100%; min-height: 48px; margin-bottom: .55rem; padding: .65rem .75rem; border: 1px solid #778e82; border-radius: .35rem; background-color: white; color: var(--ink); font: inherit; }
select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #276458 50%), linear-gradient(135deg, #276458 50%, transparent 50%); background-position: right 1rem center, right .7rem center; background-size: .3rem .3rem; background-repeat: no-repeat; }
textarea { resize: vertical; }
form .button { justify-self: start; }
#form-status:not(:empty) { margin-top: 1rem; padding: .65rem .8rem; background: var(--sage); border-left: 3px solid #276458; color: var(--ink); }
footer { padding-block: 1.6rem; }
footer p { font-size: .875rem; }

@media (max-width: 48rem) {
  .header-inner { flex-wrap: wrap; gap: .1rem .65rem; padding-block: .45rem .1rem; }
  nav { order: 1; width: 100%; justify-content: space-between; }
  .header-cta { min-height: 44px; padding: .5rem .65rem; font-size: .875rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .4rem; }
}
@media (max-width: 39rem) {
  .hero-grid, .cards, .process-grid, .quote-grid, .areas { grid-template-columns: 1fr; }
  .illustration { aspect-ratio: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}

