/* ---------- Design tokens (per design handoff) ---------- */
:root {
  --bg: #FBFAF7;
  --band: #F4F1EA;
  --paper: #FFFFFF;

  --ink: #191817;
  --body-text: #4A473F;
  --text-secondary: #5C5951;
  --muted: #6B6862;
  --muted-2: #7C7970;

  --line: #E4E0D7;
  --line-2: #E0DBD1;
  --line-3: #D6D1C6;
  --line-4: #C9C4B8;

  --claret: #6E1F26;
  --claret-dark: #4A1319;
  --claret-tint: #B58A8F;
  --claret-tint-2: #E8C9CC;

  --dark-surface: #1F1E1C;
  --dark-line: #302E2B;
  --dark-text: #F6F3EC;
  --dark-text-2: #E7E2D8;
  --dark-text-3: #B9B4AA;
  --dark-text-4: #8A857C;

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: Archivo, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; color: var(--body-text); }

a { color: var(--claret); text-decoration: none; }
a:hover { color: var(--claret-dark); text-decoration: underline; }

[id] { scroll-margin-top: 84px; }

.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--claret);
  margin: 0 0 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--claret); color: var(--bg); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line-4); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }

.btn-claret { background: var(--claret); color: var(--bg); border: none; }
.btn-claret:hover { background: var(--claret-dark); color: var(--bg); }

/* ---------- Top regulatory bar ---------- */
.topbar {
  background: var(--ink);
  color: #CFCAC0;
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.topbar-row {
  padding: 9px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 32px;
}

.brand { display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.brand .name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.brand .tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-size: 14px;
  color: #33312D;
}
nav.main-nav a:hover { color: var(--claret); text-decoration: none; }
nav.main-nav a.active { color: var(--claret); }

nav.main-nav .nav-cta a {
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--claret);
  padding: 11px 20px;
  border-radius: var(--radius);
}
nav.main-nav .nav-cta a:hover { background: var(--claret-dark); color: var(--bg); text-decoration: none; }

/* "Back to Main Menu" — shown only once a Qr has actually been submitted
   (revealed by JS in each qr.js's final-submit success branch, never for
   Save & Come Back or a mid-chain redirect to the next questionnaire). An
   outline style, deliberately secondary to the solid "Free consultation"
   CTA it sits beside. */
nav.main-nav .nav-secondary-cta a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-4);
  padding: 10px 19px;
  border-radius: var(--radius);
}
nav.main-nav .nav-secondary-cta a:hover { border-color: var(--ink); color: var(--claret); text-decoration: none; }

/* "Free consultation" button shown directly in the header row on narrow
   screens, alongside the hamburger — the one inside nav.main-nav's <ul>
   is invisible until the menu is opened (nav.main-nav is clipped to
   max-height:0 below 980px, see that breakpoint), which buried the CTA
   where Nigel found it kept disappearing. Hidden on wider screens, where
   the in-menu one already shows correctly in the header row. */
.nav-cta-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 40px 32px 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 64px;
  align-items: center;
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--claret);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
.hero .lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body-text);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-figure { margin: 0; }
.hero-figure .frame {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px;
}
.hero-figure img { width: 100%; height: auto; display: block; }
.hero-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

/* ---------- Advisor types band ---------- */
.advisor-band {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.advisor-band .wrap {
  padding: 64px 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
}
.advisor-band h2 { font-size: 30px; line-height: 1.2; margin: 0 0 18px; }
.advisor-band .col-copy p { font-size: 15.5px; margin: 0; }

.hairline-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.hairline-grid-2 > div { background: var(--paper); padding: 24px; }
.hairline-grid-2 h3 { font-size: 18px; margin: 0 0 8px; }
.hairline-grid-2 p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ---------- Advantage section ---------- */
.advantage-section { padding: 64px 32px; }
.advantage-section h2 { font-size: 30px; margin: 0 0 40px; }
.advantage-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--line-4);
  border-radius: var(--radius);
  padding: 14px 26px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.advantage-btn::after { content: "\2192"; font-size: 0.75em; }
