@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

@font-face {
  font-family: 'Area Extended Black';
  src: url('../fonts/area_extended_black-webfont.woff2') format('woff2'),
       url('../fonts/area_extended_black-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Area Normal Regular';
  src: url('../fonts/area_normal_regular.woff2') format('woff2'),
       url('../fonts/area_normal_regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Area Normal Bold';
  src: url('../fonts/area_normal_bold.woff2') format('woff2'),
       url('../fonts/area_normal_bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --wes-bg: #ffffff;
  --wes-text: #0d2b47;
  --wes-muted: #4b5563;
  --wes-forest-green: #485242;
  --wes-soft: #f9fafb;
  --wes-soft-2: #f3f4f6;
  --wes-border: rgba(17, 24, 39, 0.12);
  --wes-brand: #946B52;
  --wes-card: #ffffff;
  --wes-radius: 1rem;
  --wes-container: 72rem;

}

html.wes-dark,
html.dark {
  --wes-bg: #0d2b47;
  --wes-text: #ffffff;
  --wes-muted: #e6f0f7;
  --wes-soft: #111827;
  --wes-soft-2: #1f2937;
  --wes-border: rgba(255, 255, 255, 0.14);
  --wes-brand: #BDD6EB;
  --wes-card: #111827;
  --wes-forest-green: #BDD6EB;
}

.highlight-text {
  color: var(--wes-brand);
  font-family: 'Area Normal Regular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 1rem;
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Height of your sticky header */
}

body {
  margin: 0;
  background: var(--wes-bg);
  color: var(--wes-text);
  font-family: 'Area Normal Regular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 {
  color: var(--wes-text);
  font-family: 'Area Normal Regular', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1.75rem, 2vw + 1rem, 3rem);
  line-height: 1.15;
}

h2 {
  color: var(--wes-text);
  font-size: clamp(1.5rem, 1.4vw + 0.9rem, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  color: var(--wes-text);
  font-size: clamp(1.25rem, 0.9vw + 0.85rem, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

p {
    color: var(--wes-text);
	font-size: 1rem;
}


/* Light mode */
.brand-logo--dark {
  display: none !important;
}

.brand-logo--light {
  display: block !important;
}

/* Dark mode logo switching */
html.wes-dark .brand-logo--light {
  display: none !important;
}

html.wes-dark .brand-logo--dark {
  display: block !important;
}

/* Mobile menu open: always use white logo */
html.wes-dark body.wes-menu-active .brand-logo--light {
  display: none !important;
}

body.wes-menu-active .brand-logo--light {
  display: none !important;
}

body.wes-menu-active .brand-logo--dark {
  display: block !important;
}


a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

.screen-reader-text:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  color: #000;
  padding: .75rem;
}

.wes-page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wes-bg);
}

.wes-main {
  flex: 1;
}

.wes-container {
  width: min(100% - 4rem, var(--wes-container));
  margin-inline: auto;
}

/* =========================================================
   Header and navigation
   ========================================================= */

.wes-header {
  width: 100%;
  padding: 1rem 2rem;
  position: relative;
  z-index: 60;
  transition: background .35s ease, border-color .35s ease;
}

body.wes-menu-active .wes-header {
  position: fixed;
  inset: 0 0 auto;
  background: transparent;
  border-color: transparent;
  color: #fff;
}

.wes-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wes-branding {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.wes-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
  min-width: max-content;
}

.wes-brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wes-brand-title {
  font-size: .875rem;
  font-weight: 800;
}

.wes-brand-subtitle {
  font-size: .75rem;
  color: var(--wes-muted);
  font-weight: 400;
}

body.wes-menu-active .wes-brand-subtitle {
  color: rgba(255,255,255,.75);
}

.custom-logo {
  display: block;
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.wes-desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wes-menu,
.wes-menu ul,
.wes-mobile-menu,
.wes-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wes-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.wes-menu a {
  color: var(--wes-muted);
  font-size: 1rem;
  text-decoration-thickness: 2px !important;
  text-decoration-color: var(--wes-brand) !important;
  text-underline-offset: 8px;
  transition: color .2s ease;
}

.wes-menu a:hover,
.wes-menu .current-menu-item > a {
  color: var(--wes-text);
  text-decoration: underline;
}

.wes-theme-toggle,
.wes-menu-toggle {
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  padding: .5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.wes-theme-toggle:hover,
.wes-menu-toggle:hover {
  background: var(--wes-soft-2);
}

.wes-icon-sun {
  display: none;
}

html.wes-dark .wes-icon-moon {
  display: none;
}

html.wes-dark .wes-icon-sun {
  display: inline-flex;
}

.wes-mobile-actions {
  display: none;
  align-items: center;
  gap: .5rem;
}

.wes-menu-close {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  align-items: center;
  justify-content: center;
}

body.wes-menu-active .wes-menu-open {
  display: none;
}


body.wes-menu-active .wes-menu-close {
  display: inline-flex;
}

.wes-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--wes-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}

html.wes-dark .wes-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}


body.wes-menu-active .wes-mobile-overlay {
  opacity: 1;
  visibility: visible;
}

.wes-mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.wes-mobile-menu a {
  color: #fff;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: .025em;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .3s ease, transform .3s ease, color .2s ease;
}

html.wes-dark .wes-mobile-menu a {
  color: #fff;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: .025em;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .3s ease, transform .3s ease, color .2s ease;
}


body.wes-menu-active .wes-mobile-menu a {
  opacity: 1;
  transform: translateY(0);
}

.wes-mobile-menu a:hover {
  color: #d1d5db;
}

.wes-mobile-socials {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3rem;
  justify-content: center;
}

/* =========================================================
   Front page personal section editor content
   Styles normal WordPress list blocks like WES check lists
   ========================================================= */

.wes-personal .wes-copy-card ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.wes-personal .wes-copy-card li {
  color: var(--wes-muted);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.wes-personal .wes-copy-card li::before {
  content: '•';
  color: var(--wes-brand);
  font-size: 1.2rem;
  line-height: 1;
}

/* html.wes-dark .wp-block-image {box-shadow: 0px 0px 10px #3d5b77; border-radius: 16px;}
.wp-block-image {box-shadow: 0px 0px 10px var(--wes-muted); border-radius: 16px;}
.wp-block-image img {border-radius: 16px;}

:where(.wp-block-columns.is-layout-flex) {gap: 4em;} */






/* =========================================================
   Social links
   ========================================================= */

.wes-socials {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.wes-socials a {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--wes-text);
  background: var(--wes-soft);
  border: 1px solid var(--wes-border);
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.wes-socials a:hover,
.wes-socials a:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  background: var(--wes-brand);
}

.wes-socials i {
  font-size: 1.15rem;
  line-height: 1;
}

.wes-mobile-socials a {
  color: var(--wes-forest-green);
  border-color: rgba(255,255,255,.3);
  border-radius: 999px;
}

html.wes-dark .wes-mobile-socials a {
  color: #fff;
  border-color: rgba(255,255,255,.3);
  border-radius: 999px;
}


/* =========================================================
   Hero
   ========================================================= */

.wes-hero {
  background: var(--wes-bg);
}

.wes-hero-copy {
  padding: 4rem 2rem 4rem 2rem;
  text-align: center;
}

.wes-hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 7vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
}

.wes-hero-copy p {
  margin: 0 auto;
  max-width: 42rem;
  color: var(--wes-muted);
  font-weight: 600;
}



.wes-hero-image {
  position: relative;
  height: auto;
  overflow: hidden;
}

.wes-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =========================================================
   Services
   ========================================================= */

.wes-services {
  padding: 1rem 2rem 4rem 2rem;
}

.wes-services h2 {
  text-align: center;
}

.wes-services p {
  text-align: center;
  padding-bottom: 10px;
}

.wes-services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 2rem;
}

.wes-service-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wes-service-icon {
  width: 4rem;
  height: 4rem;
  display: inline-block;
  background-color: currentColor;
  color: var(--wes-text);
  mask: var(--wes-icon) center / contain no-repeat;
  -webkit-mask: var(--wes-icon) center / contain no-repeat;
  transition: transform .2s ease, color .2s ease;
}

.wes-icon-water { --wes-icon: url("../icons/water.svg"); }
.wes-icon-water-meter { --wes-icon: url("../icons/water-meter.svg"); }
.wes-icon-tap { --wes-icon: url("../icons/tap.svg"); }
.wes-icon-leak { --wes-icon: url("../icons/leak.svg"); }
.wes-icon-shower { --wes-icon: url("../icons/shower.svg"); }
.wes-icon-toilet { --wes-icon: url("../icons/toilet.svg"); }
.wes-icon-rain { --wes-icon: url("../icons/rain.svg"); }
.wes-icon-recycle { --wes-icon: url("../icons/recycle.svg"); }
.wes-icon-finance { --wes-icon: url("../icons/finance.svg"); }
.wes-icon-pound { --wes-icon: url("../icons/pound.svg"); }
.wes-icon-data-rise { --wes-icon: url("../icons/data-rise.svg"); }
.wes-icon-percent-up { --wes-icon: url("../icons/percent-up.svg"); }
.wes-icon-percent-down { --wes-icon: url("../icons/percent-down.svg"); }
.wes-icon-eco { --wes-icon: url("../icons/eco.svg"); }
.wes-icon-save-water { --wes-icon: url("../icons/save-water.svg"); }

html.wes-dark .wes-service-icon,
html.dark .wes-service-icon {
  color: var(--wes-brand);
}

html.dark .wp-block-outermost-icon-block svg :is(
  path,
  circle,
  ellipse,
  line,
  polyline,
  polygon,
  rect
) {
  stroke: var(--wes-brand) !important;
}



.wes-service-card:hover .wes-service-icon {
  transform: scale(1.1);
}

  margin: 1rem 0 1rem;
  font-size: .875rem;
  color: var(--wes-muted);
  font-weight: 400;
}

