/*
 * Task Building and Landscaping Services Ltd: public site styles.
 * Brand: ink/slate neutrals, marking-paint yellow for the primary action only, and the
 * logo's green as a restrained accent (lines, icons, details). The green is below 4.5:1
 * on white, so it is never used for text on light backgrounds.
 */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #1b232b;          /* body text */
  --slate: #22303a;        /* dark sections */
  --slate-2: #33434f;
  --paper: #ffffff;
  --mist: #f3f5f1;         /* alternating light sections */
  --stone: #ebe8e1;
  --marker: #ffc425;       /* primary action only */
  --marker-hover: #f2b300;
  --leaf: #489830;         /* logo green: decoration and icons on light backgrounds (3.6:1) */
  --leaf-bright: #70a830;  /* logo green on dark backgrounds (5.5:1 on ink) */
  --leaf-tint: #e7f1e0;
  --line: #d9ddd5;
  --muted: #55606a;
  --error: #b3261e;
  --focus: #1b232b;
  --shadow: 0 1px 2px rgb(27 35 43 / 0.06), 0 8px 24px rgb(27 35 43 / 0.08);
  --shadow-hover: 0 2px 4px rgb(27 35 43 / 0.08), 0 14px 34px rgb(27 35 43 / 0.14);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 4px;
  --radius-card: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Sticky header height (4px top border + row), so in-page links and focused elements land below it. */
:root { --header-h: calc(5.25rem + 4px); }
@media (max-width: 40em) { :root { --header-h: calc(4.5rem + 4px); } }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.75rem); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol, dl, figure, blockquote { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  line-height: 1.12;
  font-weight: 750;
  font-stretch: 85%;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-stretch: 75%; font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.on-dark, .hero, .why, .page-head-photo, .site-footer, .sector-commercial, .consent { --focus: var(--marker); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow > * { max-width: 46rem; }
.section { padding-block: var(--section); }
.lead { font-size: 1.2rem; max-width: 40em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--marker); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }
main:focus { outline: none; }

.icon { flex: none; width: 1.25em; height: 1.25em; }

/* Section headings: short label with a green rule, then the heading. */
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 46rem; }
.section-head h2 { margin-bottom: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.75rem;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 1.75rem; height: 3px; background: var(--leaf); flex: none; }
.section-foot { margin: 2.5rem 0 0; }

/* Buttons ----------------------------------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-block: 1.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--marker); color: var(--ink); border-color: var(--marker); }
.btn-primary:hover { background: var(--marker-hover); border-color: var(--marker-hover); }
.btn-secondary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-secondary:hover { background: var(--slate-2); border-color: var(--slate-2); }
.btn-secondary-light { background: transparent; color: var(--paper); border-color: rgb(255 255 255 / 0.7); }
.btn-secondary-light:hover { border-color: var(--paper); background: rgb(255 255 255 / 0.1); }
.btn-small { min-height: 2.75rem; padding: 0.5rem 1.1rem; font-size: 1rem; }
.btn-large { min-height: 3.5rem; padding-inline: 2rem; font-size: 1.15rem; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.btn-link:hover { text-decoration-color: currentColor; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer;
}

/* Header and navigation ---------------------------------------------------- */

/* Sticky at every width; below the mobile quick-contact bar (60), scroll-to-top (55) and cookie banner (70). */
.site-header { background: var(--paper); border-top: 4px solid var(--leaf); box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 40; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; padding-block: 0.6rem; flex: none; }
.brand-mark {
  background: var(--ink); color: var(--marker);
  font-weight: 850; font-stretch: 70%; font-size: 1.6rem; letter-spacing: 0.02em;
  padding: 0.1rem 0.5rem; line-height: 1.2;
}
.brand-text { font-size: 0.8rem; font-weight: 650; line-height: 1.2; }
/* logo-original.png is 1170x2532 with the artwork (rows 929-1533) centred on black:
   a 16:9 window at that height shows the artwork undistorted, without editing the file. */
.brand-logo { display: block; height: 4rem; width: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 48.1%; border-radius: 3px; }

.nav-toggle {
  display: none; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.5rem 0.9rem;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 0.6rem 0.75rem; text-decoration: none; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.site-nav li a:hover { border-bottom-color: var(--leaf); }
.site-nav li a[aria-current="page"] { border-bottom-color: var(--marker); }
.nav-actions { display: flex; align-items: center; gap: 1.1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-phone .icon { color: var(--leaf); }

@media (max-width: 64em) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open {
    display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem; box-shadow: 0 12px 24px rgb(27 35 43 / 0.12);
  }
  .site-nav ul { flex-direction: column; }
  .site-nav li a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
  .site-nav li a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--marker); padding-left: 0.75rem; }
  .nav-actions { flex-direction: column; align-items: stretch; margin-top: 1rem; }
  .nav-actions .btn { width: 100%; }
  .no-js .site-nav { flex-wrap: wrap; padding-bottom: 1rem; }
  .no-js .header-inner { flex-wrap: wrap; }
}
@media (max-width: 40em) {
  .header-inner { min-height: 4.5rem; }
  .brand-logo { height: 3.25rem; }
}

