/* MR Exterior Cleaning — landing page styles
   Palette: deep navy night-blue hero, rinsed off-white sections, one clean-blue accent.
   Grime colours live only inside the house illustration. */
:root {
  --paper: #F4F7F9;
  --card: #FFFFFF;
  --ink: #13263A;
  --ink-soft: #4B5B6B;
  --line: #D5DDE4;
  --night: #0C1A2A;
  --night-2: #13263A;
  --night-line: rgba(255, 255, 255, 0.10);
  --on-night: #EAF1F8;
  --on-night-soft: #A9B9CA;
  --accent: #1F6FD1;
  --accent-dark: #17589F;
  --accent-light: #6FB1FF;
  --accent-ink: #FFFFFF;
  --fresh: #E5EFFB;
  --focus: #E8A317;
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1160px;
  --shadow-lg: 0 30px 60px -20px rgba(4, 12, 22, 0.55), 0 12px 24px -12px rgba(4, 12, 22, 0.35);
  --shadow-md: 0 14px 32px -16px rgba(19, 38, 58, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }

h1, h2, h3 { font-family: var(--display); line-height: 1.06; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6.4vw, 4rem); font-weight: 800; font-stretch: 88%; max-width: 14ch; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); font-weight: 800; font-stretch: 92%; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; }
.eyebrow { margin: 0 0 12px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* Header (sits on the dark hero) */
.site-header { background: var(--night); border-bottom: 1px solid var(--night-line); position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: #fff; text-decoration: none; letter-spacing: -0.01em; line-height: 1.1; }
.brand small { display: block; font-family: var(--body); font-weight: 600; font-size: 0.8rem; color: var(--on-night-soft); letter-spacing: 0; }
.call-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,0.22); border-radius: 999px; padding: 9px 15px; white-space: nowrap; transition: background 200ms, border-color 200ms; }
.call-link:hover { border-color: var(--accent-light); background: rgba(111,177,255,0.10); }
.call-link svg { width: 16px; height: 16px; }
@media (max-width: 420px) { .call-link .num { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 14px 22px; border-radius: 12px; border: 0; cursor: pointer; font-family: var(--body); box-shadow: 0 8px 20px -8px rgba(31,111,209,0.7); transition: background 180ms, transform 180ms, box-shadow 180ms; }
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(31,111,209,0.8); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--card); border-color: var(--ink-soft); box-shadow: none; }

/* Hero */
.hero { position: relative; padding: 40px 0 56px; color: var(--on-night); background:
  radial-gradient(900px 520px at 88% -8%, rgba(31,111,209,0.55), transparent 62%),
  radial-gradient(700px 480px at -10% 110%, rgba(111,177,255,0.14), transparent 60%),
  linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero .wrap { position: relative; display: grid; gap: 32px; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1fr 560px; gap: 56px; align-items: center; } .hero { padding: 72px 0 96px; } }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--accent-light); }
.shine { background: linear-gradient(100deg, #FFFFFF 0%, #BFE0FF 45%, #6FB1FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.15rem; color: var(--on-night-soft); margin: 18px 0 22px; max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: 0 0 auto; width: 13px; height: 7px; border-left: 3px solid var(--accent-light); border-bottom: 3px solid var(--accent-light); transform: rotate(-45deg) translateY(-3px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.26); }
.hero .btn-ghost:hover, .cta-band .btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* House checker */
.checker { position: relative; background: var(--card); color: var(--ink); border-radius: 22px; padding: 16px; box-shadow: var(--shadow-lg); }
.checker::after { content: ""; position: absolute; inset: -1px; border-radius: 23px; pointer-events: none; border: 1px solid rgba(255,255,255,0.5); mix-blend-mode: overlay; }
@media (min-width: 760px) { .checker { padding: 20px; } }
.checker-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 2px 2px 10px; }
.checker-head h2 { font-size: 1.2rem; font-stretch: 100%; }
.checker-head p { margin: 0; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31,111,209,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,111,209,0.55); } 70% { box-shadow: 0 0 0 9px rgba(31,111,209,0); } 100% { box-shadow: 0 0 0 0 rgba(31,111,209,0); } }