.wes-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.5rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: .875rem;
  font-weight: 400;
  transition: transform .2s ease, background .2s ease;
}

.wes-button:hover {
  transform: translateY(-1px);
  background: #1f2937;
}

html.wes-dark .wes-button {
  background: #fff;
  color: #111827;
}

html.wes-dark .wes-button:hover {
  background: #f3f4f6;
}

/* =========================================================
   Split sections
   ========================================================= */

.wes-split {
  padding: 4rem 2rem;
  background: var(--wes-bg);
}

.wes-split-grid {
  display: grid;
  grid-template-columns: 35fr 65fr;
  gap: 3rem;
  align-items: center;
}

.wes-image-card {
  border-radius: 1rem;
  overflow: hidden;
  height: 16rem;
}

.wes-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wes-copy-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  color:var(--wes-text);
  letter-spacing: -0.03em;
}

.wes-copy-card p {
  color: var(--wes-muted);
  margin: 0 0 1rem;
  line-height: 1.65;
}

.wes-check-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .5rem;
}

.wes-check-list li {
  color: var(--wes-muted);
  display: flex;
  gap: .5rem;
  align-items: center;
}

.wes-check-list li::before {
  content: '•';
  color: var(--wes-brand);
  font-size: 1.2rem;
  line-height: 1;
}