/* Hero (homepage): genuine project photo when one is set in the admin area ------ */

.hero {
  position: relative; background: var(--slate); color: var(--paper); overflow: hidden;
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgb(255 255 255 / 0.035) 22px 24px);
}
.hero-inner { position: relative; padding-block: clamp(3.5rem, 10vw, 7.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero-home .hero-inner { min-height: clamp(30rem, 72vh, 44rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { max-width: 14em; font-size: clamp(2.5rem, 6.5vw, 4.9rem); line-height: 1; }
.hero-text { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 34em; color: rgb(255 255 255 / 0.9); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; } /* favour the upper part of wide crops */
.hero-has-image .hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(27 35 43 / 0.94) 0%, rgb(27 35 43 / 0.78) 50%, rgb(27 35 43 / 0.3) 100%);
}
@media (max-width: 64em) {
  .hero-has-image .hero-media::after { background: linear-gradient(180deg, rgb(27 35 43 / 0.84) 0%, rgb(27 35 43 / 0.9) 100%); }
}
.hero-areas { margin-top: clamp(2rem, 5vw, 3rem); max-width: 46rem; }
.hero-areas-label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(255 255 255 / 0.8); margin-bottom: 0.5rem; }

/* Hero service areas: compact pinned chips, matching the Areas we cover tiles */
.area-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.area-chips li {
  display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap;
  padding: 0.4rem 0.85rem 0.4rem 0.6rem; border-radius: var(--radius);
  background: rgb(34 48 58 / 0.72); border: 1px solid rgb(255 255 255 / 0.16); border-left: 3px solid var(--leaf-bright);
  color: var(--paper); font-weight: 700; font-stretch: 85%; font-size: 1.05rem; line-height: 1.3;
}
.area-chips .icon { width: 1.1rem; height: 1.1rem; color: var(--leaf-bright); }

/* Page introductions (inner pages) ------------------------------------------------- */

.page-head { position: relative; padding-block: clamp(2.75rem, 7vw, 5rem); }
.page-head .wrap { position: relative; }
.page-head h1 { max-width: 18em; }
.page-head .lead { margin-bottom: 0; }
.page-head .actions { margin-bottom: 0; }

/* Photographic banner: the CMS hero photo behind a dark overlay; slate without one. */
.page-head-photo {
  background: var(--slate); color: var(--paper); overflow: hidden;
  background-image: repeating-linear-gradient(135deg, transparent 0 22px, rgb(255 255 255 / 0.035) 22px 24px);
  border-bottom: 4px solid var(--leaf);
}
.page-head-media { position: absolute; inset: 0; }
.page-head-media img { width: 100%; height: 100%; object-fit: cover; }
/* Per-page banner photos (data-banner): keep each photo's subject in the wide, short crop. */
.page-head-media[data-banner="about"] img { object-position: 50% 28%; }
.page-head-media[data-banner="contact"] img { object-position: 50% 22%; }
.page-head-media[data-banner="services"] img { object-position: 50% 40%; }
.page-head-has-image .page-head-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(27 35 43 / 0.93) 0%, rgb(27 35 43 / 0.86) 60%, rgb(27 35 43 / 0.62) 100%);
}
.page-head-photo .lead { color: rgb(255 255 255 / 0.9); }
.page-head-photo .breadcrumb, .page-head-photo .breadcrumb [aria-current] { color: rgb(255 255 255 / 0.85); }
.page-head-photo .breadcrumb li + li::before { color: var(--leaf-bright); }
.page-head-photo .btn-secondary { background: transparent; border-color: rgb(255 255 255 / 0.7); }
.page-head-photo .btn-secondary:hover { background: rgb(255 255 255 / 0.1); border-color: var(--paper); }
.page-head-compact { padding-block: clamp(2rem, 5vw, 3.25rem); }

/* Legal pages: quiet heading, reading first. */
.page-head-plain { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.page-head-plain h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.95rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }

.link-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.link-list a {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.6rem 1.25rem;
  border: 2px solid rgb(255 255 255 / 0.7); border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.link-list a:hover { background: rgb(255 255 255 / 0.1); border-color: var(--paper); }
.link-list li:last-child a { background: var(--marker); border-color: var(--marker); color: var(--ink); }
@media (max-width: 30em) {
  .link-list { flex-direction: column; }
  .link-list a { width: 100%; justify-content: center; }
}

/* Cards (shared) -------------------------------------------------------------------- */

.card {
  position: relative; background: var(--paper); border-radius: var(--radius-card);
  box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card h3 a { text-decoration: none; }
/* The heading link covers the whole card; the focus ring is drawn on the card. */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* Homepage: priority services ---------------------------------------------------- */

.priority { background: var(--mist); }
.priority-services { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
@media (min-width: 52em) { .priority-services { grid-template-columns: repeat(3, 1fr); } }
.priority-service {
  display: flex; flex-direction: column; padding: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 5px solid var(--leaf); overflow: hidden;
}
.priority-service h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); font-stretch: 75%; margin-top: 1.25rem; }
.priority-service p { color: var(--muted); }
.priority-media { margin: calc(-1 * clamp(1.75rem, 3vw, 2.25rem)) calc(-1 * clamp(1.75rem, 3vw, 2.25rem)) 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.priority-media img { width: 100%; height: 100%; object-fit: cover; }
.priority-media:not([hidden]) + .card-icon { display: none; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--leaf-tint); color: var(--leaf);
}
.card-icon .icon { width: 2.1rem; height: 2.1rem; }
.card-more { margin-top: auto; padding-top: 0.5rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.card-more::after { content: "\2192"; color: var(--leaf); transition: transform 0.2s; }
.card:hover .card-more::after { transform: translateX(4px); }

/* Homepage: introduction and customers ---------------------------------------------- */

.intro-grid { display: grid; gap: 2.5rem 4rem; align-items: center; }
@media (min-width: 60em) { .intro-grid { grid-template-columns: 7fr 5fr; } }
.intro-copy p { font-size: 1.15rem; max-width: 38em; }
.sectors h3 { font-size: 1.1rem; font-stretch: 100%; color: var(--muted); font-weight: 700; }
.sector-split { display: grid; gap: 1rem; }
.sector { padding: 1.5rem 1.75rem; border-radius: var(--radius-card); background: var(--mist); border-left: 4px solid var(--leaf); }
.sector + .sector { background: var(--slate); color: var(--paper); border-left-color: var(--marker); --focus: var(--marker); }
.sector h4 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.sector p { margin: 0; }

/* Reasons to choose TASK: dark band -------------------------------------------------- */

.why { background: var(--slate); color: var(--paper); }
.why .eyebrow { color: rgb(255 255 255 / 0.8); }
.why .eyebrow::before { background: var(--leaf-bright); }
.why-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); }
.why-grid li { padding: 1.75rem; border-radius: var(--radius-card); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.12); }
.why-icon {
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
  width: 3.25rem; height: 3.25rem; border-radius: 50%; background: rgb(112 168 48 / 0.16); color: var(--leaf-bright);
}
.why-icon .icon { width: 1.7rem; height: 1.7rem; }
.why-grid h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.why-grid p { margin: 0; color: rgb(255 255 255 / 0.82); }

/* Compact list version (About page) */
.why-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 46em) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-list h3 { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 1.2rem; margin-bottom: 0.35rem; }
.why-list h3 .icon { color: var(--paper); background: var(--leaf); border-radius: 50%; padding: 0.18em; margin-top: 0.02em; }
.why-list p { margin: 0 0 0 1.85rem; color: var(--muted); }
.why-list-compact { margin-top: 1.5rem; }

/* Homepage: more services ------------------------------------------------------------- */

.service-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(12.75rem, 1fr)); }
.service-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); box-shadow: none; }
.service-card:hover { box-shadow: var(--shadow-hover); }
.card-media, .card-placeholder { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-placeholder { display: flex; align-items: center; justify-content: center; background: var(--mist); color: var(--leaf); }
.card-placeholder .icon { width: 3.5rem; height: 3.5rem; }
.card-media:not([hidden]) + .card-placeholder { display: none; }
.card-body { padding: 1.25rem 1.35rem 1.5rem; }
.card-body h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.card-body p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Projects ------------------------------------------------------------------------------ */

.projects-home { background: var(--mist); }
.project-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.75rem; }
@media (min-width: 40em) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.project figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.project figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project:hover figure img { transform: scale(1.03); }
.project-body { padding: 1.25rem 1.4rem 1.4rem; }
.project-category {
  display: inline-block; margin-bottom: 0.6rem; padding: 0.15rem 0.6rem; border-radius: 99px;
  background: var(--leaf-tint); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em;
}
.project h3 { font-size: 1.3rem; }
.project-more { margin-top: 0.5rem; }
.project-more summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 0.3em; min-height: 2.75rem; display: flex; align-items: center; }
.project-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: 0.5rem; margin-top: 0.75rem; }
.project-photos img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .project:hover figure img { transform: none; } }

