/* FirstScapes site styles
 *
 * Identity from the current site: Poppins, dark green #1e3524 header,
 * logo green #5ab031, pale sage #e9eee3 sections.
 * Finish from Warner: one accent colour for every action, warm off-white
 * page, generous spacing, rounded cards, form above the fold.
 * Structure from Romans: phone repeated, link blocks, postcodes.
 */

/* ---------- Fonts ---------- */

@font-face { font-family: Poppins; font-weight: 400; font-display: swap; src: url(/fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(/fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(/fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url(/fonts/poppins-700.woff2) format('woff2'); }

/* ---------- Tokens ---------- */

:root {
  /* Brand */
  --green-950: #13241a;
  --green-900: #1e3524;   /* header, footer, dark sections */
  --green-800: #2b4a33;
  --green-700: #197a26;   /* links and icons on light backgrounds */
  --green-500: #5ab031;   /* logo green: buttons and highlights */
  --green-400: #6fc445;   /* button hover */
  --sage-200: #d5dfcb;
  --sage-100: #e9eee3;    /* alternating sections */
  --sage-50:  #f4f7f0;
  --paper:    #fbfbf8;    /* page background */
  --white:    #ffffff;

  /* Text */
  --ink:        #17211a;
  --ink-soft:   #4a564d;
  --ink-faint:  #6f7a72;
  --on-dark:    #ffffff;
  --on-dark-soft: rgba(255, 255, 255, 0.72);

  --line:       #dfe5da;
  --line-strong:#c6d0bf;
  --star:       #f2b01e;
  --whatsapp:   #25d366;
  --error:      #b3261e;

  /* Type */
  --font: Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h4: 1.125rem;
  --fs-h3: 1.3125rem;
  --fs-h2: clamp(1.625rem, 1.25rem + 1.4vw, 2.25rem);
  --fs-h1: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);

  /* Space and shape */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section: clamp(3.5rem, 2rem + 5vw, 6rem);
  --container: 1200px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 36, 26, 0.06), 0 1px 3px rgba(19, 36, 26, 0.08);
  --shadow: 0 4px 12px rgba(19, 36, 26, 0.08), 0 12px 32px rgba(19, 36, 26, 0.10);
  --header-h: 76px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  line-height: 1.2;
  font-weight: 600;
  color: var(--green-900);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p, ul, ol { margin: 0 0 var(--space-4); }
p { text-wrap: pretty; }

a { color: var(--green-700); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--green-900); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--green-500); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-4); background: var(--white); color: var(--green-900);
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section); }
.section--sage { background: var(--sage-100); }
.section--white { background: var(--white); }
.section--dark { background: var(--green-900); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }

.section-head { max-width: 720px; margin-bottom: var(--space-6); }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lg); }

.eyebrow {
  display: inline-block; margin-bottom: var(--space-3);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-700);
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--green-400); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0.75rem 1.5rem;
  font: inherit; font-size: var(--fs-sm); font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--green-500); color: var(--green-950); }
.btn--primary:hover { background: var(--green-400); color: var(--green-950); }
.btn--dark { background: var(--green-900); color: var(--on-dark); }
.btn--dark:hover { background: var(--green-800); color: var(--on-dark); }
.btn--ghost { border-color: currentColor; color: var(--green-900); background: transparent; }
.btn--ghost:hover { background: var(--green-900); border-color: var(--green-900); color: var(--on-dark); }
.section--dark .btn--ghost, .site-header .btn--ghost, .hero .btn--ghost { color: var(--on-dark); }
.section--dark .btn--ghost:hover, .site-header .btn--ghost:hover, .hero .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--green-900); }
.btn--block { width: 100%; }

/* ---------- Sticky header ---------- */

.topbar {
  background: var(--green-950); color: var(--on-dark-soft); font-size: var(--fs-xs);
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 36px; }
.topbar a { color: var(--on-dark); text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--green-400); }
.topbar__note { display: flex; align-items: center; gap: var(--space-2); margin: 0; }
.topbar__note::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); }
.topbar__links { display: flex; gap: var(--space-5); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--green-900); color: var(--on-dark);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.site-header.is-scrolled { background: rgba(30, 53, 36, 0.97); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }

.brand { display: flex; align-items: center; flex: none; margin-right: auto; color: var(--on-dark); text-decoration: none; }
.brand img { width: 118px; height: auto; margin-block: -14px; }

.nav { display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; gap: 0.35em; padding: 0.5rem 0.8rem;
  color: var(--on-dark); font: inherit; font-size: var(--fs-sm); font-weight: 500;
  text-decoration: none; border-radius: var(--radius-sm); background: none; border: 0; cursor: pointer;
}
.nav__link:hover, .nav__link[aria-current='page'] { color: var(--green-400); }
.nav__link svg { width: 0.9em; height: 0.9em; transition: transform 0.15s; }

