@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-sc-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("../fonts/barlow-sc-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* colours sampled from the client's logo (source_brand/mkm-logo-original.png): navy #002858, charcoal #384048,
     orange #F87000 on white. The orange is darkened for text and buttons so white on it passes 4.5:1. */
  --ink: #1C2633;
  --ink-deep: #001C40;
  --navy: #002858;
  --slate: #384048;
  --lead: #5B6470;
  --lead-lite: #AAB3BF;
  --paper: #F6F7F9;
  --paper-2: #EBEEF2;
  --line: #D8DEE6;
  --line-strong: #B8C2CE;
  --orange: #F87000;
  --orange-text: #C25400;
  --orange-deep: #9A4200;
  --orange-lite: #FFA14D;
  --orange-wash: #FFF1E5;
  --ok-bg: #E8F1E3;
  --ok-ink: #2E5A1E;
  --bad-bg: #FBEAE6;
  --bad-ink: #8A2415;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0, 28, 64, .06), 0 10px 28px rgba(0, 28, 64, .08);
  --gutter: 20px;
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-h: "Barlow Semi Condensed", "Barlow", "Segoe UI", system-ui, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
h1, h2, h3 { margin: 0 0 .5em; font-family: var(--font-h); line-height: 1.05; font-weight: 800; letter-spacing: -.005em; text-wrap: balance; color: var(--navy); }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.5rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.block-dark :focus-visible, .cta :focus-visible, .site-foot :focus-visible { outline-color: var(--orange-lite); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; color: #fff; }

.label { display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange-text); margin-bottom: 18px; }
.label::before { content: ""; width: 28px; height: 3px; background: var(--orange); flex: none; }
h1 .label { font-family: var(--font); font-size: .78rem; line-height: 1.3; letter-spacing: .15em; font-weight: 700; margin-bottom: 18px; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); color: var(--lead); max-width: 40rem; }
.small-print { font-size: .9rem; color: var(--lead); }
.k { font-weight: 700; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-cta { background: var(--orange-text); color: #fff; }
.btn-cta:hover { background: var(--orange-deep); color: #fff; }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 1.06rem; }

.more { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; color: var(--navy); text-decoration: none; }
.more::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--orange); border-right: 2px solid var(--orange); transform: rotate(45deg); transition: transform .15s; }
.more:hover { color: var(--orange-text); }
.more:hover::after { transform: translateX(4px) rotate(45deg); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand-img { height: 54px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 0; position: relative; }
.site-nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-nav ul a:hover::after, .site-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-call { color: var(--navy); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu-btn { display: none; }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 6px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
  .menu-bars { display: grid; gap: 4px; }
  .menu-bars span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(0, 28, 64, .12); padding: 8px var(--gutter) 22px; }
  .js .site-nav:not(.open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: 15px 0; font-size: 1.1rem; }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--orange-text); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 18px; }
  .nav-actions .btn { min-height: 50px; }
  .nav-call { text-align: center; padding: 10px; }
}

/* full-width photo banner under the nav; headline beneath, never on the photo */
.banner { line-height: 0; background: var(--paper-2); border-bottom: 4px solid var(--orange); }
.banner picture, .banner img { display: block; width: 100%; }
.banner img { height: clamp(190px, 24vw, 340px); object-fit: cover; object-position: 50% 50%; }
.banner-short img { height: clamp(160px, 18vw, 280px); }
.banner-repairs img { object-position: 50% 45%; }
.banner-newroof img { object-position: 50% 55%; }
.banner-roofline img { object-position: 50% 40%; }
.banner-contact img { object-position: 50% 35%; }

/* hero */
.hero { padding: 48px 0 56px; }
.hero h1 { margin-bottom: 14px; max-width: 24ch; }
.hero .lead { max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 0; font-weight: 600; color: var(--lead); }
.hero-contact a { color: var(--navy); font-weight: 700; }
.page-hero { padding: 48px 0 48px; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.3rem); }

/* sections */
.block { padding: 80px 0; }
.block-flush { padding-top: 0; }
.block-tint { background: var(--paper-2); }
.block-dark { background: var(--navy); color: #E6E9EE; }
.block-dark h2, .block-dark h3 { color: #fff; }
.block-dark p { color: #C9CFD8; }
.section-head { max-width: 46rem; margin-bottom: 40px; }
.section-head p:not(.label) { color: var(--lead); font-size: 1.1rem; }
.split-2 { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.split-2 .section-head { margin-bottom: 0; }
.prose p { font-size: 1.08rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 { margin-top: 28px; }
.prose h3:first-child { margin-top: 0; }

.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 3px; background: var(--orange); }
.rule-list { list-style: none; border-top: 1px solid var(--line-strong); }
.rule-list li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.06rem; }
.rule-list li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 12px; height: 3px; background: var(--orange); }
.note { border-left: 3px solid var(--orange); background: var(--orange-wash); padding: 14px 18px; border-radius: 0 6px 6px 0; font-weight: 550; }

/* home: intro beside the contact card */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 56px; align-items: start; }
.intro-grid .lead { max-width: none; }
.intro-list { margin: 22px 0 22px; }
.intro-list li { font-size: 1.05rem; }
.contact-card h2 { font-size: 1.4rem; }
.contact-card .dd-plain { font-family: var(--font); font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.foot-grid-3 { grid-template-columns: 1.4fr 1fr 1.3fr; }

/* steps */
.steps { list-style: none; counter-reset: n; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: n; position: relative; padding-top: 56px; }
.steps li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-h); font-weight: 800; font-size: 1.1rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { color: var(--lead); margin: 0; }

/* areas */
.areas-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.areas { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; border-top: 1px solid var(--line-strong); }
.areas li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

/* contact card on the home page */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.2rem; }
.contact-card dl { margin: 0 0 18px; display: grid; gap: 12px; }
.contact-card dt { font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--lead); }
.contact-card dd { margin: 2px 0 0; font-family: var(--font-h); font-size: 1.4rem; font-weight: 700; }
.contact-card dd a { color: var(--navy); text-decoration: none; }
.contact-card dd a:hover { color: var(--orange-text); }

