/* ==========================================================================
   Blockdesk — Homepage stylesheet
   Static HTML/CSS. No frameworks, no JS dependency, no third-party CDN calls.
   Palette, type and layout rules follow the supplied design brief exactly.
   ========================================================================== */

/* ---- Self-hosted fonts (font-display: swap) ------------------------------ */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400;
  font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/lora-500.woff2") format("woff2");
}
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/lora-600.woff2") format("woff2");
}
@font-face {
  font-family: "Lora"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/lora-700.woff2") format("woff2");
}

/* ---- Design tokens ------------------------------------------------------- */
:root {
  --navy:       #1a3a5c;   /* Primary — headings, buttons, borders */
  --navy-hover: #234b73;   /* Slightly lighter navy for CTA hover  */
  --light-blue: #e8f0f7;   /* Shaded boxes, table headers, highlights */
  --stone:      #f5f2ee;   /* Alternating section backgrounds */
  --grey-blue:  #f0f4f8;   /* Guarantee box, "what happens next" box */
  --white:      #ffffff;   /* Primary background */
  --text:       #333333;   /* Body text */
  --green:      #2e6f4e;   /* Savings figures on pricing (per copy spec) */

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max: 1080px;           /* Structural width — sections, tables, header, footer */
  --measure: 44rem;        /* Prose reading measure (~700px) — keeps lines legible */
  --gutter: 32px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: 44px; letter-spacing: -0.01em; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-hover); }

strong { font-weight: 600; }

/* ---- Layout helpers ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Running text sits at a readable measure, left-aligned within the wider
   container — structural elements (tables, trust bar) use the full width. */
.prose { max-width: var(--measure); }

.section { padding: 64px 0; }
.section--stone { background: var(--stone); }
.section--white { background: var(--white); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  color: #fff;
  background: var(--navy);
  border: none;
  border-radius: 3px;
  padding: 15px 26px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--navy-hover); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-blue);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header__logo img { display: block; height: 30px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__list {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.nav__link {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
}
.nav__link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Mobile nav toggle (progressive; nav still reachable without JS) */
.nav-toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--white);
  padding: 72px 0 56px;
}
.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 18px;
}
.hero h1 { margin-bottom: 20px; }
.hero__lead { font-size: 19px; }
.hero__punch {
  font-weight: 600;
  color: var(--navy);
}
.hero__closer {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  margin: 26px 0 32px;
}

/* ---- Trust bar ----------------------------------------------------------- */
.trustbar {
  background: var(--light-blue);
  border-top: 1px solid #d7e4f0;
  border-bottom: 1px solid #d7e4f0;
}
.trustbar__inner {
  max-width: var(--max);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
}
.trustbar__item {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  white-space: nowrap;
}
.trustbar__item .tick { margin-right: 8px; }

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */
.lead-block p { font-size: 19px; }

/* Do / Don't table */
.dd-intro { margin-bottom: 28px; }

/* Generic table styling shared across the page */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 8px;
}
table.bd {
  width: 100%;
  border-collapse: collapse;
  font-size: 16.5px;
  min-width: 480px;
}
table.bd caption { text-align: left; font-weight: 600; margin-bottom: 10px; color: var(--navy); }
table.bd thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
}
table.bd tbody th,
table.bd tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid #e2e2e2;
  vertical-align: top;
}
table.bd tbody th {
  font-weight: 500;
  text-align: left;
  color: var(--text);
}
table.bd tbody tr:last-child th,
table.bd tbody tr:last-child td { border-bottom: none; }

