/* Bluestem Home Services design system. Five colors, one typeface, one column. */
:root {
  --night: #14213d;
  --green: #1f4d3a;
  --amber: #e6a13c;
  --paper: #ffffff;
  --ink: #2b2b2b;
  --line: #d7d7d7;
  --gap: 48px;
}
* { box-sizing: border-box; }
html { font-size: 18px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--green); }
img { max-width: 100%; display: block; }
p, li { max-width: 68ch; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.top { max-width: 720px; margin: 0 auto; padding: 18px 20px; }
.brand { color: var(--green); text-decoration: none; font-weight: 700; font-size: 1.05rem; }

h1 { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-weight: 700; color: var(--green); font-size: 1.5rem; line-height: 1.15; margin: 0 0 16px; }
h3 { font-weight: 700; font-size: 1.1rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.muted { color: #5d5d5d; font-weight: 400; }
main > section { margin-top: var(--gap); }
main > section.first { margin-top: 32px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr; background: var(--night); }
.hero-copy { position: relative; grid-column: 1; grid-row: 1; min-height: 360px; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-tint { position: absolute; inset: 0; background: rgba(20, 33, 61, 0.55); }
.hero-text { position: relative; padding: 40px 20px 32px; color: #fff; max-width: 720px; }
.hero-text h1 { color: #fff; }
.hero-text .lede { color: #fff; font-size: 1.05rem; margin: 0; }
.hero-side { grid-column: 1; grid-row: 2; background: var(--paper); padding: 0 20px 8px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 20px; margin-top: 20px; }
.box-title { margin-bottom: 12px; }
.box-note { margin: 0; }
.town-buttons .btn { margin-top: 10px; }
.town-buttons .btn:first-child { margin-top: 0; }
.trust { color: var(--green); font-weight: 700; margin: 14px 0 0; }

/* buttons and inputs */
.btn {
  display: block; width: 100%; min-height: 52px; font: inherit; font-weight: 700; font-size: 1rem; text-align: center;
  text-decoration: none; padding: 13px 18px; border: 0; border-radius: 6px; background: var(--amber); color: var(--night);
  cursor: pointer; margin-top: 18px;
}
.btn:hover { background: #d9942e; }
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; margin: 0 0 8px; padding: 0; font-size: 1.1rem; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"] {
  width: 100%; min-height: 52px; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); color: var(--ink);
}
input:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; }
.help { color: #5d5d5d; font-size: 0.95rem; margin: 6px 0 0; }
.estimate {
  margin-top: 16px; padding: 14px 16px; background: var(--night); color: #fff; border-radius: 6px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 1.2;
}
.estimate-num { color: var(--amber); font-weight: 700; font-size: 32px; }
.estimate-rest { font-size: 0.95rem; }
.progress { margin: -20px -20px 16px; }
.progress-bar { height: 3px; background: var(--line); }
.progress-bar span { display: block; height: 100%; background: var(--green); transition: width 200ms ease; }
#progress-label { font-size: 0.9rem; color: #5d5d5d; margin: 10px 20px 0; }
.weeks { display: grid; gap: 8px; margin-top: 4px; }
.week { display: block; margin: 0; font-weight: 400; position: relative; }
.week input { position: absolute; opacity: 0; width: 0; height: 0; }
.week span { display: block; min-height: 52px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; text-align: center; }
.week input:checked + span { background: var(--night); color: #fff; border-color: var(--night); }
.week input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.check input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.back { margin: 12px 0 0; text-align: center; }
.error { border: 1px solid var(--night); padding: 12px 14px; border-radius: 6px; margin: 0 0 14px; }

/* step motion: a short slide, only when moving between steps */
.step.enter { animation: step-in 200ms ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .step.enter { animation: none; }
  .progress-bar span { transition: none; }
}

/* photo strip */
.strip { margin-left: -20px; margin-right: -20px; }
.strip-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 20px; -webkit-overflow-scrolling: touch; }
.strip-item { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.strip-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip-item figcaption { font-size: 0.95rem; color: #5d5d5d; margin-top: 8px; }

/* lists */
ul, ol { padding-left: 22px; margin: 0; }
li { margin: 6px 0; }
.how ol li { padding-left: 4px; }

/* faq */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; padding: 16px 40px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; background: var(--green);
}
.faq summary::before { width: 16px; height: 2px; margin-top: -1px; }
.faq summary::after { width: 2px; height: 16px; right: 13px; margin-top: -8px; }
.faq details[open] summary::after { display: none; }
.faq details p { margin: 0 0 18px; }

/* footer */
.foot { background: var(--night); color: #fff; margin-top: var(--gap); }
.foot-inner { max-width: 720px; margin: 0 auto; padding: 40px 20px 48px; }
.with-bar .foot-inner { padding-bottom: 96px; }
.foot p { margin: 4px 0; }
.foot a { color: #fff; }
.foot-name { font-weight: 700; }
.foot-links a { margin-right: 18px; }

/* sticky bar, phones only */
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 20px; background: var(--night); }
.bottombar .btn { margin-top: 0; }

/* admin */
.table-wrap { overflow-x: auto; }
.bookings { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
.bookings th, .bookings td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }

@media (min-width: 760px) {
  :root { --gap: 72px; }
  html { font-size: 19px; }
  h1 { font-size: 56px; }
  .hero { grid-template-columns: 1fr 400px; column-gap: 40px; padding: 0 20px; }
  .hero-copy { grid-column: 1 / -1; grid-row: 1; margin: 0 -20px; min-height: 560px; padding: 0 20px; }
  .hero-text { padding: 72px 0 72px; margin: 0 auto; width: 100%; max-width: 1120px; padding-right: 480px; }
  .hero-side { grid-column: 2; grid-row: 1; align-self: center; background: transparent; padding: 48px 0; z-index: 1; }
  .box { margin-top: 0; }
  .hero-side .trust { color: #fff; }
  .btn { width: auto; min-width: 220px; }
  .box .btn, .town-buttons .btn { width: 100%; }
  .strip { margin: var(--gap) 0 0; }
  .strip-track { overflow: visible; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; }
  .strip-item { flex: none; }
  .bottombar { display: none; }
  .wrap { padding-bottom: 0; }
  .foot-inner { padding-bottom: 48px; }
}
@media (min-width: 1160px) {
  .hero { grid-template-columns: 1fr 400px; max-width: 1120px; margin: 0 auto; padding: 0; }
  .hero-copy { margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%); }
  .hero-text { max-width: 1120px; padding-right: 480px; }
}
