/*
Theme Name: H2Ogeo
Theme URI: https://h2ogeo.co.uk
Author: Stevie Morris
Author URI: https://steviemorris.com
Description: Custom WordPress theme for H2Ogeo Ltd — independent hydrogeology and environmental consultancy, Horsham, West Sussex. Built from the approved "Basic" design direction.
Version: 1.10.4
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary — prepared exclusively for H2Ogeo Ltd
Text Domain: h2ogeo
*/

/* ---------- Design tokens ----------
 * Palette derived from the brand logo pack (David, 14 Aug 2026):
 *   Organic Green #0d4847 — primary
 *   Sandstone     #e9eadd — secondary
 * The green ramp holds the logo's hue (179°) and steps lightness, so every
 * shade is the brand colour rather than a green that merely sits near it.
 * --green-800 IS the logo colour; use it wherever the brand should read exact.
 * Contrast ratios below are against white and were measured, not estimated.
 */
:root{
  --green-900:#072e2d;          /* 14.61:1 */
  --green-800:#0d4847;          /* 10.32:1 — brand Organic Green, exact */
  --green-700:#155e5d;          /*  7.52:1 */
  --green-600:#207473;          /*  5.52:1 — safe for body-size text */
  --green-500:#2e8a88;          /*  4.11:1 — large text only */
  --green-400:#48a8a6;          /*  2.83:1 — non-text only */
  --green-200:#a5cfce;
  --green-50:#f0f7f7;
  --accent:#2e8a88;
  --sand:#f8f8f4;               /* light tint of Sandstone, for large fills */
  --stone:#e9eadd;              /* brand Sandstone — 1.22:1, decorative fills only, never borders */
  --border:#6c8989;             /* 3.77:1 on white — meets WCAG 1.4.11 for UI boundaries */
  --ink:#12201f;                /* 16.77:1 */
  --muted:#4a5a58;              /*  7.26:1 */
  --white:#ffffff;
  --shadow-sm:0 1px 3px rgba(7,46,45,.08),0 1px 2px rgba(7,46,45,.06);
  --shadow-md:0 10px 30px rgba(7,46,45,.10);
  --shadow-lg:0 24px 60px rgba(7,46,45,.16);
  --radius:14px;
  --radius-sm:10px;
  --maxw:1180px;
  --sans:"Poppins",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
/* scroll-padding keeps in-page anchor targets clear of the 75px sticky header. */
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--white);
  font-weight:300;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
/* Body text is Poppins 300, so 'bolder' would only reach 400: pin emphasis to 600. */
b,strong{font-weight:600}
img{max-width:100%;height:auto;display:block}
a{color:var(--green-700);text-decoration:none}
h1,h2,h3,h4{line-height:1.2;margin:0 0 .5em;font-weight:500;letter-spacing:-.01em}
h1{font-size:clamp(2rem,4.4vw,3rem)}
h2{font-size:clamp(1.7rem,3.4vw,2.5rem)}
h3{font-size:1.2rem}
p{margin:0 0 1rem}

/* Accessibility: visible keyboard focus and a skip link.
   A single green ring measured only 1.36:1 against the primary button and was
   effectively invisible. A two-tone ring stays visible on light, dark and
   photographic backgrounds alike. */
:focus-visible{
  outline:3px solid #fff;
  outline-offset:2px;
  box-shadow:0 0 0 6px var(--green-900);
  border-radius:3px;
}
/* On light backgrounds invert it, so the ring never disappears into white. */
.prose :focus-visible,
.h2o-form :focus-visible,
.side-card :focus-visible,
.faq-item :focus-visible{
  outline-color:var(--green-900);
  box-shadow:0 0 0 6px rgba(255,255,255,.9);
}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--green-800);color:#fff;padding:12px 20px;border-radius:0 0 8px 0;font-weight:600;
}
.skip-link:focus{left:0}
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;
  overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal;
}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 24px}
.section{padding:88px 0}
.section-sm{padding:64px 0}
.eyebrow{
  display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--green-600);margin-bottom:14px;
}
.lead{font-size:1.12rem;color:var(--muted);max-width:62ch}
.center{text-align:center;margin-inline:auto}
.bg-sand{background:var(--sand)}
.bg-green-50{background:var(--green-50)}

