/* ==========================================================================
   Essex Groundwork Contractors — site styles
   Design tokens, base styles, components
   ========================================================================== */

:root {
  /* Colour — pulled from the Groundwork Contractors Essex logo
     #0E5C32 = forest green from the "GROUNDWORK" text
     #F58220 = vivid orange from the digger / "CONTRACTORS ESSEX" */
  --c-navy: #0E5C32;        /* deep forest green — header & dark sections */
  --c-navy-dark: #08401F;   /* darker green for footer / hovers */
  --c-yellow: #F58220;      /* construction orange — CTAs & accents */
  --c-yellow-dark: #D26817; /* darker orange for hovers */
  --c-ink: #1A1A1A;
  --c-ink-soft: #3A3F45;
  --c-grey-700: #585F66;
  --c-grey-500: #8A9099;
  --c-grey-300: #C9CDD2;
  --c-grey-200: #E2E5E9;
  --c-grey-100: #F0F2F4;
  --c-bg: #F7F7F4;
  --c-white: #FFFFFF;

  /* Type */
  --f-display: "Archivo Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-base: clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  --fs-lg: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
  --fs-xl: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-2xl: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  --fs-3xl: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  --fs-display: clamp(3rem, 2.4rem + 3vw, 5.5rem);

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-y: clamp(3rem, 6vw, 6rem);
  --radius: 6px;
  --radius-lg: 14px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(8,27,46,0.06), 0 2px 6px rgba(8,27,46,0.05);
  --shadow-md: 0 4px 14px rgba(8,27,46,0.08), 0 8px 28px rgba(8,27,46,0.06);
  --shadow-lg: 0 12px 32px rgba(8,27,46,0.12), 0 24px 64px rgba(8,27,46,0.08);
  --tx: 200ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Reset */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
picture { display: contents; } /* <picture> wrapper is invisible to layout — existing img rules still apply */
a { color: inherit; text-decoration-color: var(--c-yellow); text-underline-offset: 3px; }
a:hover { color: var(--c-navy); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { padding: 0; list-style: none; }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--c-navy);
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-yellow-dark);
  margin-bottom: 0.75rem;
}
.lead { font-size: var(--fs-lg); color: var(--c-ink-soft); max-width: 60ch; }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--dark { background: var(--c-navy); color: #E6ECF2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--ink { background: var(--c-ink); color: #E6ECF2; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--cream { background: #EFF3EE; color: var(--c-ink); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--tx), background var(--tx), box-shadow var(--tx);
  white-space: nowrap;
}
.btn--primary { background: var(--c-yellow); color: var(--c-navy); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--c-yellow-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--c-navy); }
.btn--ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn--ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-1px); }
.btn--phone { background: var(--c-white); color: var(--c-navy); }
.btn--phone:hover { background: var(--c-grey-100); color: var(--c-navy); }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.125rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--c-navy);
  border-bottom: 3px solid var(--c-yellow);
  box-shadow: 0 1px 0 rgba(14,92,50,0.08), 0 8px 24px -16px rgba(14,92,50,0.18);
}
.site-header .container { max-width: 1340px; }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: 0.65rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 0;
}
.logo img,
.logo .logo-mark {
  height: 56px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .logo img,
  .logo .logo-mark { height: 44px; max-width: 200px; }
}

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 0.25rem; }
.nav a {
  display: block;
  padding: 0.55rem 0.85rem;
  color: var(--c-ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: background var(--tx), color var(--tx);
}
.nav a:hover { color: var(--c-navy); background: var(--c-grey-100); }
.nav a[aria-current="page"] { color: var(--c-yellow); background: rgba(245,130,32,0.08); }

.nav .has-submenu { position: relative; }
.nav .has-submenu > a .caret {
  font-size: 0.7em;
  margin-left: 0.1em;
  transition: transform var(--tx);
  display: inline-block;
}
.nav .has-submenu:hover > a .caret,
.nav .has-submenu > a[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--c-grey-200);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px -10px rgba(14,92,50,0.22);
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity var(--tx), transform var(--tx), visibility var(--tx);
  z-index: 50;
}
.nav .has-submenu:hover > .submenu,
.nav .has-submenu:focus-within > .submenu,
.nav .has-submenu > a[aria-expanded="true"] + .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav .submenu a {
  display: block;
  padding: 0.6rem 0.85rem;
  white-space: nowrap;
  font-size: 0.92rem;
}

