/* Prescott Chartered Surveyors: navy from the logo, cool paper, one brass rule for detail.
   Layout idea: calm professional pages, a strong opening statement, cards only where they help choose a service. */
:root {
  --navy: #1e3654;
  --navy-deep: #142640;
  --ink: #1b2533;
  --muted: #566376;
  --paper: #ffffff;
  --mist: #eef2f7;
  --line: #d8dfe8;
  --brass: #a8834a;
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --body: "Public Sans", "Segoe UI", Arial, sans-serif;
  --measure: 66ch;
  color-scheme: light;
}

@font-face { font-family: "Source Serif 4"; font-weight: 600; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; color: var(--navy-deep); line-height: 1.2; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose p, .prose li { text-align: justify; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 1rem; z-index: 10; }

/* Top bar and header */
.topbar { background: var(--navy-deep); color: #dbe4f0; font-size: 0.9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1.5rem; padding-block: 0.45rem; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.brand img { width: 150px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 0.5rem 0.75rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 0.8rem; flex-wrap: nowrap; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; color: var(--ink); padding: 0.35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--brass); }
@media (max-width: 1220px) {
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .main-nav ul { flex-direction: column; gap: 0; padding-block: 0.5rem; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { padding: 0.7rem 0; display: block; border-bottom: 0; }
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--mist), var(--paper)); padding-block: clamp(2.5rem, 6vw, 4.5rem) 2.5rem; }
.hero .strap { font-size: 1.15rem; color: var(--navy); font-weight: 600; margin-bottom: 1rem; }
.hero .strap span { color: var(--brass); padding-inline: 0.35rem; }
.hero .lead { font-size: 1.15rem; max-width: 60ch; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.btn { display: inline-block; padding: 0.8rem 1.3rem; border-radius: 6px; font-weight: 700; text-decoration: none; border: 2px solid var(--navy); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); }
.creds { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-size: 0.95rem; color: var(--muted); }
.creds li { padding-left: 1rem; position: relative; }
.creds li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--brass); border-radius: 50%; }

/* Sections */
.section { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.section.alt { background: var(--mist); }
.section-head { max-width: 60ch; margin-bottom: 1.75rem; }
.section-head p { color: var(--muted); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.service { border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem 1.4rem 1.2rem; background: var(--paper); display: flex; flex-direction: column; }
.service p { color: var(--muted); flex: 1; }
.service a.more { font-weight: 700; text-decoration: none; }
.service a.more::after { content: " \2192"; }
.specialisms { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.service.featured { border-color: var(--navy); border-top: 5px solid var(--navy); }
.service.featured p { color: var(--ink); }
.service.featured ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--ink); }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brass); margin-bottom: 0.4rem; }

.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; background: var(--paper); }
.panel h3 { margin-bottom: 0.6rem; }
.panel ul { margin: 0; padding-left: 1.1rem; }
.panel li { margin-bottom: 0.4rem; }
.panel.contact-box { border-left: 5px solid var(--brass); }

.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
blockquote.review { margin: 0; padding: 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; }
blockquote.review p { font-family: var(--display); font-size: 1.1rem; color: var(--navy-deep); }
blockquote.review footer { font-size: 0.9rem; color: var(--muted); }

.areas { columns: 2; padding-left: 1.1rem; margin: 0; }
.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 2.25rem; }
.cta-band .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }

.page-head { background: var(--mist); padding-block: 2.5rem 2rem; border-bottom: 1px solid var(--line); }
.page-head .lead { font-size: 1.15rem; max-width: 62ch; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.75rem; }
.crumbs a { color: var(--muted); }
.service-block { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.note { font-size: 0.95rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9d4e3; font-size: 0.95rem; }
.site-footer .wrap { padding-block: 2.5rem 1.5rem; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 1000px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h2 { font-family: var(--body); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 0.75rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.logos { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.logos .logo-box { background: #fff; border-radius: 6px; padding: 6px 10px; display: flex; align-items: center; justify-content: center; width: 132px; height: 66px; }
.logos .logo-box img { max-height: 54px; width: auto; }
.regulated { font-weight: 700; color: #fff; }
.legal-line { border-top: 1px solid rgba(255,255,255,0.15); }
.legal-line .wrap { display: block; padding-block: 1rem; font-size: 0.85rem; color: #9fb0c6; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Forms */
.enquiry { display: grid; gap: 1rem; max-width: 640px; }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { font: inherit; padding: 0.65rem 0.75rem; border: 1px solid #b9c4d2; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--navy); }
.enquiry .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; color: var(--navy); min-height: 1.5em; margin: 0; }
.todo { background: #fff4d6; padding: 0 0.25rem; }
.prose ol li { margin-bottom: 0.6rem; }

/* Repair cost estimator */
.caveat { border-left: 5px solid var(--brass); margin-bottom: 2rem; max-width: 900px; }
.caveat h2 { font-size: 1.3rem; }
.est-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .est-layout { grid-template-columns: 1fr; } }
.est-summary { position: sticky; top: 1rem; }
@media (max-width: 900px) { .est-summary { position: static; } }
.est-group { margin-bottom: 1.75rem; }
.est-group h3 { border-bottom: 2px solid var(--navy); padding-bottom: 0.35rem; margin-bottom: 0.25rem; }
.est-item { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.est-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; cursor: pointer; }
.est-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--navy); flex: none; }
.est-range { font-size: 0.92rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.est-qty { grid-column: 1 / -1; display: flex; gap: 0.5rem; align-items: center; padding-left: 1.75rem; font-size: 0.92rem; }
.est-qty input { width: 5.5rem; font: inherit; padding: 0.35rem 0.5rem; border: 1px solid #b9c4d2; border-radius: 6px; }
.est-note { grid-column: 1 / -1; padding-left: 1.75rem; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 560px) { .est-item { grid-template-columns: 1fr; } .est-range { text-align: left; padding-left: 1.75rem; } }
.est-total { font-family: var(--display); font-size: 1.9rem; color: var(--navy-deep); margin: 0; font-variant-numeric: tabular-nums; }
.est-typical { color: var(--muted); margin-bottom: 0.75rem; }
.est-lines { list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.92rem; }
.est-lines li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.est-lines li span:last-child { white-space: nowrap; }
.est-summary .btn { cursor: pointer; font: inherit; font-weight: 700; margin: 0.5rem 0; }
.est-summary .btn:disabled { opacity: 0.45; cursor: default; }
.est-summary .field { margin-top: 0.5rem; }
.est-qty[hidden] { display: none; }

/* Fixed-price quotes pack */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tp-form { max-width: 900px; }
.tp-form h2 { margin-top: 2rem; font-size: 1.4rem; }
.tp-form .field-row, .tp-form .field { margin-bottom: 1rem; }
.tp-table-wrap { overflow-x: auto; margin-bottom: 0.75rem; }
.tp-table { width: 100%; border-collapse: collapse; min-width: 320px; }
.tp-table th { text-align: left; font-size: 0.85rem; color: var(--muted); border-bottom: 2px solid var(--navy); padding: 0.4rem; }
.tp-table td { border-bottom: 1px solid var(--line); padding: 0.4rem; vertical-align: top; }
.tp-table textarea, .tp-table input { width: 100%; font: inherit; padding: 0.45rem 0.55rem; border: 1px solid #b9c4d2; border-radius: 6px; }
.tp-table td:nth-child(3) { width: 5rem; }
.tp-num { width: 2.5rem; font-weight: 700; color: var(--navy); padding-top: 0.9rem !important; }
.tp-price { color: var(--muted); font-size: 0.85rem; white-space: nowrap; padding-top: 0.9rem !important; }
.tp-del { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; padding-top: 0.5rem; }
.tp-form .btn, #tp-result .btn { cursor: pointer; font: inherit; font-weight: 700; }
#tp-output { font: 0.95rem/1.5 var(--body); }
.field-row.three { grid-template-columns: 1fr 1fr 1fr; } @media (max-width: 700px) { .field-row.three { grid-template-columns: 1fr; } }
.note-footer { font-size: 0.88rem; color: #c9d4e3; }
.pw-choice { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0.9rem 1rem; margin-bottom: 0.9rem; }
.pw-check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; margin: 0.35rem 0; cursor: pointer; }
.pw-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--navy); }
.pw-sub { margin: 0.6rem 0 0.2rem 1.7rem; }
.pw-sub .pw-check { font-weight: 400; }
.pw-form fieldset { border: 0; padding: 0; margin: 0.75rem 0; }
.pw-form legend { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.pw-warn { border-left: 4px solid var(--brass); padding-left: 0.75rem; }
#pw-output { font: 0.95rem/1.5 var(--body); }
#pw-buttons .btn, #pw-result .btn { cursor: pointer; font: inherit; font-weight: 700; }
.pw-printdoc { display: none; }
@media print {
  body.pw-printing > *:not(main), body.pw-printing header, body.pw-printing footer, body.pw-printing main > *:not(.pw-printdoc) { display: none !important; }
  body.pw-printing .pw-printdoc { display: block !important; white-space: pre-wrap; font: 11pt/1.45 Arial, sans-serif; color: #000; }
}
.tp-size { border: 0; padding: 0; margin: 0.5rem 0; } .tp-size .pw-check { font-weight: 400; }
.sc-answer { margin-top: 1.25rem; border-left: 5px solid var(--brass); background: #fff; }
.sc-label { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0 0 0.25rem; }
.sc-answer h3 { font-size: 1.35rem; }
#sc-form .btn { cursor: pointer; font: inherit; font-weight: 700; }
.sample-report { max-width: 860px; margin-top: 2rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2rem 2.25rem; font-family: Arial, Helvetica, sans-serif; color: #1a1a1a; }
.sample-report .sample-head { font-style: italic; font-size: 0.95rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 1.25rem; }
.sample-report h2 { font-family: Arial, Helvetica, sans-serif; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 1.75rem 0 0.75rem; color: var(--navy-deep); }
.sample-report h3 { font-family: Arial, Helvetica, sans-serif; font-size: 1rem; margin: 1.1rem 0 0.4rem; color: var(--navy-deep); }
.sample-box { border: 1px solid #9aa7b8; padding: 0.9rem 1.1rem; margin-bottom: 0.5rem; text-align: justify; }
.sample-box p { margin: 0 0 0.7rem; }
.sample-box p:last-child { margin-bottom: 0; }
.sample-list { margin: 0.3rem 0 0; padding-left: 1.2rem; text-align: left; }
.cr { font-weight: 700; margin: 0.6rem 0 0 !important; text-align: left; }
.cr-def { margin: 0 0 0.4rem 1.1rem !important; font-size: 0.95rem; text-align: left; }
.cr-1 { color: #2e7d32; } .cr-2 { color: #e07b00; } .cr-3 { color: #c62828; } .cr-ni { color: #111; } .cr-d { color: #7030A0; }
@media (max-width: 600px) { .sample-report { padding: 1.25rem 1rem; } }
.sample-photo { margin: 0.2rem 0 1rem; }
.sample-photo img { display: block; width: 100%; max-width: 420px; height: auto; border: 1px solid #c9d1dc; }
.sample-report + .sample-report { margin-top: 2.5rem; }

.est-measure { margin: 1.5rem 0; }
.est-measure summary { cursor: pointer; list-style: revert; }
.est-measure h3 { font-size: 1.05rem; margin: 1.1rem 0 0.4rem; }
.est-howto { font-size: 0.85rem; margin-left: 0.4rem; white-space: nowrap; }
.est-private { border-left: 4px solid var(--navy); margin: 0.5rem 0 1.25rem; }
.est-private h3 { margin-top: 0; font-size: 1.1rem; }

/* Terms of use tick box on the free tools */
.terms-gate { margin: 0 0 1.25rem; border-left: 4px solid var(--brass); }
.terms-gate .pw-check { margin: 0; font-weight: 600; }
[data-gated].is-gated { opacity: .4; pointer-events: none; user-select: none; }
ol.terms li { margin-bottom: .8rem; text-align: justify; }
ol.terms ol { margin: .5rem 0 0 1.2rem; }
ol.terms ol li { margin-bottom: .4rem; }
.terms-panel { margin-top: 1rem; }
.terms-scroll { max-height: 22rem; overflow-y: auto; border: 1px solid var(--line); background: var(--paper); padding: 1rem 1.25rem; margin: .5rem 0 1rem; }
.terms-scroll h3 { margin-top: 0; }
.terms-panel .btn { margin: 0 .5rem .5rem 0; }

/* Photo behind the page heading, darkened so the white text stays easy to read */
.has-photo { background: linear-gradient(90deg, rgba(20,38,64,.92) 0%, rgba(20,38,64,.80) 50%, rgba(20,38,64,.55) 100%), var(--photo) center / cover no-repeat; color: #fff; border-bottom: 0; }
.has-photo h1, .has-photo .lead, .has-photo .strap, .has-photo .crumbs, .has-photo .crumbs a, .has-photo .creds, .has-photo p { color: #fff; }
.has-photo .strap span { color: #d9bd8c; }
.has-photo .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
.has-photo .btn-primary:hover { background: var(--mist); color: var(--navy-deep); }
.has-photo .btn-ghost { color: #fff; border-color: #fff; }
.has-photo a:not(.btn) { color: #fff; }
.hero.has-photo { padding-block: clamp(3rem, 8vw, 6rem) 3rem; }
.page-head.has-photo { padding-block: 3.5rem 3rem; }