.advantage-btn:hover { border-color: var(--claret); color: var(--claret); background: var(--bg); }
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.advantage-grid > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.advantage-grid h3 { font-size: 19px; margin: 0 0 10px; }
.advantage-grid p { font-size: 15px; margin: 0; }

/* ---------- Specialist services (dark band) ---------- */
.services-band {
  background: var(--ink);
  color: var(--dark-text);
  border-top: 1px solid var(--line);
}
.services-band .wrap { padding: 68px 32px; }
.services-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.services-band .eyebrow { color: var(--claret-tint); margin-bottom: 12px; }
.services-band h2 { font-size: 32px; margin: 0; color: var(--dark-text); }
.services-head .discuss-link {
  font-size: 14.5px;
  color: var(--claret-tint-2);
  border-bottom: 1px solid #5A4A4C;
  padding-bottom: 3px;
}
.services-head .discuss-link:hover { color: var(--bg); text-decoration: none; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
}
.services-grid > div,
.services-grid > a {
  background: var(--dark-surface);
  padding: 26px 22px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.services-grid > a {
  text-decoration: none;
  transition: background 0.15s ease;
}
.services-grid > a:hover { background: var(--dark-line); }
.services-grid > a:hover h3 { color: var(--claret-tint-2); }
.services-grid .num { font-size: 11px; letter-spacing: 0.1em; color: var(--dark-text-4); }
.services-grid h3 { font-size: 20px; line-height: 1.25; margin: 0; color: var(--dark-text); transition: color 0.15s ease; }

/* ---------- Consultation section ---------- */
.consultation-section { padding: 72px 32px; }
.consultation-card {
  background: var(--paper);
  border: 1px solid var(--line-2);
  padding: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 56px;
  align-items: start;
}
.consultation-card h2 { font-size: 34px; line-height: 1.15; margin: 0 0 16px; }
.consultation-card .lead { font-size: 16px; max-width: 44ch; margin: 0 0 20px; }
.consultation-card .fine-print { font-size: 13.5px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.mini-form { display: grid; gap: 14px; }
.mini-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini-form input,
.mini-form textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 13px 14px;
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  background: var(--bg);
  text-transform: none;
  letter-spacing: 0;
}
.mini-form textarea { resize: vertical; }
.mini-form input:focus, .mini-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.mini-form .form-status {
  font-size: 13px;
  color: var(--muted-2);
  margin: 0;
}
.mini-form .form-status.success { color: #2f6f4f; font-weight: 600; }
.mini-form .form-status.warn { color: #a33; font-weight: 600; }

/* ---------- Information / News / Blog cards ---------- */
.info-band { background: var(--band); border-top: 1px solid var(--line); }
.info-grid {
  padding: 56px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
}
.info-grid a {
  background: var(--paper);
  padding: 30px;
  display: block;
  color: var(--ink);
}
.info-grid a:hover { background: #FFFFFF; text-decoration: none; color: var(--ink); }
.info-grid h3 { font-size: 22px; margin: 0 0 8px; }
.info-grid p { font-size: 14.5px; line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--ink); color: var(--dark-text-3); }
.foot-grid {
  padding: 56px 32px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 1fr));
  gap: 48px;
}
footer.site-footer .brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--dark-text); margin: 0 0 8px; display: block; }
footer.site-footer .foot-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-text-4);
  margin: 0 0 12px;
}
footer.site-footer .col-1 .foot-label { font-size: 13px; letter-spacing: 0.14em; margin-bottom: 18px; }
footer.site-footer .foot-line { font-size: 13.5px; line-height: 1.7; margin: 0; }
footer.site-footer .foot-address { font-size: 14.5px; line-height: 1.7; color: var(--dark-text-2); margin: 0; }

.foot-bottom {
  border-top: 1px solid var(--dark-line);
  padding: 18px 32px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--dark-text-4);
}

.legal-disclaimer {
  border-top: 1px solid var(--dark-line);
  padding: 16px 32px 32px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--dark-text-4);
}
.legal-disclaimer p { margin: 0; color: inherit; max-width: 90ch; }