/* cta */
.cta { background: var(--navy); color: #fff; padding: 72px 0; border-top: 5px solid var(--orange); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #C9CFD8; margin: 0; max-width: 34rem; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* contact form */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 48px; align-items: start; }
.enquiry, .sent { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 36px; box-shadow: var(--shadow); }
.sent h2 { font-size: 2rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 7px; }
.opt-tag { font-weight: 500; color: var(--lead); font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 6px; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--orange-text) 50%), linear-gradient(135deg, var(--orange-text) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6B7280; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(248, 112, 0, .22); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--orange-text); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: var(--bad-ink); }
.hint { font-size: .9rem; color: var(--lead); margin: 7px 0 0; }
.hint-contact { margin: 0 0 12px; }
.err { font-size: .92rem; color: var(--bad-ink); font-weight: 600; margin: 7px 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin-top: 6px; }
.status { margin-top: 18px; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.status:empty { padding: 0; margin: 0; }
.status:focus { outline: none; }
.status.ok { background: var(--ok-bg); color: var(--ok-ink); }
.status.bad { background: var(--bad-bg); color: var(--bad-ink); }
.status.info { background: var(--paper-2); color: var(--ink); }
.contact-aside { position: sticky; top: 98px; }
.aside-block { border-top: 1px solid var(--line-strong); padding: 20px 0 6px; }
.aside-block:first-child { border-top: 0; padding-top: 0; }
.aside-block h3 { font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .13em; color: var(--lead); font-weight: 700; }
.big-link { font-family: var(--font-h); font-size: 1.7rem; font-weight: 800; color: var(--navy); text-decoration: none; }

/* legal */
.legal { max-width: 52rem; }
.legal h2 { font-size: 1.5rem; margin-top: 40px; }
.legal h2:first-child { margin-top: 0; }
.legal ul { padding-left: 1.2em; margin-bottom: 1em; display: grid; gap: 6px; }
.table-wrap { overflow-x: auto; margin-bottom: 1em; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.tbl th, .tbl td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; color: var(--lead); background: var(--paper-2); }
.tbl tbody th { font-weight: 650; }
.tbl tbody tr:last-child th, .tbl tbody tr:last-child td { border-bottom: 0; }

/* footer */
.site-foot { background: var(--ink-deep); color: var(--lead-lite); padding: 60px 0 28px; font-size: .97rem; border-top: 5px solid var(--orange); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(170, 179, 191, .22); }
.foot-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.foot-logo img { display: block; width: 150px; height: auto; }
.foot-brand p { margin-top: 18px; max-width: 22rem; }
.foot-h { font-family: var(--font); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.foot-links { list-style: none; display: grid; gap: 4px; }
.foot-links a { display: inline-block; padding: 8px 0; }
.site-foot a { color: #E3E6EB; text-decoration: none; }
.site-foot a:hover { color: var(--orange-lite); text-decoration: underline; }
.site-foot .k { color: #fff; }
.foot-areas { margin: 0; }
.foot-base { display: flex; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; padding-top: 22px; font-size: .86rem; }
.foot-base p { margin: 0; max-width: 46rem; }
.foot-base a { display: inline-block; padding: 12px 0; text-decoration: underline; text-underline-offset: 3px; }

/* phone quick-contact bar */
.action-bar { display: none; }
@media (max-width: 640px) {
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--navy); box-shadow: 0 -6px 20px rgba(0, 28, 64, .25); }
  .action-bar a { flex: 1; min-height: 46px; display: grid; place-items: center; border-radius: 6px; font-weight: 700; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
  .action-bar a.ab-main { background: var(--orange-text); box-shadow: none; }
  body:has(.action-bar) { padding-bottom: 72px; }
}

/* responsive */
@media (max-width: 1080px) {
  .foot-grid, .foot-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .block { padding: 64px 0; }
  .intro-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero { padding: 32px 0 44px; }
  .split-2, .contact-grid, .areas-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .steps li { padding: 0 0 0 58px; min-height: 40px; }
  .contact-aside { position: static; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 1.03rem; }
  .block { padding: 52px 0; }
  .section-head { margin-bottom: 28px; }
  .head-inner { min-height: 66px; }
  .brand-img { height: 44px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .enquiry, .sent { padding: 24px 18px; border-radius: 10px; }
  .row-2 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cta { padding: 52px 0; }
  .foot-grid, .foot-grid-3 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .tbl th, .tbl td { padding: 12px 14px; }
}
@media (min-width: 901px) and (max-height: 860px) {
  .banner img { height: clamp(150px, 22vh, 300px); }
  .hero { padding-top: 26px; }
}
@media (forced-colors: active) {
  .btn-cta { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
@media (prefers-reduced-motion: reduce) {
  .more::after, .btn, .menu-bars span { transition: none; }
}
@media (max-width: 1100px) {
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-head { position: relative; }
  html:not(.js) .site-nav { position: static; box-shadow: none; }
}