.house { width: 100%; height: auto; margin: 0 0 14px; border-radius: 14px; overflow: hidden; }
.house [data-zone] { cursor: pointer; outline: none; }
.house [data-zone]:hover { filter: brightness(1.05) saturate(1.05); }
.house [data-zone]:focus-visible { filter: drop-shadow(0 0 3px var(--focus)) drop-shadow(0 0 1px var(--focus)); }
.house .moss { transition: opacity 600ms ease 250ms; }
.house [data-clean="true"] .moss { opacity: 0; }
.house .pill rect { fill: rgba(12, 26, 42, 0.78); transition: fill 250ms ease; }
.house .pill text { font-family: var(--body); font-size: 14.5px; font-weight: 700; fill: #fff; }
.house .pill .tick { display: none; }
.house .pill line { transition: opacity 250ms; }
.house[data-roof="on"] .pill-roof rect,
.house[data-walls="on"] .pill-walls rect,
.house[data-gutters="on"] .pill-gutters rect,
.house[data-fascias="on"] .pill-fascias rect,
.house[data-pressure="on"] .pill-pressure rect { fill: var(--accent); }
.house[data-roof="on"] .pill-roof .tick,
.house[data-walls="on"] .pill-walls .tick,
.house[data-gutters="on"] .pill-gutters .tick,
.house[data-fascias="on"] .pill-fascias .tick,
.house[data-pressure="on"] .pill-pressure .tick { display: inline; }
@media (prefers-reduced-motion: reduce) { .house .moss, .house .pill rect, .pulse { transition: none; animation: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.chips legend { font-weight: 700; font-size: 0.85rem; letter-spacing: 0.02em; color: var(--ink-soft); margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 0.95rem; background: var(--paper); color: var(--ink); transition: background 180ms, border-color 180ms, color 180ms; }
.chip:hover span { border-color: var(--accent); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.estimate { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: linear-gradient(135deg, #F1F6FC, #E5EFFB); border-radius: 14px; padding: 14px 16px; margin-top: 4px; }
.est-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); }
.estimate .amount { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 5.4vw, 2.3rem); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.1; }
.estimate .note { font-size: 0.85rem; color: var(--ink-soft); margin: 4px 0 0; max-width: 36ch; }

/* Sections */
section.block { padding: 72px 0; }
@media (min-width: 760px) { section.block { padding: 96px 0; } }
section.block + section.block { border-top: 1px solid var(--line); }
.intro { color: var(--ink-soft); margin: 12px 0 28px; max-width: 60ch; }
.footnote { font-size: 0.875rem; color: var(--ink-soft); margin-top: 18px; max-width: 72ch; }

/* Services */
.services { background: var(--card); }
.service-grid { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .service-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.service { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms; overflow: hidden; }
.service::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transform: scaleX(0); transform-origin: left; transition: transform 400ms ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service svg { width: 48px; height: 48px; margin-bottom: 18px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service svg .drip { stroke: var(--accent-light); }
.service p { color: var(--ink-soft); margin: 8px 0 16px; }
.service .from { display: inline-block; font-weight: 700; font-size: 0.9rem; color: var(--accent-dark); background: var(--fresh); padding: 5px 11px; border-radius: 999px; }

/* Quote block */
.quote-block { background: linear-gradient(180deg, var(--paper), #EAF1F8); }
.quote-grid { display: grid; gap: 28px; }
@media (min-width: 980px) { .quote-grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; } }
.mini-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 14px; }
.mini-steps li { counter-increment: s; position: relative; padding-left: 48px; color: var(--ink-soft); min-height: 34px; }
.mini-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; }
.mini-steps strong { display: block; color: var(--ink); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-md); }
.form-card iframe { width: 100%; border: 0; min-height: 560px; }
.form-missing { border: 2px dashed var(--line); border-radius: 10px; padding: 20px; color: var(--ink-soft); }

/* Steps (thanks page) */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 2rem; color: var(--accent); display: block; line-height: 1; margin-bottom: 8px; }
.steps p { margin: 4px 0 0; color: var(--ink-soft); }

/* Prices */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--ink); color: #fff; font-size: 0.9rem; font-weight: 700; }
.price-table tbody th { font-weight: 600; }
.price-table tbody tr { transition: background 150ms; }
.price-table tbody tr:hover { background: var(--fresh); }
.price-table tr:last-child td, .price-table tr:last-child th { border-bottom: 0; }
.table-scroll { overflow-x: auto; border-radius: 16px; }

/* Areas + coverage map */
.areas-block { background: var(--night); color: var(--on-night); border-top: 0 !important; }
.areas-block .eyebrow { color: var(--accent-light); }
.areas-block h2 { color: #fff; }
.areas-block .intro, .areas-block .footnote { color: var(--on-night-soft); }
.areas-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .areas-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.areas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.areas li { background: rgba(255,255,255,0.06); border: 1px solid var(--night-line); border-radius: 999px; padding: 6px 13px; font-weight: 600; font-size: 0.95rem; }
.radar { width: 100%; max-width: 480px; margin: 0 auto; overflow: visible; }
.radar .towns circle { fill: var(--accent-light); }
.radar .towns text, .radar .km { font-family: var(--body); font-size: 2.3px; font-weight: 600; fill: var(--on-night-soft); }
.radar .km { font-size: 2px; fill: var(--accent-light); }
.radar .home { fill: #fff; }
.radar .home-label { font-family: var(--body); font-size: 2.8px; font-weight: 700; fill: #fff; }
.radar .ping { fill: none; stroke: #fff; stroke-width: 0.4; transform-origin: 0 0; animation: ping 2.4s ease-out infinite; }
.radar .sweep { transform-origin: 0 0; animation: spin 7s linear infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(5); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .radar .ping, .radar .sweep { animation: none; } .radar .sweep { display: none; } }

/* FAQ */
.faq { max-width: 800px; margin-top: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--fresh); font-family: var(--display); font-size: 1.2rem; line-height: 1; color: var(--accent-dark); transition: transform 250ms ease, background 250ms; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* CTA band */
.cta-band { color: var(--on-night); border-top: 0 !important; background:
  radial-gradient(700px 400px at 100% 0%, rgba(31,111,209,0.5), transparent 60%),
  linear-gradient(180deg, var(--night-2), var(--night)); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-night-soft); margin: 10px 0 24px; }

.site-footer { background: var(--night); border-top: 1px solid var(--night-line); padding: 36px 0 44px; font-size: 0.92rem; color: var(--on-night-soft); }
.site-footer a { color: #CFE3FA; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0 0 8px; max-width: 72ch; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }

/* Reveal on scroll (only when JS has opted in) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .service-grid .reveal:nth-child(2) { transition-delay: 90ms; }
.js-reveal .service-grid .reveal:nth-child(3) { transition-delay: 180ms; }

/* Sticky mobile action bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(12, 26, 42, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--night-line); }
.mobile-bar .btn { padding: 12px 16px; }
.mobile-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.26); }
@media (max-width: 759px) { body.has-bar { padding-bottom: 72px; } }
@media (min-width: 760px) { .mobile-bar { display: none; } }

/* Thanks + prose */
.result { background: var(--card); color: var(--ink); border-radius: 20px; padding: 24px; max-width: 640px; margin-top: 24px; box-shadow: var(--shadow-lg); }
.result .big { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 6vw, 2.8rem); font-variant-numeric: tabular-nums; margin: 4px 0; letter-spacing: -0.02em; }
.result .what { color: var(--ink-soft); margin: 0; }
.prose { max-width: 70ch; padding: 40px 0 64px; }
.prose h1 { font-size: 2.2rem; max-width: none; margin-bottom: 8px; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 8px; font-stretch: 100%; max-width: none; }
.prose .updated { color: var(--ink-soft); }

/* Cookie banner */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--ink); color: #EAF1F8; border-radius: 14px; padding: 16px; display: none; box-shadow: 0 8px 30px rgba(0,0,0,0.3); border: 1px solid var(--night-line); }
@media (max-width: 759px) { .has-bar .consent { bottom: 84px; } }
.consent.show { display: block; }
.consent p { margin: 0 0 12px; font-size: 0.95rem; }
.consent a { color: #9CC6F5; }
.consent .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 10px 16px; }
.consent .btn-ghost { color: #fff; border-color: #3B5068; }

/* ---------- v3 additions ---------- */
/* Sticky header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(12, 26, 42, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* Services: 3 x 2 grid with a call-to-action tile */
@media (min-width: 760px) and (max-width: 1023px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
.service-cta { display: flex; flex-direction: column; justify-content: center; text-decoration: none; color: #fff; background: radial-gradient(400px 220px at 100% 0%, rgba(111,177,255,0.35), transparent 60%), var(--ink); border-color: var(--ink); }
.service-cta p { color: var(--on-night-soft); }
.service-cta .arrow { font-weight: 700; color: var(--accent-light); transition: transform 250ms ease; display: inline-block; }
.service-cta:hover .arrow { transform: translateX(4px); }

/* Real jobs photo collage */
.jobs { background: var(--paper); }
.jobs-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .jobs-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.ticks-dark li::before { border-color: var(--accent); }
.collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; max-width: 620px; aspect-ratio: 4 / 3; width: 100%; margin: 0 auto; }
.ph { position: relative; margin: 0; overflow: hidden; border-radius: 16px; background: var(--line); box-shadow: var(--shadow-md); }
.ph-tall { grid-row: 1 / 3; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms cubic-bezier(.2,.7,.2,1); }
.ph:hover img { transform: scale(1.04); }
.ph figcaption { position: absolute; left: 10px; bottom: 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(12,26,42,0.82); color: #fff; font-weight: 700; font-size: 0.8rem; padding: 6px 11px; border-radius: 999px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 3px rgba(111,177,255,0.3); }

/* Wider price table scrolls sideways on phones */
.price-table { min-width: 640px; }
.price-table td[colspan] { color: var(--ink-soft); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ph img { transition: none; } }
section[id] { scroll-margin-top: 72px; }