.nav__item--has-menu { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  display: none; width: min(560px, 90vw); padding: var(--space-4);
  grid-template-columns: 1fr 1fr; gap: 2px var(--space-4);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; margin: 0;
}
.nav__menu::before { content: ''; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__menu a { display: block; padding: 0.55rem 0.75rem; color: var(--ink); font-size: var(--fs-sm); text-decoration: none; border-radius: var(--radius-sm); }
.nav__menu a:hover { background: var(--sage-100); color: var(--green-900); }
.nav__menu-all { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: var(--space-2); padding-top: var(--space-2); }
.nav__menu-all a { font-weight: 600; color: var(--green-700); }
.nav__item--has-menu:hover .nav__menu,
.nav__item--has-menu:focus-within .nav__menu,
.nav__item--has-menu.is-open .nav__menu { display: grid; }
.nav__item--has-menu:hover .nav__link svg,
.nav__item--has-menu.is-open .nav__link svg { transform: rotate(180deg); }

.header-cta { display: flex; align-items: center; gap: var(--space-3); }
/* Click-to-call at every width, inside the sticky header. Desktop: a button
   with the label and full number. Tablet and phone: icon and number, 44px
   tall at least. Under 360px: icon only, the number kept for screen readers. */
.header-phone {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px; padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius-sm);
  line-height: 1.2; color: var(--on-dark); text-decoration: none;
}
.header-phone svg { flex: none; width: 20px; height: 20px; color: var(--green-400); }
.header-phone__text { display: flex; flex-direction: column; }
.header-phone small { font-size: var(--fs-xs); color: var(--on-dark-soft); }
.header-phone strong { font-size: var(--fs-lg); font-weight: 600; letter-spacing: 0.01em; }
.header-phone:hover, .header-phone:focus-visible { border-color: var(--green-400); }
.header-phone:hover strong { color: var(--green-400); }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 12px;
  background: none; border: 0; color: var(--on-dark); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1240px) {
  .header-cta .btn { display: none; }
  .header-phone small { display: none; }
}
@media (max-width: 1024px) {
  .header-phone { gap: 0.4rem; padding: 0.3rem 0.7rem; }
  .header-phone strong { font-size: var(--fs-sm); }
}
@media (max-width: 359px) {
  .header-phone__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-phone { width: 44px; justify-content: center; padding: 0; }
}

@media (max-width: 1180px) {
  .topbar__links { display: none; }
}

.topbar__links a, .header-phone strong, .nav__link { white-space: nowrap; }

@media (max-width: 600px) {
  .topbar { display: none; }
}

@media (max-width: 1024px) {
  .topbar__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(var(--header-h)) 0 0 0; z-index: 49;
    display: none; align-items: stretch; flex-direction: column;
    padding: var(--space-4) var(--gutter) var(--space-7);
    background: var(--green-900); overflow-y: auto;
  }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 0.9rem 0; font-size: var(--fs-base); border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0; }
  .nav__menu {
    position: static; translate: none; width: auto; box-shadow: none;
    grid-template-columns: 1fr; background: transparent; padding: var(--space-2) 0;
  }
  .nav__menu::before { display: none; }
  .nav__item--has-menu:hover .nav__menu { display: none; }
  .nav__item--has-menu.is-open .nav__menu { display: grid; }
  .nav__menu a { color: var(--on-dark-soft); padding-left: var(--space-4); }
  .nav__menu a:hover { background: rgba(255, 255, 255, 0.06); color: var(--on-dark); }
  .nav__menu-all { border-color: rgba(255, 255, 255, 0.1); }
  .nav__menu-all a { color: var(--green-400); }
  .header-cta .btn { display: none; }
}

/* ---------- Hero with enquiry form (above the fold) ---------- */

.hero {
  position: relative; color: var(--on-dark);
  background: var(--green-900);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media > * { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19, 36, 26, 0.74) 0%, rgba(19, 36, 26, 0.5) 45%, rgba(19, 36, 26, 0.12) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px);
  grid-template-areas: 'intro form' 'badges form';
  grid-template-rows: auto 1fr; gap: 0 clamp(2rem, 4vw, 4rem); align-items: start;
}
.hero__intro { grid-area: intro; }
.hero__form { grid-area: form; }
.hero__badges { grid-area: badges; }
.hero h1 { color: var(--on-dark); margin-bottom: var(--space-4); }
.hero__sub { font-size: var(--fs-lg); color: var(--on-dark-soft); max-width: 36ch; margin-bottom: var(--space-5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }


@media (max-width: 920px) {
  /* Phone and tablet: form straight after the headline, badges after the form */
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: 'intro' 'form' 'badges'; row-gap: var(--space-5); }
  .hero__actions { margin-bottom: 0; }
}

/* ---------- Trust badges ---------- */

.trust-badges {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3);
  margin: 0; padding: 0; list-style: none;
}
.trust-badge {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-sm); line-height: 1.35; color: var(--ink);
}
.trust-badge p { margin: 0; }
.trust-badge strong { display: block; color: var(--green-900); font-weight: 600; }
.trust-badge span { color: var(--ink-soft); font-size: var(--fs-xs); }
.trust-badge__icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--sage-100); color: var(--green-700);
}
.trust-badge__icon svg { width: 20px; height: 20px; }

.hero .trust-badge, .section--dark .trust-badge { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.14); color: var(--on-dark); }
.hero .trust-badge strong, .section--dark .trust-badge strong { color: var(--on-dark); }
.hero .trust-badge span, .section--dark .trust-badge span { color: var(--on-dark-soft); }
.hero .trust-badge__icon, .section--dark .trust-badge__icon { background: rgba(90, 176, 49, 0.18); color: var(--green-400); }

@media (min-width: 1100px) {
  .trust-badges--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .trust-badges { grid-template-columns: 1fr; }
}

/* ---------- Enquiry form ---------- */