/* ---------- Buttons ---------- */
.btn{
  font-family:inherit;font-size:1rem;font-weight:600;cursor:pointer;
  display:inline-flex;align-items:center;gap:.55em;
  padding:14px 26px;border-radius:999px;border:1.5px solid transparent;
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease,color .15s ease;
  text-decoration:none;line-height:1;
}
.btn svg{width:18px;height:18px;flex:none}
.btn-primary{background:var(--green-600);color:#fff;box-shadow:var(--shadow-sm)}
.btn-primary:hover{background:var(--green-700);transform:translateY(-2px);box-shadow:var(--shadow-md)}
.btn-outline{background:transparent;color:var(--green-700);border-color:var(--green-700)}
.btn-outline:hover{border-color:var(--green-600);background:var(--green-50)}
.btn-ghost-light{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.5)}
.btn-ghost-light:hover{background:rgba(255,255,255,.2)}
.btn-white{background:#fff;color:var(--green-800)}
.btn-white:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid rgba(7,46,45,.08);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;height:74px;gap:24px}
.brand{display:flex;align-items:center;gap:11px;font-weight:800;font-size:1.35rem;letter-spacing:-.02em;color:var(--green-800)}
/* Compact wordmark, sized by height so it never grows into the nav. */
.brand .brand-logo{height:56px;width:auto;max-width:none}
/* Caps a CLIENT-UPLOADED custom logo in the header, whose dimensions we can't
   predict. `:not(.brand-logo)` keeps it off the theme's own mark, which is
   already sized deliberately above — without it this rule silently clamped
   that mark too. Unscoped, it also reached into the footer. */
.site-header .brand img:not(.brand-logo){max-height:44px;width:auto}
@media (max-width:900px){.brand .brand-logo{height:44px}}
.nav{display:flex;align-items:center;gap:30px}
.nav ul{list-style:none;display:flex;align-items:center;gap:30px;margin:0;padding:0}
.nav li{position:relative}
.nav a{color:var(--ink);font-weight:500;font-size:.97rem;position:relative;padding:4px 0;display:inline-block}
.nav a:hover{color:var(--green-700)}
.nav > ul > li > a::after{content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;background:var(--green-500);transition:width .2s ease}
.nav > ul > li > a:hover::after,
.nav > ul > li.current-menu-item > a::after,
.nav > ul > li.current-page-ancestor > a::after{width:100%}

/* Dropdown for the Services parent item. */
.nav ul ul{
  display:block;position:absolute;top:100%;left:-18px;min-width:290px;
  background:#fff;border:1px solid rgba(7,46,45,.09);border-radius:var(--radius-sm);
  box-shadow:var(--shadow-md);padding:10px;gap:0;flex-direction:column;align-items:stretch;
  opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
/* Keyboard access: `visibility:hidden` removes descendants from the focus
   order, so `:focus-within` can never fire on its own — the submenu links were
   unreachable by keyboard entirely. Focusing the PARENT link reveals the menu
   first; once visible, its children are focusable and `:focus-within` holds it
   open as the user tabs through. */
.nav li:hover > ul,
.nav li > a:focus ~ ul,
.nav li > a:focus-visible ~ ul,
.nav li:focus-within > ul,
.nav li > ul.is-open{opacity:1;visibility:visible;transform:translateY(0)}
.nav ul ul li{width:100%}
.nav ul ul a{display:block;padding:9px 12px;border-radius:8px;font-size:.93rem;line-height:1.4}
.nav ul ul a:hover{background:var(--green-50);color:var(--green-700)}

.header-cta{display:flex;align-items:center;gap:18px}
.header-phone{display:inline-flex;align-items:center;gap:7px;font-weight:600;color:var(--green-800);white-space:nowrap}
.header-phone svg{width:17px;height:17px;color:var(--green-500)}
.nav-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer;color:var(--green-800);font-family:inherit}
.nav-toggle svg{width:28px;height:28px}

/* ---------- Hero ---------- */
.hero{position:relative;color:#fff;overflow:hidden}
.hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,40,29,.58) 0%,rgba(11,40,29,.42) 45%,rgba(11,40,29,.68) 100%),
    var(--hero-image,url("assets/images/hero-hills.jpg")) center/cover no-repeat;
}
.hero-inner{position:relative;padding:112px 0 96px;max-width:760px}
.hero .eyebrow{color:var(--green-200)}
.hero h1{font-size:clamp(2.2rem,5.2vw,3.7rem);color:#fff;margin-bottom:.35em}
.hero p{font-size:1.2rem;color:rgba(255,255,255,.96);max-width:56ch;margin-bottom:2rem;text-shadow:0 1px 3px rgba(11,40,29,.65),0 0 14px rgba(11,40,29,.5)}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:38px}
.hero-trust{
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding-top:26px;border-top:1px solid rgba(255,255,255,.22);
  font-size:.92rem;color:rgba(255,255,255,.85);max-width:56ch;
}
.hero-trust svg{width:20px;height:20px;color:var(--green-200);flex:none}

