/*
  Cladek Exteriors: "Glide" design
  ----------------------------------------------------------------
  Navy and amber from the logo on a soft off-white ground. Rounded cards and
  panels, pill buttons, Archivo headings in mixed case (as on the live site), Barlow body text.
  Gentle motion: content rises into place as you scroll and cards lift on hover.

  Page building blocks (all used in the page files):
    section.section                  full-width band; content is held to the page width automatically
      .section--alt                  white rounded panel
      .section--dark                 navy rounded panel
      .section--amber                pale amber rounded panel
    partials/page-hero.njk           page title area (breadcrumb, H1, buttons, optional photo)
    partials/review-strip.njk        Google + Checkatrade cards and the reviews
    partials/cta-band.njk            navy "free quote" panel (added by the layout; set ctaBand: false to hide)
    .grid > .col.col--1-2 etc        columns (1-1, 1-2, 1-3, 2-3, 1-4, 3-4, 1-5, 2-5, 3-5, 4-5, auto)
    .intro                           heading on the left, text on the right
    .section-head                    heading row with a button on the right
    .service-rows > a.service-row    homepage service cards (two large, then three)
    ol.journey                       "How a job runs": one stage open at a time, moving left to right (assets/js/main.js)
    .actions > a.button              pill buttons (.button--amber, --line, --light, --plain = no arrow)
    ul.checklist                     ticked list; full-width lists become a grid of small cards
    .tabs > .tab > .tab__title + .tab__body   tabbed panel (assets/js/main.js)
    .faqs > details.faq              accordion (partials/faqs.njk); [data-faq-filter] adds topic buttons
    .reviews > .review, .cards > article.card, .gallery > figure, form.form
*/

:root {
  --navy: #082430;
  --navy-deep: #051a23;
  --amber: #fab01c;
  --amber-hover: #ffc444;
  --amber-pale: #fff3d6;
  --ground: #f6f6f3;
  --concrete: #edeeea;
  --text: #082430;
  --text-2: #33474f;
  --text-3: #4a5a61;
  --on-dark: #d5dfe2;
  --on-dark-2: #c9d6da;
  --field: #b9c3c7;
  --line: rgba(8, 36, 48, .12);
  --display: "Archivo", "Arial Black", Arial, sans-serif; /* every heading and title, as on the live site */
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1360px;
  --gutter: 40px;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --lift: 0 34px 60px -34px rgba(8, 36, 48, .5);
  --i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  --i-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082430' stroke-width='3.2'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23082430' stroke-width='2.6'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --i-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ground); }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.55; color: var(--text); background: var(--ground); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
a { color: var(--navy); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; margin: 0 0 .4em; text-wrap: balance; }
/* Headings in Archivo with the live site's spacing; page titles and section headings heavy and set wide */
h1, h2 { font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(40px, 5vw, 72px); font-stretch: 112%; }
h2 { font-size: clamp(30px, 3.3vw, 48px); font-stretch: 108%; }
h3 { font-size: clamp(21px, 1.8vw, 25px); line-height: 1.15; }
h4 { font-family: var(--body); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 1.4em 0 .5em; }
h2:empty { display: none; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--text-3); margin-bottom: 8px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 12px 18px; font-weight: 700; border-radius: 12px; }