.enquiry {
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--white); color: var(--ink);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.enquiry .enquiry__title { margin-bottom: var(--space-1); font-size: var(--fs-h3); color: var(--green-900); }
.enquiry__lead { margin-bottom: var(--space-5); color: var(--ink-soft); font-size: var(--fs-sm); }
.enquiry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-3); }
.enquiry__grid .field--full { grid-column: 1 / -1; }
.enquiry__foot { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.enquiry__alt { margin: 0; text-align: center; font-size: var(--fs-sm); color: var(--ink-soft); }
.enquiry__alt a { font-weight: 600; white-space: nowrap; }

.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field__label { font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3524' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--green-700); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: var(--white); border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(90, 176, 49, 0.25);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--error); }


.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.enquiry__consent { margin: 0; text-align: center; font-size: var(--fs-xs); line-height: 1.5; color: var(--ink-soft); }

.enquiry__status { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.enquiry__status:empty { display: none; }
.enquiry__status[data-state='ok'] { background: var(--sage-100); color: var(--green-900); }
.enquiry__status[data-state='error'] { background: #fbe9e7; color: var(--error); }

@media (max-width: 480px) {
  .enquiry__grid { grid-template-columns: 1fr; }
}

/* Second form, lower on the page: form beside a short pitch */
.enquiry-band__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.enquiry-band__lead { color: var(--on-dark-soft); }
.enquiry-band__call { margin-top: var(--space-5); }
.enquiry-band__points { margin: var(--space-5) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-3); }
.enquiry-band__points li { display: flex; gap: var(--space-3); align-items: flex-start; }
.enquiry-band__points svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--green-400); }
@media (max-width: 920px) { .enquiry-band__grid { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */

.reviews__summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-6);
}
.reviews__summary h2 { margin: 0; }
.reviews__score { display: flex; align-items: center; gap: var(--space-3); }
.reviews__score strong { font-size: 2.25rem; font-weight: 700; line-height: 1; color: var(--green-900); }
.reviews__score > span { font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.35; }
.reviews__score .stars { color: var(--star); }

.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; }

.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.review {
  display: flex; flex-direction: column; gap: var(--space-3); margin: 0; height: 100%;
  padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.review blockquote { margin: 0; flex: 1; font-size: var(--fs-sm); color: var(--ink); }
.review blockquote p:last-child { margin-bottom: 0; }
.review figcaption { display: flex; align-items: center; gap: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.35; }
.review__avatar {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-900); color: var(--on-dark); font-weight: 600; font-size: var(--fs-sm);
}
.review__name { font-weight: 600; color: var(--green-900); font-style: normal; }
.review__meta { display: block; color: var(--ink-faint); font-size: var(--fs-xs); }
.reviews__more { margin-top: var(--space-5); }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: var(--space-3); }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s; }
.faq__item[open] { border-color: var(--line-strong); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; color: var(--green-900); }
.faq__item summary::after {
  content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--sage-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23197a26' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }
.faq__item summary:hover h3 { color: var(--green-700); }
.faq__answer { padding: 0 var(--space-5) var(--space-5); color: var(--ink-soft); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__note { margin: var(--space-4) 0 0; font-size: var(--fs-xs); color: var(--ink-faint); }

/* ---------- Link blocks (three, plus postcodes) ---------- */

.link-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.link-block { padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.link-block h2, .link-block h3 { font-size: var(--fs-h4); margin-bottom: var(--space-4); }
.link-block ul { margin: 0; padding: 0; list-style: none; }
.link-block li + li { border-top: 1px solid var(--line); }
.link-block a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 0.55rem 0; color: var(--ink); font-size: var(--fs-sm); text-decoration: none;
}
.link-block a::after {
  content: ''; flex: none; width: 16px; height: 16px; opacity: 0.45; transition: opacity 0.15s, translate 0.15s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23197a26' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.link-block a:hover { color: var(--green-700); }
.link-block a:hover::after { opacity: 1; translate: 3px 0; }

/* Villages: many short names, so flow them as chips */
.link-block--chips ul { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.link-block--chips li + li { border-top: 0; }
.link-block--chips a {
  padding: 0.35rem 0.75rem; background: var(--sage-50); border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-xs);
}
.link-block--chips a::after { display: none; }
.link-block--chips a:hover { background: var(--sage-100); border-color: var(--green-700); }
.link-block--chips span { display: inline-block; padding: 0.35rem 0.75rem; background: var(--sage-50); border: 1px solid var(--line); border-radius: 999px; font-size: var(--fs-xs); color: var(--ink-soft); }

.postcodes { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-5); font-size: var(--fs-sm); color: var(--ink-soft); }
.postcodes strong { color: var(--green-900); margin-right: var(--space-2); }
.postcodes span { padding: 0.2rem 0.6rem; background: var(--green-900); color: var(--on-dark); border-radius: var(--radius-sm); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 920px) {
  .link-blocks { grid-template-columns: 1fr 1fr; }
  .link-block--chips { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .link-blocks { grid-template-columns: 1fr; }
}

/* ---------- Image slot ---------- */
/* Empty <figure class="img-slot"> reserves the space until a photo is chosen.
   Filled, it holds an <img> and an optional <figcaption>. */

.img-slot {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 3 / 2; border-radius: var(--radius); background: var(--sage-100);
}
.img-slot[data-ratio='wide'] { aspect-ratio: 16 / 9; }
.img-slot[data-ratio='square'] { aspect-ratio: 1; }
.img-slot[data-ratio='portrait'] { aspect-ratio: 4 / 5; }
.img-slot > img { width: 100%; height: 100%; object-fit: cover; }
.img-slot > figcaption {
  position: absolute; left: var(--space-3); bottom: var(--space-3); max-width: calc(100% - 1.5rem);
  padding: 0.3rem 0.7rem; background: rgba(19, 36, 26, 0.82); color: var(--on-dark);
  border-radius: var(--radius-sm); font-size: var(--fs-xs);
}
.img-slot:empty {
  display: grid; place-content: center; gap: var(--space-2); padding: var(--space-5); text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(30, 53, 36, 0.035) 14px 28px),
    var(--sage-100);
  border: 2px dashed var(--sage-200);
}
.img-slot:empty::before {
  content: 'Photo: ' attr(data-slot); justify-self: center;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-700);
}
.img-slot:empty::after { content: attr(data-intent); max-width: 32ch; font-size: var(--fs-sm); color: var(--ink-soft); }
.hero__media .img-slot { border-radius: 0; aspect-ratio: auto; border: 0; }
.hero__media .img-slot:empty::before, .hero__media .img-slot:empty::after { display: none; }

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

.site-footer { background: var(--green-900); color: var(--on-dark-soft); font-size: var(--fs-sm); }
.site-footer a { color: var(--on-dark-soft); text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); text-decoration: underline; }