/* Compact hero used on interior pages. */
.page-hero{position:relative;color:#fff;overflow:hidden}
.page-hero::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(11,40,29,.80),rgba(11,40,29,.88)),
    var(--hero-image,url("assets/images/hero-hills.jpg")) center/cover no-repeat;
}
.page-hero .container{position:relative;padding-top:74px;padding-bottom:74px}
.page-hero h1{color:#fff;margin-bottom:.3em;max-width:22ch}
.page-hero p{color:rgba(255,255,255,.88);font-size:1.12rem;max-width:60ch;margin:0}
.page-hero .eyebrow{color:var(--green-200)}

/* Breadcrumbs */
.breadcrumbs{font-size:.86rem;color:rgba(255,255,255,.7);margin-bottom:16px}
.breadcrumbs a{color:rgba(255,255,255,.9)}
.breadcrumbs a:hover{color:#fff;text-decoration:underline}
.breadcrumbs .sep{margin:0 8px;opacity:.5}

/* ---------- Logo / sector strip ---------- */
.stripbar{background:var(--green-900);color:#fff}
.stripbar .container{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px 34px;padding-top:22px;padding-bottom:22px;text-align:center}
.stripbar .label{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--green-200);font-weight:700}
.stripbar .items{display:flex;flex-wrap:wrap;gap:12px 30px;justify-content:center}
.stripbar .items span{font-weight:600;color:rgba(255,255,255,.9);font-size:.98rem}
.stripbar .items span::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green-400);margin-right:11px;vertical-align:middle}

/* ---------- Intro / value ---------- */
.intro-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.intro-media{position:relative}
.intro-media img{border-radius:var(--radius);box-shadow:var(--shadow-lg);width:100%;aspect-ratio:4/3;object-fit:cover}
.intro-media .badge{
  position:absolute;left:-18px;bottom:-18px;background:#fff;border-radius:var(--radius-sm);
  box-shadow:var(--shadow-md);padding:18px 22px;max-width:240px;border-left:4px solid var(--green-500);
}
.intro-media .badge strong{display:block;font-size:1rem;color:var(--green-800);line-height:1.3}
.intro-media .badge span{font-size:.85rem;color:var(--muted)}
.value-list{list-style:none;padding:0;margin:22px 0 0;display:grid;gap:18px}
.value-list li{display:flex;gap:14px;align-items:flex-start}
.value-list .ic{flex:none;width:40px;height:40px;border-radius:10px;background:var(--green-50);display:grid;place-items:center;color:var(--green-600)}
.value-list .ic svg{width:21px;height:21px}
.value-list b{display:block;font-size:1.02rem;margin-bottom:2px}
.value-list p{margin:0;font-size:.96rem;color:var(--muted)}

/* ---------- Services ---------- */
.services{background:var(--sand)}
.section-head{max-width:640px;margin-bottom:52px}
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.services-grid-3{grid-template-columns:repeat(3,1fr)}
.service-card{
  background:#fff;border:1px solid rgba(7,46,45,.07);border-radius:var(--radius);
  padding:28px 24px;box-shadow:var(--shadow-sm);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  display:flex;flex-direction:column;
}
.service-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md);border-color:var(--green-200)}
.service-card .ic{
  width:52px;height:52px;border-radius:12px;margin-bottom:18px;
  background:linear-gradient(135deg,var(--green-600),var(--green-400));
  display:grid;place-items:center;color:#fff;box-shadow:var(--shadow-sm);
}
.service-card .ic svg{width:26px;height:26px}
.service-card h3{font-size:1.08rem;margin-bottom:8px}
.service-card p{font-size:.93rem;color:var(--muted);margin:0}
.service-card .more{margin-top:16px;font-weight:600;color:var(--green-700);display:inline-flex;align-items:center;gap:6px;font-size:.93rem}
.service-card .more svg{width:15px;height:15px;transition:transform .2s ease}
.service-card:hover .more svg{transform:translateX(3px)}
.service-card a.stretched{position:absolute;inset:0}
.service-card{position:relative}