.wes-impact {
  background: #0a2540;
  color: #fff;
}

html.wes-dark .wes-impact {
  background: #111827;
}

.wes-impact .wes-copy-card p {
  color: #d1d5db;
}

.wes-button-light,
html.wes-dark .wes-button-light {
  background: #fff;
  color: #111827;
  padding: .75rem 2rem;
}

.wes-button-light:hover {
  background: #f3f4f6;
}

/* =========================================================
   Footer
   ========================================================= */

.wes-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--wes-border);
  background: var(--wes-bg);
}

.wes-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.wes-footer-brand {
  margin-bottom: 1rem;
}

.wes-footer p {
  color: var(--wes-muted);
  font-size: .875rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.wes-footer h3 {
  font-size: .875rem;
  margin: 0 0 1rem;
  font-weight: 800;
}

.wes-footer-menu {
  display: grid;
  gap: .5rem;
}

.wes-footer-menu a {
  color: var(--wes-muted);
  font-size: .875rem;
}

.wes-footer-menu a:hover {
  color: var(--wes-text);
}

.legal {
  text-align: center;
  margin-top: 5em;
  color: var(--wes-muted);
}

/* =========================================================
   Page and index layout
   ========================================================= */

.wes-page-content {
  padding: 4rem 2rem;
}

.wes-narrow {
  max-width: 65rem;
}

.wes-page-content .wes-narrow {
  max-width: 65rem;
  margin-inline: auto;
}

.wes-page-content h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.75rem, 2vw + 1rem, 3rem);
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
}

.wes-entry-content,
.wes-entry-summary {
  color: var(--wes-muted);
  line-height: 1.7;
}