.footer-cta { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding-block: var(--space-7); }
.footer-cta h2 { margin: 0 0 var(--space-1); color: var(--on-dark); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); }
.footer-cta p { margin: 0; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.footer-cta .btn--ghost { color: var(--on-dark); }
.footer-cta .btn--ghost:hover { color: var(--green-900); background: var(--white); border-color: var(--white); }

.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--space-6); padding-block: var(--space-8) var(--space-7); }
.footer-main h2 { margin-bottom: var(--space-4); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark); }
.footer-main ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.footer-brand img { width: 150px; margin: -18px 0 var(--space-3) -8px; }
.footer-brand p { max-width: 32ch; }
.footer-contact { display: grid; gap: 0; margin-top: var(--space-3); }
.footer-contact a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--on-dark); font-weight: 500; }
.footer-contact svg { width: 18px; height: 18px; color: var(--green-400); flex: none; }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-5); }
.footer-social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--on-dark); }
.footer-social a:hover { background: var(--green-500); color: var(--green-950); text-decoration: none; }
.footer-social svg { width: 18px; height: 18px; }


.footer-legal { background: var(--green-950); font-size: var(--fs-xs); color: var(--on-dark-soft); opacity: 0.85; }
.footer-legal .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-block: var(--space-4); }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }

@media (max-width: 920px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ---------- Fixed actions: WhatsApp button, mobile call bar ---------- */

.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.whatsapp-fab:hover { transform: scale(1.06); color: #fff; }
.whatsapp-fab svg { width: 30px; height: 30px; }

.call-bar { display: none; }

@media (max-width: 720px) {
  body { padding-bottom: 68px; }
  .call-bar {
    position: fixed; inset: auto 0 0 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2);
    padding: var(--space-2) var(--space-3) calc(var(--space-2) + env(safe-area-inset-bottom));
    background: var(--green-900); box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  }
  .call-bar .btn { min-height: 48px; }
  .call-bar .btn--ghost { color: var(--on-dark); }
  .whatsapp-fab { bottom: 84px; right: 14px; width: 52px; height: 52px; }
}

/* ---------- Price band (sits next to the cost section) ---------- */

.price-band {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5);
  padding: var(--space-5) var(--space-6); background: var(--green-900); color: var(--on-dark); border-radius: var(--radius);
}
.price-band__label { font-size: var(--fs-sm); color: var(--on-dark-soft); }
.price-band__value { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; color: var(--on-dark); line-height: 1.1; }
.price-band__note { flex-basis: 100%; margin: 0; font-size: var(--fs-xs); color: var(--on-dark-soft); }


/* ---------- Breadcrumb ---------- */

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-5); padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--on-dark-soft); }
.breadcrumb li + li::before { content: '/'; margin-right: var(--space-2); opacity: 0.6; }
.breadcrumb a { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--on-dark); text-decoration: underline; }

/* ---------- Content blocks for service and location pages ---------- */

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Material or option blocks. Each has its own H2 for keyword headings,
   sized down so a row of six does not shout. */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.option { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.option .img-slot { border-radius: 0; border-width: 0 0 2px; }
.option__body { padding: var(--space-5); }
.option__body h2, .option__body h3 { font-size: var(--fs-h3); margin-bottom: var(--space-3); }
.option__body p { margin-bottom: 0; font-size: var(--fs-sm); color: var(--ink-soft); }

/* Numbered build steps */
.steps { counter-reset: step; display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; color: var(--ink-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--green-900); color: var(--on-dark); font-weight: 600; font-size: var(--fs-sm);
}
.steps strong { display: block; color: var(--green-900); }

/* Cost factors */
.factors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.factors li { padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--green-500); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--ink-soft); }
.factors strong { display: block; margin-bottom: var(--space-1); color: var(--green-900); }

/* Guarantee panel */
.guarantee { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: center; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.guarantee__seal { display: grid; place-items: center; overflow: hidden; width: 112px; height: 112px; border-radius: 50%; background: var(--green-900); color: var(--on-dark); text-align: center; line-height: 1.1; font-size: var(--fs-xs); }
.guarantee__seal strong { display: block; font-size: 2rem; color: var(--green-400); }
.guarantee h2 { margin-bottom: var(--space-2); }
.guarantee p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .guarantee { grid-template-columns: 1fr; } }