/* ---------- Sectors band ---------- */
.sectors{background:var(--green-800);color:#fff}
.sectors .section-head p{color:rgba(255,255,255,.82)}
.sectors h2{color:#fff}
.sector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.sector-item{
  display:flex;align-items:center;gap:14px;padding:20px 22px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:var(--radius-sm);
}
.sector-item svg{width:26px;height:26px;color:var(--green-200);flex:none}
.sector-item b{font-weight:600;font-size:1.02rem}

/* ---------- Process ---------- */
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px}
.process-step{position:relative;padding-top:8px}
.process-step .num{
  width:52px;height:52px;border-radius:50%;display:grid;place-items:center;
  font-weight:800;font-size:1.25rem;color:#fff;background:var(--green-600);margin-bottom:18px;box-shadow:var(--shadow-sm);
}
.process-step h3{font-size:1.08rem}
.process-step p{font-size:.94rem;color:var(--muted);margin:0}
.process-line{position:relative}
.process-line::before{
  content:"";position:absolute;top:34px;left:12%;right:12%;height:2px;
  background:repeating-linear-gradient(90deg,var(--green-200) 0 10px,transparent 10px 20px);z-index:0;
}
.process-grid .process-step{z-index:1}

/* ---------- Why us / credibility ---------- */
.why{background:var(--green-50)}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:14px}
.why-card{background:#fff;border-radius:var(--radius);padding:26px 24px;box-shadow:var(--shadow-sm);border-top:3px solid var(--green-500)}
.why-card .ic{width:44px;height:44px;border-radius:10px;background:var(--green-50);display:grid;place-items:center;color:var(--green-600);margin-bottom:16px}
.why-card .ic svg{width:23px;height:23px}
.why-card h3{font-size:1.06rem}
.why-card p{font-size:.94rem;color:var(--muted);margin:0}

/* Credentials row — real, verifiable memberships. */
.creds{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;justify-content:center;margin-top:38px}
.cred-item{
  display:flex;align-items:center;gap:11px;background:#fff;border:1px solid rgba(7,46,45,.09);
  border-radius:999px;padding:11px 22px;box-shadow:var(--shadow-sm);font-weight:600;font-size:.95rem;color:var(--green-800);
}
.cred-item svg{width:19px;height:19px;color:var(--green-500);flex:none}

/* ---------- Testimonial ---------- */
.quote{background:var(--green-900);color:#fff;position:relative;overflow:hidden}
.quote::before{content:"\201C";position:absolute;top:-40px;left:40px;font-size:22rem;line-height:1;color:rgba(255,255,255,.05);font-family:Georgia,serif}
.quote .container{position:relative;max-width:900px;text-align:center}
.quote blockquote{margin:0;font-size:clamp(1.4rem,3vw,2rem);font-weight:600;line-height:1.4;letter-spacing:-.01em}
.quote cite{display:block;margin-top:26px;font-style:normal;font-size:.98rem;color:var(--green-200);font-weight:600}
.quote cite span{display:block;color:rgba(255,255,255,.6);font-weight:400;font-size:.9rem}

/* ---------- Insights / blog cards ---------- */
.insights-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.insight-card{border:1px solid rgba(7,46,45,.09);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:var(--shadow-sm);transition:transform .18s ease,box-shadow .18s ease;display:flex;flex-direction:column}
.insight-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.insight-card .thumb{aspect-ratio:16/10;overflow:hidden;background:var(--green-50)}
.insight-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.insight-card:hover .thumb img{transform:scale(1.05)}
.insight-card .body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.insight-card .tag{font-size:.75rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green-600);margin-bottom:10px}
.insight-card h3{font-size:1.12rem;margin-bottom:8px}
.insight-card h3 a{color:inherit}
.insight-card h3 a:hover{color:var(--green-700)}
.insight-card p{font-size:.93rem;color:var(--muted);margin:0 0 16px}
.insight-card .more{margin-top:auto;font-weight:600;color:var(--green-700);display:inline-flex;align-items:center;gap:6px;font-size:.94rem}
.insight-card .more svg{width:16px;height:16px;transition:transform .2s ease}
.insight-card:hover .more svg{transform:translateX(3px)}

/* ---------- CTA band ---------- */
.cta-band{position:relative;color:#fff;text-align:center;overflow:hidden}
.cta-band::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,46,45,.86),rgba(7,46,45,.92)),var(--cta-image,url("assets/images/river.jpg")) center/cover no-repeat}
.cta-band .container{position:relative;max-width:720px}
.cta-band h2{color:#fff}
.cta-band p{color:rgba(255,255,255,.88);font-size:1.12rem;margin-bottom:30px}
.cta-band .hero-actions{justify-content:center;margin:0}

/* ---------- Article / rich text ---------- */
.article-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:56px;align-items:start}
.prose{max-width:72ch}
.prose h2{font-size:clamp(1.45rem,2.6vw,1.95rem);margin-top:2em}
.prose h3{font-size:1.22rem;margin-top:1.8em}
.prose h2:first-child,.prose h3:first-child{margin-top:0}
.prose p,.prose li{color:var(--muted);font-size:1.03rem}
.prose strong{color:var(--ink)}
.prose ul,.prose ol{padding-left:1.3em;margin:0 0 1.2rem}
.prose li{margin-bottom:.55rem}
.prose ul li::marker{color:var(--green-500)}
.prose blockquote{
  margin:1.8rem 0;padding:20px 26px;background:var(--green-50);
  border-left:4px solid var(--green-500);border-radius:0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p:last-child{margin-bottom:0}
.prose img{border-radius:var(--radius);margin:1.6rem 0;box-shadow:var(--shadow-md)}
.prose a{text-decoration:underline;text-underline-offset:3px}
.prose a:hover{color:var(--green-600)}
.prose table{width:100%;border-collapse:collapse;margin:1.6rem 0;font-size:.96rem}
.prose th,.prose td{border:1px solid var(--stone);padding:11px 14px;text-align:left}
.prose th{background:var(--green-50);font-weight:700;color:var(--green-800)}

/* Sidebar */
.sidebar{position:sticky;top:100px;display:grid;gap:22px}
.side-card{background:var(--sand);border-radius:var(--radius);padding:26px 24px;box-shadow:var(--shadow-sm)}
.side-card h3{font-size:1.06rem;margin-bottom:10px}
.side-card p{font-size:.94rem;color:var(--muted);margin-bottom:16px}
.side-card .btn{width:100%;justify-content:center}
.side-card ul{list-style:none;padding:0;margin:0;display:grid;gap:2px}
.side-card ul a{display:block;padding:9px 12px;border-radius:8px;font-size:.94rem;color:var(--ink);font-weight:500}
.side-card ul a:hover{background:#fff;color:var(--green-700)}
.side-card ul li.is-current a{background:var(--green-600);color:#fff}

/* Key facts box on service pages */
.keyfacts{background:#fff;border:1px solid rgba(7,46,45,.09);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm)}
.keyfacts h3{font-size:.82rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin-bottom:14px}
.keyfacts dl{margin:0;display:grid;gap:12px}
.keyfacts dt{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700}
.keyfacts dd{margin:0 0 0;font-weight:600;color:var(--ink);font-size:.98rem}

/* ---------- FAQ accordion ---------- */
.faq-list{display:grid;gap:14px;max-width:820px}
.faq-item{border:1px solid rgba(7,46,45,.1);border-radius:var(--radius-sm);background:#fff;overflow:hidden}
.faq-item summary{
  cursor:pointer;list-style:none;padding:20px 54px 20px 24px;font-weight:600;font-size:1.04rem;
  position:relative;color:var(--green-800);
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{
  content:"";position:absolute;right:24px;top:50%;width:11px;height:11px;
  border-right:2px solid var(--green-600);border-bottom:2px solid var(--green-600);
  transform:translateY(-70%) rotate(45deg);transition:transform .2s ease;
}
.faq-item[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq-item .faq-body{padding:0 24px 22px;color:var(--muted);font-size:.99rem}
.faq-item .faq-body p:last-child{margin-bottom:0}

/* ---------- Contact ---------- */
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:56px;align-items:start}
.contact-info .method{display:flex;gap:16px;align-items:flex-start;margin-bottom:24px}
.contact-info .ic{flex:none;width:46px;height:46px;border-radius:11px;background:var(--green-50);display:grid;place-items:center;color:var(--green-600)}
.contact-info .ic svg{width:22px;height:22px}
.contact-info .method b{display:block;font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:2px;font-weight:700}
.contact-info .method a,.contact-info .method span{font-size:1.08rem;font-weight:600;color:var(--ink);word-break:break-word}
.contact-info .method a:hover{color:var(--green-700)}
.h2o-form{background:var(--sand);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow-sm)}
.field{margin-bottom:18px}
.field label{display:block;font-size:.88rem;font-weight:600;margin-bottom:7px;color:var(--ink)}
.field .req{color:#b3261e}
.field input,.field select,.field textarea{
  width:100%;font-family:inherit;font-size:1rem;padding:13px 15px;border-radius:10px;
  border:1.5px solid var(--border);background:#fff;color:var(--ink);transition:border-color .15s ease,box-shadow .15s ease;
}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--green-500);box-shadow:0 0 0 3px rgba(47,136,99,.15)}
.field textarea{resize:vertical;min-height:120px}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{border-color:#b3261e}
.field .err{display:block;font-size:.84rem;color:#b3261e;margin-top:6px;font-weight:600}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.h2o-form .btn{width:100%;justify-content:center;margin-top:6px}
.form-note{font-size:.82rem;color:var(--muted);margin:14px 0 0;text-align:center}
/* Honeypot — hidden from humans, visible to naive bots. */
.hp-field{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.form-alert{padding:16px 20px;border-radius:var(--radius-sm);margin-bottom:22px;font-weight:600}
.form-alert-ok{background:#e7f4ec;border:1px solid var(--green-400);color:var(--green-800)}
.form-alert-err{background:#fdecea;border:1px solid #f0b4ae;color:#8c1d18}

/* ---------- Gravity Forms ----------
   GF ships its own opinionated styling. These rules bring it in line with the
   theme's tokens so the enquiry form doesn't look bolted on. */
.h2o-form--gf .gform_wrapper{margin:0}
.h2o-form--gf .gform_heading{display:none}
.h2o-form--gf .gform_fields{
  display:grid;grid-template-columns:repeat(2,1fr);gap:18px;
}
.h2o-form--gf .gfield{grid-column:span 2;min-width:0}
.h2o-form--gf .gfield--width-half{grid-column:span 1}
.h2o-form--gf .gfield_label{
  display:block;font-size:.88rem;font-weight:600;margin-bottom:7px;color:var(--ink);font-family:inherit;
}
.h2o-form--gf .gfield_required{color:#b3261e;margin-left:2px}
.h2o-form--gf input[type=text],
.h2o-form--gf input[type=email],
.h2o-form--gf input[type=tel],
.h2o-form--gf input[type=url],
.h2o-form--gf select,
.h2o-form--gf textarea{
  width:100%;font-family:inherit;font-size:1rem;padding:13px 15px;border-radius:10px;
  border:1.5px solid var(--border);background:#fff;color:var(--ink);
  transition:border-color .15s ease,box-shadow .15s ease;
}
.h2o-form--gf textarea{resize:vertical;min-height:120px}
.h2o-form--gf input:focus,
.h2o-form--gf select:focus,
.h2o-form--gf textarea:focus{
  outline:none;border-color:var(--green-500);box-shadow:0 0 0 3px rgba(47,136,99,.15);
}
.h2o-form--gf .gfield_description{font-size:.86rem;color:var(--muted);margin-top:6px}
.h2o-form--gf .gfield_consent_label,
.h2o-form--gf .gform-field-label--type-inline{font-weight:500;font-size:.95rem;color:var(--ink)}
.h2o-form--gf .ginput_container_consent{display:flex;gap:10px;align-items:flex-start}
.h2o-form--gf .ginput_container_consent input[type=checkbox]{
  width:20px;height:20px;flex:none;margin-top:2px;accent-color:var(--green-600);
}
.h2o-form--gf .gform_footer{margin:18px 0 0;padding:0}
.h2o-form--gf .gform_button{
  font-family:inherit;font-size:1rem;font-weight:600;cursor:pointer;width:100%;
  padding:15px 26px;border-radius:999px;border:1.5px solid transparent;
  background:var(--green-600);color:#fff;box-shadow:var(--shadow-sm);
  transition:transform .15s ease,box-shadow .15s ease,background .15s ease;
}
.h2o-form--gf .gform_button:hover{background:var(--green-700);transform:translateY(-2px);box-shadow:var(--shadow-md)}
/* Validation states */
.h2o-form--gf .gfield_error input,
.h2o-form--gf .gfield_error textarea,
.h2o-form--gf .gfield_error select{border-color:#b3261e}
.h2o-form--gf .gfield_validation_message,
.h2o-form--gf .validation_message{
  font-size:.86rem;color:#8c1d18;font-weight:600;margin-top:6px;
  background:none;border:0;padding:0;
}
.h2o-form--gf .gform_validation_errors{
  background:#fdecea;border:1px solid #f0b4ae;border-radius:var(--radius-sm);
  padding:16px 20px;margin-bottom:22px;box-shadow:none;
}
.h2o-form--gf .gform_validation_errors h2{
  font-size:1rem;color:#8c1d18;margin:0 0 6px;font-weight:700;
}
.h2o-form--gf .gform_confirmation_message{
  background:#e7f4ec;border:1px solid var(--green-400);color:var(--green-800);
  padding:20px 24px;border-radius:var(--radius-sm);font-weight:500;
}
.h2o-form--gf .gform_confirmation_message p:last-child{margin-bottom:0}
@media (max-width:760px){
  .h2o-form--gf .gform_fields{grid-template-columns:1fr}
  .h2o-form--gf .gfield,.h2o-form--gf .gfield--width-half{grid-column:span 1}
}

/* ---------- Pagination ---------- */
.pagination{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:52px}
.pagination .page-numbers{
  display:grid;place-items:center;min-width:44px;height:44px;padding:0 14px;border-radius:10px;
  border:1.5px solid var(--border);font-weight:600;color:var(--ink);background:#fff;
}
.pagination .page-numbers:hover{border-color:var(--green-500);color:var(--green-700)}
.pagination .page-numbers.current{background:var(--green-600);border-color:var(--green-600);color:#fff}

/* ---------- Footer ---------- */
.site-footer{background:var(--green-900);color:rgba(255,255,255,.75);padding:64px 0 30px;font-size:.94rem}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;margin-bottom:44px}
.site-footer .brand{color:#fff;margin-bottom:16px}
.site-footer .brand-logo{height:62px;width:auto;max-height:none}
.site-footer h4,.site-footer .footer-h{color:#fff;font-size:.82rem;letter-spacing:.1em;text-transform:uppercase;margin-bottom:16px}
.site-footer ul{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.site-footer a{color:rgba(255,255,255,.75)}
.site-footer a:hover{color:#fff}
.footer-about p{max-width:34ch;margin-bottom:18px}
.footer-byline{font-size:.9rem;color:rgba(255,255,255,.9);margin-bottom:18px}
.footer-byline .post-noms{color:rgba(255,255,255,.65);font-size:.82em;letter-spacing:.02em}
.site-footer .footer-badges{list-style:none;padding:0;margin:0 0 20px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.footer-badges li{background:#fff;border-radius:8px;padding:6px 10px;height:56px;display:flex;align-items:center}
.footer-badges img{height:44px;width:auto;max-width:120px;object-fit:contain}
.footer-social{display:flex;gap:12px}
.footer-social a{width:38px;height:38px;border-radius:9px;background:rgba(255,255,255,.09);display:grid;place-items:center}
.footer-social a:hover{background:var(--green-600)}
.footer-social svg{width:19px;height:19px;color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:24px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;font-size:.85rem;color:rgba(255,255,255,.55)}
.footer-bottom a{color:rgba(255,255,255,.72);text-decoration:underline}
.footer-legal{
  border-top:1px solid rgba(255,255,255,.12);padding-top:22px;margin:0 0 6px;
  font-size:.85rem;color:rgba(255,255,255,.62);
}
.footer-bottom .footer-legal-links a{margin:0}
.footer-legal-links{display:flex;flex-wrap:wrap;gap:6px 10px}

/* ---------- 404 ---------- */
.err-page{text-align:center;padding:120px 0}
.err-page .code{font-size:clamp(4rem,12vw,8rem);font-weight:800;color:var(--green-200);line-height:1;letter-spacing:-.04em}

/* ---------- Responsive ---------- */
@media (max-width:1000px){
  .services-grid,.services-grid-3{grid-template-columns:repeat(2,1fr)}
  .process-grid,.why-grid,.insights-grid,.sector-grid{grid-template-columns:repeat(2,1fr)}
  .process-line::before{display:none}
  .intro-grid,.contact-grid,.article-grid{grid-template-columns:1fr;gap:44px}
  .intro-media{max-width:520px}
  .sidebar{position:static}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px}
}
@media (max-width:760px){
  .nav,.header-phone{display:none}
  .nav-toggle{display:block}
  .nav.open{
    display:flex;flex-direction:column;align-items:flex-start;gap:6px;
    position:absolute;top:74px;left:0;right:0;background:#fff;
    padding:16px 24px 22px;border-bottom:1px solid rgba(7,46,45,.1);box-shadow:var(--shadow-md);
    max-height:calc(100vh - 74px);overflow-y:auto;
  }
  .nav.open ul{flex-direction:column;align-items:stretch;gap:0;width:100%}
  .nav.open a{width:100%;padding:11px 0;border-bottom:1px solid rgba(7,46,45,.06)}
  .nav.open > ul > li > a::after{display:none}
  /* David, 19 Oct 2026: on mobile the drawer shows "Services" as a single
     link to the Services page, not the full list of services underneath it. */
  .nav.open ul ul{display:none}
  .section{padding:64px 0}
  .hero-inner{padding:80px 0 68px}
  .services-grid,.services-grid-3,.process-grid,.why-grid,.insights-grid,.sector-grid,.form-row,.footer-grid{grid-template-columns:1fr}
  .intro-media .badge{position:static;margin-top:18px;max-width:none}
  .h2o-form{padding:24px}
}
@media (max-width:420px){
  .hero-actions .btn,.cta-band .btn{width:100%;justify-content:center}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

/* ---------- Print ---------- */
@media print{
  .site-header,.cta-band,.site-footer,.nav-toggle,.h2o-form{display:none}
  body{color:#000}
}

/* ---------- Related block on blog posts ----------
   Editorial internal links from each article to its matching service page and
   to topically similar posts. Before this, every service page had an identical
   inbound link count — i.e. nav chrome only, no contextual links at all. */
.post-related{
  margin:2.6rem 0 0;padding:26px 28px;background:var(--green-50);
  border-radius:var(--radius);border-left:4px solid var(--green-500);
}
.post-related h2{font-size:1.05rem;margin:0 0 12px;color:var(--green-800);text-transform:uppercase;letter-spacing:.08em}
.post-related ul{list-style:none;padding:0;margin:0;display:grid;gap:9px}
.post-related li{margin:0;color:var(--muted);font-size:.98rem}
.post-related li::before{content:"→";color:var(--green-500);margin-right:9px;font-weight:700}
.post-related a{font-weight:600;text-decoration:none}
.post-related a:hover{text-decoration:underline}

/* ---- Who we work with ---- */
.clients{background:#fff}
.clients .section-head{margin-bottom:32px}
/* Who we work with: client-type ticker (David, 19 Oct 2026). */
.ticker{overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent)}
.ticker-track{display:flex;width:max-content;animation:h2o-ticker 60s linear infinite}
.ticker:hover .ticker-track,.ticker:focus-within .ticker-track{animation-play-state:paused}
.ticker.is-paused .ticker-track{animation-play-state:paused}
.ticker-controls{display:flex;justify-content:flex-end;margin-bottom:10px}
.ticker-toggle{font:inherit;font-size:.85rem;font-weight:500;color:var(--green-800);background:#fff;border:1px solid var(--border);border-radius:999px;padding:6px 14px;cursor:pointer}
.ticker-toggle:hover{background:var(--green-50)}
.ticker-list{list-style:none;margin:0;padding:0;display:flex;flex-shrink:0}
.ticker-list li{display:flex;align-items:center;white-space:nowrap;padding:14px 22px;margin-right:14px;background:var(--sand);border:1px solid var(--stone);border-radius:999px;font-weight:500;color:var(--green-800)}
@keyframes h2o-ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .ticker{-webkit-mask-image:none;mask-image:none}
  .ticker-track{animation:none;width:auto;max-width:var(--maxw);margin:0 auto;padding:0 24px}
  .ticker-list{flex-wrap:wrap;gap:10px}
  .ticker-list li{margin:0}
  .ticker-list[aria-hidden="true"]{display:none}
  .ticker-controls{display:none}
}
/* Tiles match the grey the logos were supplied on; some (Teignbridge) have white lettering. */

/* ---- Accreditations & Certifications page (David, 19 Oct 2026) ---- */
.prose .accred-grid,.prose .cert-grid{list-style:none;padding:0;margin:0 0 40px;display:grid;gap:22px}
.prose .accred-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.prose .cert-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.prose .accred-grid li,.prose .cert-grid li{margin:0;padding:22px;border:1px solid var(--stone);border-radius:var(--radius);background:#fff;display:flex;flex-direction:column}
.prose .accred-grid li::before,.prose .cert-grid li::before{content:none;display:none}
.prose .accred-grid img{height:96px;width:auto;max-width:100%;object-fit:contain;margin:0 0 16px}
.prose .cert-grid img{width:100%;height:auto;border:1px solid var(--stone);border-radius:6px;margin:0 0 16px;box-shadow:var(--shadow-sm)}
.prose .accred-grid h3,.prose .cert-grid h3{font-size:1.08rem;margin:0 0 6px}
.prose .accred-grid p,.prose .cert-grid p{margin:0 0 8px;font-size:.95rem}
@media (max-width:900px){.prose .cert-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.prose .accred-grid,.prose .cert-grid{grid-template-columns:1fr}}
.page-hero h1.h1-long{font-size:clamp(1.55rem,3.2vw,2.3rem);line-height:1.3;max-width:34ch}
