/* Westmont Sterling — site v1 stylesheet. No frameworks, no web fonts, no third-party requests. */

:root {
  --concrete: #e8ecec;   /* washed concrete: page ground */
  --sheet: #ffffff;      /* work-order paper */
  --ink: #1c2a32;        /* wet asphalt: text */
  --muted: #4f5f68;      /* secondary text, 7:1 on sheet */
  --water: #145f78;      /* pool-tile blue: links, rules */
  --water-deep: #0e4558;
  --rule: #c5cfd1;
  --hivis: #f2c230;      /* used only on the guarantee */

  --head: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 68ch;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--water); text-underline-offset: 0.18em; }
a:hover { color: var(--water-deep); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--hivis);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px;
}
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  background: var(--ink);
  color: #fff;
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
}
.brand:hover { color: #fff; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 18px;
}
.site-nav a {
  color: #dbe6e8; text-decoration: none; font-size: 0.95rem;
  padding: 6px 0; display: inline-block;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  color: #fff; text-decoration: underline; text-decoration-color: var(--hivis);
  text-decoration-thickness: 2px;
}

/* Layout */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
main { padding: 32px 0 56px; }
.prose { max-width: var(--measure); }

/* Type scale (1.25 ratio) */
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 6.4vw, 3.4rem); max-width: 20ch; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-top: 1.8em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p, ul, ol, dl { margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.55; max-width: 60ch; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Hero: a plain statement, then the disclosure, nothing decorative */
.hero { padding: 8px 0 8px; }
.hero h1 { margin-bottom: 0.4em; }
.disclosure {
  border-left: 4px solid var(--water);
  background: var(--sheet);
  padding: 12px 16px;
  max-width: 60ch;
  font-size: 0.98rem;
}

/* The work-order sheet: the one memorable element */
.work-order {
  background: var(--sheet);
  border: 1px solid var(--rule);
  margin: 32px 0;
  max-width: 820px;
}
.work-order header {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  border-bottom: 2px solid var(--ink);
  padding: 14px 18px 10px;
}
.work-order header h2 { margin: 0; font-size: 1.5rem; }
.work-order header p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.work-order ol {
  list-style: none; margin: 0; padding: 0;
  counter-reset: step;
}
.work-order li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0 12px;
  padding: 16px 18px;
  border-bottom: 1px dashed var(--rule);
}
.work-order li:last-child { border-bottom: 0; }
.work-order li::before {
  content: counter(step);
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--water);
}
.work-order li h3 { margin: 0 0 4px; font-size: 1.15rem; }
.work-order li p { margin: 0; }

/* Guarantee: the only place the hi-vis colour appears */
.guarantee {
  background: var(--ink);
  color: #fff;
  padding: 22px 20px;
  margin: 32px 0;
  max-width: 820px;
  border-top: 8px solid var(--hivis);
}
.guarantee h2 { margin-top: 0; color: #fff; }
.guarantee p { max-width: 62ch; }
.guarantee a { color: #fff; }

/* Two-column blocks on wider screens */
.split { display: grid; gap: 8px 40px; }
@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; }
}

/* Plain lists of facts */
.facts { padding-left: 1.2em; }
.facts li { margin-bottom: 0.4em; }

/* Price table */
.price-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 640px;
  background: var(--sheet);
  margin: 8px 0 12px;
  font-size: 0.98rem;
}
.price-table caption {
  text-align: left; font-size: 0.9rem; color: var(--muted); padding-bottom: 6px;
}
.price-table th, .price-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top;
}
.price-table thead th { border-bottom: 2px solid var(--ink); font-family: var(--head); font-size: 1.05rem; }
.price-table td.num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* FAQ */
.faq details {
  background: var(--sheet);
  border: 1px solid var(--rule);
  margin: 0 0 8px;
  max-width: 820px;
}
.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  list-style-position: outside;
}
.faq details[open] summary { border-bottom: 1px solid var(--rule); }
.faq details > div { padding: 12px 16px 4px; max-width: var(--measure); }
.faq h2 + details { margin-top: 0; }

/* Contact block */
.contact-lines { font-size: 1.25rem; line-height: 1.8; padding-left: 0; list-style: none; }
.contact-lines a { font-weight: 600; }

.button {
  display: inline-block;
  background: var(--water);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 3px;
  margin: 4px 8px 4px 0;
}
.button:hover { background: var(--water-deep); color: #fff; }
.button.quiet {
  background: transparent; color: var(--water); border: 2px solid var(--water); padding: 10px 16px;
}
.button.quiet:hover { background: var(--sheet); color: var(--water-deep); }

.callout {
  background: var(--sheet);
  border: 1px solid var(--rule);
  padding: 18px 20px;
  max-width: 820px;
  margin: 28px 0;
}
.callout h2 { margin-top: 0; }

/* Footer: name, phone, email on every page (P4 step 5; no address, C16) */
.site-footer {
  background: var(--ink);
  color: #c9d6d9;
  font-size: 0.95rem;
  padding: 28px 0 36px;
}
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 16px 40px; }
@media (min-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr; }
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-footer p { margin: 0 0 0.5em; }
.nap strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .site-header, .site-footer, .skip { display: none; }
  body { background: #fff; }
}