/* ================================================
   INNER PAGES (What I Do / Advisor Types / Advantages / Register)
   ================================================ */
.page-hero { background: var(--ink); color: var(--dark-text-2); padding: 64px 0 56px; }
.page-hero .wrap { max-width: var(--container); }
.page-hero .eyebrow { color: var(--claret-tint); }
.page-hero h1 { color: var(--dark-text); margin-bottom: 0.4em; max-width: 20ch; }
.page-hero p { color: var(--dark-text-2); max-width: 60ch; margin: 0; font-size: 1.05rem; }

section.inner { padding: 64px 0; }
section.inner.alt { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

section.inner .wrap > p,
section.inner .wrap > h2,
section.inner .wrap > h3 { max-width: 68ch; }

.section-head { max-width: 62ch; margin: 0 0 2.2rem; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--body-text); font-size: 1.05rem; margin: 0; }

/* Advantage checklist (advantages-direct-access.html) */
ul.check-list { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
ul.check-list li {
  position: relative;
  padding: 0.85em 0 0.85em 1.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--ink);
}
ul.check-list li:last-child { border-bottom: none; }
ul.check-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.5em;
  width: 10px;
  height: 1px;
  background: var(--ink);
}

.callout {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--claret);
  padding: 1.4rem 1.7rem;
  border-radius: var(--radius);
  margin: 2rem 0;
  max-width: 68ch;
}
.callout p { margin: 0; color: var(--ink); font-size: 0.97rem; }
.callout.warn { border-left-color: #a33; background: #fdf7f7; }
.callout.success { border-left-color: #2f6f4f; background: #f4f8f6; font-weight: 500; }
.callout.checking { border-left-color: var(--line-4); background: var(--paper); font-style: italic; color: var(--muted); }

/* Reported-cases style table */
.table-wrap { overflow-x: auto; max-width: 68ch; }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.compare td {
  padding: 0.7em 1.2em 0.7em 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--body-text);
}
table.compare td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; padding-right: 1.6em; }
table.compare tr:last-child td { border-bottom: none; }

blockquote.pull {
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--claret);
  padding: 0.1em 0 0.1em 1.3rem;
  margin: 0 0 2.5rem;
  font-style: italic;
  max-width: 30ch;
}
blockquote.pull cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  margin-top: 0.9rem;
}

/* Process steps (what-i-do.html) */
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; max-width: 68ch; }
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.2rem 3.4rem;
  border-left: 1px solid var(--line);
  margin-left: 1rem;
}
ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps > li:before {
  content: counter(step);
  position: absolute;
  left: -1rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--ink);
  color: var(--dark-text);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
ol.steps h4 { margin: 0.2em 0 0.4em; font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--ink); }
ol.steps p { color: var(--body-text); margin: 0; font-size: 0.97rem; }
ol.steps ol.sub {
  list-style: lower-alpha;
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
  color: var(--body-text);
  font-size: 0.95rem;
}
ol.steps ol.sub li { padding: 0.25rem 0; border: none; margin: 0; }

/* Sample document box (ordinary-power-of-attorney.html template) */
.doc-sample {
  background: var(--band);
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin: 1.6rem 0 2.2rem;
  max-width: 68ch;
}
.doc-sample .doc-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin: 0 0 1.6rem;
  letter-spacing: 0.02em;
}
.doc-sample h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--claret);
  margin: 1.8rem 0 0.7rem;
}
.doc-sample h4:first-of-type { margin-top: 0; }
.doc-sample .field { font-size: 0.92rem; color: var(--body-text); margin: 0 0 0.5em; }
.doc-sample .field strong { color: var(--ink); font-weight: 600; }
.doc-sample p { font-size: 0.92rem; margin: 0 0 0.8em; }
.doc-sample ul { margin: 0 0 0.8em; padding-left: 1.2rem; font-size: 0.92rem; color: var(--body-text); }
.doc-sample li { margin-bottom: 0.35em; }
.doc-sample .sig-line { border-bottom: 1px solid var(--line-4); display: inline-block; min-width: 240px; margin-left: 8px; }
.doc-sample hr { border: 0; border-top: 1px solid var(--line-3); margin: 1.8rem 0; }

