/* Shared finishing layer for the Django site and static preview. */
body.photo-viewer-open { overflow: hidden; }
.portfolio-viewer { width: min(1100px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 16px; border: 1px solid #51473c; border-radius: 12px; background: #111; color: #f3eee7; box-sizing: border-box; }
.portfolio-viewer::backdrop { background: rgba(0, 0, 0, .9); }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.viewer-counter { font-size: .9rem; }
.portfolio-viewer button { min-width: 48px; min-height: 48px; padding: 8px 16px; border: 1px solid #64513c; border-radius: 6px; background: #24201b; color: #fff; cursor: pointer; font: inherit; }
.portfolio-viewer button:hover { background: #443625; }
.viewer-stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 12px; align-items: center; }
.portfolio-viewer .viewer-prev, .portfolio-viewer .viewer-next { padding: 0; font-size: 2rem; }
.viewer-image { display: block; width: 100%; height: min(72dvh, 800px); object-fit: contain; }
.viewer-caption { margin: 12px 0 0; text-align: center; line-height: 1.5; font-size: .9rem; }
@media (max-width: 600px) { .portfolio-viewer { padding: 10px; } .viewer-stage { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; } .portfolio-viewer button { min-width: 44px; } .viewer-image { height: 62dvh; } }
.portfolio-item { margin: 0 0 20px; break-inside: avoid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #141413; }
.portfolio-item .portfolio-photo { margin: 0; border: 0; border-radius: 0; }
.portfolio-item figcaption { padding: 12px 14px; color: var(--ink-soft); font-size: .8rem; line-height: 1.5; overflow-wrap: anywhere; }
.review-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 32px; }
.service-faq { margin-top: 48px; max-width: 850px; }
.service-faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.service-faq summary { cursor: pointer; color: var(--ink); font-weight: 600; line-height: 1.6; }
.service-faq p { color: var(--ink-soft); line-height: 1.8; padding-top: 12px; }
input, textarea, select { max-width: 100%; }
.errorlist { color: #f5b5b5; padding-left: 20px; }
@media (max-width: 480px) { .cta-group { flex-wrap: wrap; } .review .row { flex-wrap: wrap; } }
.county-control { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.county-control:hover, .county-control[aria-pressed="true"] { background: #30261b; border-color: var(--copper); color: #f5c68e; }
.area-group li:has(.county-control) { padding: 0; }
.coverage-base-icon { border: 3px solid white; border-radius: 50%; background: #173c70; color: white; box-shadow: 0 0 0 7px #173c7040, 0 3px 10px #0007; display: grid; place-items: center; font: 700 13px/1 sans-serif; }
.coverage-county-label { background: #fffef3ed; border: 1px solid #a36a25; border-radius: 5px; color: #542700; box-shadow: none; font-weight: 700; }
.coverage-base-label { background: #173c70; color: white; border: 0; font-weight: 700; }
.coverage-base-label::before { border-bottom-color: #173c70; }
.coverage-reset { padding: 10px 14px; background: white; color: #222; border: 1px solid #999; border-radius: 5px; font-weight: 600; cursor: pointer; }
.coverage-note { color: var(--ink-soft); font-size: .82rem; line-height: 1.7; margin-top: 16px; }
.areas-container .map-container { height: 510px; }
.map-legend .legend-color.base { background: #173c70; border: 2px solid white; border-radius: 50%; }
@media (max-width: 600px) { .areas-container .map-container { height: 430px; } .coverage-county-label { font-size: 10px; padding: 3px; } }
.areas-container .map-container { display: flex; flex-direction: column; position: relative; z-index: 0; }
.areas-container #coverage-map { flex: 1; min-height: 0; height: auto; }
.areas-container .map-legend { flex-shrink: 0; flex-wrap: wrap; }
.reviews-intro { max-width: 760px; margin-bottom: 40px; }
.reviews-intro .head { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
.reviews-intro p.deck { margin-bottom: 0; }
.review-compose { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-bottom: 72px; }
.review-invitation { padding: 24px 0; max-width: 380px; }
.review-mark { display: block; height: 74px; font: 120px/1 Georgia, serif; color: var(--copper); }
.review-invitation h2 { margin: 12px 0 16px; font-size: 1.8rem; letter-spacing: -.03em; }
.review-invitation p { color: var(--ink-soft); line-height: 1.85; margin: 0 0 28px; }
.reviews-text-link { display: inline-flex; gap: 16px; align-items: center; min-height: 44px; color: var(--copper); text-underline-offset: 6px; }
.reviews-page form.review-form { max-width: none; margin: 0; padding: clamp(24px, 3vw, 36px); gap: 24px; border-color: #51473c; background: linear-gradient(145deg, #1c1a16, #141413); box-shadow: 0 16px 48px #0003; }
.review-form-heading h2 { margin: 0 0 8px; font-size: 1.4rem; letter-spacing: -.02em; }
.review-form-heading p { margin: 0; color: var(--ink-soft); font-size: .9rem; line-height: 1.6; }
.review-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 18px; }
.review-field { min-width: 0; }
.review-field-comment, .review-fields > .errorlist { grid-column: 1 / -1; }
.reviews-page form.contact textarea { min-height: 140px; line-height: 1.65; }
.reviews-page .review-publish-note { margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.75; }
.reviews-page .review-form .cta { align-self: flex-start; display: inline-flex; justify-content: center; gap: 24px; align-items: center; }
.reviews-page .status-message { padding: 14px 18px; border-radius: 8px; line-height: 1.6; }
.reviews-page > .status-message { margin-bottom: 24px; }
.reviews-page .status-message.warning { background: #352a19; color: #f2d5a5; border: 1px solid #7e6338; }
.review-field .status-message { margin-top: 8px; font-size: .8rem; }
.customer-feedback { scroll-margin-top: 180px; }
.reviews-section-heading { padding-top: 32px; border-top: 1px solid var(--line); margin-bottom: 24px; }
.reviews-section-heading .eyebrow { margin-bottom: 12px; }
.reviews-section-heading .head { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0; }
.reviews-page .checkatrade-reviews { margin-bottom: 48px; }
.reviews-page .review { border-radius: 12px; overflow-wrap: anywhere; }
.reviews-page .reviews-profile-link { background: transparent; border: 1px solid var(--line); color: var(--copper); }
@media (max-width: 768px) {
  .review-compose { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .review-invitation { max-width: none; padding: 0; }
  .review-mark { display: none; }
  .review-invitation h2 { font-size: 1.4rem; margin-top: 0; }
  .review-invitation p { margin-bottom: 8px; }
  .reviews-intro { margin-bottom: 28px; }
  .customer-feedback { scroll-margin-top: 120px; }
}
@media (max-width: 480px) {
  .review-fields { grid-template-columns: 1fr; }
  .reviews-page .review-form .cta { width: 100%; }
}
.menu-toggle { display: none; }
.portfolio-gallery { columns: 4; column-gap: 16px; }
.portfolio-photo { display: block; break-inside: avoid; margin: 0 0 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #141413; }
.portfolio-photo img { display: block; width: 100%; height: auto; transition: opacity .2s ease; }
.portfolio-photo:hover img { opacity: .88; }
@media (max-width: 1024px) { .portfolio-gallery { columns: 3; } }
@media (max-width: 600px) { .portfolio-gallery { columns: 2; } }
:root { --ink-soft: #b3b0aa; --line: #302e2a; }
body { background: var(--bg); }
main.wrap { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(56px, 7vw, 96px); }
main > section { scroll-margin-top: 160px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--copper); outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 4000; padding: 12px 20px; border-radius: 6px; background: var(--copper); color: #17120d; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.header-layout { grid-template-columns: 136px minmax(0, 1fr); column-gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.brand .logo-link, .brand img { width: 136px; height: 136px; }
.brand .name { font-size: clamp(1rem, 1.7vw, 1.3rem); }
.brand .sub { font-size: .75rem; }
.brand > div { padding-bottom: 10px; }
.logo-link { border-radius: 8px; transition: opacity .2s ease; }
.logo-link:hover { opacity: .8; }
nav.tabs { gap: 2px; }
nav.tabs :is(button, a) { min-height: 44px; padding: 12px 16px; font-size: .84rem; }
.hero { gap: clamp(32px, 5vw, 72px); margin-bottom: 64px; }
.hero-content::before { display: none; }
.eyebrow { color: var(--copper); font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.045em; max-width: 17ch; text-wrap: balance; }
.hero p.lead { font-size: 1.04rem; line-height: 1.8; margin-bottom: 28px; max-width: 50ch; }
.hero-visual { border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 48px #0003; }
.hero-visual img { height: clamp(360px, 39vw, 520px); }
.cta { min-height: 48px; padding: 13px 22px; border-radius: 6px; font-size: .9rem; color: #17120d; box-shadow: none; transition: background .2s, transform .2s; }
.step-cta { margin-top: 12px; }
.cta:hover { box-shadow: none; }
.cta-group { align-items: center; gap: 12px; }
.cta-group .cta { margin: 0; min-height: 52px; }
.cta-group .emergency, .cta-group .ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); padding: 13px 22px; box-shadow: none; font-size: .9rem; }
.cta-group .emergency:hover, .cta-group .ghost:hover { border-color: var(--copper); background: var(--surface); }
.trustline { display: block; font-size: .75rem; line-height: 1.8; margin-top: 20px; }
.trustline::before { display: inline-block; margin-right: 8px; box-shadow: none; }
.head { font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.15; letter-spacing: -.035em; margin-bottom: 18px; text-wrap: balance; }
p.deck { font-size: 1rem; line-height: 1.8; max-width: 68ch; margin-bottom: 36px; }
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.strip .item { padding: 28px 24px; border-bottom: 0; }
.strip .item h3 { font-size: 1rem; }
.strip .item p { font-size: .88rem; }
.node { box-shadow: none; width: 8px; height: 8px; margin-bottom: 18px; }
.svc-list { border: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg, #181714, #101010); transition: border-color .2s ease; }
.svc:hover { padding: 28px; margin: 0; border-color: var(--copper); background: linear-gradient(145deg, #1d1b17, #101010); }
.svc h3 { font-size: 1.2rem; }
.svc-details { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.svc p { font-size: .95rem; line-height: 1.75; margin-bottom: 24px; }
.svc .service-request { margin-top: auto; }
.areas-wrap { max-width: 680px; }
.area-group { border: 1px solid var(--line); border-radius: 12px; padding: 28px; background: #121210; }
.area-group li { gap: 16px; }
.area-group li:hover { padding-left: 0; }
.postcode-note { margin: 0; line-height: 1.7; }
.portfolio-photo img { height: clamp(180px, 22vw, 280px); object-fit: cover; }
.portfolio-image img { transition: transform .35s ease; }
.portfolio-info { gap: 12px; flex-wrap: wrap; }
.review-section { margin-top: 56px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: #151410; }
.review-section .head { font-size: 1.75rem; }
.review-section p.deck { margin-bottom: 22px; }
.checkatrade-reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.checkatrade-reviews .review { padding: 26px; background: #141413; display: flex; flex-direction: column; }
.review .row { align-items: flex-start; flex-wrap: nowrap; gap: 18px; }
.review .rv-name { line-height: 1.5; font-size: 1rem; }
.review .rv-stars { white-space: nowrap; letter-spacing: 0; color: var(--copper); font-size: 1rem; font-weight: 600; }
.review p { font-size: .93rem; line-height: 1.8; }
.checkatrade-reviews .review-source { margin-top: auto; padding-top: 24px; font-size: .78rem; line-height: 1.9; }
.contact-grid { align-items: start; gap: 48px; }
#contact form.contact { padding: 28px; border: 1px solid #51473c; border-radius: 10px; background: #141413; box-shadow: 0 16px 42px #0004; }
form.contact label { margin-bottom: 10px; color: #f1eee8; font-size: .92rem; font-weight: 600; }
form.contact input, form.contact textarea, form.contact select { border-color: #51473c; border-radius: 6px; background: #1b1a17; }
form.contact :is(input, textarea)::placeholder { color: #aaa49a; opacity: 1; }
form.contact :is(input, textarea, select):hover { border-color: #82705b; }
form.contact :is(input, textarea, select):focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; border-color: var(--copper); background: #211f1a; box-shadow: 0 0 0 4px rgba(212, 165, 116, .2); }
#contact form.contact button[type="submit"] { min-height: 52px; padding: 14px 24px; font-weight: 700; box-shadow: 0 8px 22px rgba(212, 165, 116, .22); }
.privacy-note { margin: 0 0 8px; }
.privacy-policy { max-width: 780px; }
.privacy-policy h3 { font-size: 1.15rem; }
.footer-content { display: grid; grid-template-columns: auto 1fr; gap: 24px 48px; align-items: center; }
.footer-links { justify-content: flex-end; gap: 12px 24px; align-items: center; }
.footer-links a, .footer-links button { padding-block: 8px; font-size: .83rem; }
.footer-content > div:last-child { grid-column: 1 / -1; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .75rem; }
.footer-credit a { color: var(--copper); text-decoration: none; }
.footer-credit-attribution { display: block; margin-top: 6px; }
.cookie-settings-link { text-decoration: none; }
.cookie-panel { background: #171613; }
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.2rem); }
  .hero-visual img { height: 460px; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip .item:nth-child(2) { border-right: 0; }
  .strip .item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
  footer { padding: 20px 0; }
  .wrap { padding-inline: 20px; }
  .header-layout { grid-template-columns: 128px minmax(0, 1fr); column-gap: 14px; row-gap: 6px; padding-top: 6px; padding-bottom: 0; }
  .brand .logo-link, .brand img { width: 128px; height: 128px; grid-row: 1; }
  .brand > div { align-self: center; padding-bottom: 0; }
  .brand .name { font-size: .95rem; }
  .brand .sub { font-size: .65rem; margin-top: 3px; }
  .brand .name { display: none; }
  nav.tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-start; overflow: visible; gap: 0; padding-bottom: 4px; }
  nav.tabs :is(button, a) { padding: 10px 11px; font-size: .75rem; min-height: 44px; }
  main.wrap { padding-top: 32px; padding-bottom: 56px; }
  main > section { scroll-margin-top: 205px; }
  .hero { grid-template-columns: 1fr; gap: 32px; margin: -32px -20px 40px; padding: 48px 24px 32px; border: 0; border-radius: 0; overflow: hidden; background: linear-gradient(180deg, rgba(5, 5, 5, .78), rgba(5, 5, 5, .9)), url("unnamed (10).8dbc411e7e8c.webp") center 58% / cover no-repeat; }
  .hero p.lead, .hero .trustline { color: #e3dfd8; }
  .hero .cta-group .ghost, .hero .cta-group .emergency { background: rgba(10, 10, 10, .65); border-color: #77716a; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.25rem; max-width: 18ch; }
  .hero p.lead { font-size: .98rem; }
  .hero-visual img { height: 330px; }
  .cta-group { flex-direction: row; }
  .cta-group .cta { width: auto; flex: 1 1 180px; }
  .hero + .head { margin-top: 48px !important; }
  .svc-list, .checkatrade-reviews { grid-template-columns: 1fr; }
  .svc, .svc:hover, .area-group, #contact form.contact { padding: 24px; }
  .svc .service-request { width: auto; }
  .contact-grid { gap: 28px; }
  .review-section { padding: 24px; }
  .footer-content { grid-template-columns: 1fr; gap: 20px; }
  .footer-links { justify-content: flex-start; gap: 8px 20px; }
  .footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-content { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 8px; align-items: center; }
  .footer-certifications { grid-column: 1; grid-row: 4; justify-content: flex-start; align-self: start; margin-top: 8px; }
  .footer-links { display: flex; grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; justify-content: flex-start; gap: 0 16px; }
  .footer-content > div:last-child { grid-column: 2 / 4; grid-row: 4; align-self: start; margin: 8px 0 0; padding: 0; border: 0; font-size: .7rem; line-height: 1.4; }
  .footer-certifications .cert-image { max-height: 48px; }
  .cookie-banner { max-height: 65vh; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .strip { grid-template-columns: 1fr; }
  .strip .item { padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .strip .item:last-child { border-bottom: 0; }
  .checkatrade-reviews .review { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 768px) {
  .menu-ready .header-layout { grid-template-columns: 128px minmax(0, 1fr) 44px; column-gap: 10px; row-gap: 4px; padding-top: 8px; padding-bottom: 13px; }
  .menu-ready .brand .logo-link { width: 128px; height: 64px; }
  .menu-ready .brand img { width: 128px; height: 64px; object-fit: cover; object-position: center; }
  .menu-ready .brand > div { grid-column: 1; grid-row: 2; justify-self: center; width: 136px; align-self: start; margin-top: -6px; padding-bottom: 0; text-align: center; }
  .menu-ready .brand .name { font-size: .85rem; line-height: 1.35; }
  .menu-ready .brand .sub { margin-top: 0; font-size: .62rem; line-height: 1.3; }
  .menu-ready .menu-toggle { display: flex; grid-column: 3; grid-row: 1 / 3; align-self: center; transform: translateY(3px); flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--copper); background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; width: 22px; background: currentColor; transition: transform .2s, opacity .2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-ready nav.tabs { display: none; grid-column: 1 / -1; width: 100%; margin-top: 6px; padding-block: 8px; max-height: calc(100dvh - 110px); overflow-y: auto; }
  .menu-ready nav.tabs.is-open { display: flex; flex-direction: column; align-items: stretch; }
  .menu-ready nav.tabs a { padding: 12px 16px; font-size: .9rem; border-radius: 4px; border-bottom: 0; margin: 0; }
  .menu-ready nav.tabs a.active { background: var(--surface); color: var(--copper); }
  .menu-ready nav.tabs a::after { display: none; }
  main > section { scroll-margin-top: 110px; }
}