.yes { color: var(--navy); font-weight: 700; }
.no  { color: #8a8a8a; font-weight: 700; }

/* Do/Don't two-column */
.dd-table th.dd-do   { width: 50%; }
.dd-table td.dd-do::before,
.dd-table td.dd-dont::before {
  font-weight: 700;
  margin-right: 8px;
}
.dd-table td.dd-do::before   { content: "✓"; color: var(--navy); }
.dd-table td.dd-dont::before { content: "✗"; color: #8a8a8a; }
.dd-table td.dd-dont { color: #5f5f5f; }

.closing-line {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--navy);
  margin-top: 26px;
}

/* Comparison table — highlight the Blockdesk column top to bottom.
   The header cell is shaded light blue with NAVY text (not the default white),
   so "Blockdesk" stays legible instead of white-on-light-blue. */
.compare-table thead th.col-bd {
  background: var(--light-blue);
  color: var(--navy);
}
.compare-table tbody td.col-bd {
  background: var(--light-blue);
}
.compare-table tbody td { text-align: center; }
.compare-table tbody th { text-align: left; }
.compare-table thead th:not(:first-child) { text-align: center; }

/* ---- Pricing teaser ------------------------------------------------------ */
.pricing-teaser .price-headline {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}
.pricing-teaser .more-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
}
.pricing-teaser .more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   CTA + GUARANTEE + CONTACT
   ========================================================================== */
/* Final conversion section — sits on white so it separates cleanly from the
   stone pricing section above it; the guarantee box and form carry the accent. */
.cta-section { background: var(--white); }
.cta-section h2 { margin-bottom: 10px; }
.cta-sub { font-size: 19px; margin-bottom: 32px; }

.guarantee {
  background: var(--grey-blue);
  border: 1px solid #dbe6f1;
  border-radius: 3px;
  padding: 26px 28px;
  margin: 0 0 40px;
}
.guarantee h3 { margin-bottom: 8px; }
.guarantee p { margin-bottom: 0; }

/* ---- Contact form -------------------------------------------------------- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--light-blue);
  border-radius: 3px;
  padding: 30px 28px;
}
.contact-form h3 { margin-bottom: 6px; }
.contact-form .form-intro { font-size: 16.5px; color: #555; margin-bottom: 22px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 6px;
}
.field .req { color: #b23b3b; }
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--text);
  padding: 12px 14px;
  border: 1px solid #c6d2df;
  border-radius: 3px;
  background: #fff;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(26, 58, 92, 0.15);
}
.field textarea { min-height: 110px; resize: vertical; }

/* Honeypot — visually hidden, off-screen, not display:none (bots skip those) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.contact-form .btn { width: 100%; margin-top: 6px; }
.contact-form .privacy-note { font-size: 14px; color: #666; margin-top: 16px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: #dbe6f1;
  padding: 48px 0 40px;
  font-size: 15.5px;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__inner { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.site-footer__brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}
.site-footer__email { margin-bottom: 22px; }
.footer-nav, .footer-legal {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.footer-legal { font-size: 14.5px; }
.footer-rule { border: none; border-top: 1px solid #2f5578; margin: 6px 0 20px; }
.footer-legalcopy { color: #a8c0d8; font-size: 13.5px; line-height: 1.7; }
.footer-legalcopy p { margin: 0 0 8px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 760px) {
  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 48px 0; }

  /* Collapse header into stacked logo + toggle-revealed nav */
  .site-header__inner { flex-wrap: wrap; }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    display: none;
    padding-top: 12px;
  }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { padding: 8px 0; border-bottom: 1px solid var(--light-blue); }
  .nav .btn { text-align: center; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid var(--navy);
    border-radius: 3px;
    color: var(--navy);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    padding: 8px 12px;
    cursor: pointer;
  }
  /* CSS-only disclosure via checkbox hack (keeps zero JS) */
  #nav-toggle-cb { position: absolute; left: -9999px; }
  #nav-toggle-cb:checked ~ .nav { display: flex; }
}

@media (min-width: 761px) {
  .nav-toggle { display: none; }
  #nav-toggle-cb { display: none; }
}

/* ==========================================================================
   INTERIOR PAGES (Services, etc.)
   ========================================================================== */

/* Reusable uppercase label (same treatment as the hero eyebrow) */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 16px;
}

/* Page intro block for interior pages */
.page-header { padding: 64px 0 52px; background: var(--white); }
.page-header .page-lead { font-size: 19px; }

/* Section intro fills the content width (matches the homepage full-width text) */
.svc-intro .svc-lead { font-size: 19px; }
.svc-sub { margin: 28px 0 14px; }   /* "What's covered" / "How it works" heads */

/* Feature checklist — two columns on desktop, fills the content width */
.svc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  columns: 2;
  column-gap: 56px;
}
.svc-list li {
  break-inside: avoid;
  position: relative;
  padding-left: 28px;
  margin-bottom: 13px;
  font-size: 17px;
}
.svc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy);
  font-weight: 700;
}

/* Numbered process steps (Section 20) — navy badges */
.svc-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.svc-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 18px;
  font-size: 17px;
}
.svc-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 3px;
}
.svc-steps li strong { color: var(--navy); }