/* Topic cards — links to sub-pages (while-you-are-alive.html and its children) */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  margin: 1.6rem 0 0;
  max-width: 100%;
}
.topic-grid > a,
.topic-grid > div {
  background: var(--paper);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topic-grid > a { color: var(--ink); transition: background 0.15s ease; }
.topic-grid > a:hover { background: var(--band); text-decoration: none; }
.topic-grid > a:hover h3 { color: var(--claret); }
.topic-grid h3 { font-size: 17px; margin: 0; transition: color 0.15s ease; }
.topic-grid p { font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); margin: 0; }
.topic-grid > div.muted { color: var(--muted-2); }
.topic-grid > div.muted h3 { color: var(--muted); }
.topic-grid > div.muted .soon { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* Footnotes (advisor-types.html, advantages-direct-access.html) */
.footnotes {
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--muted-2);
  max-width: 68ch;
}
.footnotes ol { padding-left: 1.2rem; margin: 0; }
.footnotes li { margin-bottom: 0.6em; }
sup.fn a { text-decoration: none; font-size: 0.7em; }

/* ---------- Register form (register.html) ---------- */
form.consult {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 2.6rem;
}
.form-section-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2.6rem 0 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.form-section-title:first-child { margin-top: 0; }
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.5em;
}
.field .hint { font-weight: 400; color: var(--muted-2); font-size: 0.82rem; }
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=date],
.field input[type=number],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid var(--line-3);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.96rem;
  background: #fff;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(25,24,23,0.08);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field-highlight {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--claret);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
}
.field-highlight select { max-width: 320px; }
.checkbox-group { display: flex; flex-direction: column; gap: 0.7em; }
.checkbox-group label { display: flex; align-items: flex-start; gap: 0.65em; font-weight: 400; font-size: 0.95rem; color: var(--ink); }
.checkbox-group input { margin-top: 0.3em; }
.radio-inline { display: flex; gap: 1.6rem; }
.radio-inline label { display: flex; align-items: center; gap: 0.45em; font-weight: 400; }

/* Repeating groups — Wills Qr (beneficiaries, children, executors, gifts…) */
.repeat-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem 0.2rem;
  margin-bottom: 1rem;
  position: relative;
}
.repeat-item .field:last-of-type { margin-bottom: 1rem; }
.repeat-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}
.repeat-remove {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--muted-2);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
.repeat-remove:hover { color: var(--claret); }
.repeat-add {
  margin-top: -0.4rem;
  margin-bottom: 1.4rem;
}
.loop-block {
  border-left: 2px solid var(--claret-tint-2);
  padding-left: 1.2rem;
  margin: 1.6rem 0;
}
.loop-block-heading {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--claret);
  margin-bottom: 1rem;
}
.qr-subsection-note {
  color: var(--muted-2);
  font-size: 0.88rem;
  margin: -0.6rem 0 1.2rem;
}
/* The usual -0.6rem top margin above pulls a note up snug under the
   *label* it normally follows — but these two follow a field (an input,
   or a computed result) instead, so it was overlapping the box's own
   text (Nigel, 31 Aug 2026). */
#home-calc-net-value-working,
#estate-val-estimate-working {
  margin-top: 0.4rem;
}
.field-error {
  color: #B3261E;
  font-weight: 600;
  font-size: 0.88rem;
  margin: -0.8rem 0 1.2rem;
}
input.field-invalid,
textarea.field-invalid,
select.field-invalid,
.checkbox-group.field-invalid {
  outline: 2px solid #B3261E;
  outline-offset: 3px;
  border-radius: var(--radius);
}
/* Non-blocking notices — a mismatch or oddity worth flagging (age vs DOB,
   marriage date, mortgage vs value) but not a reason to stop submission,
   unlike .field-error above. */