/* Client facts still to supply. The build turns [[client: ...]] into this. */
mark.todo { padding: 0.05em 0.35em; background: #fff3c4; color: #5c4a00; border-radius: 4px; font-size: 0.92em; }

/* ---------- Hero offer (only when one is running) ---------- */

.hero__offer {
  display: inline-flex; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-5);
  padding: 0.45rem 0.9rem; border-radius: 999px;
  background: rgba(90, 176, 49, 0.18); border: 1px solid rgba(90, 176, 49, 0.45);
  color: var(--on-dark); font-size: var(--fs-sm); font-weight: 500;
}
.hero__offer svg { width: 18px; height: 18px; flex: none; color: var(--green-400); }

/* ---------- Service checklist (what we do) ---------- */

.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.service-list li { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.service-list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--green-700); }
.service-list strong { display: block; color: var(--green-900); font-weight: 600; line-height: 1.35; }
.service-list a { color: inherit; text-decoration: none; }
.service-list a:hover strong { color: var(--green-700); text-decoration: underline; }
.service-list span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 600px) { .service-list { grid-template-columns: 1fr; } }

/* ---------- Why choose us ---------- */

.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); margin: 0; padding: 0; list-style: none; }
.why-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.why-list svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--green-500); color: var(--green-950); }
.why-list strong { display: block; color: var(--on-dark); font-weight: 600; }
.why-list span { display: block; color: var(--on-dark-soft); font-size: var(--fs-sm); }
@media (max-width: 700px) { .why-list { grid-template-columns: 1fr; } }

/* ---------- Links to other services ---------- */

.service-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.service-links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: 100%;
  padding: var(--space-4) var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--green-900); font-weight: 500; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.service-links a::after { content: '\2192'; color: var(--green-700); transition: translate 0.15s; }
.service-links a:hover { border-color: var(--green-700); box-shadow: var(--shadow-sm); }
.service-links a:hover::after { translate: 3px 0; }

/* Service list stacked under its intro text */
.service-list-wrap { margin-top: var(--space-7); }

/* Centred intro: heading, copy and button on the middle line */
.prose--center { margin-inline: auto; text-align: center; }
.prose__cta { margin: var(--space-5) 0 0; }

/* ---------- Live Google reviews ---------- */

[hidden] { display: none !important; }
img.review__avatar { object-fit: cover; background: var(--sage-100); }
a.review__name { color: var(--green-900); text-decoration: none; }
a.review__name:hover { text-decoration: underline; }
.review__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.reviews__credit { margin: var(--space-3) 0 0; font-size: var(--fs-xs); color: var(--ink-faint); }
.service-links a[aria-current='page'] { background: var(--green-900); border-color: var(--green-900); color: var(--on-dark); pointer-events: none; }
.service-links a[aria-current='page']::after { content: 'You are here'; color: var(--green-400); font-size: var(--fs-xs); font-weight: 600; }
.nav__menu a[aria-current='page'], .site-footer a[aria-current='page'] { font-weight: 600; }

/* ---------- Local section on town pages ---------- */