.header-cta {
  display: flex;
  gap: 0.5rem;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  background: var(--c-white);
  border: 1.5px solid var(--c-navy);
  border-radius: var(--radius);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--tx), color var(--tx);
}
.header-phone:hover { background: var(--c-navy); color: #fff; }
.header-phone:hover::before { color: var(--c-yellow); }
@media (max-width: 1280px) { .header-phone { display: none; } }
.header-phone:hover { background: rgba(255,255,255,0.14); color: #fff; }
.header-phone::before { content: "☎"; color: var(--c-yellow); transition: color var(--tx); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  color: var(--c-navy);
  font-size: 1.5rem;
  border-radius: var(--radius);
}
.nav-toggle:hover { background: var(--c-grey-100); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin: 0;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease;
    border-top: 1px solid var(--c-grey-200);
    box-shadow: 0 12px 24px -12px rgba(14,92,50,0.18);
  }
  .nav[data-open="true"] { max-height: 800px; overflow-y: auto; }
  .nav ul { flex-direction: column; padding: 0.5rem; gap: 0; }
  .nav a { padding: 0.85rem 1rem; }
  .header-cta .btn { display: none; }

  .nav .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--c-grey-200);
    border-radius: 0;
    margin: 0 0 0.25rem 0.85rem;
    padding: 0.15rem 0;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease;
  }
  .nav .has-submenu > a[aria-expanded="true"] + .submenu { max-height: 600px; }
  .nav .submenu a { padding: 0.6rem 0.85rem; font-size: 0.9rem; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--c-navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(8,27,46,0.92) 0%, rgba(8,27,46,0.7) 60%, rgba(8,27,46,0.45) 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-block: clamp(4rem, 8vw, 7rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; }
}
.hero h1 {
  color: #fff;
  font-size: var(--fs-display);
  margin-bottom: 1.25rem;
}
.hero h1 .accent { color: var(--c-yellow); }
.hero__lead { font-size: var(--fs-lg); color: rgba(255,255,255,0.88); margin-bottom: 2rem; max-width: 38ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__strap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.hero__strap span::before { content: "✓"; color: var(--c-yellow); margin-right: 0.4rem; font-weight: 900; }
.hero__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
}
.hero__card h3 { color: #fff; margin-bottom: 1rem; }
.hero__card ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 0.75rem;
}
.hero__card ul li::before { content: "▸"; color: var(--c-yellow); font-weight: 900; }
.hero__card ul li:last-child { border-bottom: 0; }

/* Trust bar */
.trust {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-grey-200);
  padding-block: 1.5rem;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}
.trust__item { display: flex; flex-direction: column; gap: 0.15rem; }
.trust__num { font-family: var(--f-display); font-size: 1.75rem; color: var(--c-navy); }
.trust__label { font-size: 0.85rem; color: var(--c-grey-700); font-weight: 600; }
.trust__badges {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}
.trust__badges img { max-height: 56px; width: auto; }

