@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
:root {
  /* Layout: taken from the MQ business card. White ground, a black arc panel carrying the red-ticked service list, black bands for the heavier sections, italic Montserrat for display. One light look by design, matching the printed brand. */
  --paper: #ffffff;
  --paper-2: #f3f3f4;
  --ink: #0b0b0c;
  --muted: #55565c;
  --rule: #e1e1e4;
  --black: #000000;
  --black-2: #151517;
  --on-black: #ffffff;
  --on-black-muted: #b3b3ba;
  --black-rule: #2b2b30;
  --red: #ed1b24;
  --red-deep: #d0121a;
  --red-hover: #b20f16;
  --c1: #c0161e;
  --c2: #c2410c;
  --fi: #6b47b8;
  --c3: #2563a8;
  --ok: #1f7a45;
  --field: #ffffff;
  --focus: #d0121a;

  --display: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step-1: 0.8125rem;
  --step0: 1rem;
  --step1: 1.2rem;
  --step2: clamp(1.4rem, 2.4vw, 1.75rem);
  --step3: clamp(1.85rem, 4vw, 2.75rem);
  --step4: clamp(2.3rem, 5.6vw, 4rem);

  --measure: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1, h2 { font-style: italic; font-weight: 800; line-height: 1.08; letter-spacing: -0.015em; }
h2 { font-size: var(--step3); }
h3 { font-size: var(--step1); font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--display); font-size: var(--step-1); font-weight: 700; font-style: italic; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-deep); }
.lede { color: var(--muted); max-width: 42rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red-deep); color: #fff; padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3rem; padding: 0.7rem 1.3rem; border-radius: var(--radius); font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-red { background: var(--red-deep); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-black { background: var(--black); color: #fff; }
.btn-black:hover { background: #26262a; }
.btn-line { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn-line:hover { background: var(--paper-2); }
.btn-ghost { border-color: var(--on-black-muted); color: var(--on-black); background: transparent; }
.btn-ghost:hover { border-color: #fff; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; max-width: 86rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; min-width: 0; flex-shrink: 0; }
.brand .mark { height: 2.9rem; width: auto; flex: none; display: block; }
.brand .word { height: 1.05rem; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav ul { display: flex; gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav a { white-space: nowrap; }
.nav ul a { text-decoration: none; font-weight: 600; font-size: 0.93rem; color: var(--muted); }
.nav ul a:hover { color: var(--ink); }
.nav .tel { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; font-size: 0.98rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nav .tel svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--red-deep); }
.nav .btn { min-height: 2.6rem; padding: 0.45rem 1rem; font-size: 0.93rem; }
.menu-btn { display: none; background: var(--paper); border: 2px solid var(--rule); color: var(--ink); border-radius: var(--radius); width: 2.75rem; height: 2.75rem; place-items: center; cursor: pointer; flex: none; }
.menu-btn svg { width: 1.3rem; height: 1.3rem; }
@media (max-width: 1320px) {
  .menu-btn { display: grid; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.25); flex-direction: column; align-items: stretch; gap: 1rem; padding: 0.5rem var(--gutter) 1.25rem; display: none; }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; color: var(--ink); }
  .nav .tel { font-size: 1.1rem; padding-block: 0.25rem; }
  .nav .btn { min-height: 3rem; }
}
@media (max-width: 420px) { .brand .word { height: 0.85rem; } .brand .mark { height: 2.5rem; } }
@media (max-width: 340px) { .brand .word { display: none; } }

/* Hero: white ground with the business card's black arc on the right */
.hero { position: relative; overflow: hidden; background: var(--paper); }
.hero-arc { position: absolute; top: 5%; bottom: 5%; left: 55%; right: -30%; background: var(--black); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(3rem, 6vw, 4.75rem); }
.hero-copy { min-width: 0; }
.hero-badge { display: block; height: 3.75rem; width: auto; }
.hero h1 { font-size: var(--step4); margin-top: 1.4rem; }
.hero h1 em { color: var(--red); font-style: italic; }
.hero .sub { color: var(--muted); font-size: 1.075rem; margin-top: 1.25rem; max-width: 35rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; }
.hero-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.5rem; }
.callout { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; }
.callout svg { width: 2.6rem; height: 2.6rem; flex: none; }
.wa { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.wa svg { width: 1.3rem; height: 1.3rem; color: #1f9d55; }
.wa:hover { text-decoration: underline; text-underline-offset: 3px; }

.checklist { list-style: none; margin: 0; padding: 0 0 0 clamp(1rem, 4vw, 3.5rem); display: grid; gap: clamp(0.9rem, 2vw, 1.35rem); color: var(--on-black); min-width: 0; }
.checklist li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; align-items: center; font-family: var(--display); font-style: italic; font-weight: 600; font-size: clamp(1.1rem, 1.9vw, 1.55rem); line-height: 1.15; }
.checklist svg { width: 1.8rem; height: 1.8rem; color: var(--red); }
@media (max-width: 900px) {
  .hero-arc { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .checklist { background: var(--black); margin-inline: calc(-1 * var(--gutter)); padding: 2.25rem var(--gutter) 2.5rem calc(var(--gutter) + 0.5rem); border-top-left-radius: 3.5rem; }
  .checklist li { font-size: 1.2rem; }
}
@media (max-width: 560px) { .hero-actions .btn { flex: 1 1 100%; } .hero-badge { height: 2.9rem; } }

/* Credentials strip */
.creds { background: var(--paper-2); border-block: 1px solid var(--rule); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.creds li { padding: 1.35rem 1.25rem 1.35rem 0; display: grid; gap: 0.15rem; align-content: start; }
.creds li + li { padding-left: 1.25rem; border-left: 1px solid var(--rule); }
.creds b { font-weight: 700; font-size: 0.97rem; }
.creds span { color: var(--muted); font-size: 0.88rem; line-height: 1.5; }
@media (max-width: 900px) {
  .creds ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .creds li:nth-child(3) { border-left: 0; padding-left: 0; }
  .creds li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .creds ul { grid-template-columns: minmax(0, 1fr); }
  .creds li, .creds li + li { padding: 1rem 0; border-left: 0; }
  .creds li + li { border-top: 1px solid var(--rule); }
}

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { display: grid; gap: 0.85rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 48rem; }
.dark { background: var(--black); color: var(--on-black); }
.dark .eyebrow { color: var(--red); }
.dark .lede, .dark .prose p:not(.eyebrow) { color: var(--on-black-muted); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.service { background: var(--paper); padding: 1.75rem 1.5rem 1.6rem; display: grid; grid-template-rows: auto auto 1fr; gap: 0.7rem; min-width: 0; position: relative; }
.service svg.icon { width: 2.3rem; height: 2.3rem; color: var(--red-deep); }
.service p { color: var(--muted); font-size: 0.95rem; }
.service .pill { position: absolute; top: 1.6rem; right: 1.5rem; font-family: var(--display); font-weight: 800; font-style: italic; font-size: 0.78rem; color: #fff; background: var(--red-deep); border-radius: 999px; padding: 0.2rem 0.6rem; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: minmax(0, 1fr); } }

/* Testing & certification */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 1.1rem; max-width: 38rem; }
.prose p:not(.eyebrow) { color: var(--muted); }
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--black-rule); border: 1px solid var(--black-rule); border-radius: 10px; overflow: hidden; }
.cert-grid li { background: var(--black-2); padding: 1.6rem 1.5rem 1.7rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.cert-grid .abbr { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--red); }
.cert-grid strong { font-weight: 700; font-size: 1.02rem; margin-top: 0.4rem; }
.cert-grid span:last-child { color: var(--on-black-muted); font-size: 0.93rem; line-height: 1.6; }
@media (max-width: 820px) { .cert-grid { grid-template-columns: minmax(0, 1fr); } }

/* Landlords */
.duties { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.duties li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.duties b { font-family: var(--mono); font-weight: 500; font-size: 0.85rem; color: var(--red-deep); font-variant-numeric: tabular-nums; }
.duties span { font-size: 0.97rem; }
.codes { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--paper-2); }
.codes h3 { padding: 1.1rem 1.25rem 0.9rem; border-bottom: 1px solid var(--rule); font-size: 1.1rem; font-style: italic; }
.codes ul { list-style: none; margin: 0; padding: 0; }
.codes li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); align-items: start; }
.codes li:last-child { border-bottom: 0; }
.code { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; text-align: center; padding: 0.3rem 0; border-radius: 4px; border: 1.5px solid currentColor; background: var(--paper); }
.code.c1 { color: var(--c1); } .code.c2 { color: var(--c2); } .code.fi { color: var(--fi); } .code.c3 { color: var(--c3); }
.codes strong { display: block; font-size: 0.97rem; }
.codes li span { color: var(--muted); font-size: 0.9rem; line-height: 1.5; display: block; }
.codes .verdict { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.3rem; }
.verdict.bad { color: var(--c1); } .verdict.good { color: var(--ok); }

/* Housing */
.deadline { margin-top: 0.4rem; border: 1px solid var(--black-rule); border-left: 5px solid var(--red); border-radius: 0 6px 6px 0; background: var(--black-2); padding: 1rem 1.25rem; display: grid; gap: 0.3rem; }
.deadline b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }
.dark .deadline p { color: var(--on-black); }
.caps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--black-rule); }
.caps li { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--black-rule); display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); column-gap: 0.6rem; row-gap: 0.2rem; }
.caps li svg { width: 1.1rem; height: 1.1rem; color: var(--red); grid-row: span 2; margin-top: 0.2rem; }
.caps li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--black-rule); }
.caps b { font-weight: 700; }
.caps span { color: var(--on-black-muted); font-size: 0.9rem; line-height: 1.5; }
.dark .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
@media (max-width: 560px) {
  .caps { grid-template-columns: minmax(0, 1fr); }
  .caps li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 0.55rem; align-content: start; padding-top: 1.1rem; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--red); }