.local { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.local__points { display: grid; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.local__points h3 { margin-bottom: var(--space-2); font-size: var(--fs-h4); }
.local__points p { margin: 0; color: var(--ink-soft); }
.local__aside { padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.local__aside h3 { font-size: var(--fs-h4); margin-bottom: var(--space-4); }
.local__aside .link-block--chips ul { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.local__aside .postcodes { margin-top: var(--space-5); }
@media (max-width: 860px) { .local { grid-template-columns: 1fr; } }

/* Guarantee line under the hero buttons */
.hero__guarantee { display: flex; align-items: center; gap: var(--space-4); margin: var(--space-5) 0 0; color: var(--on-dark-soft); font-size: var(--fs-sm); }
.hero__guarantee .seal { flex: none; width: 88px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3)); }
.hero__guarantee p { margin: 0; }
.hero__guarantee strong { display: block; color: var(--on-dark); font-size: var(--fs-lg); font-weight: 600; }

/* ---------- Hero slideshow ---------- */
/* Six photos, 6s each (36s loop): 1.5s fade in, hold with a slow zoom, fade out.
   The first starts already visible (negative delay) so the hero is never blank. */

.hero-carousel { background: var(--green-900); }
/* Slides 2+ load after the page (site.js swaps data-src in), so the first
   slide shows on its own until they are ready; then .is-playing starts the
   crossfade. Without JS, or with reduced motion, the first slide stays. */
.hero-carousel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
}
.hero-carousel img:first-child { opacity: 1; }
.hero-carousel.is-playing img { animation: hero-fade 36s linear infinite; }
.hero-carousel img:nth-child(1) { animation-delay: -1.5s; }
.hero-carousel img:nth-child(2) { animation-delay: 4.5s; }
.hero-carousel img:nth-child(3) { animation-delay: 10.5s; }
.hero-carousel img:nth-child(4) { animation-delay: 16.5s; }
.hero-carousel img:nth-child(5) { animation-delay: 22.5s; }
.hero-carousel img:nth-child(6) { animation-delay: 28.5s; }
.hero-carousel::after { z-index: 1; }

@keyframes hero-fade {
  0%      { opacity: 0; transform: scale(1); }
  4.17%   { opacity: 1; }
  16.67%  { opacity: 1; }
  20.83%  { opacity: 0; transform: scale(1.08); }
  100%    { opacity: 0; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel img { animation: none; }
  .hero-carousel img:first-child { opacity: 1; }
}

/* Five-photo version: 6s each, 30s loop */
.hero-carousel--5.is-playing img { animation-name: hero-fade-5; animation-duration: 30s; }
@keyframes hero-fade-5 {
  0%   { opacity: 0; transform: scale(1); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}

/* Three-photo version: 6s each, 18s loop */
.hero-carousel--3.is-playing img { animation-name: hero-fade-3; animation-duration: 18s; }
@keyframes hero-fade-3 {
  0%     { opacity: 0; transform: scale(1); }
  8.33%  { opacity: 1; }
  33.33% { opacity: 1; }
  41.67% { opacity: 0; transform: scale(1.08); }
  100%   { opacity: 0; transform: scale(1.08); }
}

/* Guarantee section extras: Google rating line and button */
.guarantee__rating { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin: var(--space-4) 0 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.guarantee__rating strong { color: var(--green-900); }
.guarantee__rating .stars svg { width: 20px; height: 20px; }
.guarantee__actions { margin: var(--space-5) 0 0; }
.guarantee > div > p:not(.guarantee__rating):not(.guarantee__actions) { color: var(--ink-soft); }

/* ---------- Gallery ---------- */

.hero--compact { padding-block: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
.hero--compact .hero__sub { max-width: 60ch; }
.hero--compact .hero__actions { margin-bottom: 0; }

/* Justified grid: each tile keeps its photo's proportions (--ar, set per
   tile) and rows fill the width, reading left to right, newest first. */
.gallery-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.gallery-grid::after { content: ""; flex-grow: 999; }
.gallery-item { flex: var(--ar) 1 calc(var(--ar) * 210px); max-width: 100%; }
.gallery-item[hidden] { display: none; }
.gallery-item a { display: block; aspect-ratio: var(--ar); overflow: hidden; border-radius: var(--radius-sm); background: var(--sage-100); }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item a:hover img, .gallery-item a:focus-visible img { transform: scale(1.04); }
@media (max-width: 600px) { .gallery-item { flex-basis: calc(var(--ar) * 130px); } }
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } }
.gallery-intro { max-width: 720px; margin-bottom: var(--space-6); }
.gallery-filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-5); }
.gallery-filters .field { min-width: 200px; }
.gallery-filters__count { margin: 0 0 0.6rem; font-size: var(--fs-sm); color: var(--ink-soft); }
.gallery-more { margin: var(--space-6) 0 0; text-align: center; }
.gallery-empty { padding: var(--space-7) var(--space-5); text-align: center; background: var(--sage-50); border: 2px dashed var(--sage-200); border-radius: var(--radius); }

.lightbox { max-width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--green-950); overflow: visible; }
.lightbox::backdrop { background: rgba(10, 20, 14, 0.88); }
.lightbox img { display: block; max-width: min(1200px, 94vw); max-height: calc(92vh - 3rem); width: auto; height: auto; margin: 0 auto; border-radius: var(--radius) var(--radius) 0 0; }
.lightbox__caption { margin: 0; padding: var(--space-3) var(--space-4); color: var(--on-dark-soft); font-size: var(--fs-sm); }
.lightbox__caption:empty { display: none; }
.lightbox__close { position: absolute; top: -14px; right: -14px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); color: var(--green-900); cursor: pointer; box-shadow: var(--shadow); }
.lightbox__close svg { width: 20px; height: 20px; }

/* Garden landscaping: visible "What we do" title and process photos */
.service-list-title { margin: 0 0 var(--space-4); text-align: center; font-size: var(--fs-h3); }
.process-media { display: grid; gap: var(--space-4); }

/* Before and after photos beside the design and build steps */
/* Three equal photos stacked: before, after, after */
.process-media { grid-template-columns: 1fr; gap: var(--space-3); }
.process-media .img-slot { aspect-ratio: 3 / 2; }
.process-media .img-slot > figcaption { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.process-media__note { grid-column: 1 / -1; margin: 0; font-size: var(--fs-xs); color: var(--ink-faint); }

/* Postcode line under the intro on service pages */
.area-postcodes { margin: var(--space-4) 0 0; font-size: var(--fs-sm); color: var(--ink-faint); }

/* Two-tile layout (e.g. pergolas: timber and aluminium) */
.options--two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }

/* Text-only option tiles (no photo yet), e.g. garden room uses */
.options--text .option { border-top: 3px solid var(--green-500); }

/* Lighter hero overlay: a soft shadow keeps the white text readable over
   bright parts of the photo */
.hero h1, .hero__sub, .hero .breadcrumb { text-shadow: 0 1px 12px rgba(10, 20, 14, 0.55); }
@media (max-width: 860px) {
  .hero__media::after { background: linear-gradient(180deg, rgba(19, 36, 26, 0.62) 0%, rgba(19, 36, 26, 0.5) 100%); }
}

/* Dark text tile at the end of a photo grid (e.g. brickwork walls and piers) */
.option--feature { background: var(--green-900); border-color: var(--green-900); justify-content: center; }
.option--feature .option__body h3 { color: var(--on-dark); }
.option--feature .option__body p { color: var(--on-dark-soft); }
.option--feature .option__cta { margin-top: var(--space-5); }