/* Cost callout — light-blue highlight box; price links to pricing page */
.cost-box {
  background: var(--light-blue);
  border-radius: 3px;
  padding: 22px 26px;
  margin: 26px 0 0;
  max-width: 42rem;
}
.cost-box h3 { font-size: 18px; margin-bottom: 8px; }
.cost-box .cost-price {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.cost-box .cost-price a { color: var(--navy); }
.cost-box p:last-child { margin-bottom: 0; font-size: 16px; }

/* Additional-services grid — ledger-style rows, no shadows */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
  margin-top: 8px;
}
.svc-item {
  padding: 22px 0;
  border-top: 1px solid #d7e0ea;
}
.svc-item h3 { font-size: 20px; margin-bottom: 6px; }
.svc-item p { font-size: 16.5px; margin-bottom: 10px; }
.svc-price {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.svc-price a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.svc-price a:hover { color: var(--navy-hover); }

/* ---- Pricing tables ------------------------------------------------------ */
/* Savings figures — green per the copy spec, to anchor against agent prices */
td.save { color: var(--green); font-weight: 600; white-space: nowrap; }

/* Fee cells read as figures, not prose */
.price-table td, .oneoff-table td:not(:first-child) { white-space: nowrap; }
.price-table td:first-child, .oneoff-table th[scope="row"] { white-space: normal; }

/* "What's included" table — centre the tick / one-off columns, keep them tight */
.incl-table .col-mark { text-align: center; width: 96px; }
.incl-table .col-fee  { text-align: center; width: 150px; white-space: nowrap; }
.incl-table td.col-mark .yes { color: var(--navy); }
.incl-table td.col-fee { color: var(--navy); font-weight: 600; }

/* Note line under a table */
.pricing-note { font-size: 16px; color: #555; margin-top: 16px; }

/* ---- About page ---------------------------------------------------------- */
/* Punchy opening statement under the H1 */
.about-lede {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
  margin: 4px 0 18px;
}

/* Three principle boxes — shaded, consistent with the guarantee box */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.principle {
  background: var(--grey-blue);
  border: 1px solid #dbe6f1;
  border-radius: 3px;
  padding: 24px 24px;
}
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { margin-bottom: 0; font-size: 16.5px; }

/* ---- Contact page -------------------------------------------------------- */
/* Form beside a supporting sidebar; fills the content width, stacks on mobile */
.contact-layout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-side > * + * { margin-top: 24px; }

/* Radio group (urgency) — optional, no default selected */
.urgency {
  border: none;
  padding: 0;
  margin: 4px 0 20px;
}
.urgency legend {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  padding: 0;
  margin-bottom: 10px;
}
.urgency .optional { font-weight: 400; color: #777; }
.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
}
.radio-option input { margin: 3px 0 0; flex: none; }
.radio-option label { font-size: 16px; font-weight: 400; color: var(--text); }

.form-reply-note { font-size: 16px; color: #555; margin: 4px 0 18px; }

/* Inline confirmation shown on successful submit (provider-wired at build) */
.form-confirmation {
  display: none;
  background: var(--light-blue);
  border: 1px solid #cfe0f0;
  border-radius: 3px;
  padding: 18px 20px;
  color: var(--navy);
  font-weight: 500;
}

/* "What happens next" panel — cool grey-blue box */
.nextbox {
  background: var(--grey-blue);
  border: 1px solid #dbe6f1;
  border-radius: 3px;
  padding: 26px 26px;
}
.nextbox h2 { font-size: 21px; margin-bottom: 16px; }
.nextbox .svc-steps li { font-size: 16.5px; margin-bottom: 14px; }
.nextbox .svc-steps li:last-child { margin-bottom: 0; }

/* Supporting side blocks */
.side-block h2 { font-size: 21px; margin-bottom: 8px; }
.side-block .email-big {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  margin: 6px 0 10px;
}
.company-details {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.company-details .org { font-weight: 600; color: var(--navy); }

/* ---- Legal / policy pages ------------------------------------------------ */
/* Dense legal text is kept to a comfortable reading measure on purpose —
   long lines of fine print are hard to read and look unprofessional. */
.legal-page { padding: 56px 0 76px; }
.updated { color: #666; font-size: 15px; margin: -6px 0 30px; }
.legal { max-width: 46rem; }
.legal > p, .legal li { font-size: 17px; }
.legal h2 { margin-top: 42px; font-size: 24px; }
.legal h2:first-of-type { margin-top: 8px; }
.legal h3 { margin-top: 26px; font-size: 19px; }
.legal-list { list-style: none; padding: 0; margin: 0 0 16px; }
.legal-list li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.legal-list li::before { content: "—"; position: absolute; left: 0; color: var(--navy); }
.legal-box {
  background: var(--grey-blue);
  border: 1px solid #dbe6f1;
  border-radius: 3px;
  padding: 20px 24px;
  margin: 16px 0 22px;
}
.legal-box p { margin-bottom: 4px; font-size: 16.5px; }
.legal-box p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .svc-list { columns: 1; }
  .svc-grid { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .about-lede { font-size: 21px; }
  .page-header { padding: 40px 0 36px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
}
