:root {
  --bone: #f1eee6;
  --concrete: #dcd8ce;
  --char: #17140f;
  --char-2: #24201a;
  --muted: #6d675d;
  --line: #cfc9bc;
  --sun: #f5a524;
  --sun-deep: #d9820f;
  --error: #b3261e;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Barlow", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--char);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 20; padding: .5rem 1rem; background: var(--sun); color: var(--char); }
.skip-link:focus { top: 1rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3rem; padding: 0 1.5rem;
  border: 0; background: var(--sun); color: var(--char);
  font: 700 1rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .2s;
}
.button:hover { background: #ffb940; }
.button--small { min-height: 2.5rem; padding: 0 1.1rem; font-size: .9rem; }
.button--block { width: 100%; }
.button--large { min-height: 3.5rem; font-size: 1.15rem; }
.button[disabled] { cursor: progress; background: var(--concrete); }
.button.is-sending .button__label::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .6em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.section-title { font: 700 clamp(2rem, 4.5vw, 3.4rem)/.95 var(--head); text-transform: uppercase; letter-spacing: .01em; }

.ph { position: relative; margin: 0; overflow: hidden; background: var(--concrete); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.is-missing img { visibility: hidden; }
.ph.is-missing::after { content: attr(data-file); position: absolute; left: .75rem; bottom: .75rem; font: .72rem/1.4 ui-monospace, monospace; color: var(--muted); }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 5;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem var(--gutter);
  color: var(--bone);
}
.logo { display: flex; align-items: center; gap: .5rem; font: 700 1.5rem/1 var(--head); letter-spacing: .14em; text-decoration: none; }
.logo svg { width: 1.6rem; height: 1.6rem; fill: var(--sun); stroke: var(--sun); }
.header-phone { margin-left: auto; font-weight: 500; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 27rem);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(7rem, 12vw, 9rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(245, 165, 36, .18), transparent 60%),
    var(--char);
  color: var(--bone);
}
.kicker { font: 600 .95rem/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.hero__title { margin: 1.25rem 0 1.5rem; font: 700 clamp(3.6rem, 10vw, 8.5rem)/.86 var(--head); text-transform: uppercase; letter-spacing: -.005em; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; color: var(--sun); }
.hero__lede { max-width: 34rem; color: #cfc8ba; }
.hero__points { display: grid; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.hero__points li { display: flex; gap: .75rem; align-items: baseline; font-weight: 500; }
.hero__points li::before { content: ""; flex: none; width: .55rem; height: .55rem; background: var(--sun); transform: translateY(-.1em); }

.estimator {
  display: grid; gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bone); color: var(--char);
}
.estimator h2 { font: 700 1.6rem/1 var(--head); text-transform: uppercase; }
.estimator__input { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: baseline; }
.estimator__input label { font-size: .9rem; color: var(--muted); }
.estimator__input output { font: 700 1.6rem/1 var(--head); font-variant-numeric: tabular-nums; }
.estimator__input input { grid-column: 1 / -1; width: 100%; accent-color: var(--sun-deep); }
.estimator__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); }

.estimator__hours { margin: 0; padding: 0; border: 0; }
.estimator__hours legend { margin-bottom: .5rem; font-size: .9rem; color: var(--muted); }
.estimator__hours { display: flex; flex-wrap: wrap; gap: .4rem; }
.estimator__hours legend { width: 100%; }
.estimator__hours label { position: relative; flex: 1; }
.estimator__hours input { position: absolute; opacity: 0; }
.estimator__hours span {
  display: block; padding: .55rem .5rem; border: 1px solid var(--line);
  font: 600 .95rem/1 var(--head); letter-spacing: .04em; text-align: center; text-transform: uppercase; cursor: pointer;
}
.estimator__hours input:checked + span { background: var(--char); border-color: var(--char); color: var(--bone); }
.estimator__hours input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.estimator__result { position: relative; }
.sun-arc { display: block; width: 100%; height: auto; overflow: visible; }
.sun-arc__track, .sun-arc__fill { fill: none; stroke-width: 6; }
.sun-arc__track { stroke: var(--concrete); stroke-dasharray: 2 6; }
.sun-arc__fill { stroke: var(--sun); stroke-linecap: round; }
.sun-arc__ground { stroke: var(--char); stroke-width: 2; }
.sun-arc__sun { fill: var(--sun); stroke: var(--bone); stroke-width: 4; }
.coverage { position: absolute; left: 0; right: 0; bottom: 1.4rem; display: grid; justify-items: center; }
.coverage strong { font: 700 3.2rem/1 var(--head); font-variant-numeric: tabular-nums; }
.coverage span { font-size: .85rem; color: var(--muted); }

.estimator__figures { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.estimator__figures div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.estimator__figures div:nth-child(odd) { padding-right: 1rem; }
.estimator__figures dt { font-size: .8rem; color: var(--muted); }
.estimator__figures dd { margin: 0; font: 700 1.45rem/1.1 var(--head); font-variant-numeric: tabular-nums; }
.estimator__note { font-size: .78rem; color: var(--muted); }

.projects, .process, .payment, .faq { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.project-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin: 2.5rem 0 0; padding: 0; list-style: none; }
.project .ph { aspect-ratio: 3 / 2; }
.project__text { padding: 1rem 0 .75rem; }
.project h3 { font: 700 1.5rem/1.1 var(--head); text-transform: uppercase; }
.project__text p { color: var(--muted); }
.project dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 2px solid var(--char); }
.project dl div { padding-top: .6rem; }
.project dt { font-size: .78rem; color: var(--muted); }
.project dd { margin: 0; font: 600 1.15rem/1.2 var(--head); }

.process { background: var(--concrete); }
.process__body { position: relative; margin-top: 3rem; padding-left: 3rem; }
.process__line { position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 3px; background: var(--line); }
.process__line span { display: block; width: 100%; height: 100%; background: var(--sun-deep); transform-origin: top; }
.steps { display: grid; gap: 2.5rem; max-width: 46rem; margin: 0; padding: 0; list-style: none; }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: -2.95rem; top: .35rem;
  width: 1.1rem; height: 1.1rem; border: 3px solid var(--line); border-radius: 50%; background: var(--concrete);
  transition: border-color .3s, background-color .3s;
}
.step.is-active::before { border-color: var(--sun-deep); background: var(--sun); }
.step__num { font: 600 .95rem/1 var(--head); letter-spacing: .1em; color: var(--sun-deep); }
.step h3 { margin: .3rem 0 .4rem; font: 700 1.7rem/1.05 var(--head); text-transform: uppercase; }
.step p { color: #4d483f; }

.payment__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); margin-top: 2.5rem; }
.payment article { padding: 1.75rem; border: 2px solid var(--char); }
.payment article:last-child { background: var(--char); color: var(--bone); }
.payment h3 { margin-bottom: .75rem; font: 700 1.6rem/1.05 var(--head); text-transform: uppercase; }
.payment article:last-child p { color: #cfc8ba; }

.assessment {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
  background: var(--char); color: var(--bone);
}
.assessment__intro p { margin-top: 1.25rem; max-width: 26rem; color: #cfc8ba; }
.assessment__contact a { color: var(--sun); }
.assessment__panel { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--bone); color: var(--char); }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field > label { font: 600 .95rem/1.2 var(--head); letter-spacing: .06em; text-transform: uppercase; }
.optional { font-family: var(--sans); font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .85rem;
  border: 1px solid #b7b0a2; border-radius: 0; background: #fff; color: var(--char);
  font: 400 1rem/1.4 var(--sans);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--char); box-shadow: 0 0 0 2px var(--sun); }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.field__error { font-size: .85rem; color: var(--error); }
