/* Theme "slate": direction A, Clear & trustworthy */
:root {
  --ink: #14202B; --ink-2: #2C3A47; --muted: #4A5866;
  --navy: #12324F; --navy-dark: #0B1F33;
  --accent: #C2410C; --accent-dark: #9A3412;
  --line: #E2E7EC; --line-2: #D5DDE5; --tint: #F4F6F8; --rain: #E7F0F8; --sun: #FFF6DD;
  --radius: 12px; --max: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: #fff; line-height: 1.55; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 20px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; }
.btn { display: inline-block; background: var(--accent); color: #fff !important; padding: 11px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--accent-dark); }
.btn-lg { padding: 15px 26px; font-size: 18px; border-radius: 10px; }

/* Weather banner (filled in by the Worker) */
.wx-wrap:empty { display: none; }
.wx { max-width: var(--max); margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--navy); }
.wx > .wx-icon { flex: none; }
.wx-text { flex: 1; min-width: 0; }
@media (max-width: 640px) { .wx { padding: 10px 16px; gap: 10px; font-size: 14px; line-height: 1.45; } .wx > .wx-icon { align-self: flex-start; margin-top: 2px; } }
.wx-on:has(.wx-rain) { background: var(--rain); }
.wx-on:has(.wx-dry) { background: var(--sun); }
.wx-src { color: #3E5366; font-size: 10px; font-style: italic; }
@keyframes rainfall { 0% { transform: translateY(-3px); opacity: 0 } 20% { opacity: 1 } 100% { transform: translateY(7px); opacity: 0 } }
@keyframes cloudbob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-1px) } }
@keyframes sunspin { to { transform: rotate(360deg) } }
.rain-cloud { animation: cloudbob 3s ease-in-out infinite; }
.rain-drop { animation: rainfall 1.2s linear infinite; }
.rain-drop-2 { animation-delay: .4s; } .rain-drop-3 { animation-delay: .8s; }
.sun-rays { transform-box: view-box; transform-origin: 16px 16px; animation: sunspin 12s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rain-cloud, .rain-drop, .sun-rays { animation: none; opacity: 1; transform: none; } }

