/* Jackman Mechanical dev page, variation B ("Service Desk").
   Tokens live here and nowhere else. Each colour says what it may touch. */
:root {
  --paper: #FFFFFF;     /* page ground, cards, form */
  --mist: #F3F4F6;      /* alternate bands (emergency guide, booking) ONLY */
  --ink: #141414;       /* text; hero band, business door, footer (his logo's black) */
  --ink-2: #545B63;     /* secondary text, captions */
  --rule: #DADDE2;      /* hairlines and borders */
  --on-dark: #F2F3F5;   /* text on ink */
  --on-dark-2: #B9BFC6; /* secondary text on ink */
  --red: #D10522;       /* HIS red: call buttons, focus ring, situation markers, small labels */
  --red-dk: #A8031B;    /* hover on red buttons only */

  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --text: "Red Hat Text", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --top-h: 72px;
  --r: 10px;            /* photos, doors, cards: one radius */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.015em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
[id] { scroll-margin-top: calc(var(--top-h) + 16px); }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
.todo { color: var(--on-dark-2); font-style: italic; }
.answer { font-size: 1.1875rem; line-height: 1.6; max-width: 46rem; }
.ico { width: 18px; height: 18px; flex: none; }

/* ── preview strip ─────────────────────────────────────────────────────── */
.preview { background: var(--red); color: var(--paper); font-size: 0.875rem; font-weight: 500; text-align: center; padding: 6px var(--gutter); }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 8px; border: 2px solid transparent;
  font: 700 1rem/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 1.0625rem; }
.btn--red { background: var(--red); color: var(--paper); }
.btn--red:hover { background: var(--red-dk); }
.btn--red:focus-visible { outline-color: var(--ink); }
.btn--ghost { border-color: var(--on-dark-2); color: var(--on-dark); }
.btn--ghost:hover { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* ── header ────────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: var(--top-h); }
.brand { flex: none; display: block; }
.brand img { width: 184px; }
.nav { display: flex; gap: 4px; margin-left: auto; font-weight: 500; }
.nav a { text-decoration: none; padding: 12px 12px; border-radius: 6px; }
.nav a:hover { background: var(--mist); }
.mnav { display: none; position: relative; margin-left: auto; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--mist); }
.mnav nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, calc(100vw - 2 * var(--gutter))); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 6px; display: flex; flex-direction: column; box-shadow: 0 12px 32px rgba(20, 20, 20, 0.14); }
.mnav nav a { padding: 14px 14px; border-radius: 6px; text-decoration: none; font-weight: 500; }
.mnav nav a:hover { background: var(--mist); }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { background: var(--ink); color: var(--on-dark); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 72px 0; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--paper); }
.hero__answer { font-size: 1.1875rem; color: var(--on-dark); max-width: 36rem; }
.hero__answer a { color: var(--paper); font-weight: 700; white-space: nowrap; }
.hero :focus-visible { outline-color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.hero__photo figcaption { margin-top: 10px; font-size: 0.875rem; color: var(--on-dark-2); }

/* ── two doors ─────────────────────────────────────────────────────────── */
.doors { padding: 72px 0; }
.doors__h { margin-bottom: 28px; }
.doors__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.door { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .15s ease; }
.door:hover { border-color: var(--ink); }
.door img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.door__body { display: flex; flex-direction: column; gap: 10px; padding: 28px; }
.door__k { font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1.15; }
.door__t { color: var(--ink-2); }
.door__go { margin-top: auto; font-weight: 700; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.door--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.door--dark .door__t { color: var(--on-dark-2); }
.door--dark:focus-visible { outline-color: var(--red); }

/* ── emergency guide: the one bold element ────────────────────────────── */
.emerg { background: var(--mist); padding: 72px 0; border-top: 4px solid var(--red); }
.emerg h2 { max-width: 44rem; }
.emerg .answer { margin: 18px 0 32px; }
.steps { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.steps caption { caption-side: top; text-align: left; font-size: 0.9375rem; color: var(--ink-2); padding-bottom: 10px; }
.steps th, .steps td { text-align: left; vertical-align: top; padding: 20px 22px; border-top: 1px solid var(--rule); }
.steps thead th { border-top: 0; background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 0.9375rem; padding: 14px 22px; }
.steps tbody th { width: 24%; font-family: var(--display); font-weight: 900; font-size: 1.1875rem; line-height: 1.25; box-shadow: inset 4px 0 0 var(--red); }
.steps td:nth-child(2) { width: 46%; }
.steps a[href^="tel"] { font-weight: 700; white-space: nowrap; }
.src { display: inline-block; margin-top: 4px; padding: 6px 0; font-size: 0.875rem; color: var(--ink-2); }
.src:hover { color: var(--red); }
.byline { margin-top: 14px; font-size: 0.875rem; color: var(--ink-2); }

/* ── services ──────────────────────────────────────────────────────────── */
.services { padding: 72px 0; }
.services .answer { margin: 18px 0 32px; }
.trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trade { border: 1px solid var(--rule); border-top: 4px solid var(--red); border-radius: var(--r); }
.trade__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.trade__body p { color: var(--ink-2); }
.trade ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.trade li::marker { color: var(--red); }

/* ── our jobs strip ───────────────────────────────────────────────────── */
.work { padding: 0 0 72px; }
.work h2 { margin-bottom: 24px; }
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.strip figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-2); }

/* ── areas ─────────────────────────────────────────────────────────────── */
.areas { padding: 64px 0; border-top: 1px solid var(--rule); }
.areas__in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; }
.areas__copy { display: flex; flex-direction: column; gap: 16px; }
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { padding: 10px 18px; border: 1.5px solid var(--ink); border-radius: 999px; font-weight: 700; }