.field__error:empty { display: none; }

.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: #4d483f; cursor: pointer; }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--sun-deep); }

.estimate-chip { padding: .7rem .9rem; border-left: 3px solid var(--sun); background: #fbf3e2; font-size: .9rem; }
.form__alert { padding: .8rem 1rem; border-left: 3px solid var(--error); background: #f8e2df; color: #6e1813; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thanks { display: grid; gap: 1rem; outline: none; }
.thanks__sun { width: 4rem; height: 4rem; fill: var(--sun); stroke: var(--sun-deep); stroke-width: 3; stroke-linecap: round; }
.thanks__rays { transform-origin: 32px 32px; }
.thanks h3 { font: 700 2.2rem/1 var(--head); text-transform: uppercase; }
.thanks ol { margin: 0; padding-left: 1.2rem; color: #4d483f; }
.thanks__demo { padding: .6rem .8rem; background: var(--concrete); font-size: .82rem; }

.faq { max-width: 60rem; }
.faq .section-title { margin-bottom: 2rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0;
  font: 600 1.35rem/1.2 var(--head); text-transform: uppercase; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sun-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 1.25rem; max-width: 46rem; color: #4d483f; }

.site-footer { display: grid; gap: .4rem; padding: 2rem var(--gutter); border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

@media (max-width: 900px) {
  .hero, .assessment { grid-template-columns: 1fr; }
  .project-list { grid-template-columns: 1fr; }
  .project { display: grid; grid-template-columns: 9rem 1fr; gap: 0 1rem; }
  .project .ph { grid-row: span 2; aspect-ratio: 1; }
  .project__text { padding-top: 0; }
}

@media (max-width: 600px) {
  .header-phone { display: none; }
  .site-header .button { margin-left: auto; }
  .form__row, .payment__options { grid-template-columns: 1fr; }
}