.projects-page .project-grid { margin-top: 0.5rem; }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2rem; }
.filter button {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.1rem;
  border: 2px solid var(--line); border-radius: 99px; background: var(--paper); color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.filter button:hover { border-color: var(--leaf); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.empty-state { border: 2px dashed var(--line); border-radius: var(--radius-card); padding: 2rem; max-width: 40rem; background: var(--paper); }
.empty-state p:last-child { margin-bottom: 0; }

/* Areas, reviews, insurance ---------------------------------------------------------------- */

/* Areas we cover: slate band, place names as pinned tiles. No map: the places are text. */
.areas { background: var(--slate); color: var(--paper); --focus: var(--marker); }
.areas .eyebrow { color: rgb(255 255 255 / 0.8); }
.areas .eyebrow::before { background: var(--leaf-bright); }
.areas .lead { color: rgb(255 255 255 / 0.9); margin-bottom: 0; }
.areas-layout { display: grid; gap: 1.5rem; }
.areas-layout .section-head { margin-bottom: 0; }
.areas-layout-text h2 { margin: 0; }
@media (min-width: 52em) {
  .areas-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
  .areas-layout .area-map, .areas-layout:not(.areas-layout-text) .areas-note { grid-column: 1 / -1; }
  .areas-layout-text > h2, .areas-layout-text > .lead { grid-column: 1; }
  .areas-layout-text .areas-note { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* South-coast map (img/south-coast-map-*.webp): a dark derivative of the supplied map (coastline only, transparent sea).
   The place names are the real list below; where the map is wide enough the same list is
   placed on it at the positions used in the supplied map, otherwise it stays as tiles. */
.area-map { container-type: inline-size; position: relative; }
.coast-map { display: block; width: 100%; height: auto; }
.area-map .area-tiles { margin-top: 1rem; }
@container (min-width: 44rem) {
  .area-map .area-tiles { position: absolute; inset: 0; margin: 0; display: block; }
  .area-map .area-tiles li {
    position: absolute; transform: translateX(-50%); flex-direction: column; gap: 0.3rem;
    padding: 0; background: none; border: 0; font-size: 1.05rem; white-space: nowrap;
    text-shadow: 0 1px 3px rgb(27 35 43 / 0.9);
  }
  .area-map .area-pin { width: 2rem; height: 2rem; background: rgb(112 168 48 / 0.22); box-shadow: 0 0 0 4px rgb(112 168 48 / 0.08); }
  .area-map .area-pin .icon { width: 1.15rem; height: 1.15rem; }
  /* Towns: Bournemouth, Poole, Christchurch. Counties as region labels: Dorset, Hampshire. */
  .area-map .area-tiles li:nth-child(1) { left: 45.6%; top: 18%; }
  .area-map .area-tiles li:nth-child(2) { left: 30.7%; top: 26%; }
  .area-map .area-tiles li:nth-child(3) { left: 62.8%; top: 2%; }
  .area-map .area-tiles li:nth-child(n+4) { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgb(255 255 255 / 0.78); }
  .area-map .area-tiles li:nth-child(n+4) .area-pin { display: none; }
  .area-map .area-tiles li:nth-child(4) { left: 14.2%; top: 38%; }
  .area-map .area-tiles li:nth-child(5) { left: 82.8%; top: 16%; }
}
.area-map-plain { margin-top: 0.5rem; }
.areas-mini .area-map-plain { margin: 1rem -1.35rem -1.25rem; overflow: hidden; border-radius: 0 0 var(--radius-card) var(--radius-card); }
.area-tiles {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
}
.area-tiles li {
  display: flex; align-items: center; gap: 0.85rem; min-width: 0;
  padding: 1rem 1.15rem; border-radius: var(--radius-card);
  background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.12); border-left: 3px solid var(--leaf-bright);
  font-weight: 700; font-stretch: 85%; font-size: 1.2rem; line-height: 1.25; overflow-wrap: break-word;
}
.area-pin {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgb(112 168 48 / 0.16); color: var(--leaf-bright);
}
.area-pin .icon { width: 1.35rem; height: 1.35rem; }
.areas-note { display: flex; align-items: flex-start; gap: 0.85rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.16); }
.areas-note p { margin: 0.35rem 0 0; color: rgb(255 255 255 / 0.85); }
.areas-layout-text .areas-note { padding: 1.5rem; border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius-card); background: rgb(255 255 255 / 0.05); }

/* About page: the same treatment as a panel inside the text column */
.about-main section:not([hidden]) ~ section.areas-panel { border-top: 0; padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.areas-panel { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-card); display: grid; gap: 1.25rem; }
.areas-panel h2, .areas-panel > p { margin: 0; }
.areas-panel > p { color: rgb(255 255 255 / 0.9); }

/* Contact page sidebar: compact version */
.areas-mini { margin-top: 1.75rem; padding: 1.25rem 1.35rem; border-radius: var(--radius-card); background: var(--slate); color: var(--paper); }
.contact-aside .areas-mini h3 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.6rem; }
.areas-mini .area-pin { width: 2.1rem; height: 2.1rem; }
.areas-mini p { margin: 0; color: rgb(255 255 255 / 0.88); }