.field-warning {
  color: #8A5A00;
  font-weight: 600;
  font-size: 0.88rem;
  margin: -0.8rem 0 1.2rem;
}
/* Age fields (the only <input type="number"> on the site) — hide the
   native up/down spinner arrows entirely. Nigel found the age field
   ending up holding a year-sized value (2024, 2025) more than once —
   the wheel/JS fixes tried so far weren't enough on their own, so this
   removes the clickable spinner buttons themselves rather than trying to
   intercept every way of triggering them (mouse wheel, click-and-hold,
   arrow keys all step the value through the same native control). */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
/* Money (£) and percentage (%) fields — a plain text input with digits
   only enforced live in JS, never a native <input type=number>, since
   its step/decimal constraints silently block submission with no visible
   error at all. The affix is a fixed label, not part of the value. */
.affix-input { position: relative; }
.affix-input .affix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.96rem;
  pointer-events: none;
}
.affix-input .affix.prefix { left: 0.9em; }
.affix-input .affix.suffix { right: 0.9em; }
.affix-input input.prefixed { padding-left: 1.7em; }
.affix-input input.suffixed { padding-right: 1.7em; }
.file-drop {
  border: 1px dashed var(--line-4);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted-2);
  font-size: 0.9rem;
  background: var(--band);
}
.form-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 2px solid var(--claret);
  padding: 1.1rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted-2);
  margin-bottom: 2.2rem;
}

/* ---------- Responsive ---------- */

/* Nav compresses (smaller text, tighter gaps) as the window narrows, so the
   full link row survives longer — it only gives way to the hamburger menu
   once there's genuinely no room left (see the 980px breakpoint below). */
@media (max-width: 1180px) {
  .site-header .wrap { gap: 18px; padding-left: 24px; padding-right: 24px; }
  nav.main-nav ul { gap: 18px; }
  nav.main-nav a { font-size: 13px; }
  nav.main-nav .nav-cta a { padding: 9px 14px; font-size: 13px; }
  nav.main-nav .nav-secondary-cta a { padding: 8px 13px; font-size: 13px; }
}

@media (max-width: 1060px) {
  nav.main-nav ul { gap: 12px; }
  nav.main-nav a { font-size: 12px; }
  nav.main-nav .nav-cta a { padding: 8px 12px; font-size: 12px; }
  nav.main-nav .nav-secondary-cta a { padding: 7px 11px; font-size: 12px; }
}

@media (max-width: 980px) {
  .hero-grid,
  .advisor-band .wrap,
  .consultation-card { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-grid { grid-template-columns: 1fr; }

  /* Nav collapses to a menu well before the full link row would overflow. */
  nav.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    z-index: 30;
  }
  nav.main-nav.open { max-height: 100vh; overflow-y: auto; }
  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 90px 20px 24px;
  }
  nav.main-nav ul li { border-bottom: 1px solid var(--line); }
  nav.main-nav a { display: block; padding: 0.95em 0; }
  /* The dropdown's own copy is redundant now the header row always shows
     one — see .nav-cta-mobile above. */
  .nav-cta { display: none; }
  .nav-toggle { display: block; position: relative; z-index: 40; }

  .nav-cta-mobile {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: var(--bg);
    background: var(--claret);
    padding: 8px 14px;
    border-radius: var(--radius);
    white-space: nowrap;
  }
  .nav-cta-mobile:hover { background: var(--claret-dark); color: var(--bg); text-decoration: none; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 40px 20px 44px; }
  .hero h1 { font-size: 38px; }
  .advisor-band .wrap,
  .advantage-section,
  .services-band .wrap,
  .consultation-section,
  .info-grid,
  .foot-grid,
  .foot-bottom,
  .legal-disclaimer,
  .topbar-row,
  section.inner { padding-left: 20px; padding-right: 20px; }
  .advantage-grid { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr; }
  .consultation-card { padding: 28px; }
  .field-row { grid-template-columns: 1fr; }
  form.consult { padding: 1.6rem; }
}
