/* Boston Damp Proofing - fenland pragmatic register
   dark olive / charcoal on pale oat, Public Sans throughout */

:root {
  --oat: #f1ecdf;
  --oat-2: #e7dfcc;
  --ink: #22241b;
  --ink-soft: #43463a;
  --olive: #40472c;
  --olive-deep: #2d321d;
  --charcoal: #23251e;
  --line: #c6bea6;
  --footer-ink: #d9d3c0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; }

body {
  font-family: "Public Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: var(--oat);
  color: var(--ink);
  line-height: 1.6;
}

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- masthead ---------- */

.masthead {
  background: var(--charcoal);
  color: var(--oat);
  border-bottom: 4px solid var(--olive);
}

.masthead-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  color: var(--oat);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.25;
}

.brand span {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9b49e;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
}

.nav a:not(.call) {
  color: var(--oat);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  padding: 0.2rem 0;
}

.nav a:not(.call):hover,
.nav a:not(.call):focus { border-bottom-color: var(--oat); }

.nav a.call,
.nav a.call:visited {
  background: var(--oat);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 1px solid var(--oat);
}

.nav a.call:hover,
.nav a.call:focus { background: var(--oat-2); border-color: var(--oat-2); }

/* ---------- buttons (explicit color declarations beat any link rule) ---------- */

.btn,
a.btn,
a.btn:visited {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--olive-deep);
  cursor: pointer;
  font-family: inherit;
}

.btn-solid,
a.btn-solid,
a.btn-solid:visited,
button.btn-solid {
  background: var(--olive-deep);
  color: var(--oat);
}

.btn-solid:hover,
a.btn-solid:hover,
button.btn-solid:hover { background: var(--olive); border-color: var(--olive); color: var(--oat); }

.btn-line,
a.btn-line,
a.btn-line:visited {
  background: transparent;
  color: var(--olive-deep);
}

.btn-line:hover,
a.btn-line:hover { background: var(--oat-2); color: var(--olive-deep); }

/* ---------- hero ---------- */

.hero { padding: 3rem 0 2.5rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .lede { font-size: 1.08rem; margin-bottom: 1rem; color: var(--ink); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }

.hero-note { margin-top: 1rem; font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- quote form card ---------- */

.quote-card {
  background: var(--oat-2);
  border: 2px solid var(--olive);
  padding: 1.5rem;
}

.quote-card h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }

.quote-card p.small { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }

.quote-card label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.25rem;
}

.quote-card input,
.quote-card select,
.quote-card textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--ink-soft);
  background: var(--oat);
  color: var(--ink);
}

.quote-card textarea { min-height: 6rem; resize: vertical; }

.quote-card button { margin-top: 1.1rem; width: 100%; }

/* ---------- sections ---------- */

.section { padding: 2.5rem 0; border-top: 1px solid var(--line); }

.overline {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 0.4rem;
}

.section h2, .page-head h1 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 1rem; }

.section h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }

.section p, .page-body p { margin-bottom: 1rem; max-width: 46rem; }

.page-body h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; }
.page-body h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }

.page-head { padding: 2.75rem 0 0.5rem; }
.page-head .lede { font-size: 1.08rem; max-width: 46rem; margin-bottom: 0; }
.page-body { padding: 1.5rem 0 3rem; }

/* ---------- lists ---------- */

.page-body ul, .section ul,
.page-body ol, .section ol { margin: 0 0 1rem 1.25rem; max-width: 45rem; }

.page-body li, .section li { margin-bottom: 0.4rem; }

ul { list-style: square; }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 1.25rem 0; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  min-width: 34rem;
}

caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-bottom: 0.4rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th { background: var(--oat-2); font-weight: 700; }

td a { color: var(--olive-deep); }

/* ---------- general links ---------- */

main a { color: var(--olive-deep); text-decoration-thickness: 1px; }
main a:hover { color: var(--olive); }

/* ---------- callout band ---------- */

.band {
  background: var(--olive-deep);
  color: var(--oat);
  padding: 2.25rem 0;
}

.band .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 3rem;
  align-items: center;
}

.band h2 { font-size: 1.4rem; margin-bottom: 0.5rem; grid-column: 1; }

.band p { max-width: 44rem; margin-bottom: 0; color: #e4dfcd; grid-column: 1; }

.band a.btn-oat { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }

.band a.btn-oat,
a.btn-oat,
a.btn-oat:visited {
  display: inline-block;
  background: var(--oat);
  color: var(--charcoal);
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--oat);
}

.band a.btn-oat:hover { background: var(--oat-2); border-color: var(--oat-2); color: var(--charcoal); }

/* ---------- FAQ ---------- */

.faq-item { border-top: 1px solid var(--line); padding: 1.25rem 0; max-width: 46rem; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.faq-item p { margin-bottom: 0.6rem; }

/* ---------- footer ---------- */

.footer {
  background: var(--charcoal);
  color: var(--footer-ink);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
  border-top: 4px solid var(--olive);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--oat);
  margin-bottom: 0.75rem;
}

.footer ul { list-style: none; margin: 0; }
.footer li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.footer a { color: var(--footer-ink); }
.footer a:hover { color: var(--oat); }

.disclosure {
  border-top: 1px solid #3c3f33;
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  max-width: 46rem;
}

.disclosure a { color: var(--footer-ink); }

/* ---------- responsive ---------- */

/* ---------- split section (prose + facts panel) ---------- */

.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.facts {
  border: 1px solid var(--line);
  background: var(--oat-2);
  padding: 1.25rem 1.25rem 0.5rem;
}

.facts h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--olive); margin-bottom: 0.75rem; }

.facts dl { margin: 0; }
.facts dt { font-weight: 700; font-size: 0.9rem; }
.facts dd { margin: 0.1rem 0 0.85rem; font-size: 0.9rem; color: var(--ink-soft); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding-top: 2rem; }
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .band .wrap { display: block; }
  .band p { margin-bottom: 1.2rem; }
}

@media (max-width: 560px) {
  .masthead-in { flex-direction: column; align-items: flex-start; }
  .nav { gap: 0.25rem 0.9rem; }
  .hero h1 { font-size: 1.6rem; }
}
