/* Homepage presentation. Use solid colours behind the main customer controls. */
body.hm-refined {
  --hm-polish-ink: #152b38;
  --hm-polish-copy: #394e5b;
  --hm-polish-navy: #203e50;
  --hm-polish-hover: #163245;
  --hm-polish-border: #758995;
  --hm-polish-line: #bac8d0;
  --hm-polish-focus: #146383;
}

body.hm-refined .hmc-hero .hmc-actions a.hmc-button:not(.hmc-button-light) {
  background: var(--hm-polish-navy);
  border-color: var(--hm-polish-navy);
  color: #fff;
}
body.hm-refined .hmc-hero .hmc-actions a.hmc-button:not(.hmc-button-light):hover {
  background: var(--hm-polish-hover);
  border-color: var(--hm-polish-hover);
}
body.hm-refined :is(.hmc-actions, .hmc-card-grid) a.hmc-button-light {
  background: #fff;
  border-color: var(--hm-polish-border);
  color: var(--hm-polish-ink);
}
body.hm-refined :is(.hmc-actions, .hmc-card-grid) a.hmc-button-light:hover {
  background: #eaf0f3;
}
body.hm-refined :is(.hmc-actions, .hmc-card-grid) a.hmc-button:hover { filter: none; }
body.hm-refined main :is(a, button, input, textarea, select, summary):focus-visible,
body.hm-refined :is(header, footer) :is(a, button):focus-visible {
  outline: 3px solid var(--hm-polish-focus);
  outline-offset: 3px;
}
body.hm-refined footer :is(a, button):focus-visible {
  outline-color: #a9d9ee;
}
body.hm-refined .hmc-more a {
  text-decoration: underline;
  text-underline-offset: .2em;
}
.hmc-fees dd, #fixed-reviews .hm-review-price { font-variant-numeric: tabular-nums; }
.hmc-card-grid { gap: clamp(12px, 1.4vw, 20px); }
.hmc-card { row-gap: 10px; }

body.hm-refined .hm-journey-steps {
  background: #eef2f4;
  border-block: 1px solid var(--hm-polish-line);
  color: var(--hm-polish-ink);
}
body.hm-refined .hm-journey-steps h2 {
  color: var(--hm-polish-ink);
  margin-bottom: 16px;
}
body.hm-refined .hm-journey-steps .hm-journey-intro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  margin: 0;
}
body.hm-refined .hm-journey-steps #how-it-works {
  scroll-margin-top: 168px;
}
body.hm-refined .hm-journey-steps .hm-journey-intro > div {
  background: #fff;
  border: 1px solid var(--hm-polish-line);
  border-radius: 10px;
  padding: clamp(14px, 1.6vw, 22px);
}
body.hm-refined .hm-journey-steps h3 {
  color: var(--hm-polish-ink);
  margin: 6px 0;
}
body.hm-refined .hm-journey-steps p {
  color: var(--hm-polish-copy);
  margin: 0;
}

body.hm-refined .hm-brand-copy small,
body.hm-refined main .hm-wrap :is(.hm-kicker, .hm-links-kicker, .hm-film-meta, .hm-film-service, .hm-proof-role, .hm-proof-context),
body.hm-refined main :is(.hm-visual-label, .hm-example-title, .hm-output-top, .hm-output-eyebrow, .hm-output-next > span, .hm-output-foot, .hm-visual-caption),
body.hm-refined main :is(.hm-scroll-toolbar > span, figcaption),
body.hm-refined #fixed-reviews :is(.hm-review-topline, .hm-review-scope span, .hm-review-outcome h4),
body.hm-refined #shortlist :is(.hm-field-hint, .hm-speed-option span, .hm-speed-option strong, .hm-contract-panel summary span, .hm-before-commit p, .hm-enquiry-intro cite, .hm-price-at-speed > span, .hm-urgency > p),
body.hm-refined #individual-qs-tasks :is(li, details p),
body.hm-refined #about :is(cite, figcaption span),
body.hm-refined footer :is(nav a, small, strong) {
  font-size: max(13px, .8125rem);
  line-height: 1.5;
}
body.hm-refined .hm-visual-label,
body.hm-refined .hm-example-title,
body.hm-refined .hm-output-top { flex-wrap: wrap; gap: 6px 14px; }
body.hm-refined .hm-output-top span:last-child { font-size: inherit; }
body.hm-refined .hm-output-line { gap: 6px 14px; }
body.hm-refined .hm-output-line :is(span, strong) { font-size: max(13px, .8125rem); }
body.hm-refined .hm-output-line span { color: var(--hm-polish-copy); }
body.hm-refined #fixed-reviews .hm-card-actions > .hm-service-detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: max(14px, .875rem);
  text-decoration: underline;
  text-underline-offset: .2em;
}
body.hm-refined #shortlist .hm-form-row {
  align-items: start;
}
body.hm-refined #shortlist .hm-enquiry-refined > .hm-brief-field {
  grid-column: 1 / -1;
}
body.hm-refined #shortlist :is(input:not([type="radio"], [type="checkbox"]), textarea, select) {
  border-color: var(--hm-polish-border);
  color: var(--hm-polish-ink);
  font-size: max(16px, 1rem);
}
body.hm-refined #shortlist :is(input, textarea)::placeholder {
  color: #52646f;
  opacity: 1;
}
body.hm-refined #shortlist textarea { width: 100%; }
body.hm-refined #shortlist :is(.hm-enquiry-refined > p, .hm-contract-content .hm-small, .hm-price-at-speed p) {
  font-size: max(14px, .875rem);
  line-height: 1.55;
}
body.hm-refined #shortlist .hm-enquiry-refined button[type="submit"] {
  min-height: 48px;
  background: var(--hm-polish-navy);
  border-color: var(--hm-polish-navy);
  color: #fff;
}
body.hm-refined #shortlist .hm-enquiry-refined button[type="submit"]:hover {
  background: var(--hm-polish-hover);
  border-color: var(--hm-polish-hover);
}

/* Override the smaller sizes explicitly set by the existing responsive sections. */
body.hm-refined :is(
  .hm-nav-action,
  #service-details .hm-links-kicker,
  #takeoffs-and-boqs .hm-kicker,
  #takeoffs-and-boqs figcaption,
  #films .hm-kicker,
  #films .hm-film-meta,
  #colleague-recommendations .hm-kicker,
  #colleague-recommendations .hm-proof-role,
  #colleague-recommendations .hm-proof-card > p:not([class]),
  #colleague-recommendations .hm-proof-context,
  footer .hm-brand-copy small,
  .hm-footer-emails strong,
  .hm-footer-bottom span
) {
  font-size: max(13px, .8125rem) !important;
}

@media (max-width: 960px) {
  body.hm-refined .hm-journey-steps .hm-journey-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  body.hm-refined .hm-journey-steps .hm-journey-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}
