/* PAT Testing Dundee — "Clear Blue" look (chosen from /design/ on 26 Nov 2026): Manrope + Nunito Sans,
   blue brand, green only for pass labels and ticks. Plain and flat. */
:root {
  --paper: #F4F8FC;
  --white: #FFFFFF;
  --ink: #0E2440;
  --ink-2: #4A5D75;
  --line: #DCE6F0;
  --brand: #1657C4;
  --brand-d: #1048A8;
  --brand-l: #E6F0FF;
  --pass: #1B8A4F;
  --pass-l: #DDF3E6;
  --red: #C8372D;
  --r: 12px;
  --wrap: 1140px;
  --head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-d); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--white); padding: 8px 12px; z-index: 99; }
.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 62ch; }
.kicker { font: 700 .88rem/1.2 var(--head); color: var(--brand); margin: 0 0 12px; }
.hero .kicker { display: inline-block; background: var(--pass-l); color: #17663C; padding: 7px 13px; border-radius: 999px; margin-bottom: 18px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid #B9CBE2; font: 700 1.05rem/1.1 var(--head); text-decoration: none; cursor: pointer; }
.btn-green { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-green:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: inline-flex; flex: none; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; height: 40px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current] { color: var(--brand-d); text-decoration: underline; }
.header-call { display: inline-flex; align-items: center; gap: 8px; padding: 11px 17px; border-radius: 999px; background: var(--brand-l); color: var(--brand); font: 800 1rem/1 var(--head); text-decoration: none; white-space: nowrap; }
.header-call:hover { background: var(--brand); color: #fff; }
@media (max-width: 940px) { .nav { display: none; } .header-call { margin-left: auto; } }
@media (max-width: 420px) { .brand-logo { height: 27px; } .header-in { gap: 10px; } .header-call { padding: 10px 12px; font-size: .92rem; } }

/* sections */
section { padding: 72px 0; }
.band-white { background: var(--white); border-block: 1px solid var(--line); }
.band-green { background: var(--brand-d); color: #fff; }
.band-green h2, .band-green h3 { color: #fff; }
.band-green .lede, .band-green p { color: #DCE8FA; }
.band-green a { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 36px; }
@media (max-width: 700px) { section { padding: 52px 0; } body { font-size: 17px; } }

/* hero */
.hero { padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { margin-bottom: 26px; }
.hero-ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 8px; font-weight: 600; }
.hero-ticks li { display: flex; gap: 10px; align-items: flex-start; }
.hero-ticks .ico { color: var(--pass); margin-top: .28em; stroke-width: 3; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 20px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sticker { position: absolute; left: -18px; bottom: 26px; transform: rotate(-4deg); width: 190px; background: var(--pass); color: #fff; border: 3px solid #fff; border-radius: 8px; padding: 10px 12px 9px; font-family: var(--head); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.sticker b { display: block; font-size: 1.55rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }
.sticker span { display: flex; justify-content: space-between; font-size: .68rem; font-weight: 600; border-top: 1px solid rgba(255,255,255,.55); margin-top: 7px; padding-top: 5px; letter-spacing: .04em; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .sticker { left: 12px; bottom: 14px; width: 160px; } .sticker b { font-size: 1.3rem; } }

/* guarantee */
.g-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.g-item { padding: 24px 20px 22px; border-right: 1px solid var(--line); }
.g-item:last-child { border-right: 0; }
.g-num { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--brand-l); color: var(--brand); font: 800 1rem/1 var(--head); margin-bottom: 14px; }
.g-item h3 { font-size: 1.08rem; }
.g-item p { font-size: .98rem; color: var(--ink-2); margin: 0; }
@media (max-width: 1000px) { .g-grid { grid-template-columns: 1fr 1fr; } .g-item { border-bottom: 1px solid var(--line); } }
@media (max-width: 560px) { .g-grid { grid-template-columns: 1fr; } .g-item { border-right: 0; } }

/* who it is for */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.who { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.who img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.who-body { padding: 20px 20px 18px; }
.who-body p { font-size: 1rem; color: var(--ink-2); margin: 0; }
.who-plain { background: var(--brand-l); border-color: #C9DCF7; }
.who-plain .who-body { padding: 26px 22px; }
@media (max-width: 900px) { .who-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .who-grid { grid-template-columns: 1fr; } }

/* two-column text + media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.split img { border-radius: var(--r); width: 100%; }
.split.center { align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ico { color: var(--pass); margin-top: .3em; stroke-width: 3; }
.band-green .checks .ico { color: #8FE3B0; }
.note { background: var(--brand-l); padding: 16px 18px; border-radius: var(--r); font-size: 1rem; }
.note p:last-child { margin: 0; }

/* in-scope chips */
.scope { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.scope > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.scope h3 { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-block; font: 800 .72rem/1 var(--head); letter-spacing: .08em; padding: 6px 8px; border-radius: 4px; color: #fff; background: var(--pass); }
.tag.out { background: var(--ink-2); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-size: .95rem; }
@media (max-width: 760px) { .scope { grid-template-columns: 1fr; } }

/* why (law) cards */
.law-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.law { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.law p { color: var(--ink-2); font-size: 1rem; margin: 0; }
.law p + p { margin-top: .7em; }
@media (max-width: 760px) { .law-grid { grid-template-columns: 1fr; } }

/* how it works */
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.part { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r); padding: 26px 24px; }
.part-n { font: 800 .8rem/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: #A9C8FF; margin: 0 0 10px; }
.part dl { margin: 0; }
.part dt { font: 700 1.02rem/1.3 var(--head); color: #fff; margin-top: 16px; }
.part dd { margin: 4px 0 0; color: #DCE8FA; font-size: 1rem; }
.after { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.after > div { border-top: 2px solid #A9C8FF; padding-top: 16px; }
.after p { font-size: 1rem; margin: 0; }
@media (max-width: 800px) { .parts, .after { grid-template-columns: 1fr; } }

/* prices */
.price-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
table.prices { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.prices th, table.prices td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices thead th { background: var(--brand-l); color: var(--ink); font: 700 .9rem/1.2 var(--head); letter-spacing: .04em; }
table.prices tr:last-child td { border-bottom: 0; }
table.prices td:last-child { font: 800 1.15rem/1.3 var(--head); white-space: nowrap; }
table.prices small { display: block; font: 400 .9rem/1.4 var(--body); color: var(--ink-2); white-space: normal; }
.calc { background: var(--white); border: 2px solid var(--brand); border-radius: var(--r); padding: 24px; }
.calc label { font: 700 1rem/1.3 var(--head); display: block; margin-bottom: 8px; }
.calc-row { display: flex; gap: 12px; align-items: center; }
.calc input[type=number] { width: 120px; font: 700 1.3rem/1 var(--head); padding: 10px 12px; border: 2px solid #B9CBE2; border-radius: 10px; background: var(--paper); color: var(--ink); }
.calc input[type=range] { flex: 1; accent-color: var(--brand); min-width: 0; }
.calc-out { margin: 20px 0 6px; font: 800 2.6rem/1 var(--head); color: var(--brand); letter-spacing: -.03em; }
.calc-sub { color: var(--ink-2); font-size: 1rem; margin: 0 0 16px; }
.small { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

/* sample record */
.record { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 22px;  font-size: .92rem; }
.record-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.record-head b { font: 800 1.05rem/1.2 var(--head); }
.record-head span { color: var(--ink-2); font-size: .82rem; }
.record table { width: 100%; border-collapse: collapse; }
.record th, .record td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.record th { font: 700 .74rem/1.2 var(--head); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.pass, .fail { display: inline-block; font: 800 .72rem/1 var(--head); letter-spacing: .06em; color: #fff; padding: 5px 8px; border-radius: 999px; background: var(--pass); }
.fail { background: var(--red); }
.record-foot { margin: 12px 0 0; color: var(--ink-2); font-size: .82rem; }
@media (max-width: 520px) { .record .hide-s { display: none; } }

/* frequency table */
table.freq { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.freq th, table.freq td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.freq th { font: 700 .85rem/1.2 var(--head); letter-spacing: .04em; background: var(--brand-l); }

/* areas */
.area-photo { border-radius: 20px; width: 100%; aspect-ratio: 21 / 8; object-fit: cover; margin-bottom: 30px; }
.area-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.area-cols h3 { border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.area-cols ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 18px; }
.area-cols li { padding: 3px 0; break-inside: avoid; }
@media (max-width: 860px) { .area-cols { grid-template-columns: 1fr; } .area-photo { aspect-ratio: 16 / 9; } }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 700 1.12rem/1.3 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 12px; font: 400 1.8rem/1 var(--head); color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* quote form */
.quote-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.cform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 26px; border: 0; }
.cfield { display: grid; gap: 6px; }
.cfield-wide, .cform-note, .cform .btn, .cform-msg { grid-column: 1 / -1; }
.cfield label { font: 700 .95rem/1.2 var(--head); }
.cfield .opt { font-weight: 400; color: var(--ink-2); }
.cfield input, .cfield select, .cfield textarea { width: 100%; font: 400 1.05rem/1.4 var(--body); padding: 12px; border: 1.5px solid #B9CBE2; border-radius: 10px; background: #fff; color: var(--ink); }
.cfield input:focus, .cfield select:focus, .cfield textarea:focus, .calc input:focus { outline: 3px solid #A9C8FF; outline-offset: 1px; border-color: var(--brand-d); }
.cform-note { font-size: .92rem; color: var(--ink-2); margin: 0; }
.cform-note a { color: var(--brand-d); }
.cform-msg { margin: 0; font-weight: 600; min-height: 1.4em; color: var(--ink); }
.cform-msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.big-phone { font: 800 clamp(1.8rem, 4vw, 2.5rem)/1.1 var(--head); color: #fff; text-decoration: none; display: inline-block; margin: 6px 0 14px; }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 520px) { .cform { grid-template-columns: 1fr; padding: 20px; } }

/* footer */
.site-footer { background: #0A1B31; color: #C5D2E3; padding: 54px 0 26px; font-size: .98rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.foot-brand p { margin: 14px 0 0; max-width: 34ch; }
.foot-h { font: 700 .82rem/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: #A9C8FF; margin: 0 0 12px; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #24374F; font-size: .86rem; color: #93A4BA; }
.foot-legal p { margin: 0 0 6px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* mobile call bar */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .callbar .btn { min-height: 48px; padding: 8px 10px; font-size: 1rem; }
  body { padding-bottom: 72px; }
}

/* plain pages */
.page-head { padding: 48px 0 8px; }
.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.crumbs { font-size: .92rem; color: var(--ink-2); display: flex; gap: 8px; margin-bottom: 18px; }

.band-green .kicker { color: #A9C8FF; }