.wes-entry-summary p {
  margin-top: 0;
}

/* =========================================================
   Post cards and featured images
   ========================================================= */

.wes-post-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--wes-radius);
  box-shadow: 0 18px 45px rgba(13, 43, 71, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.wes-post-card:hover {
  border-color: var(--wes-brand);
  box-shadow: 0 24px 60px rgba(13, 43, 71, 0.14);
}

.wes-post-card > h1,
.wes-post-card > .wes-post-meta,
.wes-post-card > .wes-entry-summary {
  padding-inline: 1.5rem;
}

.wes-post-card > h1 {
  order: 2;
  margin: 0 0 0.85rem;
  padding-top: 1.5rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
  font-weight: 800;
}

.wes-post-card > h1 a {
  color: var(--wes-text);
  text-decoration: none;
}

.wes-post-card > h1 a:hover,
.wes-post-card > h1 a:focus-visible {
  color: var(--wes-brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.wes-post-card > .wes-post-meta {
  order: 1;
  margin: 0;
  padding-top: 1.5rem;
  color: var(--wes-brand);
  font-size: 0.875rem;
  font-weight: 600;
}

.wes-post-card > .wes-featured-image {
  order: 0;
}

.wes-post-card > .wes-entry-summary {
  order: 3;
  padding-bottom: 1.5rem;
  color: var(--wes-muted);
  line-height: 1.7;
}

.wes-post-meta {
  color: var(--wes-muted);
  font-size: .875rem;
  margin-bottom: 1rem;
}

.wes-featured-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--wes-soft);
  margin: 0;
  border-radius: 0;
}

.wes-featured-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.wes-post-card:hover .wes-featured-image img {
  transform: scale(1.04);
}


/* =========================================================
   News index page
   Hero, sticky featured carousel, latest news grid, and placeholders.
   Uses the shared --wes-* theme variables; no duplicate colour aliases.
   ========================================================= */

.wes-news-index {
  background: var(--wes-bg);
  color: var(--wes-text);
}

.wes-news-hero {
  padding: 5rem 0 3rem;
  background: var(--wes-bg);
}

.wes-news-hero-inner {
  max-width: 56rem;
  margin-inline: auto;
  text-align: center;
}

.wes-news-hero h1 {
  margin: 0 0 2rem;
  color: var(--wes-text);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.wes-news-hero p {
  margin: 0;
  color: var(--wes-muted);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

/* Featured story carousel */

.wes-featured-section {
  padding: 0 0 clamp(4rem, 7vw, 4rem);
  background: var(--wes-bg);
}

.wes-featured-carousel,
.wes-featured-slides {
  position: relative;
}

.wes-featured-slide {
  display: none;
}

.wes-featured-slide.is-active {
  display: block;
}

.wes-featured-card {
  overflow: hidden;
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--wes-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.wes-featured-grid {
  display: grid;
  grid-template-columns: 7fr 13fr;
  gap: 0;
}

.wes-featured-image-link {
  position: relative;
  display: block;
  /* height: 380px; */
  min-height: 380px;
  overflow: hidden;
  background: var(--wes-soft-2);
  text-decoration: none;
}

.wes-featured-image-link img,
.wes-featured-placeholder,
.wes-news-image-link img,
.wes-news-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.wes-featured-card:hover .wes-featured-image-link img,
.wes-featured-card:hover .wes-featured-placeholder {
  transform: scale(1.04);
}

.wes-featured-content {
  min-width: 0;
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.wes-featured-title {
  margin: 0 0 1.5rem;
  color: var(--wes-text);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.wes-featured-title a,
.wes-news-title a {
  color: inherit;
  text-decoration: none;
}

.wes-featured-title a:hover,
.wes-featured-title a:focus-visible,
.wes-news-title a:hover,
.wes-news-title a:focus-visible {
  color: var(--wes-brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.wes-featured-excerpt {
  margin: 0;
  color: var(--wes-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.wes-featured-footer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--wes-border);
}

/* News labels, author rows, and meta */

.wes-featured-pill,
.wes-news-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100% - 3rem);
  padding: 0.5rem 1rem;
  background: var(--wes-card);
  color: var(--wes-text);
  border: 1px solid var(--wes-border);
  border-radius: var(--wes-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.wes-featured-pill {
  top: 1.5rem;
  left: 1.5rem;
}

.wes-news-pill {
  top: 1rem;
  left: 1rem;
  max-width: calc(100% - 2rem);
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wes-news-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.wes-featured-pill .wes-news-icon,
.wes-news-pill .wes-news-icon {
  color: var(--wes-brand);
}

.wes-author-row,
.wes-date-row,
.wes-news-meta-item {
  display: flex;
  align-items: center;
}

.wes-author-row {
  gap: 0.75rem;
}

.wes-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.wes-author-name {
  color: var(--wes-text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.wes-date-row {
  gap: 0.375rem;
  margin-top: 0.25rem;
  color: var(--wes-muted);
  font-size: 0.85rem;
}

.wes-date-row .wes-news-icon {
  width: 0.875rem;
  height: 0.875rem;
}

/* Buttons and carousel controls */

.wes--button {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
  border-radius: 999px;
  background: var(--wes-text);
  color: var(--wes-bg);
  box-shadow: 0 4px 12px rgba(0, 48, 87, 0.2);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.wes--button:hover,
.wes--button:focus-visible {
  transform: translateY(-1px);
  background: var(--wes-brand);
  color: var(--wes-bg);
  outline-offset: 1px;
  outline: var(--wes-brand) solid;
}

.wp-element-button {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1rem;
  border-radius: 999px;
  background: var(--wes-text);
  color: var(--wes-bg);
  box-shadow: 0 4px 12px rgba(0, 48, 87, 0.2);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


.wp-element-button:hover,
.wp-element-button:focus-visible {
  transform: translateY(-1px);
  background: var(--wes-brand);
  color: var(--wes-bg);
  outline-offset: 1px;
  outline: var(--wes-brand) solid;
}



.wes-featured-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.wes-featured-arrow {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wes-border);
  border-radius: 999px;
  background: var(--wes-card);
  color: var(--wes-text);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wes-featured-arrow:hover,
.wes-featured-arrow:focus-visible {
  transform: translateY(-1px);
  background: var(--wes-text);
  color: var(--wes-bg);
  border-color: var(--wes-text);
}

.wes-featured-dots {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wes-featured-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d1d5db;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.wes-featured-dots button.is-active {
  width: 48px;
  background: var(--wes-text);
}

/* Latest news grid */

.wes-latest-section {
  padding: 1rem 0 8rem;
  background: var(--wes-bg);
}

.wes-section-heading {
  margin: 0 0 4rem;
  color: var(--wes-text);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.wes-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.wes-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--wes-card);
  border: 1px solid var(--wes-border);
  border-radius: var(--wes-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.wes-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--wes-brand);
  box-shadow: 0 16px 45px rgba(13, 43, 71, 0.10);
}

.wes-news-image-link {
  position: relative;
  display: block;
  height: 256px;
  overflow: hidden;
  background: var(--wes-soft-2);
  text-decoration: none;
  border-radius: var(--wes-radius) var(--wes-radius) 0em 0em;
}

.wes-news-card:hover .wes-news-image-link img,
.wes-news-card:hover .wes-news-placeholder {
  transform: scale(1.05);
}

.wes-news-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.wes-news-card-copy {
  flex: 1;
}

.wes-news-title {
  margin: 0 0 1rem;
  color: var(--wes-text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.wes-news-excerpt {
  margin: 0;
  color: var(--wes-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.wes-news-card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.wes-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--wes-border);
  color: var(--wes-muted);
  font-size: 0.85rem;
}

.wes-news-meta-item {
  gap: 0.5rem;
}

.wes-news-read-more {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wes-text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.wes-news-read-more:hover,
.wes-news-read-more:focus-visible {
  gap: 0.7rem;
  color: var(--wes-brand);
}

/* Placeholder images */

.wes-featured-placeholder,
.wes-news-placeholder {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1.5rem;
  background: var(--wes-muted);
  color: #ffffff;
}

.wes-placeholder-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
}

.wes-news-empty-message {
  margin: 0;
  color: var(--wes-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

html.wes-dark .wes-featured-card,
html.dark .wes-featured-card,
html.wes-dark .wes-news-card,
html.dark .wes-news-card {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}


/* =========================================================
   Shared interaction and focus states
   ========================================================= */

.wes-button:focus-visible,
.wes-button-light:focus-visible,
.wes-news-button:focus-visible,
.wes-news-read-more:focus-visible,
.wes-featured-arrow:focus-visible,
.wes-featured-dots button:focus-visible,
.wes-featured-title a:focus-visible,
.wes-news-title a:focus-visible,
.wes-featured-image-link:focus-visible,
.wes-news-image-link:focus-visible,
.wes-menu a:focus-visible,
.wes-footer-menu a:focus-visible,
.wes-socials a:focus-visible {
  outline: 3px solid var(--wes-brand);
  outline-offset: 4px;
}

.wes-button,
.wes-button-light {
  border-radius: 999px;
}


/* =========================================================
   Responsive layout
   ========================================================= */

@media (min-width: 1024px) {
  .wes-featured-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .wes-desktop-nav {
    display: none;
  }

  .wes-mobile-actions {
    display: flex;
  }

  .wes-mobile-actions .wes-theme-toggle::before {
    content: '';
    width: 20px;
    height: 20px;
    display: block;
    background: currentColor;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>') center/contain no-repeat;
  }

  html.wes-dark .wes-mobile-actions .wes-theme-toggle::before {
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>') center/contain no-repeat;
  }

  .wes-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wes-split-grid,
  .wes-footer-grid,
  .wes-featured-grid {
    grid-template-columns: 1fr;
  }

  .wes-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wes-featured-image-link {
    height: 320px;
    min-height: 320px;
  }
}

@media (max-width: 560px) {
  .wes-container {
    width: min(100% - 2rem, var(--wes-container));
  }

  .wes-header,
  .wes-services,
  .wes-split,
  .wes-footer,
  .wes-page-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .wes-hero-copy {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .wes-services-grid,
  .wes-news-grid {
    grid-template-columns: 1fr;
  }

  .wes-image-card {
    height: 16rem;
  }

  .wes-news-hero {
    padding: 3.5rem 0 4.5rem;
  }

  .wes-featured-section,
  .wes-latest-section {
    padding-bottom: 4.5rem;
  }

  .wes-featured-image-link {
    height: 260px;
    min-height: 260px;
  }

  .wes-featured-content,
  .wes-news-card-body {
    padding: 1.5rem;
  }

  .wes-featured-nav {
    gap: 1rem;
  }

  .wes-featured-arrow {
    width: 48px;
    height: 48px;
  }

  .wes-news-image-link {
    height: 230px;
  }

  .wes-news-meta {
    gap: 0.75rem;
  }

  .legal {
    text-align: left;
    margin-top: 2rem;
  }
}

/* =========================================================
   WordPress Accordion Block
   Premium WES styling - no gradients
   Kept at the end so it overrides plugin defaults
   ========================================================= */

body.wes-site .wp-block-accordion {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

body.wes-site .wp-block-accordion-item {
  overflow: hidden;
  border: 1px solid var(--wes-border);
  border-radius: var(--wes-radius);
  background: var(--wes-card);
  box-shadow: 0 18px 45px rgba(13, 43, 71, 0.08);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

body.wes-site .wp-block-accordion-item:hover {
  transform: translateY(-2px);
  border-color: var(--wes-brand);
  box-shadow: 0 24px 60px rgba(13, 43, 71, 0.12);
}

body.wes-site .wp-block-accordion-heading {
  margin: 0;
  padding: 0;
  font: inherit;
}

body.wes-site .wp-block-accordion .wp-block-accordion-heading__toggle {
  position: relative;
  width: 100%;
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem 1.15rem 1.5rem !important;
  border: 0;
  background: transparent;
  color: var(--wes-text);
  text-align: left;
  cursor: pointer;
  font-family: 'Area Normal Bold', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.35;
  overflow: visible;
  text-decoration: none;
}

body.wes-site .wp-block-accordion .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-title {
  color: var(--wes-brand);
  text-decoration: none;
}

body.wes-site .wp-block-accordion-heading__toggle-title {
  flex: 1;
  display: block;
  padding-right: 1rem;
}

body.wes-site .wp-block-accordion-heading__toggle-icon {
  position: relative;
  flex: 0 0 2rem;
  width: 2rem !important;
  height: 2rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--wes-border);
  border-radius: 999px;
  background: var(--wes-soft);
  color: var(--wes-brand);
  overflow: hidden;
  text-indent: -9999px;
  line-height: 1;
  transform: none;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

body.wes-site .wp-block-accordion-heading__toggle-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.75rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

body.wes-site .wp-block-accordion-heading__toggle-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 0.75rem;
  border-radius: 999px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

body.wes-site .wp-block-accordion-heading__toggle:focus-visible {
  outline: 3px solid var(--wes-brand);
  outline-offset: -3px;
}

body.wes-site .wp-block-accordion-item.is-open {
  border-color: var(--wes-brand);
}

body.wes-site .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle,
body.wes-site .wp-block-accordion-heading__toggle[aria-expanded="true"] {
  border-bottom: 1px solid var(--wes-border);
}

body.wes-site .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon,
body.wes-site .wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon {
  background: var(--wes-brand);
  border-color: var(--wes-brand);
  color: var(--wes-bg);
  transform: none;
}

body.wes-site .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon::after,
body.wes-site .wp-block-accordion-heading__toggle[aria-expanded="true"] .wp-block-accordion-heading__toggle-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}

body.wes-site .wp-block-accordion-panel {
  padding: 1.25rem 1.5rem 1.5rem;
  color: var(--wes-muted);
  line-height: 1.75;
  background: var(--wes-card);
}

body.wes-site .wp-block-accordion-panel > :first-child {
  margin-top: 0;
}

body.wes-site .wp-block-accordion-panel > :last-child {
  margin-bottom: 0;
}

body.wes-site .wp-block-accordion-panel p,
body.wes-site .wp-block-accordion-panel li {
  color: var(--wes-muted);
  line-height: 1.75;
}

body.wes-site .wp-block-accordion-panel a {
  color: var(--wes-brand);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

body.wes-site .wp-block-accordion-panel ul,
body.wes-site .wp-block-accordion-panel ol {
  padding-left: 1.25rem;
}

html.wes-dark body.wes-site .wp-block-accordion-item,
html.dark body.wes-site .wp-block-accordion-item {
  background: var(--wes-card);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

html.wes-dark body.wes-site .wp-block-accordion-item:hover,
html.dark body.wes-site .wp-block-accordion-item:hover {
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.32);
}

html.wes-dark body.wes-site .wp-block-accordion-panel,
html.dark body.wes-site .wp-block-accordion-panel {
  background: var(--wes-card);
}

@media (max-width: 560px) {
  body.wes-site .wp-block-accordion .wp-block-accordion-heading__toggle {
    min-height: 3.5rem;
    padding: 1rem 1rem 1rem 1.15rem !important;
    font-size: 1rem;
  }

  body.wes-site .wp-block-accordion-heading__toggle-icon {
    flex-basis: 1.8rem;
    width: 1.8rem !important;
    height: 1.8rem !important;
  }

  body.wes-site .wp-block-accordion-heading__toggle-icon::before {
    width: 0.65rem;
  }

  body.wes-site .wp-block-accordion-heading__toggle-icon::after {
    height: 0.65rem;
  }

  body.wes-site .wp-block-accordion-panel {
    padding: 1rem 1.15rem 1.25rem;
  }
}

/* =========================================================
   wp-block-media-text__media Rounded Edges
   ========================================================= */
.wp-block-media-text__media img {
	border-radius: 1em;
}
.rounded-img img {
	border-radius: 1em;
}

/* =========================================================
   Website carbon badge
   ========================================================= */

.wes-carbon-badge-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* =========================================================
   WordPress Full Width Block Support
   Supports Group, Cover and other alignfull blocks
   ========================================================= */

/* Allow full-width blocks to escape the WES layout containers */
.wes-main,
.wes-page-content,
.wes-page-content .wes-container,
.wes-main .wes-container,
.wes-main article,
.wes-entry-content {
    overflow: visible;
}

/* Full-width support for any WordPress block set to Align > Full width */
.wes-main .alignfull {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box;
}

/* Keep Group block content centred inside the full-width background */
.wes-main .wp-block-group.alignfull > .wp-block-group__inner-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

/* Keep Cover block content centred inside the full-width image */
.wes-main .wp-block-cover.alignfull .wp-block-cover__inner-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}

/* Make sure Cover images behave nicely */
.wes-main .wp-block-cover.alignfull {
    background-size: cover;
    background-position: center;
}

/* Prevent tiny horizontal scrollbar from 100vw */
html,
body {
    overflow-x: clip;
}