/* Service grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-grey-200);
  text-decoration: none;
  color: inherit;
  transition: transform var(--tx), box-shadow var(--tx), border-color var(--tx);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-navy);
  color: inherit;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--c-navy);
  color: var(--c-yellow);
  border-radius: var(--radius);
  font-size: 1.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.service-card__icon svg { display: block; width: 30px; height: 30px; }
.service-card:hover .service-card__icon { background: var(--c-yellow); color: var(--c-navy); transform: rotate(-3deg); }
.service-card__icon--placeholder {
  font-weight: 900;
}
.service-card h3 { font-size: 1.35rem; }
.service-card__short { color: var(--c-grey-700); flex: 1; }
.service-card__more { font-weight: 700; color: var(--c-navy); font-size: 0.95rem; }
.service-card__more::after { content: "→"; margin-left: 0.4rem; transition: transform var(--tx); display: inline-block; }
.service-card:hover .service-card__more::after { transform: translateX(4px); }

/* Two-column feature */
.two-col {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col--wide-text { grid-template-columns: 1.1fr 1fr; }
}
.two-col__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.two-col h2 { margin-bottom: 1rem; }

/* Tick list */
.ticks { display: grid; gap: 0.6rem; }
.ticks li {
  padding-left: 2rem;
  position: relative;
  font-size: 1.0625rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--c-yellow);
  background-image: linear-gradient(45deg, transparent 50%, var(--c-navy) 50%);
  background-size: 0.55rem 0.55rem;
  background-repeat: no-repeat;
  background-position: center;
}
.ticks--inverse li::before { background: rgba(255,255,255,0.15); }

/* Process steps */
.steps {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.5rem 1.5rem;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border-top: 4px solid var(--c-yellow);
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--f-display);
  font-size: 2.5rem;
  color: var(--c-yellow);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step h4 { color: var(--c-navy); margin-bottom: 0.5rem; }
.step p { color: var(--c-grey-700); font-size: 0.95rem; }

/* Areas grid */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.area-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  background: var(--c-white);
  border: 1px solid var(--c-grey-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-navy);
  font-weight: 600;
  transition: all var(--tx);
}
.area-chip:hover {
  border-color: var(--c-navy);
  background: var(--c-navy);
  transform: translateY(-2px);
  color: #fff;
}
.area-chip small { color: var(--c-grey-500); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; }
.area-chip:hover small { color: rgba(255,255,255,0.7); }

/* FAQs */
.faqs { display: grid; gap: 0.75rem; max-width: 800px; }
.faq {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-grey-200);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--c-navy);
  font-size: 1.0625rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--c-yellow-dark);
  transition: transform var(--tx);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.5rem 1.25rem; color: var(--c-grey-700); }