/* Hero */
.hero { background: var(--tint); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 56px; }
.hero-main { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 800; color: var(--navy); }
.lead { margin: 0; font-size: 19px; color: var(--ink-2); }
.answer { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.answer-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.answer p { margin: 0; font-size: 17px; }
.hero-img { border-radius: var(--radius); overflow: hidden; width: fit-content; max-width: 100%; }
.hero-img img { display: block; max-width: 100%; height: auto; }
/* Homepage photo corner card (filled by the worker: weather, or this month's tip) */
.hero-img.has-chip { position: relative; }
.hero-chip:empty { display: none; }
.hero-chip { position: absolute; top: 14px; left: 14px; max-width: 270px; }
.chip { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: rgba(255,255,255,.94); border: 1px solid var(--navy); border-radius: 12px; box-shadow: 0 4px 16px rgba(18,50,79,.18); color: var(--navy); font-size: 13px; line-height: 1.4; }
.chip .wx-icon { flex: none; width: 24px; height: 24px; margin-top: 1px; }
.chip > div { display: flex; flex-direction: column; gap: 3px; }
.chip strong { font-size: 14px; line-height: 1.3; }
.chip span { color: var(--ink-2, #2F4254); }
.chip .wx-src { color: #3E5366; }
.chip-rain { background: rgba(234,243,252,.95); }
.chip-dry { background: rgba(255,248,225,.95); }
@media (max-width: 640px) {
  .hero-chip { position: static; max-width: none; }
  .chip { border-radius: 0; border-width: 1px 0 0; box-shadow: none; background: #fff; font-size: 14px; }
  .chip-rain { background: var(--rain); }
  .chip-dry { background: var(--sun); }
}
.img-needed { height: 240px; border: 2px dashed #A9B6C3; border-radius: var(--radius); background: #EBEFF3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: var(--muted); font-weight: 600; }

/* Quote card */
.quote-card { flex: 0 1 420px; min-width: 290px; width: 100%; background: #fff; border: 1px solid #DCE3EA; border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(18,50,79,.06), 0 8px 24px rgba(18,50,79,.08); scroll-margin-top: 16px; }
.quote-card h2 { margin: 0 0 2px; font-size: 22px; font-weight: 800; color: var(--navy); }
.quote-h { display: flex; align-items: flex-start; gap: 8px; line-height: 1.25; }
.quote-h-icon { flex: none; color: var(--accent); margin-top: 1px; }
.quote-sub { font-size: 14px; color: var(--muted); }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.progress { height: 6px; background: var(--line); border-radius: 3px; }
.progress span { display: block; height: 6px; background: var(--accent); border-radius: 3px; transition: width .2s; }
[data-part="quiz"] { display: flex; flex-direction: column; gap: 10px; }
.progress-row { margin-bottom: 2px; }
.quiz-q { margin: 14px 0 6px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { min-height: 52px; padding: 12px 16px; text-align: left; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid #C9D2DB; border-radius: 10px; cursor: pointer; }
.option:hover, .option:focus-visible { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(18,50,79,.15); }
.back { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--navy); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.small { font-size: 13px; color: var(--muted); margin: 0; }
.summary { margin: 0; padding: 12px 14px; background: var(--tint); border-radius: 10px; font-size: 14px; white-space: pre-line; }
.declaration { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.notice { font-size: 14px; background: #FFF4E5; border: 1px solid #F3C98B; border-radius: 10px; padding: 12px 14px; margin: 0; }
.copy-box { background: var(--tint); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.copy-box pre { white-space: pre-wrap; margin: 8px 0; font: inherit; }
[hidden] { display: none !important; }

/* Content sections */
.section { padding: 48px 0; }
.section.tint { background: var(--tint); }
.section h2 { margin: 0 0 18px; font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.section h3 { font-size: 20px; color: var(--navy); margin: 24px 0 8px; }
.prose { max-width: 760px; font-size: 17px; }
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--tint); }
.steps { display: flex; flex-wrap: wrap; gap: 24px; }
.step { flex: 1 1 250px; display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.step h3 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.step p { margin: 0; color: var(--muted); }
.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card { flex: 1 1 260px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--ink); background: #fff; }
.card:hover { border-color: var(--navy); }
.card h3 { margin: 0 0 6px; color: var(--navy); font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.qlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); max-width: 760px; }
.qlist a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 600; }
.cta-band { background: var(--navy); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 48px; padding-bottom: 48px; }
.cta-band h2 { margin: 0 0 6px; font-size: 30px; font-weight: 800; }
.cta-band p { margin: 0; color: #D3DEE9; font-size: 17px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #C3D0DC; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.site-footer p { margin: 0 0 6px; max-width: 520px; }
.site-footer .copyright { flex-basis: 100%; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(195,208,220,.25); font-size: 12.5px; max-width: none; }
.wx-disclaimer { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(195,208,220,.25); max-width: 520px; }
.wx-disclaimer p { font-size: 12.5px; line-height: 1.5; }
.wx-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
.wx-toggle { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; padding: 2px 0; background: none; border: 0; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: #E3EAF1; }
.wx-toggle::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.wx-toggle[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-1px); }
.wx-toggle:hover { text-decoration: underline; }
.wx-toggle:focus-visible { outline: 2px solid #E3EAF1; outline-offset: 2px; border-radius: 2px; }
.wx-disc-text { margin-top: 6px !important; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.site-footer a { color: #E3EAF1; }

@media (max-width: 640px) {
  .hero .wrap { padding-top: 24px; gap: 24px; }
  .lead { font-size: 17px; }
  .section { padding: 36px 0; }
  .section h2, .cta-band h2 { font-size: 25px; }
  .quote-card { padding: 20px; }
}

/* Cookie banner: equal-weight Accept / Do Not Accept, fixed to the bottom of the screen */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--navy-dark); color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-top: 16px; padding-bottom: 16px; }
.cookie-inner p { margin: 0; font-size: 15px; max-width: 780px; }
.cookie-inner a { color: #fff; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cc-btn { background: #fff; color: var(--navy-dark); border: 0; border-radius: 8px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; }
.cc-btn:hover { background: #E3EAF1; }
.cc-btn:focus-visible, .link-btn:focus-visible { outline: 3px solid #F6B26B; outline-offset: 2px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #E3EAF1; text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) {
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-inner p { font-size: 14px; }
  .cc-btn { flex: 1; }
}

/* Blurred form preview behind "Accept cookies to view" */
.form-gate { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.form-ghost { padding: 16px; filter: blur(3px); opacity: .75; pointer-events: none; user-select: none; }
.g-field { margin-bottom: 12px; }
.g-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.g-input { display: block; height: 38px; border: 1px solid #C7D1DB; border-radius: 6px; background: #fff; }
.g-area { height: 76px; }
.g-btn { display: block; text-align: center; padding: 11px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 700; }
.gate-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; background: rgba(255,255,255,.6); }
.gate-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--navy); }
.gate-text { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); max-width: 300px; }
.gate-link { font-size: 14px; }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; cursor: pointer; }

/* Always-available cookie settings button */
.cookie-fab { position: fixed; left: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 999px; background: var(--navy-dark); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.cookie-fab[hidden] { display: none; }
.cookie-fab:hover { background: var(--navy); }
.cookie-fab:focus-visible, .link-inline:focus-visible { outline: 3px solid #F6B26B; outline-offset: 2px; }
@media (max-width: 760px) { .cookie-fab span { position: absolute; left: -9999px; } .cookie-fab { padding: 11px; } }

/* Pop-up after the answers are pasted into the Leads Do Work description box */
.answers-pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(11,31,51,.45); }
.answers-pop[hidden] { display: none; }
.answers-box { max-width: 420px; background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.answers-box p { margin: 0 0 14px; color: var(--ink-2); }
.answers-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--sun); border: 1px solid #F0D58A; border-radius: 10px; padding: 12px 14px; font-size: 15px; line-height: 1.5; }
.answers-tip svg { flex: none; margin-top: 1px; }
.answers-tip strong { color: var(--navy); }
.answers-box .answers-h { font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }

/* Site logo in the header (from image-library/logo.png) */
.brand-logo { display: block; height: 60px; width: auto; }
@media (max-width: 760px) { .brand-logo { height: 46px; } }

/* "How it works" with the laptop photo beside the steps (service pages) */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: center; }
.steps-col { flex-direction: column; }
.steps-col .step { flex: none; }
.how-img { margin: 0; border-radius: var(--radius); overflow: hidden; }
.how-img img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Head-and-shoulders photo to the left of the logo, sitting on the header's bottom edge */
.brand-with-person { align-self: stretch; align-items: center; gap: 4px; }
.brand-person { display: block; align-self: flex-end; height: 88px; width: auto; margin: -14px 0 -14px -4px; }
@media (max-width: 760px) { .brand-person { height: 70px; margin-bottom: 0; } }

/* Head-and-shoulders photo in the top right of the quote form, shown throughout the enquiry */
.quote-card { position: relative; }
.form-updated { display: flex; align-items: center; gap: 16px; margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pulse-dot { position: relative; flex: none; width: 8px; height: 8px; margin-left: 8px; /* centred above the clipboard icon; text lines up with the heading */ border-radius: 50%; background: var(--accent); }
.pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: pulse-ring 2s ease-out infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pulse-dot::after { animation: none; opacity: 0; } }
.quote-intro.has-person { padding-right: 112px; min-height: 76px; }
.form-person { position: absolute; top: 10px; right: 18px; height: 92px; width: auto; pointer-events: none; }
@media (max-width: 760px) { .quote-intro.has-person { padding-right: 92px; min-height: 64px; } .form-person { height: 76px; right: 14px; } }
/* "Last step" heading above the Leads Do Work form, beside the photo */
.form-head { margin-bottom: 14px; }
.has-person .form-head { padding-right: 112px; min-height: 80px; }
.form-head p { margin: 0; }
.form-head-title { font-size: 20px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.form-head-sub { font-size: 14px; color: var(--muted); margin-top: 2px !important; }
.form-head-wx { font-size: 14px; color: var(--ink-2); margin-top: 8px !important; }
.has-person .form-head-wx { margin-right: -112px; } /* starts below the photo, so it can use the full width */
@media (max-width: 760px) { .has-person .form-head { padding-right: 92px; min-height: 66px; } .has-person .form-head-wx { margin-right: -92px; } .form-head-title { font-size: 18px; } }
.form-head-wx { display: flex; align-items: flex-start; gap: 8px; }
.form-head-icon { flex: none; margin-top: -2px; overflow: visible; }
/* Wet-weather note above the form: pale blue box with a navy outline */
.form-head-wx { align-items: center; background: var(--rain); border: 1px solid var(--navy); border-radius: 10px; padding: 10px 12px; }
.form-head-icon { margin-top: 0; }

/* Phones: "Get a price" button that stays at the bottom of the screen while the quote form is out of view */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta:not([hidden]) { display: flex; position: fixed; left: 68px; right: 16px; bottom: 16px; z-index: 39; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.25); animation: cta-in .2s ease-out; }
  .mobile-cta:active { background: var(--accent-dark); }
  body.has-cta .site-footer .wrap { padding-bottom: 96px; }
}
@keyframes cta-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { animation: none !important; } }

/* Header "Get a price" button: a soft ring pulses out from it every 2 seconds */
.btn-pulse { animation: btn-pulse 2s ease-out infinite; }
.btn-pulse:hover, .btn-pulse:focus-visible { animation: none; }
@keyframes btn-pulse { 0% { box-shadow: 0 0 0 0 rgba(194,65,12,.55); } 70% { box-shadow: 0 0 0 12px rgba(194,65,12,0); } 100% { box-shadow: 0 0 0 0 rgba(194,65,12,0); } }
@media (prefers-reduced-motion: reduce) { .btn-pulse { animation: none; } }