.steps p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.25rem; } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Areas */
.areas { background: var(--paper-2); border-block: 1px solid var(--rule); }
.areas-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.areas-grid > * { min-width: 0; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.towns li { background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.93rem; font-weight: 500; }
.towns li.base { background: var(--black); color: #fff; border-color: var(--black); font-weight: 700; }
.areas-note { margin-top: 1.25rem; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 820px) { .areas-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-grid > * { min-width: 0; }
.direct { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.direct li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 0.9rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.direct .ic { width: 2.5rem; height: 2.5rem; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; grid-row: span 2; }
.direct .ic svg { width: 1.15rem; height: 1.15rem; }
.direct .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.direct a, .direct .value { font-family: var(--display); font-style: italic; font-size: 1.15rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.direct a:hover { color: var(--red-deep); }
.photo-tip { margin-top: 1.5rem; font-size: 0.93rem; color: var(--muted); }

form.quote { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--field); border: 1.5px solid #cfcfd4; border-radius: 5px; padding: 0.7rem 0.8rem; min-height: 3rem; }
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(237 27 36 / 0.22); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.form-foot small { color: var(--muted); font-size: 0.83rem; flex: 1 1 16rem; }
.form-status { grid-column: 1 / -1; border: 1px solid var(--rule); border-left: 4px solid var(--red); background: var(--paper); padding: 0.8rem 1rem; border-radius: 4px; font-size: 0.93rem; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { form.quote { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--black); color: var(--on-black-muted); font-size: 0.9rem; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem 2rem; padding-block: 2.75rem 1.75rem; align-items: center; }
.site-footer .brand .mark { height: 3.4rem; }
.site-footer .brand .word { height: 1.15rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: var(--on-black); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--red); }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid var(--black-rule); display: grid; place-items: center; color: var(--on-black); }
.socials a:hover { border-color: var(--red); color: var(--red); }
.socials svg { width: 1.15rem; height: 1.15rem; }
.legal { border-top: 1px solid var(--black-rule); padding-block: 1.25rem 2rem; line-height: 1.6; font-size: 0.8rem; }

/* Simple content pages */
.page { padding-block: clamp(3rem, 7vw, 5rem); }
.page .prose { max-width: 42rem; }
.page h1 { font-size: var(--step3); }
.page h2 { font-size: var(--step1); font-weight: 700; margin-top: 1rem; }
.page .prose p:not(.eyebrow), .page .prose li { color: var(--muted); }
.page .prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.page .prose a { color: var(--ink); text-underline-offset: 3px; }