/* CTA strip */
.cta-strip {
  background: var(--c-navy);
  color: #fff;
  padding-block: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(245,130,32,0.18), transparent 60%);
  pointer-events: none;
}
.cta-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.cta-strip h2 { color: #fff; max-width: 24ch; margin: 0; }
.cta-strip__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.cta-strip .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.45); }
.cta-strip .btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* Service picker — "Which service do I need?" */
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.picker-card {
  background: #fff;
  border: 1px solid rgba(14,92,50,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.picker-card[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--c-yellow);
}
.picker-card summary {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--c-navy);
  font-size: 1rem;
  line-height: 1.3;
  user-select: none;
}
.picker-card summary::-webkit-details-marker { display: none; }
.picker-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(245,130,32,0.10);
  color: var(--c-yellow-dark);
  transition: background 0.2s ease, color 0.2s ease;
}
.picker-card__icon svg { display: block; width: 22px; height: 22px; }
.picker-card[open] .picker-card__icon { background: var(--c-yellow); color: #fff; }
.picker-card__title { flex: 1; }
.picker-card__chevron {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--c-yellow);
  transition: transform 0.2s ease;
  line-height: 1;
}
.picker-card[open] .picker-card__chevron {
  transform: rotate(45deg);
}
.picker-card__body {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid rgba(14,92,50,0.08);
  color: var(--c-grey-700);
  line-height: 1.6;
}
.picker-card__body > * + * { margin-top: 0.85rem; }
.picker-card__body strong { color: var(--c-navy); }
.picker-card__body strong a { color: var(--c-navy); text-decoration: underline; text-decoration-color: var(--c-yellow); }
.picker-card__related {
  list-style: disc;
  padding-left: 1.25rem;
}
.picker-card__related li { margin-bottom: 0.4rem; }
.picker-card__related a { color: var(--c-navy); font-weight: 600; }
.picker-card__related a:hover { color: var(--c-yellow-dark); }
.picker-card__note {
  font-size: 0.9rem;
  color: var(--c-grey-700);
  padding: 0.75rem 1rem;
  background: rgba(245,130,32,0.06);
  border-left: 3px solid var(--c-yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1rem !important;
}

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 200;
  background: #fff;
  color: var(--c-ink);
  border: 1px solid rgba(14,92,50,0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin-inline: auto;
  animation: cookieBannerSlideIn 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
@media (min-width: 720px) {
  .cookie-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.cookie-banner__title { color: var(--c-navy); margin: 0 0 0.5rem; font-size: 1.05rem; }
.cookie-banner__body { margin: 0; color: var(--c-grey-700); font-size: 0.9rem; line-height: 1.5; }
.cookie-banner__body a { color: var(--c-navy); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner__actions .btn { padding: 0.65rem 1.1rem; font-size: 0.9rem; }
.cookie-banner__actions .btn--ghost { color: var(--c-navy); border-color: var(--c-navy); }
@keyframes cookieBannerSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* Push the float-actions up when the banner is visible so they don't overlap */
.cookie-banner:not([hidden]) ~ .float-actions { bottom: 9rem; }
@media (min-width: 720px) { .cookie-banner:not([hidden]) ~ .float-actions { bottom: 7rem; } }

/* Blog */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card__link { text-decoration: none; color: inherit; display: block; }
.post-card__title { color: var(--c-navy); margin: 0 0 0.75rem; font-size: 1.35rem; line-height: 1.25; }
.post-card__excerpt { color: var(--c-grey-700); margin: 0 0 1rem; font-size: 0.95rem; line-height: 1.5; }
.post-card__cta { color: var(--c-yellow, #f58220); font-weight: 700; font-size: 0.9rem; }
.post-header { text-align: center; margin-bottom: 2rem; }
.post-header h1 { max-width: 22ch; margin-inline: auto; }
.post-meta { color: var(--c-grey-700); font-size: 0.9rem; margin-top: 0.75rem; }
.post-body { font-size: 1.05rem; line-height: 1.7; color: var(--c-grey-900, #1a1d1c); }
.post-body p { margin: 0 0 1.25rem; }
.post-body h2 { color: var(--c-navy); margin: 2.5rem 0 1rem; font-size: 1.6rem; }
.post-body h3 { color: var(--c-navy); margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.post-body ul, .post-body ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.post-body li { margin-bottom: 0.5rem; }
.post-body a { color: var(--c-yellow, #f58220); text-decoration: underline; font-weight: 600; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-body th, .post-body td { padding: 0.75rem; border-bottom: 1px solid rgba(0,0,0,0.1); text-align: left; }
.post-body th { background: var(--c-grey-100, #f4f5f3); font-weight: 700; }

/* Internal link strip */
.link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.link-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  text-decoration: none;
  color: var(--c-navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.link-chip small { color: var(--c-grey-700); font-weight: 500; font-size: 0.78rem; }
.link-chip:hover { background: var(--c-yellow); color: var(--c-navy); transform: translateY(-1px); }
.link-strip--small .link-chip { padding: 0.35rem 0.75rem; font-size: 0.82rem; text-transform: capitalize; }

/* Process steps (per-service) */
.process-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: process;
}
.process-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--c-yellow, #f58220);
  color: var(--c-navy, #0E2A47);
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.process-step__title {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.process-step__body {
  color: rgba(255,255,255,0.78);
  margin: 0;
  line-height: 1.55;
  font-size: 0.95rem;
}

/* CTA strip with inline contact form */
.cta-strip__inner--form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.cta-strip__pitch { display: flex; flex-direction: column; gap: 1.25rem; }
.cta-strip__lead { color: rgba(255,255,255,0.85); margin: 0; line-height: 1.55; }
.cta-strip__form-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.cta-strip__form-panel .form { max-width: none; gap: 0.9rem; }
.cta-strip__form-panel .form label { font-size: 0.85rem; margin-bottom: 0.25rem; }
.cta-strip__form-panel .form input,
.cta-strip__form-panel .form textarea,
.cta-strip__form-panel .form select { padding: 0.65rem 0.8rem; }
.cta-strip__form-panel .form textarea { min-height: 90px; }
.cta-strip__form-panel .form__note { margin: 0; }

/* Trust line under form buttons */
.form__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--c-grey-700);
}
.form__trust li { display: inline-flex; align-items: center; gap: 0.35rem; }
.form__trust li::before {
  content: "✓";
  color: var(--c-navy);
  font-weight: 800;
}
@media (max-width: 900px) {
  .cta-strip__inner--form { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform var(--tx);
}
.gallery-grid a { display: block; overflow: hidden; border-radius: var(--radius); }
.gallery-grid a:hover img { transform: scale(1.05); }

/* Form */
.form { display: grid; gap: 1.25rem; max-width: 640px; }
.form label { display: block; font-weight: 600; color: var(--c-navy); margin-bottom: 0.4rem; font-size: 0.95rem; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  border: 1px solid var(--c-grey-300);
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-ink);
  transition: border-color var(--tx), box-shadow var(--tx);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 0;
  border-color: var(--c-navy);
  box-shadow: 0 0 0 3px rgba(14,42,71,0.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.form__hp { position: absolute; left: -9999px; opacity: 0; }
.form__note { font-size: 0.85rem; color: var(--c-grey-700); }

/* Footer */
.site-footer {
  background: var(--c-navy-dark);
  color: #B8C2CC;
  padding-block: clamp(3rem, 5vw, 4rem) 1.5rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--f-body);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer a { color: #B8C2CC; text-decoration: none; }
.site-footer a:hover { color: var(--c-yellow); }
.site-footer ul li { padding-block: 0.25rem; }
.site-footer p { margin-bottom: 0.6rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #6E7A86;
}
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-social a:hover { background: var(--c-yellow); color: var(--c-navy-dark); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--c-grey-700);
  padding-block: 1rem;
}
.breadcrumb a { color: var(--c-grey-700); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-navy); text-decoration: underline; }
.breadcrumb span { color: var(--c-grey-500); margin-inline: 0.5rem; }

/* Floating CTAs — phone + WhatsApp, visible on all viewports */
.float-actions {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}
.float-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-size: 0.95rem;
}
.float-cta:hover { transform: translateY(-2px); }
.float-cta--phone { background: var(--c-yellow); color: var(--c-navy); }
.float-cta--whatsapp { background: #25D366; color: #fff; }
.float-cta--whatsapp svg { display: block; }
@media (max-width: 480px) {
  .float-cta__num { display: none; }
  .float-cta--phone { padding: 0.75rem 0.95rem; font-size: 1.05rem; }
}

/* Utility */
.flow > * + * { margin-top: 1rem; }
.flow-lg > * + * { margin-top: 1.5rem; }
.text-center { text-align: center; }
.muted { color: var(--c-grey-700); }
.mt-0 { margin-top: 0; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head .lead { margin-inline: auto; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--c-white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--c-yellow);
  position: relative;
}
.testimonial p { font-size: 1.05rem; color: var(--c-ink); margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-weight: 700; color: var(--c-navy); font-size: 0.9rem; }
.testimonial cite span { display: block; color: var(--c-grey-700); font-weight: 500; font-size: 0.85rem; }

/* Skip link / a11y */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.visually-hidden:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  padding: 0.75rem 1.25rem;
  background: var(--c-yellow);
  color: var(--c-navy);
  font-weight: 800;
  border-radius: var(--radius);
  z-index: 200;
  box-shadow: var(--shadow-lg);
}

/* Print */
@media print {
  .site-header, .site-footer, .float-actions, .cta-strip { display: none; }
}

/* ==========================================================================
   Local landing page components
   Added for the service × town pages: answer box, key facts, callouts,
   regulatory grid, local note and sources block.
   ========================================================================== */

/* Tighter section rhythm for the supporting blocks between the big sections */
.section--tight {
  padding-block: clamp(2rem, 4vw, 3.25rem);
}

/* --------------------------------------------------------------------------
   Answer box — the direct answer under the H1. Marked speakable in schema.
   Kept visually part of the hero lead, just given a little more presence.
   -------------------------------------------------------------------------- */
.answer-box {
  border-left: 3px solid var(--c-yellow);
  padding-left: clamp(0.875rem, 2vw, 1.25rem);
}

/* --------------------------------------------------------------------------
   Key facts — scannable summary table. Deliberately simple markup (dl) so it
   extracts cleanly for answer engines as well as reading well for a human.
   -------------------------------------------------------------------------- */
.keyfacts {
  background: var(--c-white);
  border: 1px solid var(--c-grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.keyfacts__title {
  font-size: var(--fs-xl);
  margin-bottom: 1.25rem;
}

.keyfacts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin: 0;
}

.keyfacts__row {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--c-grey-200);
}

/* On a multi-column layout give each cell a left rule instead of a heavy grid */
@media (min-width: 560px) {
  .keyfacts__row + .keyfacts__row { border-left: 1px solid var(--c-grey-200); }
  .keyfacts__grid > .keyfacts__row:first-child { border-left: 0; }
}

.keyfacts__row dt {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-grey-700);
  margin-bottom: 0.3rem;
}

.keyfacts__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Callout — the "worth knowing before you start" local warning.
   -------------------------------------------------------------------------- */
.callout {
  margin-top: 1.75rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: var(--c-grey-100);
  border-left: 4px solid var(--c-yellow);
}

.callout--warn { background: #FEF6EE; }

.callout__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
  color: var(--c-navy-dark);
}

.callout p { margin: 0; color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   Local note — our editorial take on working in this town.
   -------------------------------------------------------------------------- */
.local-note {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--c-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-grey-200);
  box-shadow: var(--shadow-sm);
}

.local-note p {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--c-ink);
  margin-bottom: 0.85rem;
}

.local-note cite {
  display: block;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-yellow-dark);
}

/* --------------------------------------------------------------------------
   Regulatory grid — who signs the work off locally.
   -------------------------------------------------------------------------- */
.reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.reg-card {
  background: var(--c-white);
  border: 1px solid var(--c-grey-200);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}

.reg-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-grey-700);
  margin-bottom: 0.45rem;
}

.reg-card p {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   Sources — transparency about where the ground data comes from, and its limits.
   -------------------------------------------------------------------------- */
.sources {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border: 1px dashed var(--c-grey-300);
  border-radius: var(--radius);
  background: transparent;
}

.sources__title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-grey-700);
  margin-bottom: 0.6rem;
}

.sources p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--c-grey-700);
}

.sources p + p { margin-top: 0.6rem; }

.sources__meta {
  font-size: 0.82rem !important;
  color: var(--c-grey-500) !important;
}

/* Open FAQ styling parity — the first FAQ is now open by default */
.faq[open] > summary { color: var(--c-navy-dark); }

/* --------------------------------------------------------------------------
   Local constraints — the town's documented complications, listed plainly.
   -------------------------------------------------------------------------- */
.constraints {
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 1.85rem);
  background: var(--c-white);
  border: 1px solid var(--c-grey-200);
  border-left: 4px solid var(--c-navy);
  border-radius: var(--radius);
}

.constraints__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.9rem;
  color: var(--c-navy-dark);
}

.constraints__list {
  margin: 0 0 0.9rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.constraints__list li {
  line-height: 1.55;
  color: var(--c-ink-soft);
}

.constraints__list li::marker { color: var(--c-yellow); }

.constraints__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-grey-700);
}
