/* Grantham Damp Proofing - site styles
   Cool moisture-and-masonry register: petrol blue, slate, mist. */

:root {
  --deep: #0f2430;
  --slate: #24404e;
  --teal: #0e7c86;
  --teal-dark: #0a606a;
  --mist: #eef3f4;
  --mist-2: #e2eaec;
  --paper: #ffffff;
  --ink: #1c2b32;
  --ink-soft: #46595f;
  --line: #d3dee1;
  --on-deep: #d9e6ea;
  --on-deep-strong: #ffffff;
  --radius: 10px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: "Public Sans", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-dark); }
a:hover { color: var(--deep); }

ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.45rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--deep);
  color: var(--on-deep);
  font-size: 0.88rem;
  padding: 7px 0;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: var(--on-deep-strong); text-decoration: none; font-weight: 700; }
.topbar a:hover { text-decoration: underline; }

/* ---------- header / nav ---------- */
.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--deep);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand svg { flex: 0 0 auto; }
.brand span em { font-style: normal; color: var(--teal); }

.nav-t { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--deep);
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 7px 11px;
  border-radius: 7px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  background: var(--mist);
  color: var(--deep);
}

@media (max-width: 900px) {
  .nav-btn { display: inline-block; }
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; padding: 6px 0 10px; }
  .site-nav a { padding: 10px 8px; border-bottom: 1px solid var(--mist-2); border-radius: 0; }
  .nav-t:checked ~ .site-nav { display: flex; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(14, 124, 134, 0.35), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--slate) 100%);
  color: var(--on-deep);
  padding: 56px 0 64px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: start;
}
.hero h1 { color: var(--on-deep-strong); margin-bottom: 1rem; }
.hero .lede { font-size: 1.08rem; color: var(--on-deep); }
.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fd0d6;
  margin-bottom: 14px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* subpage hero */
.hero--sub { padding: 44px 0 48px; }
.hero--sub .wrap { display: block; }
.hero--sub .lede { max-width: 46rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  border-radius: 8px;
  padding: 13px 22px;
  font-size: 1rem;
  border: 2px solid transparent;
}
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-dark); color: #fff; }
.btn-ghost { border-color: #6fa5ad; color: var(--on-deep-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-line { border-color: var(--teal); color: var(--teal-dark); }
.btn-line:hover { background: var(--mist); color: var(--deep); }

/* ---------- quote form card ---------- */
.quote-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 18px 40px rgba(8, 22, 30, 0.35);
}
.quote-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.quote-card .sub { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; }
.quote-card label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin: 12px 0 4px;
  color: var(--slate);
}
.quote-card input, .quote-card select, .quote-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fbfdfd;
}
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}
.quote-card button {
  width: 100%;
  margin-top: 16px;
  border: 0;
  cursor: pointer;
  background: var(--teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  padding: 13px 18px;
}
.quote-card button:hover { background: var(--teal-dark); }
.quote-card .fine { font-size: 0.78rem; color: var(--ink-soft); margin-top: 10px; }
.quote-card .fine a { color: var(--ink-soft); }

/* ---------- masonry divider band ---------- */
.band-brick {
  height: 18px;
  background:
    repeating-linear-gradient(90deg,
      var(--mist-2) 0 64px,
      var(--paper) 64px 66px),
    linear-gradient(var(--mist-2), var(--mist-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- sections ---------- */
.section { padding: 58px 0; }
.section--mist { background: var(--mist); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep h2 { color: var(--on-deep-strong); }
.section .intro { max-width: 46rem; margin-bottom: 2rem; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.section--deep .eyebrow { color: #8fd0d6; }

/* ---------- card grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
}
.card p { font-size: 0.95rem; color: var(--ink-soft); }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; padding-top: 10px; }
.card .card-link::after { content: " \2192"; }
.card-icon {
  width: 44px; height: 44px;
  border-radius: 9px;
  background: var(--mist);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* ---------- method steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 22px;
}
.step::before {
  content: "0" counter(step);
  display: block;
  font-weight: 800;
  font-size: 1.5rem;
  color: #8fd0d6;
  margin-bottom: 8px;
}
.step h3 { color: var(--on-deep-strong); }
.step p { color: var(--on-deep); font-size: 0.95rem; }

/* ---------- prose pages ---------- */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.aside-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: sticky;
  top: 20px;
}
.aside-card h3 { margin-bottom: 8px; }
.aside-card p { font-size: 0.92rem; color: var(--ink-soft); }
.aside-card .btn { width: 100%; text-align: center; margin-top: 8px; }
.aside-card .tel-line { margin-top: 12px; font-size: 0.9rem; }

/* ---------- checklist ---------- */
.ticks { list-style: none; margin-left: 0; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 800;
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--paper);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 18px;
  color: var(--deep);
  list-style: none;
  position: relative;
  padding-right: 42px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.3rem;
  color: var(--teal-dark);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--ink-soft); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(14, 124, 134, 0.4), transparent 60%),
    var(--deep);
  color: var(--on-deep);
  border-radius: 14px;
  padding: 40px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--on-deep-strong); margin-bottom: 6px; }
.cta-banner p { margin: 0; }

/* ---------- tables ---------- */
.data-note {
  background: var(--mist);
  border-left: 4px solid var(--teal);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  font-size: 0.95rem;
  margin: 1.4rem 0;
}

/* ---------- footer ---------- */
.site-foot {
  background: var(--deep);
  color: var(--on-deep);
  padding: 48px 0 30px;
  font-size: 0.92rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 30px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 {
  color: var(--on-deep-strong);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.site-foot ul { list-style: none; margin: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: var(--on-deep); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.disclosure {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 22px;
  font-size: 0.85rem;
  color: #a9bfc7;
}
.disclosure a { color: #cfe0e5; }