/* ---------- Town hubs: service cards ---------- */
.service-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.service-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.service-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--sage-100); }
.service-card__body { display: block; padding: var(--space-4); }
.service-card strong { display: block; color: var(--green-900); font-weight: 600; line-height: 1.35; }
.service-card__body > span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-soft); }
.service-card:hover { border-color: var(--green-500); box-shadow: 0 6px 20px rgba(19, 36, 26, 0.08); }
.service-card:hover strong { color: var(--green-700); text-decoration: underline; }

/* ---------- Areas page ---------- */
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.area-card { padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green-500); border-radius: var(--radius); }
.area-card h3 { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.area-card h3 a { color: var(--green-900); text-decoration: none; }
.area-card h3 a:hover { color: var(--green-700); text-decoration: underline; }
.area-card p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
.area-card .area-card__postcodes { margin-bottom: var(--space-2); font-weight: 600; color: var(--green-700); letter-spacing: 0.04em; }
.area-matrix { display: grid; gap: var(--space-4); }
.area-matrix__row { padding-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.area-matrix__row h3 { font-size: 1.05rem; margin-bottom: var(--space-2); }
.area-matrix__row h3 a { color: var(--green-900); }
.area-matrix__row ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; font-size: var(--fs-sm); }
.area-matrix__row li a { color: var(--ink-soft); }
.area-matrix__row li a:hover { color: var(--green-700); }
.towns-more { margin: var(--space-5) 0 0; text-align: center; font-size: var(--fs-sm); color: var(--ink-soft); }
.footer-hours { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; color: var(--on-dark-soft); font-size: var(--fs-sm); }
.footer-hours svg { width: 18px; height: 18px; color: var(--green-400); flex: none; }
.service-cards--detailed .service-card__body h3 { font-size: 1.05rem; margin: 0 0 var(--space-1); color: var(--green-900); }
.service-card:hover h3 { color: var(--green-700); text-decoration: underline; }
.project-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.project-card__tags { margin: 0 0 var(--space-1); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green-700); }
.project-card h2, .project-card h3 { font-size: 1.05rem; margin: 0 0 var(--space-2); color: var(--green-900); }
.project-card h2 a, .project-card h3 a { color: inherit; text-decoration: none; }
.project-card h2 a::after, .project-card h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card { position: relative; }
.project-card:hover h2, .project-card:hover h3 { text-decoration: underline; }
.project-card__when { margin: 0 0 var(--space-2); font-size: var(--fs-sm); color: var(--ink-soft); }
.project-card__summary { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Project pages (generated by scripts/make-projects.mjs) ---------- */

/* Carousel: a scroll-snap strip. Works without JS; the track is focusable and
   scrolls with the arrow keys; numbered links jump to a slide. site.js adds
   previous and next buttons. No autoplay, so nothing moves on its own. */
.project-carousel { position: relative; background: var(--green-950, #13241a); }
.project-carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.project-carousel__track::-webkit-scrollbar { display: none; }
.project-carousel__track:focus-visible { outline: 3px solid var(--green-400); outline-offset: -3px; }
.project-carousel__slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.project-carousel__slide img { display: block; width: 100%; height: clamp(260px, 56vw, 620px); object-fit: cover; }
.project-carousel__slide figcaption {
  position: absolute; left: var(--space-4); bottom: var(--space-4); padding: 0.3rem 0.7rem;
  background: rgba(19, 36, 26, 0.82); color: var(--on-dark); border-radius: var(--radius-sm);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.project-carousel__nav { position: absolute; right: var(--space-4); bottom: var(--space-4); display: flex; gap: var(--space-2); }
.project-carousel__nav a {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgba(19, 36, 26, 0.82); color: var(--on-dark); font-size: var(--fs-xs); font-weight: 600; text-decoration: none;
}
.project-carousel__nav a[aria-current="true"] { background: var(--green-500); color: var(--green-950, #13241a); }
.project-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgba(19, 36, 26, 0.82); color: var(--on-dark); font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.project-carousel__btn:hover, .project-carousel__btn:focus-visible { background: var(--green-500); color: var(--green-950, #13241a); }
.project-carousel__btn--prev { left: var(--space-4); }
.project-carousel__btn--next { right: var(--space-4); }
.project-carousel__btn[disabled] { opacity: 0.35; cursor: default; }

.project-intro .breadcrumb { margin-bottom: var(--space-4); }
.project-intro h1 { color: var(--green-900); margin-bottom: var(--space-4); }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-5); padding: var(--space-3) 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.project-meta strong { color: var(--green-900); font-weight: 600; margin-right: 0.25rem; }
.project-meta__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.project-summary { font-size: var(--fs-lg); color: var(--ink); }
.tag { display: inline-block; padding: 0.2rem 0.65rem; border: 1px solid var(--line-strong, var(--line)); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; color: var(--green-800, var(--green-900)); text-decoration: none; background: var(--white); }
.tag:hover { border-color: var(--green-500); color: var(--green-700); }
.status { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.status--complete { background: var(--green-500); color: var(--green-950, #13241a); }
.status--in-progress { background: #fff3c4; color: #5c4a00; }
.status--planned { background: var(--sage-100); color: var(--green-900); }
.project-updates { display: grid; gap: var(--space-6); margin: var(--space-5) 0 0; padding: 0 0 0 var(--space-5); list-style: none; border-left: 3px solid var(--sage-200); }
.project-updates li { position: relative; }
.project-updates li::before { content: ""; position: absolute; left: calc(-1 * var(--space-5) - 9px); top: 0.35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--green-500); border: 3px solid var(--white); }
.project-updates__date { margin: 0 0 var(--space-1); font-size: var(--fs-sm); font-weight: 600; color: var(--green-700); }
.project-updates img { display: block; width: 100%; height: auto; margin-top: var(--space-3); border-radius: var(--radius); }
.project-example { margin: 0; padding: var(--space-3) var(--space-4); background: #fff3c4; color: #5c4a00; text-align: center; font-size: var(--fs-sm); font-weight: 600; }
.project-stage { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); background: var(--sage-100); border-left: 3px solid var(--green-500); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--ink-soft); }
.project-sections { display: grid; gap: var(--space-7, 2.5rem); }
.project-section h2 { margin-bottom: var(--space-3); }
.project-section h3 { margin: var(--space-5) 0 var(--space-3); font-size: var(--fs-h4); color: var(--green-900); }
.project-quote { margin: var(--space-4) 0 0; padding: var(--space-4) var(--space-5); background: var(--white); border-left: 4px solid var(--green-500); border-radius: var(--radius-sm); font-size: var(--fs-lg); color: var(--green-900); }
.project-quote p { margin: 0; }
.project-quote p::before { content: "“"; }
.project-quote p::after { content: "”"; }
.project-quote footer { margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--ink-soft); }

.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%;
  background: rgba(19, 36, 26, 0.82); color: var(--on-dark); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.lightbox__nav:hover, .lightbox__nav:focus-visible { background: var(--green-500); color: var(--green-950); }
.lightbox__nav--prev { left: var(--space-3); }
.lightbox__nav--next { right: var(--space-3); }
.lightbox__foot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); }
.lightbox__foot .lightbox__caption { padding: 0; }
.lightbox__link { color: var(--green-400); font-size: var(--fs-sm); font-weight: 600; }

/* ---------- Homepage ---------- */
.service-cards--text { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: var(--space-3); }
.service-cards--text .service-card__body { padding: var(--space-3) var(--space-4); }
/* The homepage stays short (Warner's ~4 screens): tighter sections. */
.home > .section, .home > section.section { padding-block: clamp(2.5rem, 1.5rem + 2.5vw, 3.75rem); }
.home > .hero { padding-block: clamp(2rem, 1rem + 2.5vw, 3.25rem); }
.town-links { columns: 5 180px; column-gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.town-links li { break-inside: avoid; padding: 0.3rem 0; }
.town-links a { font-weight: 600; color: var(--green-900); }

/* How it works: an <ol>. The badge is a CSS counter and the arrow an empty
   pseudo-element with an SVG background, so nothing extra is read out. With
   CSS off the browser's own 1 to 5 numbering shows. Nothing animates. */
.how-steps { counter-reset: how; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-7); margin: 0; padding: 0; list-style: none; }
.how-steps li { counter-increment: how; position: relative; }
.how-steps li::before {
  content: counter(how); display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: var(--space-3);
  border-radius: 50%; background: var(--green-500); color: var(--green-950); font-weight: 700; font-size: var(--fs-lg);
}
.how-steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 0.5rem; right: calc(-1 * var(--space-7) + 0.25rem); width: 1.75rem; height: 1.75rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ab031' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.how-steps h3 { margin: 0 0 var(--space-2); font-size: var(--fs-h4); color: var(--green-900); }
.how-steps p { margin: 0; font-size: var(--fs-sm); color: var(--ink-soft); }
@media (max-width: 900px) {
  .how-steps { grid-template-columns: 1fr; gap: var(--space-6); max-width: 34rem; }
  .how-steps li { padding-left: 3.75rem; min-height: 2.75rem; }
  .how-steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .how-steps li:not(:last-child)::after { top: auto; right: auto; left: 0.5rem; bottom: calc(-1 * var(--space-6) + 0.15rem); transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .service-cards--text { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
  .service-cards--text .service-card__body { padding: var(--space-2) var(--space-3); }
  .service-cards--text .service-card__body > span { font-size: var(--fs-xs); }
}

/* Legal pages: plain reading width, a quieter date line */
.legal h2 { margin-top: var(--space-7); font-size: var(--fs-h3); }
.legal h2:first-child { margin-top: 0; }
.legal__updated { margin-top: var(--space-6); font-size: var(--fs-sm); color: var(--ink-faint); }

/* Guarantee seal (partials/guarantee-seal.html): a rosette badge */
.seal { display: block; width: 100%; height: auto; overflow: visible; }
.seal__edge { fill: var(--green-500); }
.seal__face { fill: var(--green-900); }
.seal__ring { fill: none; stroke: var(--green-400); stroke-width: 1.5; stroke-dasharray: 2 3; }
.seal__num { font-size: 34px; font-weight: 700; fill: #fff; }
.seal__unit { font-size: 10px; font-weight: 600; letter-spacing: 2px; fill: var(--green-400); }
.seal__ribbon { fill: var(--green-500); }
.seal__word { font-size: 9.5px; font-weight: 700; letter-spacing: 1.2px; fill: var(--green-950); }
.guarantee__seal--badge { width: 136px; height: auto; border-radius: 0; background: none; overflow: visible; }
