/* Skegness Damp Proofing: seaside-but-serious
   Deep navy + warm light grey, condensed headings, strong horizontal bands. */

:root {
  --navy: #16283e;
  --navy-deep: #0f1c2e;
  --navy-line: #24384f;
  --grey-band: #f4f4f1;
  --grey-band-alt: #e9e8e4;
  --grey-rule: #d6d4cf;
  --ink: #1c2836;
  --ink-soft: #43505f;
  --buoy: #b5400f;
  --buoy-dark: #93330b;
  --foam: #eef1f5;
  --foam-dim: #c3cdd9;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--grey-band);
}

h1, h2, h3, h4 {
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 0.9rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p + p { margin-top: 1rem; }

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

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

/* ---- Buttons. High specificity on purpose: nothing may recolour these. ---- */
a.btn, a.btn:link, a.btn:visited, button.btn {
  display: inline-block;
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
}
a.btn-solid, a.btn-solid:link, a.btn-solid:visited, button.btn-solid {
  background: var(--buoy);
  color: #ffffff;
  border-color: var(--buoy);
}
a.btn-solid:hover, button.btn-solid:hover {
  background: var(--buoy-dark);
  border-color: var(--buoy-dark);
  color: #ffffff;
}
a.btn-line, a.btn-line:link, a.btn-line:visited {
  background: transparent;
  color: #ffffff;
  border-color: var(--foam-dim);
}
a.btn-line:hover { border-color: #ffffff; color: #ffffff; }

/* ---- Masthead ---- */
.topline {
  background: var(--navy-deep);
  color: var(--foam);
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.topline .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topline a, .topline a:link, .topline a:visited { color: var(--foam); text-decoration: none; }
.topline a:hover { text-decoration: underline; color: #ffffff; }

header.mast {
  background: var(--navy);
  border-bottom: 4px solid var(--buoy);
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
}
.wordmark {
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wordmark:hover { color: #ffffff; }
.wordmark span { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--foam-dim); }

nav.site-nav { display: flex; align-items: center; gap: 0.25rem 1.1rem; flex-wrap: wrap; }
nav.site-nav a:not(.btn) {
  color: var(--foam);
  text-decoration: none;
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
nav.site-nav a:not(.btn):hover { color: #ffffff; border-bottom-color: var(--buoy); }
nav.site-nav a[aria-current="page"]:not(.btn) { color: #ffffff; border-bottom-color: var(--buoy); }

/* ---- Bands ---- */
.band { padding: 3.25rem 0; }
.band-grey { background: var(--grey-band); }
.band-greyer { background: var(--grey-band-alt); border-top: 1px solid var(--grey-rule); border-bottom: 1px solid var(--grey-rule); }
.band-navy { background: var(--navy); color: var(--foam); }
.band-navy h1, .band-navy h2, .band-navy h3 { color: #ffffff; }
.band-navy a:not(.btn) { color: #d8e2ee; }
.band-navy a:not(.btn):hover { color: #ffffff; }
/* Light cards sit inside navy bands, so the band link colour must not leak into them. */
.band-navy .quote-card a:not(.btn) { color: var(--buoy-dark); }
.band-navy .quote-card a:not(.btn):hover { color: var(--ink); }

h2.rule::after {
  content: "";
  display: block;
  width: 52px;
  height: 4px;
  background: var(--buoy);
  margin-top: 0.55rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46rem; }
.band-navy .lede { color: var(--foam-dim); }

/* ---- Hero ---- */
.hero { padding: 3.5rem 0 3.75rem; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2.5rem;
  align-items: start;
}
p.kicker {
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--foam-dim);
  margin-bottom: 0.6rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero .cta-row { margin-top: 1.5rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---- Quote form card ---- */
.quote-card {
  background: #ffffff;
  border-top: 5px solid var(--buoy);
  padding: 1.5rem 1.5rem 1.75rem;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(15, 28, 46, 0.35);
}
.quote-card h2, .quote-card h3 { color: var(--ink); font-size: 1.35rem; margin-bottom: 0.35rem; }
.quote-card p.small { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.quote-card label {
  display: block;
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.8rem 0 0.25rem;
}
.quote-card input, .quote-card select, .quote-card textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #a9b2bd;
  background: #fdfdfc;
  color: var(--ink);
}
.quote-card input:focus, .quote-card select:focus, .quote-card textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}
.quote-card button.btn-solid { width: 100%; margin-top: 1.1rem; }
.quote-card p.fineprint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.8rem; }

/* ---- Card grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
.card {
  background: #ffffff;
  border: 1px solid var(--grey-rule);
  border-top: 4px solid var(--navy);
  padding: 1.4rem 1.4rem 1.5rem;
}
.card h3 a, .card h3 a:link, .card h3 a:visited { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--buoy-dark); text-decoration: underline; }
.card p { font-size: 0.98rem; color: var(--ink-soft); }
.card .more {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 600;
  color: var(--buoy-dark);
  text-decoration: none;
}
.card .more:hover { color: var(--buoy); text-decoration: underline; }

/* ---- Article pages ---- */
.article { max-width: 46rem; }
.article h2 { margin-top: 2.2rem; }
.article ul, .article ol { margin: 1rem 0 1rem 1.4rem; }
.article li + li { margin-top: 0.45rem; }

.factstrip {
  border-left: 4px solid var(--navy);
  background: var(--grey-band-alt);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* ---- Steps ---- */
ol.steps { list-style: none; counter-reset: step; margin: 1.75rem 0 0; max-width: 52rem; }
ol.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--grey-rule);
}
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--buoy);
}
ol.steps li strong { display: block; font-family: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif; font-size: 1.15rem; }

/* ---- FAQ ---- */
.faq-item { border-top: 1px solid var(--grey-rule); padding: 1.3rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--grey-rule); }
.faq-item h3 { font-size: 1.2rem; }
.faq-item p { color: var(--ink-soft); margin-top: 0.4rem; }

/* ---- Call band ---- */
.callband { text-align: center; }
.callband h2 { margin-bottom: 0.5rem; }
.callband p { max-width: 42rem; margin: 0 auto; color: var(--foam-dim); }
.callband .cta-row { justify-content: center; display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* ---- Footer ---- */
footer.site-foot {
  background: var(--navy-deep);
  color: var(--foam-dim);
  border-top: 4px solid var(--buoy);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
footer.site-foot h4 {
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}
footer.site-foot a, footer.site-foot a:link, footer.site-foot a:visited { color: var(--foam-dim); text-decoration: none; }
footer.site-foot a:hover { color: #ffffff; text-decoration: underline; }
footer.site-foot ul { list-style: none; }
footer.site-foot li { margin-bottom: 0.4rem; }
.disclosure {
  border-top: 1px solid var(--navy-line);
  margin-top: 2rem;
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--foam-dim);
}

/* ---- Skip link ---- */
.skip {
  position: absolute;
  left: -9999px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.5rem 1rem;
}
.skip:focus { left: 0.5rem; top: 0.5rem; z-index: 10; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .mast-inner { justify-content: center; text-align: center; }
  nav.site-nav { justify-content: center; }
  .topline .wrap { justify-content: center; text-align: center; }
}