/* Testimonials: slate band, one card at a time. The list scrolls sideways with snap points, so
   it can be swiped (or scrolled with the arrow keys once focused) without JavaScript; site.js
   adds previous/next buttons and a position readout when there is more than one card. */
.reviews { background: var(--slate); color: var(--paper); --focus: var(--marker); }
.reviews .eyebrow { color: rgb(255 255 255 / 0.8); }
.reviews .eyebrow::before { background: var(--leaf-bright); }
.review-slider { max-width: 52rem; }
.review-list {
  list-style: none; padding: 0; margin: 0; display: flex; gap: 1.5rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--radius-card);
}
.review-list::-webkit-scrollbar { display: none; }
.review-list > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .review-list { scroll-behavior: auto; } }
.review {
  position: relative; margin: 0; height: 100%; padding: clamp(1.5rem, 4vw, 2.5rem); padding-top: clamp(2.75rem, 6vw, 3.5rem);
  border-radius: var(--radius-card); background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.12); border-top: 4px solid var(--leaf-bright);
}
.review::before { content: "\201C"; position: absolute; top: 0.1rem; left: clamp(1.25rem, 4vw, 2.25rem); font-size: 4.5rem; line-height: 1; font-weight: 800; color: var(--leaf-bright); }
.review blockquote { margin: 0 0 1.25rem; font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.5; overflow-wrap: break-word; }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { font-weight: 700; }
.review-source { font-weight: 400; color: rgb(255 255 255 / 0.75); }
.review-source a { color: var(--paper); }
.review-date { display: block; margin-top: 0.25rem; font-weight: 400; font-size: 0.95rem; color: rgb(255 255 255 / 0.75); }
.review-rating { color: var(--marker); letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.slider-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.slider-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; padding: 0;
  border: 2px solid rgb(255 255 255 / 0.5); border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer;
}
.slider-btn:hover:not(:disabled) { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.slider-btn:disabled { opacity: 0.4; cursor: default; }
.slider-status { margin: 0; min-width: 4.5rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Trust band (homepage, under the hero) and panel (About page): the experience statement,
   two text badges and, on the homepage, the Bark profile badge. */
.trust-band { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(1.75rem, 4vw, 2.5rem); }
.trust-band-inner { display: grid; gap: 1.75rem clamp(2rem, 6vw, 5rem); align-items: center; }
@media (min-width: 52em) { .trust-band-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.trust-band-main { display: grid; gap: 1.25rem; }
.trust-band-statement {
  margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.25; font-weight: 750; font-stretch: 85%;
  padding-left: 1rem; border-left: 4px solid var(--leaf); text-wrap: balance;
}
.trust-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 3.5rem; padding: 0.55rem 1.1rem 0.55rem 0.6rem;
  border-radius: var(--radius-card); font-weight: 750; font-stretch: 85%; font-size: 1.1rem; line-height: 1.15;
}
.trust-badge-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; }
.trust-badge-icon .icon { width: 1.5rem; height: 1.5rem; }
/* Experience: slate with a marker-yellow figure, like a site board. */
.trust-badge-experience { background: var(--slate); color: var(--paper); }
.trust-badge-experience .trust-badge-icon { background: var(--marker); color: var(--ink); }
.trust-badge-experience strong { color: var(--marker); font-size: 1.35em; font-weight: 800; margin-right: 0.1em; }
/* Licensed and insured: light, with a green shield and edge. */
.trust-badge-insured { background: var(--leaf-tint); color: var(--ink); border: 1px solid rgb(72 152 48 / 0.35); border-left: 4px solid var(--leaf); }
.trust-badge-insured .trust-badge-icon { background: var(--leaf); color: var(--paper); }
/* Bark badge: the widget replaces the link with its own fixed-width badge. Until then (or if
   the script cannot load) the plain link is shown as a small navy button. */
.trust-bark { display: grid; justify-items: start; gap: 0.5rem; }
.trust-bark-label { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.bark-widget {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 1rem; line-height: 1.2;
  border-radius: var(--radius); background: #213344; color: var(--paper); font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.bark-widget img { max-width: 100%; }

.trust-panel { display: grid; gap: 1.25rem; margin-bottom: 3rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--radius-card); background: var(--mist); }
.trust-panel .trust-band-statement { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }

.trust { padding-block: 2rem; border-block: 1px solid var(--line); }
.trust-statement { display: flex; align-items: center; gap: 0.75rem; font-size: 1.3rem; font-weight: 700; margin: 0; }
.trust-statement .icon { background: var(--leaf); color: var(--paper); border-radius: 50%; padding: 0.2em; width: 1.6em; height: 1.6em; }

/* Final call to action: full-width yellow band ------------------------------------------- */

.final-cta { background: var(--marker); color: var(--ink); padding-block: clamp(3rem, 7vw, 5rem); }
.final-cta .wrap { display: grid; gap: 0.5rem 3rem; align-items: center; }
@media (min-width: 60em) { .final-cta .wrap { grid-template-columns: 1fr auto; } .final-cta .actions { grid-column: 2; grid-row: 1 / span 3; margin: 0; } }
.final-cta h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-stretch: 75%; max-width: 16em; margin: 0; }
.final-cta p { font-size: 1.2rem; max-width: 36em; margin: 0; }
.final-cta .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.final-cta .btn-primary:hover { background: var(--slate-2); border-color: var(--slate-2); }
.final-cta .btn-secondary-light { color: var(--ink); border-color: var(--ink); }
.final-cta .btn-secondary-light:hover { background: rgb(27 35 43 / 0.08); }
.final-cta-email { font-size: 1rem !important; }

/* Services page ---------------------------------------------------------------------------- */

.section-nav { border-bottom: 1px solid var(--line); background: var(--paper); }
.section-nav ul { list-style: none; margin: 0; padding: 0.75rem 0; display: flex; gap: 0.5rem 1.5rem; overflow-x: auto; }
.section-nav a { display: inline-block; padding: 0.5rem 0; white-space: nowrap; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.section-nav a:hover { border-bottom-color: var(--leaf); }

.service { padding-block: clamp(3rem, 7vw, 5rem); scroll-margin-top: 1rem; }
.service:nth-child(even) { background: var(--mist); }
.service-inner { display: grid; gap: 1.75rem 4rem; align-items: center; }
@media (min-width: 52em) {
  .service-inner { grid-template-columns: 6fr 5fr; }
  .service:nth-child(even) .service-media { order: 2; }
}
.service-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--slate); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.service-media img { width: 100%; height: 100%; object-fit: cover; }
/* Designed stand-in until a genuine photo of this service is uploaded in the admin area. */
.service-media-empty {
  position: relative; box-shadow: none;
  background: var(--slate) repeating-linear-gradient(135deg, transparent 0 22px, rgb(255 255 255 / 0.05) 22px 24px);
  border-left: 6px solid var(--leaf);
}
.service-media-empty::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 6rem; height: 6rem; opacity: 0.85;
  background: center / contain no-repeat;
}
[data-service="extensions"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 12 9 6.5l6.5 5.5'/%3E%3Cpath d='M4.5 10.5V20h9v-9.5'/%3E%3Cpath d='M13.5 13H21v7h-7.5'/%3E%3Cpath d='M7.5 20v-4h3v4'/%3E%3C/svg%3E"); }
[data-service="loft-conversions"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12 12 4l10 8'/%3E%3Cpath d='M5 9.8V20h14V9.8'/%3E%3Cpath d='M9.5 9.5h5v4h-5zM12 9.5v4'/%3E%3C/svg%3E"); }
[data-service="roofing"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 13 12 5l10.5 8'/%3E%3Cpath d='M4.5 10.7 12 16l7.5-5.3'/%3E%3Cpath d='M5 11.2V20h14v-8.8'/%3E%3C/svg%3E"); }
[data-service="general-building"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='M3 9.7h18M3 14.3h18M9 5v4.7M15 5v4.7M6 9.7v4.6M12 9.7v4.6M18 9.7v4.6M9 14.3V19M15 14.3V19'/%3E%3C/svg%3E"); }
[data-service="decking"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h18M3 11h18M3 15h18M3 19h18M8 7v4M15 11v4M10 15v4'/%3E%3C/svg%3E"); }
[data-service="patios"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18'/%3E%3Cpath d='M3 12h18M12 3v18M7.5 12v9M16.5 3v9'/%3E%3C/svg%3E"); }
[data-service="interiors"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11V8a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3'/%3E%3Cpath d='M2 12.5a2 2 0 0 1 4 0V15h12v-2.5a2 2 0 0 1 4 0V18H2z'/%3E%3Cpath d='M5 18v2M19 18v2'/%3E%3C/svg%3E"); }
[data-service="exteriors"] .service-media-empty::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2370a830' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 9.5V20h14V9.5'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3Cpath d='M7 12h2M15 12h2'/%3E%3C/svg%3E"); }
@media (max-width: 52em) { .service-media { aspect-ratio: 16 / 9; } }
.service-priority h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-stretch: 75%; }
.service-priority h2::before { content: ""; display: block; width: 2.5rem; height: 4px; background: var(--leaf); margin-bottom: 1rem; }
.service-copy p { max-width: 36em; }
.service-copy .btn { margin-top: 0.75rem; }

/* About page ---------------------------------------------------------------------------- */

.about-grid { display: grid; gap: 3rem 4rem; }
@media (min-width: 60em) { .about-grid { grid-template-columns: 2fr 1fr; align-items: start; } }
/* Sections after the first visible one (an empty, hidden section can come first). */
.about-main section:not([hidden]) ~ section { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.about-main h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.about-facts { background: var(--mist); padding: 2rem; border-radius: var(--radius-card); border-top: 5px solid var(--leaf); }
@media (min-width: 60em) { .about-facts { position: sticky; top: 1.5rem; } }
.about-facts h2 { font-size: 1.4rem; }
.about-facts dt { font-size: 0.95rem; color: var(--muted); }
.about-facts dd { margin: 0 0 1rem; font-weight: 700; }
.inline-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; font-weight: 700; }
.inline-list a { display: inline-flex; min-height: 2.75rem; align-items: center; padding: 0.4rem 1rem; border: 2px solid var(--line); border-radius: 99px; text-decoration: none; }
.inline-list a:hover { border-color: var(--leaf); }
.faq > div { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 750; font-size: 1.15rem; }
.faq dd { margin: 0.35rem 0 0; color: var(--muted); }

/* Contact form ---------------------------------------------------------------------------- */

.contact-section { background: var(--mist); }
.contact-grid { display: grid; gap: 2.5rem 3.5rem; }
@media (min-width: 60em) { .contact-grid { grid-template-columns: 3fr 2fr; align-items: start; } }
.contact-form-wrap { background: var(--paper); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 5px solid var(--marker); }
.contact-form-wrap h2 { font-size: 1.85rem; }

.quote-form { max-width: 44rem; }
.required-note { color: var(--muted); font-size: 0.95rem; }
.field { margin: 0 0 1.4rem; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 0 1.25rem; }
@media (min-width: 40em) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 0.95rem; color: var(--muted); margin: 0.35rem 0 0; }

input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], input[type="url"], select, textarea {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.8rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 2px solid #6b737a; border-radius: var(--radius);
}
textarea { min-height: 9rem; resize: vertical; }
/* Ink ring (high contrast on white) with the yellow kept as an inner accent. */
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--marker); }
input[type="file"] { font: inherit; max-width: 100%; padding: 0.75rem; border: 2px dashed #6b737a; border-radius: var(--radius); width: 100%; background: var(--mist); }
[aria-invalid="true"] { border-color: var(--error) !important; border-width: 3px !important; }
.field-error { color: var(--error); font-weight: 700; margin: 0.4rem 0 0; }
.field-error::before { content: "Error: "; }

.radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.radio { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 400; min-height: 2.75rem; cursor: pointer; }
.radio input { width: 1.35rem; height: 1.35rem; accent-color: var(--ink); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error-summary { border: 4px solid var(--error); padding: 1.25rem 1.5rem; margin-bottom: 2rem; }
.error-summary h3 { color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.25rem; }
.error-summary a { color: var(--error); font-weight: 700; }

.privacy-note { font-size: 0.95rem; color: var(--muted); }

/* The quote form is submitted with JavaScript (it needs a server-issued form token). */
.no-js .quote-form, .js .js-required { display: none; }
.js-required { border-left: 4px solid var(--marker); padding: 0.75rem 1rem; background: var(--mist); }
.form-result { border: 4px solid #2e7d32; border-radius: var(--radius-card); padding: 1.5rem; margin-bottom: 2rem; }
.form-result h3 { font-size: 1.5rem; }
.form-result:focus { outline: 3px solid var(--focus); outline-offset: 3px; }

.contact-aside { background: var(--paper); padding: 2rem; border-radius: var(--radius-card); border-top: 5px solid var(--leaf); box-shadow: var(--shadow); }
.contact-aside h2 { font-size: 1.5rem; }
.contact-aside h3 { font-size: 1.15rem; margin-top: 1.5rem; }
.contact-methods { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.contact-methods a {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1rem;
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); text-decoration: none;
}
.contact-methods a:hover { background: var(--marker); border-color: var(--marker); }
.contact-methods strong { display: block; }
.contact-methods .icon { width: 1.6rem; height: 1.6rem; }

/* Legal / prose: one readable column ---------------------------------------------------- */

.prose > * { max-width: 50rem; }
.prose h2 { font-size: 1.55rem; margin-top: 2.75rem; padding-top: 0.25rem; }
.prose h2::before { content: ""; display: block; width: 2rem; height: 3px; background: var(--leaf); margin-bottom: 0.85rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .meta { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-bottom: 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.98rem; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid var(--ink); }

/* Footer --------------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: rgb(255 255 255 / 0.85); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: 1rem; border-top: 4px solid var(--leaf); }
.footer-grid { display: grid; gap: 2.25rem; }
@media (min-width: 40em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-name { font-weight: 750; font-size: 1.2rem; color: var(--paper); font-stretch: 85%; }
.footer-small { font-size: 0.92rem; }
.footer-heading { font-size: 0.85rem; font-stretch: 100%; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leaf-bright); margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a, .footer-links .link-button { display: inline-block; padding-block: 0.35rem; color: rgb(255 255 255 / 0.85); text-decoration: none; }
.footer-links a:hover, .footer-links .link-button:hover { color: var(--paper); text-decoration: underline; }
.footer-base { border-top: 1px solid rgb(255 255 255 / 0.15); margin-top: 3rem; padding-block: 1.4rem; font-size: 0.92rem; }
.footer-base p { margin: 0; }

/* Mobile quick-action bar ------------------------------------------------------------------ */

.action-bar { display: none; }
@media (max-width: 48em) {
  /* Bar height = 3rem buttons + 2 x 0.5rem padding + 1px border, plus the device's safe area.
     It is fixed (labels never wrap), so the space reserved below the page always matches it. */
  :root { --action-bar-h: calc(4rem + 1px + env(safe-area-inset-bottom)); }
  body:has(> .action-bar) { padding-bottom: var(--action-bar-h); }
  html:has(body > .action-bar) { scroll-padding-bottom: calc(var(--action-bar-h) + 0.75rem); }
  .action-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--action-bar-h);
    background: var(--ink); padding: 0.5rem 0.375rem calc(0.5rem + env(safe-area-inset-bottom)); gap: 0.375rem;
    border-top: 1px solid rgb(255 255 255 / 0.15);
  }
  .action-bar a {
    /* Widths follow each label (WhatsApp is the longest), sharing the spare space. */
    flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 0.3rem;
    height: 3rem; padding: 0 0.5rem; font-size: 1rem; border-radius: var(--radius); font-weight: 700; text-decoration: none; white-space: nowrap;
    color: var(--paper); border: 2px solid rgb(255 255 255 / 0.5); --focus: var(--marker);
  }
  .action-bar .action-bar-primary { flex: 1.4 1 auto; background: var(--marker); border-color: var(--marker); color: var(--ink); }
  .consent { bottom: var(--action-bar-h); }
}
/* Below 384px the icons go (they are decorative; each label says what it does), which
   keeps all three labels at a readable size with room to spare. With icons the row
   needs 340px; at 384px that leaves 32px. */
@media (max-width: 23.99em) {
  .action-bar a { font-size: 0.95rem; padding: 0 0.4rem; }
  .action-bar a .icon { display: none; }
}

/* Scroll to top (added by site.js): invisible and not focusable until the page is scrolled. */
.to-top {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: 1.5rem; z-index: 55;
  display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; padding: 0;
  border: 2px solid var(--leaf-bright); border-radius: 50%; background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow); cursor: pointer; --focus: var(--marker);
  opacity: 0; visibility: hidden; transform: translateY(0.5rem);
  transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s, background-color 0.15s, color 0.15s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s, transform 0.2s, background-color 0.15s, color 0.15s; }
.to-top:hover { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.to-top:active { transform: translateY(1px); }
.to-top .icon { width: 1.5rem; height: 1.5rem; }
@media (max-width: 48em) {
  .to-top { bottom: 1rem; }
  body:has(> .action-bar) .to-top { bottom: calc(var(--action-bar-h) + 0.75rem); }
}
.consent:not([hidden]) ~ .to-top { display: none; }

/* Cookie consent (only rendered when analytics is configured) ------------------------------ */

.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--slate); color: var(--paper); padding-block: 1.25rem; box-shadow: 0 -6px 24px rgb(27 35 43 / 0.25); }
.consent-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.consent p { margin: 0; max-width: 46em; }
.consent-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

@media print {
  .site-header nav, .action-bar, .consent, .final-cta, .nav-toggle, .to-top { display: none !important; }
  body { padding: 0; }
  .page-head-photo, .hero, .why, .reviews { background: none; color: var(--ink); }
  .slider-controls { display: none !important; }
  .review-list { display: grid; overflow: visible; }
}