/* ---------- Sections and panels ---------- */
.section { padding: 112px var(--edge); }
.section > :last-child { margin-bottom: 0; }
/* Panels: a rounded block drawn behind the section, lined up with the page edges */
.section--alt, .section--dark, .section--amber { position: relative; isolation: isolate; padding: 100px calc(var(--edge) + 56px); }
.section--alt::before, .section--dark::before, .section--amber::before { content: ""; position: absolute; z-index: -1; inset: 12px var(--edge); border-radius: 40px; background: #fff; }
.section--dark { color: #fff; }
.section--dark::before { background: var(--navy); }
.section--amber::before { background: var(--amber-pale); }
.section--dark p, .section--dark li { color: var(--on-dark); }
.section--dark a:not(.button) { color: var(--amber); }
.section[data-has-bg] { background: var(--section-bg) center / cover no-repeat; color: #fff; }
.col[data-has-bg] { background: var(--col-bg) center / cover no-repeat; min-height: 320px; border-radius: 24px; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; margin-bottom: 44px; }
.section-head h2, .section-head p { margin: 0; }
.section-head p { max-width: 40ch; font-size: 20px; color: var(--text-2); }
.section--dark .section-head p { color: var(--on-dark); }

/* Heading on the left, text on the right */
.intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: 0 72px; align-items: start; }
.intro > * { grid-column: 2; }
.intro > h2:first-child { grid-column: 1; grid-row: 1 / span 20; }
.intro > p { font-size: 20px; color: var(--text-2); max-width: 62ch; }
.intro > p.actions { max-width: none; }
.section--dark .intro > p { color: var(--on-dark); }

/* ---------- Columns ---------- */
.grid { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.grid .grid { gap: 24px 40px; }
.col { flex: 1 1 100%; min-width: 0; }
.col > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .col--1-2 { flex-basis: calc(50% - 32px); }
  .col--1-3 { flex-basis: calc(33.333% - 43px); }
  .col--2-3 { flex-basis: calc(66.666% - 22px); }
  .col--1-4 { flex-basis: calc(25% - 48px); }
  .col--3-4 { flex-basis: calc(75% - 16px); }
  .col--1-5 { flex-basis: calc(20% - 52px); }
  .col--2-5 { flex-basis: calc(40% - 39px); }
  .col--3-5 { flex-basis: calc(60% - 26px); }
  .col--4-5 { flex-basis: calc(80% - 13px); }
  .col--auto { flex: 1 1 0; }
}
.col > figure, .prose figure { overflow: hidden; border-radius: 26px; background: var(--navy); }
.col > figure img, .prose figure img { width: 100%; }
.col > figure + figure { margin-top: 16px; }

/* Captions sit on the photo as a small white tag */
figure:has(figcaption) { position: relative; }
figure figcaption { position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px); background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--navy); padding: 9px 15px; border-radius: 999px; font: 600 15px/1.3 var(--body); }
figure figcaption h2 { font-size: 20px; margin: 0 0 4px; }
figure figcaption p { margin: 0; color: var(--navy); }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 32px 0 0; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 17px 28px; background: var(--navy); color: #fff; border: 1.5px solid var(--navy); border-radius: 999px; font: 700 18px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.button::after { content: ""; flex: none; width: 18px; height: 18px; background: var(--amber); -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .3s var(--ease); }
.button:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; transform: translateY(-2px); }
.button:hover::after { transform: translateX(4px); }
.button--plain::after { display: none; }
.button--amber { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.button--amber::after { background: var(--navy); }
.button--amber:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--navy); box-shadow: 0 16px 30px -16px rgba(227, 157, 14, .9); }
.button--line { background: transparent; color: var(--navy); border-color: rgba(8, 36, 48, .35); }
.button--line::after { background: currentColor; }
.button--line:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button--light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.button--light::after { background: currentColor; }
.button--light:hover { background: #fff; border-color: #fff; color: var(--navy); }
.section--dark .button:not(.button--light):not(.button--line) { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.section--dark .button:not(.button--light):not(.button--line)::after { background: var(--navy); }
.section--dark .button:not(.button--light):not(.button--line):hover { background: var(--amber-hover); border-color: var(--amber-hover); }
.section--dark .button--line { color: #fff; border-color: rgba(255, 255, 255, .45); }
.section--dark .button--line:hover { background: #fff; color: var(--navy); }

/* ---------- Ticked lists ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: 16px; }
.checklist > li { position: relative; padding-left: 44px; margin: 0; }
.checklist > li::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--amber) var(--i-tick) center / 15px no-repeat; }
.checklist > li > p { margin: 0 0 .5em; }
.checklist > li > p:last-child { margin-bottom: 0; }
.checklist ol, .checklist ul { margin: .4em 0 0; }
/* A full-width ticked list becomes a grid of small cards */
@media (min-width: 900px) {
  .col--1-1 > .checklist, .col--2-3 > .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
.col--1-1 > .checklist > li, .col--2-3 > .checklist > li { background: #fff; border-radius: 22px; padding: 24px 26px 24px 70px; }
.col--1-1 > .checklist > li::before, .col--2-3 > .checklist > li::before { left: 26px; top: 25px; }
.section--alt .col--1-1 > .checklist > li, .section--alt .col--2-3 > .checklist > li { background: var(--ground); }

/* ---------- Tabs: a tabbed panel ---------- */
.tabs { background: #fff; border-radius: 28px; padding: 10px; margin-top: 8px; }
.section--alt .tabs { background: var(--ground); }
.tabs__nav { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 6px; border-radius: 999px; background: var(--ground); margin-bottom: 4px; }
.section--alt .tabs__nav { background: #fff; }
.tabs__nav button { border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; padding: 12px 20px; font: 700 17px/1 var(--body); transition: background .25s, color .25s; }
.tabs__nav button:hover { background: var(--concrete); }
.tabs__nav button[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab { padding: 26px 30px 30px; }
.tab + .tab { border-top: 1px solid var(--line); }
.tabs.is-enhanced .tab + .tab { border-top: 0; }
.tabs.is-enhanced .tab__title { display: none; }
.tabs.is-enhanced .tab:not([hidden]) { animation: fade-in .45s var(--ease) both; }
.tab__title { font-size: 30px; }
.tab__body > p { font-size: 19px; color: var(--text-2); max-width: 70ch; }
.tab__body > p:first-child { margin-top: 0; }
@media (min-width: 1100px) {
  .tab__body:not(:has(ul, table)) { columns: 2; column-gap: 64px; }
  .tab__body:not(:has(ul, table)) > p { max-width: none; }
}
.tab__body .checklist { gap: 0 48px; }
@media (min-width: 900px) { .tab__body .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tab__body .checklist > li { padding: 16px 0; border-top: 1px solid var(--line); }
.tab__body .checklist > li::before { display: none; }
.tab__body .checklist strong { display: block; font: 700 18px/1.2 var(--display); margin-bottom: 4px; }
.tab__body .checklist strong strong { display: inline; font: inherit; }

/* ---------- FAQs ---------- */
.faq-filter { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 6px; border-radius: 999px; background: #fff; margin-bottom: 28px; }
.faq-filter button { border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; padding: 12px 20px; font: 700 17px/1 var(--body); transition: background .25s, color .25s; }
.faq-filter button:hover { background: var(--concrete); }
.faq-filter button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.faqs { display: grid; gap: 10px; }
.faq { background: #fff; border-radius: 22px; }
.section--alt .faq { background: var(--ground); }
.faq[hidden] { display: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 22px 22px 28px; font: 700 20px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--concrete) var(--i-plus) center / 18px no-repeat; transition: transform .35s var(--ease), background-color .25s; }
.section--alt .faq summary::after { background-color: #fff; }
.faq summary:hover::after { background-color: var(--amber-pale); }
.faq[open] summary::after { transform: rotate(45deg); background-color: var(--amber); }
.faq__answer { padding: 0 92px 26px 28px; color: var(--text-2); font-size: 18px; }
.faq[open] .faq__answer { animation: fade-in .45s var(--ease) both; }
.faq__answer > :last-child { margin-bottom: 0; }

.split { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-start; }
.split__head { flex: 1 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.split__head h2 { margin: 0; }
.split__body { flex: 2 1 620px; min-width: 0; }

/* ---------- Reviews and scores ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.review { margin: 0; padding: 30px 32px; background: #fff; border-radius: 26px; display: flex; flex-direction: column; gap: 14px; }
.review__rating { margin: 0; color: var(--amber); letter-spacing: .12em; font-size: 20px; }
.review > p:not(.review__rating) { margin: 0; font-weight: 500; font-size: 19px; line-height: 1.5; color: var(--navy); }
.review footer { margin-top: auto; font-size: 15px; color: var(--text-3); }
.section--alt .review { background: var(--ground); }
.section--dark .review { background: rgba(255, 255, 255, .07); }
.section--dark .review > p:not(.review__rating) { color: #fff; }
.section--dark .review footer { color: var(--on-dark-2); }

.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; margin-bottom: 20px; }
.score { background: #fff; border-radius: 28px; padding: 32px 36px; display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 12px 22px; transition: transform .4s var(--ease), box-shadow .4s; }
.score:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.score:first-child { background: var(--navy); color: #fff; }
.score__source { flex: 1 1 100%; font: 700 22px/1 var(--display); }
.score__value { font: 800 clamp(64px, 6vw, 88px)/.9 var(--display); font-stretch: 110%; }
.score:first-child .score__value { color: var(--amber); }
.score__detail { font-size: 17px; line-height: 1.45; color: var(--text-3); }
.score:first-child .score__detail { color: var(--on-dark-2); }
.score__detail .stars { display: block; color: var(--amber); letter-spacing: .12em; font-size: 22px; margin-bottom: 4px; }
.score .actions { flex: 1 1 100%; margin-top: 6px; }

/* ---------- Project cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 28px; padding: 12px; color: var(--navy); display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--lift); }
.section--alt .card { background: var(--ground); }
.card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 20px; background: var(--navy); }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__image img { transform: scale(1.05); }
.card__body { padding: 20px 14px 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; }
.card h3 { margin: 0; font-size: 24px; line-height: 1.15; min-height: 2.3em; }
.card h3 a { color: inherit; text-decoration: none; }
.card__meta { margin: 0; background: var(--concrete); border-radius: 999px; padding: 7px 13px; font: 700 14px/1 var(--body); }
.card p { margin: 0; color: var(--text-2); font-size: 17px; }
.card .button { margin-top: auto; padding: 14px 22px; font-size: 17px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; margin-top: 32px; }
.gallery figure { overflow: hidden; border-radius: 22px; background: var(--navy); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; padding: 36px; background: #fff; border-radius: 28px; color: var(--navy); }
.section--alt .form { background: var(--ground); }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 16px; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { width: 100%; height: 56px; border: 1.5px solid var(--field); border-radius: 14px; padding: 0 16px; background: #fff; color: var(--navy); font: 500 18px var(--body); transition: border-color .2s, box-shadow .2s; }
.form textarea { height: auto; min-height: 140px; padding: 14px 16px; line-height: 1.45; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(250, 176, 28, .45); }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.form legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 16px; }
.form fieldset label { flex-direction: row; align-items: center; gap: 10px; font-weight: 600; border: 1.5px solid var(--field); border-radius: 999px; padding: 10px 18px 10px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.form fieldset label:hover { border-color: var(--navy); }
.form fieldset label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; }
.form input[type=radio], .form input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--amber); }
.form .button { justify-content: center; height: 64px; background: var(--amber); border-color: var(--amber); color: var(--navy); font: 700 20px/1 var(--body); }
.form .button::after { background: var(--navy); }
.form .button:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--navy); }
.form + h2, h2 + .form { margin-top: 0; }

/* ---------- Header: a floating navy bar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px var(--edge) 0; pointer-events: none; }
.site-header__inner { pointer-events: auto; position: relative; display: flex; align-items: center; gap: 22px; padding: 12px 14px 12px 24px; background: rgba(8, 36, 48, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 20px; box-shadow: 0 20px 40px -28px rgba(8, 36, 48, .8); }
.site-logo { flex: none; display: flex; }
.site-logo img { height: 58px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a, .nav-parent { display: flex; align-items: center; gap: 8px; padding: 12px 11px; background: none; border: 0; color: #fff; font: 500 18px/1.2 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: color .2s; }
.nav-parent::after { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--i-down) center / contain no-repeat; mask: var(--i-down) center / contain no-repeat; transition: transform .25s; }
.has-children:hover > .nav-parent::after, .has-children.is-open > .nav-parent::after { transform: rotate(180deg); }
.main-nav a:hover, .nav-parent:hover { color: var(--amber); }
.main-nav > ul > li > a[aria-current="page"], .has-children.is-current > .nav-parent { color: var(--amber); font-weight: 600; }
.has-children { position: relative; }
.sub-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px; padding: 8px !important; background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -30px rgba(8, 36, 48, .6); z-index: 60; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu, .has-children.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { color: var(--navy); padding: 12px 16px; border-radius: 10px; font-weight: 600; font-size: 17px; }
.sub-menu a:hover { background: var(--amber-pale); color: var(--navy); }
.sub-menu a[aria-current="page"] { background: var(--amber-pale); font-weight: 700; color: var(--navy); }
.header-phone { flex: none; display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font: 700 19px/1 var(--display); }
.header-phone::before { content: ""; width: 18px; height: 18px; background: var(--amber); -webkit-mask: var(--i-phone) center / contain no-repeat; mask: var(--i-phone) center / contain no-repeat; }
.header-phone:hover { color: var(--amber); }
.header-cta { flex: none; padding: 14px 22px; font-size: 17px; }
.header-cta::after { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 50px; height: 50px; align-items: center; justify-content: center; background: var(--amber); border: 0; border-radius: 999px; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1320px) { .header-phone { display: none; } }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(8, 36, 48, .6); max-height: calc(100vh - 120px); overflow: auto; }
  .main-nav.is-open { display: block; animation: fade-in .3s var(--ease) both; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a, .nav-parent { padding: 12px 16px; color: var(--navy); font: 700 21px/1.2 var(--display); border-radius: 12px; white-space: normal; }
  .main-nav a:hover, .nav-parent:hover { color: var(--navy); background: var(--ground); }
  .main-nav > ul > li > a[aria-current="page"], .has-children.is-current > .nav-parent { color: var(--navy); background: var(--amber-pale); }
  .nav-parent { cursor: default; }
  .nav-parent::after { display: none; }
  .sub-menu { position: static; min-width: 0; padding: 0 0 6px 14px !important; background: none; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .sub-menu a { padding: 10px 16px; font: 600 18px/1.3 var(--body); }
  .header-cta { display: none; }
}

/* ---------- Page title area ---------- */
.page-hero { padding: 48px var(--edge) 0; position: relative; }
.page-hero h1 { margin: 0; max-width: 16ch; }
.page-hero > p { font-size: 21px; max-width: 40ch; margin: 22px 0 0; color: var(--text-2); }
.page-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.page-hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.page-hero__text > * { margin: 0; animation: fade-in .9s var(--ease) both; }
.page-hero__text > :nth-child(2) { animation-delay: .08s; }
.page-hero__text > :nth-child(3) { animation-delay: .16s; }
.page-hero__text > :nth-child(4) { animation-delay: .24s; }
.page-hero__text > :nth-child(5) { animation-delay: .32s; }
.page-hero__intro { font-size: 21px; line-height: 1.5; font-weight: 500; color: var(--text-2); max-width: 40ch; }
.page-hero .actions { margin: 4px 0 0; }
.page-hero__image { flex: 1 1 520px; min-width: 0; min-height: 460px; margin: 0; position: relative; overflow: hidden; border-radius: 32px; background: var(--navy); animation: fade-in .9s var(--ease) .1s both; }
.page-hero__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 1.8s var(--ease) both; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: 15px; color: var(--text-3); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--navy); }

/* Homepage hero */
.page-hero--home h1 { font-size: clamp(40px, 4.6vw, 64px); max-width: 16ch; }
.page-hero--home .page-hero__image { min-height: 620px; }
.hero-chip { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 18px 7px 7px; color: var(--navy); font: 600 16px/1 var(--body); text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.hero-chip:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 16px 30px -20px rgba(8, 36, 48, .5); }
.hero-chip b { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 13px; font-weight: 600; }
.hero-chip b::before { content: "★"; color: var(--amber); }

/* ---------- Homepage service cards: two large, then three ---------- */
.service-rows { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.service-row { grid-column: span 2; display: flex; flex-direction: column; background: #fff; border-radius: 28px; padding: 12px; color: var(--navy); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.service-row:nth-child(-n+2) { grid-column: span 3; }
.service-row:hover { color: var(--navy); transform: translateY(-8px); box-shadow: var(--lift); }
.service-row__image { order: -1; display: block; aspect-ratio: 3 / 2; border-radius: 20px; overflow: hidden; background: var(--navy); }
.service-row:nth-child(-n+2) .service-row__image { aspect-ratio: 16 / 9; }
.service-row__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.service-row:hover .service-row__image img { transform: scale(1.06); }
.service-row__title { padding: 20px 12px 0; font: 700 28px/1.15 var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-row__text { padding: 10px 12px 0; flex-grow: 1; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.service-row__go { align-self: flex-end; margin-top: 14px; width: 52px; height: 52px; border-radius: 999px; background: var(--concrete); display: flex; align-items: center; justify-content: center; transition: background .3s, transform .4s var(--ease); }
.service-row__go::after { content: ""; width: 22px; height: 22px; background: var(--navy); -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; }
.service-row:hover .service-row__go { background: var(--amber); transform: rotate(-45deg); }

/* ---------- Journey: one stage open at a time, moving left to right ---------- */
.journey { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.journey > li { flex: 1 1 0; min-width: 0; margin: 0; background: #fff; color: var(--navy); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 20px; min-height: 300px; }
.journey svg { flex: none; width: 58px; height: 58px; padding: 15px; border-radius: 999px; background: var(--concrete); transition: background .6s; }
/* Titles sit in a fixed two-line box, so they line up whether a card is open or closed */
.journey h3 { margin: 0; font-size: 24px; line-height: 1.15; height: 2.3em; }
.journey h3 a { color: inherit; text-decoration: none; }
.journey p { margin: 0; font-size: 18px; color: var(--text-2); }
.journey.is-enhanced { height: 340px; }
.journey.is-enhanced > li { cursor: pointer; overflow: hidden; transition: flex-grow .9s var(--ease), background .6s, color .6s, box-shadow .6s; }
.journey.is-enhanced > li.is-done { background: var(--amber-pale); }
.journey.is-enhanced > li.is-done svg { background: #fff; }
.journey.is-enhanced > li.is-open { flex-grow: 2.4; background: var(--navy); color: #fff; box-shadow: 0 30px 50px -30px rgba(8, 36, 48, .6); }
.journey.is-enhanced > li.is-open svg { background: var(--amber); color: var(--navy); }
/* The description keeps a fixed width so it never squeezes into the narrow cards and pushes the title about */
.journey.is-enhanced p { width: 330px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease .25s, transform .6s var(--ease) .25s; }
.journey.is-enhanced > li.is-open p { opacity: 1; transform: none; color: var(--on-dark); }
.section--alt .journey > li { background: var(--ground); }

/* Installation steps */
.step-detail .col h2 { margin-bottom: .3em; }
.step-detail figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Directors and other people */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 20px; }
.person { background: #fff; border-radius: 28px; padding: 34px 36px; }
.section--alt .person { background: var(--ground); }
.person h2 { margin: 0 0 6px; font-size: clamp(28px, 2.6vw, 38px); }
.person__role { display: inline-block; font-weight: 700; font-size: 15px; background: var(--amber); border-radius: 999px; padding: 6px 12px; margin-bottom: 20px; }

/* Contact cards */
.contact-rows { display: grid; gap: 12px; margin-top: 8px; }
.contact-row { display: flex; flex-direction: column; gap: 4px; padding: 22px 26px; background: #fff; border-radius: 24px; color: var(--navy); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
a.contact-row:hover { color: var(--navy); transform: translateY(-4px); box-shadow: 0 30px 50px -32px rgba(8, 36, 48, .5); }
.section--alt .contact-row { background: var(--ground); }
.section--dark .contact-row, .section--dark a.contact-row { background: rgba(255, 255, 255, .08); color: #fff; }
.section--dark a.contact-row:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.contact-row__label { font-size: 15px; font-weight: 600; color: var(--text-3); }
.section--dark .contact-row__label, .section--dark .contact-row__note { color: var(--on-dark-2); }
.contact-row__value { font: 700 30px/1.1 var(--display); }
.contact-row__value--sm { font-size: 24px; }
.contact-row__note { font-size: 15px; color: var(--text-3); }

.intro + .faqs, .intro + .faq-filter { margin-top: 48px; }
.grid > .intro + .col { margin-top: 48px; }
.cards-gap { height: 48px; }
/* A panel that ends the page keeps a gap above the footer */
main > .section--alt:last-child, main > .section--dark:last-child, main > .section--amber:last-child { margin-bottom: 72px; }

/* Long-form text pages */
.prose { max-width: 72ch; }
.prose h3 { margin-top: 1.2em; }

/* Placeholder warning (privacy and safety pages) */
.placeholder-note { background: var(--amber-pale); border-radius: 20px; padding: 18px 22px; font-weight: 600; margin-bottom: 40px; }

/* ---------- Call to action panel ---------- */
.cta-band { margin: 24px var(--edge) 96px; padding: 56px 64px; background: var(--navy); color: #fff; border-radius: 40px; display: flex; flex-wrap: wrap; gap: 28px 56px; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 14px; }
.cta-band p { margin: 0; font-size: 19px; color: var(--on-dark); max-width: 46ch; }
.cta-band .actions { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 72px var(--edge) 40px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px; }
.footer-brand { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-brand img { height: 84px; width: auto; }
.footer-brand p { margin: 0; max-width: 34ch; line-height: 1.5; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-actions .button { padding: 11px 18px; font-size: 16px; }
.footer-menu h2 { font-size: 19px; color: #fff; margin: 0 0 14px; }
.footer-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu li { margin: 0; }
.footer-menu a { color: #e5ecee; text-decoration: none; transition: color .2s; }
.footer-menu a:hover { color: var(--amber); }
.accreditations { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 44px; }
.accreditations a { display: block; background: #fff; padding: 10px 16px; border-radius: 14px; }
.accreditations img { height: 40px; width: auto; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 15px; color: #a9bcc2; }
.footer-legal p { margin: 0; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
@media (max-width: 700px) { .footer-brand { grid-column: auto; } }

/* ---------- Homepage hero: the photo fills the width; the words sit on a see-through card ---------- */
/* The review card carries the photo's label at the top and lines up with the bottom of the words card.
   On narrower screens the three stack: photo, words, review. */
.hero-stage { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-height: clamp(620px, 52vw, 760px); padding: 40px; border-radius: 40px; overflow: hidden; background: var(--navy); }
.hero-stage__image { position: absolute; inset: 0; margin: 0; }
.hero-stage__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: settle 1.8s var(--ease) both; }
.hero-stage__card { position: relative; z-index: 1; flex: 0 1 720px; padding: 44px 48px 40px; border-radius: 32px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); box-shadow: 0 30px 60px -34px rgba(5, 26, 35, .6); gap: 22px; }
.hero-stage__card .page-hero__intro { color: var(--text-2); }
.hero-stage__card h1 { max-width: none; }
.hero-review { position: relative; z-index: 1; flex: 0 0 340px; margin: 0; padding: 18px 22px 20px; border-radius: 24px; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; flex-direction: column; gap: 8px; box-shadow: 0 24px 50px -24px rgba(5, 26, 35, .55); animation: fade-in .9s var(--ease) .6s both; }
.hero-review__label { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 700 15px/1.2 var(--display); color: var(--navy); }
.hero-review__label svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--amber-text, #8a5a00); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-review .stars { color: var(--amber); letter-spacing: .1em; font-size: 16px; }
.hero-review blockquote { margin: 0; }
.hero-review blockquote p { margin: 0; font: 600 17px/1.4 var(--body); color: var(--navy); }
.hero-review__by { margin: 0; font-size: 15px; color: var(--text-3); }
@media (max-width: 1180px) {
  .hero-stage { display: flex; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; padding: 0; border-radius: 0; overflow: visible; background: none; }
  .hero-stage__image { position: relative; height: clamp(320px, 60vw, 520px); border-radius: 26px; overflow: hidden; background: var(--navy); }
  .hero-stage__card { flex: none; margin: -96px 12px 0; padding: 30px 28px 28px; border-radius: 26px; background: rgba(255, 255, 255, .9); }
  .hero-review { flex: none; margin: 12px 0 0; background: #fff; box-shadow: none; }
}
@media (max-width: 760px) {
  .hero-stage__card { margin: -84px 10px 0; padding: 24px 20px 22px; border-radius: 24px; gap: 18px; }
  .hero-chip { gap: 10px; padding-right: 14px; font-size: 14px; }
  .hero-chip b { padding: 7px 11px; white-space: nowrap; }
}

/* ---------- Long page titles ---------- */
/* Titles longer than about 32 characters (the homepage, service and project pages) step down a size,
   so they sit in three or four lines beside the photo. page-hero.njk adds the class. */
.page-hero--long h1 { font-size: clamp(34px, 3.6vw, 52px); max-width: 22ch; }
.page-hero--home.page-hero--long h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); max-width: 22ch; }

/* An intro with no heading of its own (straight under the page title): the opening line, larger, on the left and the
   rest on the right, so it uses the full width. When there is only a button besides it, the opening line runs across. */
.intro:not(:has(> h2:first-child)) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 72px; }
.intro:not(:has(> h2:first-child)) > p:first-child { grid-column: 1; grid-row: 1 / span 20; margin: 0; font: 500 clamp(22px, 2.1vw, 30px)/1.4 var(--body); color: var(--navy); max-width: none; }
.intro:not(:has(> h2:first-child)) > :not(:first-child) { grid-column: 2; max-width: none; }
.intro:not(:has(> h2:first-child)) > :nth-child(2) { margin-top: 0; }
.intro:not(:has(> h2:first-child)):not(:has(> :nth-child(3))) > p:first-child { grid-column: 1 / -1; grid-row: auto; font-size: clamp(22px, 2.3vw, 32px); }
.intro:not(:has(> h2:first-child)):not(:has(> :nth-child(3))) > :nth-child(2) { grid-column: 1 / -1; margin-top: 28px; }
@media (max-width: 900px) {
  .intro:not(:has(> h2:first-child)) { grid-template-columns: minmax(0, 1fr); }
  .intro:not(:has(> h2:first-child)) > p:first-child, .intro:not(:has(> h2:first-child)) > :not(:first-child) { grid-column: 1; grid-row: auto; }
  .intro:not(:has(> h2:first-child)) > :nth-child(2) { margin-top: 24px; }
}
/* Section headings with a label or button: the heading block takes up to two thirds, the intro sits on the right */
.ckv .section-head > div, .recent-work .section-head > div { flex: 1 1 520px; max-width: 760px; }


/* Busy galleries: smaller caption chips so they don't cover the photo */
.gallery figcaption { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 7px 13px; font-size: 14px; }

/* A single score card runs as one wide band instead of a half-empty block */
.score:only-child { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 32px; padding: 40px 44px; }
.score:only-child .score__source { grid-column: 1 / -1; }
.score:only-child .score__detail { max-width: 34ch; font-size: 18px; }
.score:only-child .actions { margin: 0; }
/* The short note under the reviews */
.reviews + p { margin: 22px 0 0; font-size: 15px; color: var(--text-3); }

/* Quote form: the reassurance line sits inside the white card, under the button */
.form .form__note { margin: -4px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-3); text-align: center; }

/* Project pages: the opening line reads as a lead, and the write-up stays in view beside the photos */
.project-body { align-items: flex-start; }
.project-body > .col:first-child { position: sticky; top: 120px; }
.project-body > .col:first-child > p:first-child { font: 500 clamp(21px, 1.9vw, 27px)/1.42 var(--body); color: var(--navy); }
.project-body > .col:first-child > h3 { margin-top: 32px; }
.project-body figure + figure { margin-top: 16px; }
@media (max-width: 900px) { .project-body > .col:first-child { position: static; } }

/* ---------- Areas we cover: the homepage map ---------- */
/* Town dots and labels sit over an SVG of the coast; --x and --y place each one (percentages of the map). */
.areas-map { position: relative; }
.areas-map__frame { border-radius: 28px; overflow: hidden; background: #DFE8EA; }
.areas-map__map { position: relative; aspect-ratio: 1000 / 514; }
.areas-map__map > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.areas-map__land { fill: #fff; }
.areas-map__other { fill: #ECEDE8; }
.areas-map__border { fill: none; stroke: rgba(8, 36, 48, .4); stroke-width: 1.4; stroke-dasharray: 1 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.areas-map__ring { fill: none; stroke: rgba(8, 36, 48, .34); stroke-width: 1.3; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.areas-map__line { stroke: var(--amber); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .3s; }
.areas-map.has-pick .areas-map__line { opacity: 1; }
.areas-map__region, .areas-map__sea, .areas-map__ring-label, .areas-map__town, .areas-map__base { position: absolute; left: var(--x); top: var(--y); }
.areas-map__region { font: 700 26px/1 var(--display); letter-spacing: .01em; color: rgba(8, 36, 48, .17); pointer-events: none; }
.areas-map__sea { font: italic 500 16px/1 var(--body); letter-spacing: .06em; color: rgba(8, 36, 48, .3); pointer-events: none; }
.areas-map__island { position: absolute; right: 2.5%; top: 90%; font: 600 14px/1 var(--body); color: rgba(8, 36, 48, .35); pointer-events: none; }
.areas-map__ring-label { transform: translate(-50%, -50%); padding: 5px 10px; border-radius: 999px; background: var(--ground); color: var(--text-2); font: 600 13px/1 var(--body); white-space: nowrap; pointer-events: none; }
.areas-map__ring-label--start { transform: translate(0, -50%); }
.areas-map__town { z-index: 2; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.areas-map__town::before { content: ""; position: absolute; left: 14px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px #fff; transition: transform .25s var(--ease), background .2s; }
.areas-map__town:hover::before, .areas-map__town:focus-visible::before { transform: scale(1.4); }
.areas-map__town:focus-visible { outline: 3px solid var(--amber); outline-offset: -6px; }
.areas-map__town[aria-pressed="true"] { z-index: 3; }
.areas-map__town[aria-pressed="true"]::before { background: var(--amber); }
.areas-map__town span { position: absolute; white-space: nowrap; font: 600 15px/1 var(--body); color: var(--navy); text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 9px #fff; }
.areas-map__town[aria-pressed="true"] span { font-weight: 700; }
.areas-map__town--r span { left: 34px; top: 13px; }
.areas-map__town--l span { right: 34px; top: 13px; }
.areas-map__town--t span { left: 20px; top: -6px; transform: translateX(-50%); }
.areas-map__town--b span { left: 20px; top: 33px; transform: translateX(-50%); }
.areas-map__base { z-index: 4; pointer-events: none; }
.areas-map__base::before, .areas-map__base::after { content: ""; position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); }
.areas-map__base::before { animation: areas-pulse 2.4s var(--ease) infinite; }
.areas-map__base::after { box-shadow: 0 0 0 4px #fff, 0 8px 18px rgba(5, 26, 35, .4); }
.areas-map__base span { position: absolute; left: 0; top: 20px; transform: translateX(-50%); white-space: nowrap; background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 14px; font: 600 14px/1 var(--body); box-shadow: 0 0 0 2px #fff; }
@keyframes areas-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(3.4); opacity: 0; } }
/* The "how far" line appears once JavaScript is running */
.areas-map__status { display: none; position: absolute; z-index: 5; left: 20px; top: 20px; max-width: calc(100% - 40px); margin: 0; align-items: center; gap: 10px; background: #fff; color: var(--navy); border-radius: 999px; padding: 12px 18px 12px 14px; font: 500 16px/1.3 var(--body); box-shadow: 0 18px 40px -22px rgba(5, 26, 35, .55); }
.areas-map.is-enhanced .areas-map__status { display: flex; }
.areas-map__status svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.areas-map__status strong { font-weight: 700; }
.areas-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; }
.areas-foot > p:first-child { margin: 0; font-size: 17px; color: var(--text-3); }
.areas-foot small { display: block; margin-top: 4px; font-size: 13px; }
.areas-foot .actions { margin: 0; }
/* Service pages: links to the other services, under the map */
.other-services { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.other-services h3 { margin: 0; font-size: 22px; }
.other-services .actions { margin: 0; }
@supports (animation-timeline: view()) {
  .areas-map { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (max-width: 760px) {
  /* On a phone the map keeps a readable size and scrolls sideways, starting on Bournemouth */
  .areas-map__frame { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 22px; }
  .areas-map__map { width: 760px; }
  .areas-map__town span { font-size: 13px; }
  .areas-map__region { font-size: 20px; }
  .areas-map__ring-label, .areas-map__sea { display: none; }
  .areas-map__status, .areas-map.is-enhanced .areas-map__status { position: static; margin-top: 12px; max-width: none; border-radius: 18px; box-shadow: none; }
}

/* ---------- Recent work (service pages) ---------- */
/* Desktop: one row of three, this service's newest projects topped up with the page's own photos.
   Phone: the photos as a strip you swipe through. recent-work.njk sets the --fill-N class (how many photos the row needs). */
.recent-work .section-head > div { display: flex; flex-direction: column; gap: 18px; }
.recent-work__row > .gallery { margin-top: 0; }
.strip-tabs { display: flex; gap: 4px; width: fit-content; max-width: 100%; margin: 0 0 18px; padding: 5px; border-radius: 999px; background: var(--ground); }
.strip-tabs button { border: 0; border-radius: 999px; background: transparent; color: var(--navy); cursor: pointer; padding: 11px 16px; font: 700 15px/1 var(--body); transition: background .25s, color .25s; }
.strip-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.strip-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.strip-foot__bar { flex: 1; height: 4px; border-radius: 999px; background: var(--concrete); overflow: hidden; }
.strip-foot__bar span { display: block; width: 0; height: 100%; border-radius: 999px; background: var(--amber); transition: width .3s; }
.strip-foot p { margin: 0; font: 600 14px/1 var(--body); color: var(--text-3); white-space: nowrap; }
@media (min-width: 761px) {
  .recent-work__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .recent-work__row > .cards, .recent-work__row > .gallery { display: contents; }
  .recent-work__row .gallery figure { display: none; min-height: 440px; border-radius: 28px; }
  .recent-work--fill-1 .gallery figure:nth-child(-n+1),
  .recent-work--fill-2 .gallery figure:nth-child(-n+2),
  .recent-work--fill-3 .gallery figure:nth-child(-n+3) { display: block; }
  .recent-work__row .gallery img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .strip-tabs, .strip-foot { display: none; }
}
@media (max-width: 760px) {
  .recent-work__row > .cards { display: none; }
  .recent-work__row > .gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .recent-work__row > .gallery::-webkit-scrollbar { display: none; }
  .recent-work__row .gallery figure { flex: none; width: 74%; scroll-snap-align: start; background: none; border-radius: 0; overflow: visible; }
  .recent-work__row .gallery figure.is-filtered-out { display: none; }
  .recent-work__row .gallery img { aspect-ratio: 4 / 5; border-radius: 18px; background: var(--navy); }
  .recent-work__row .gallery figure:hover img { transform: none; }
  .recent-work__row .gallery figcaption { position: static; max-width: none; padding: 10px 2px 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; font: 600 15px/1.35 var(--body); color: var(--navy); }
}

/* ---------- Exterior visualiser (rendering page) ---------- */
/* The same house in each finish; the chosen one fades in. Data in _data/visualiser.json, markup in partials/visualiser.njk. */
.ckv .section-head > div { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.ckv__label { margin: 0; padding: 7px 13px; border-radius: 999px; background: var(--amber-pale); color: var(--navy); font: 600 14px/1 var(--body); }
.ckv__stage { position: relative; aspect-ratio: 1376 / 768; border-radius: 26px; overflow: hidden; background: var(--concrete); }
.ckv__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.ckv__img.is-active { opacity: 1; }
.ckv__badge { position: absolute; left: 18px; bottom: 18px; margin: 0; padding: 11px 18px; border-radius: 999px; background: rgba(8, 36, 48, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 600 15px/1 var(--body); }
.ckv__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ckv__tab { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 16px 12px 12px; border: 0; border-radius: 20px; background: var(--ground); color: var(--navy); text-align: left; font: inherit; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.ckv__tab:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.ckv__tab:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.ckv__tab[aria-selected="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.ckv__swatch { flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(8, 36, 48, .14); }
.ckv__tab[aria-selected="true"] .ckv__swatch { box-shadow: 0 0 0 3px var(--amber); }
.ckv__tab-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ckv__tab-name { font: 700 17px/1.2 var(--display); }
.ckv__tab-sub { font-size: 14px; line-height: 1.35; color: var(--text-3); }
.ckv__tab[aria-selected="true"] .ckv__tab-sub { color: var(--on-dark-2); }
.ckv__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; }
.ckv__foot p { margin: 0; font-size: 16px; color: var(--text-3); }
@supports (animation-timeline: view()) {
  .ckv__stage, .ckv__tabs { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
@media (max-width: 1000px) {
  .ckv__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 760px) {
  .ckv__stage { aspect-ratio: 5 / 4; border-radius: 20px; }
  .ckv__img { object-position: 52% 50%; }
  .ckv__badge { left: 12px; bottom: 12px; padding: 9px 14px; font-size: 13px; }
  .ckv__tab { gap: 10px; padding: 10px; border-radius: 16px; }
  .ckv__swatch { width: 36px; height: 36px; border-radius: 10px; }
  .ckv__tab-name { font-size: 15px; }
  .ckv__tab-sub { font-size: 12.5px; }
  .ckv__foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .ckv__foot .button { justify-content: center; }
}

/* ---------- See it change (homepage): each job fades through its stages ---------- */
.watch { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px 56px; align-items: center; }
.watch__stage { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: var(--navy); }
.watch__frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.watch__frame.is-on { opacity: 1; }
.watch__stages { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(8, 36, 48, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.watch__chip { border: 0; border-radius: 999px; padding: 9px 16px; background: transparent; color: #fff; font: 600 15px/1 var(--body); cursor: pointer; transition: background .3s, color .3s; }
.watch__chip:hover { background: rgba(255, 255, 255, .2); }
.watch__chip[aria-pressed="true"] { background: #fff; color: var(--navy); }
.watch__chip.is-last[aria-pressed="true"] { background: var(--amber); }
.watch__play { width: 38px; height: 38px; margin-left: 2px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.watch__play:hover { background: rgba(255, 255, 255, .3); }
.watch__play svg { width: 14px; height: 14px; fill: currentColor; }
.watch__play .i-play, .watch__play.is-paused .i-pause { display: none; }
.watch__play.is-paused .i-play { display: block; }
.watch__side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.watch__side > h2, .watch__side > p { margin: 0; }
.watch__side > p { font-size: 20px; color: var(--text-2); max-width: 40ch; }
.watch__jobs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.watch__jobs li { margin: 0; }
.watch__job { width: 100%; text-align: left; border: 0; border-radius: 18px; padding: 10px; background: transparent; display: flex; align-items: center; gap: 16px; font: 500 16px/1.4 var(--body); color: var(--text-3); cursor: pointer; transition: background .25s, box-shadow .25s; }
.watch__project { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; padding: 24px 24px 26px; border-radius: 24px; background: var(--ground); }
.watch__project .card__meta { background: #fff; }
.watch__project h3 { margin: 0; font-size: 24px; }
.watch__project h3 a { color: inherit; text-decoration: none; }
.watch__project h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.watch__project p:not(.card__meta) { margin: 0; font-size: 17px; color: var(--text-2); }
.watch__project .button { margin-top: 6px; padding: 14px 22px; font-size: 17px; }
.watch__job:hover { background: var(--ground); }
.watch__job[aria-pressed="true"] { background: var(--ground); box-shadow: inset 0 0 0 1.5px var(--navy); }
.watch__job:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.watch__job img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.watch__job span { display: flex; flex-direction: column; gap: 3px; }
.watch__job strong { font: 700 19px/1.2 var(--display); color: var(--navy); }
@supports (animation-timeline: view()) {
  .watch__stage, .watch__side { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
@media (max-width: 1000px) {
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .score:only-child { grid-template-columns: 1fr; padding: 28px 26px; }
  .watch__stage { border-radius: 20px; }
  .watch__stages { left: 10px; bottom: 10px; }
  .watch__chip { padding: 8px 8px; font-size: 12.5px; white-space: nowrap; }
  .watch__stages { gap: 2px; padding: 4px; max-width: calc(100% - 20px); overflow-x: auto; scrollbar-width: none; }
  .watch__play { width: 34px; height: 34px; }
  .watch__play { flex: none; }
  .watch__job img { width: 64px; height: 64px; }
  .watch__job strong { font-size: 17px; }
}

/* ---------- Motion ---------- */
@keyframes fade-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
/* Content rises into place as it scrolls into view (browsers that support scroll-driven animation; elsewhere it simply shows) */
@keyframes rise { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: none; } }
@supports (animation-timeline: view()) {
  .section-head, .intro, .split__head, .cards > *, .reviews > *, .scores > *, .service-rows > *, .people > *, .gallery > *, .col--1-1 > .checklist > li, .contact-rows > *, .faqs > .faq, .tabs, .col > figure, .journey, .person, .cta-band {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) {
  .service-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-row, .service-row:nth-child(-n+2) { grid-column: auto; }
  .service-row:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro > *, .intro > h2:first-child { grid-column: 1; grid-row: auto; }
  .journey, .journey.is-enhanced { flex-direction: column; height: auto; }
  .journey > li { flex: none !important; min-height: 0; }
  .journey h3 { height: auto; }
  .journey.is-enhanced p { width: auto; opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section--alt, .section--dark, .section--amber { padding: 64px calc(var(--edge) + 20px); }
  .section--alt::before, .section--dark::before, .section--amber::before { inset: 8px calc(var(--edge) - 6px); border-radius: 28px; }
  .site-header { padding-top: 10px; }
  .site-header__inner { padding: 10px 10px 10px 16px; }
  .site-logo img { height: 46px; }
  .page-hero { padding-top: 32px; }
  .page-hero__image, .page-hero--home .page-hero__image { min-height: 320px; flex-basis: 100%; border-radius: 26px; }
  .service-rows { grid-template-columns: 1fr; }
  .service-row:first-child { grid-column: auto; }
  .service-row__title { font-size: 24px; }
  .tabs__nav { border-radius: 22px; }
  .tab { padding: 20px 16px 22px; }
  .form { padding: 22px 18px; }
  .faq summary { font-size: 18px; padding: 18px 16px 18px 20px; }
  .faq__answer { padding: 0 20px 22px; }
  .score { padding: 26px; }
  main > .section--alt:last-child, main > .section--dark:last-child, main > .section--amber:last-child { margin-bottom: 40px; }
  .cta-band { margin: 8px var(--edge) 64px; padding: 36px 24px; border-radius: 28px; }
  .person { padding: 26px 22px; }
}