/* ── booking ───────────────────────────────────────────────────────────── */
.book { background: var(--mist); padding: 72px 0; }
.book__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px 56px; align-items: start; }
.book__copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.book__mail { color: var(--ink-2); overflow-wrap: anywhere; }
.form { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.form__who { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.form__who legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.form__who label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.form__who input { width: 22px; height: 22px; accent-color: var(--red); }
.fld { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.fld input, .fld select, .fld textarea { font: 400 1rem/1.4 var(--text); color: var(--ink); background: var(--paper); border: 1.5px solid #8A9098; border-radius: 8px; padding: 12px 14px; min-height: 50px; width: 100%; }
.fld input:focus-visible, .fld select:focus-visible, .fld textarea:focus-visible { border-color: var(--ink); }
.form .btn { align-self: flex-start; }
.form__sent { font-weight: 700; border-left: 4px solid var(--red); padding-left: 10px; }

/* ── footer ────────────────────────────────────────────────────────────── */
.foot { background: var(--ink); color: var(--on-dark-2); padding: 48px 0; font-size: 0.9375rem; }
.foot a { color: var(--paper); }
.foot :focus-visible { outline-color: var(--paper); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 64px; }
.foot__col { display: flex; flex-direction: column; gap: 6px; max-width: 30rem; }
.foot__name { color: var(--paper); font-family: var(--display); font-weight: 900; font-size: 1.125rem; }
.foot__note { margin-top: 8px; }

/* ── phone dock: call is always one tap away ───────────────────────────── */
.dock { display: none; }

/* ── narrower screens ──────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .nav { display: none; }
  .mnav { display: block; margin-left: 0; }
  .top__call { margin-left: auto; }
  .door { grid-template-columns: minmax(0, 1fr); }
  .door img { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
}
@media (max-width: 860px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 48px 0 40px; }
  .hero__photo img { aspect-ratio: 16 / 11; }
  .trades { grid-template-columns: minmax(0, 1fr); }
  .areas__in, .book__in { grid-template-columns: minmax(0, 1fr); }
  .trades { gap: 14px; }
  /* swipe through the job photos instead of a long column of them */
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .strip li { flex: 0 0 72%; scroll-snap-align: start; }
  .work { padding-bottom: 52px; }

  /* the table stays a table; its rows become labelled cards */
  .steps, .steps tbody, .steps tr, .steps th, .steps td { display: block; width: auto; }
  .steps { background: none; border: 0; border-radius: 0; overflow: visible; }
  .steps caption { display: block; }
  .steps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .steps tbody tr { background: var(--paper); border: 1px solid var(--rule); border-left: 5px solid var(--red); border-radius: var(--r); margin-bottom: 14px; padding: 18px 18px 6px; }
  .steps tbody th { width: auto; padding: 0 0 10px; border: 0; box-shadow: none; font-size: 1.25rem; }
  .steps td, .steps td:nth-child(2) { width: auto; padding: 10px 0 12px; border-top: 1px solid var(--rule); }
  .steps td[data-label]::before { content: attr(data-label); display: block; font-family: var(--display); font-weight: 700; font-size: 0.8125rem; color: var(--red); margin-bottom: 4px; }
}
@media (max-width: 760px) {
  :root { --top-h: 62px; }
  .brand img { width: 150px; }
  .top__call { display: none; }
  .mnav { margin-left: auto; }
  body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .dock {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--rule);
    box-shadow: 0 -6px 20px rgba(20, 20, 20, 0.08);
  }
  .dock .btn { flex: 1 1 0; min-height: 54px; padding: 0 12px; }
  .dock { transition: transform .25s ease; }
  .dock--away { transform: translateY(110%); }
  .doors__grid { grid-template-columns: minmax(0, 1fr); }
  .door__body { padding: 22px; }
  .doors, .emerg, .services, .book { padding: 52px 0; }
  .areas { padding: 48px 0; }
  .answer, .hero__answer { font-size: 1.0625rem; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .form { padding: 20px 16px; }
  .form .btn { align-self: stretch; }
  .book__copy .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .door, .dock { transition: none; }
}
