/*
Theme Name: Greensand ESG
Theme URI: https://www.greensandesg.co.uk/
Author: Codex
Description: Custom Greensand ESG theme rebuilt around a one-page Bootstrap layout.
Version: 2.0.0
Text Domain: greensand-esg
*/

:root {
  --forest: #024136;
  --forest-deep: #04483b;
  --cream: #fbf5e5;
  --lime: #dff1b0;
  --yellow: #f7d448;
  --orange: #ff7a1a;
  --ink: #114f42;
  --muted: #67756d;
  --white: #ffffff;
  --line: rgba(17, 79, 66, 0.12);
  --shadow: 0 18px 50px rgba(3, 51, 42, 0.12);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.45;
}

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

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

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

.site-shell {
  overflow-x: clip;
}

.container-narrow {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.texture-dark {
  background-color: var(--forest);
  background-image:
    radial-gradient(circle at 18% 15%, rgba(255, 255, 255, 0.06), transparent 19%),
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.045), transparent 22%),
    linear-gradient(120deg, transparent 0 38%, rgba(255, 255, 255, 0.035) 39%, transparent 40%),
    linear-gradient(32deg, transparent 0 62%, rgba(0, 0, 0, 0.075) 63%, transparent 64%);
  background-size: auto, auto, 180px 180px, 240px 240px;
}

.hero {
  min-height: 740px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  background-color: var(--forest);
  padding: 28px 0 54px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 86, 69, 0.9), rgba(7, 86, 69, 0.9)),
    url("https://www.greensandesg.co.uk/wp-content/uploads/2026/08/hero-banner.jpg") center/cover no-repeat;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero .container-narrow {
  position: relative;
  z-index: 1;
}

.hero .scroll-cue {
  z-index: 2;
}

.navbar {
  padding: 0;
}

.navbar-collapse {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.main-nav-links {
  display: flex;
  align-items: center;
  flex-direction: row;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: none;
  flex: none;
}

.navbar-nav {
  align-items: center;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 20px;
  font-weight: 300;
  margin-left: 22px;
}

.nav-link-contact {
  display: inline-flex;
  align-items: center;
  gap: 100px;
}

.nav-link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border-radius: 0;
  flex: none;
  line-height: 0;
}

.nav-link-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: #ff7a1a;
  fill: #ff7a1a;
}

.navbar .nav-link:hover {
  color: var(--white) !important;
}

.navbar-toggler {
  border: 0;
  box-shadow: none !important;
}

.hero-copy {
  max-width: 1000px;
  padding-top: 118px;
}

.hero h1,
.section-title,
.why-title,
.services-title,
.contact-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(52px, 7vw, 88px);
  max-width: 100%;
  margin: 0 0 28px;
  color: var(--white);
}

.hero-simple {
  color: #d9ec47;
}

.hero p {
  font-size: 24px;
  line-height: 1.18;
  max-width: 460px;
  font-weight: 600;
  margin: 0;
  color: var(--white);
}

.scroll-cue {
  position: absolute;
  right: 32px;
  bottom: 28px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0.8;
  transform: none;
  font-size: 36px;
  color: #d8ef44;
  animation: bob 1.7s ease-in-out infinite;
  z-index: 2;
}

.scroll-cue-icon {
  display: block;
  width: 70px;
  height: 70px;
  color: #d8ef44;
}

.scroll-cue-icon:first-child {
  margin-top: 32px;
  margin-bottom: -57px;
}

@keyframes bob {
  50% {
    transform: translateY(7px);
  }
}

section {
  position: relative;
}

.section-pad,
.about-section,
.services,
.contact {
  padding: 140px 0;
}

.section-title {
  font-size: clamp(42px, 5vw, 72px);
  margin: 0 0 35px;
}

.copy-lg {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}

.body-copy {
  font-size: 20px;
  color: #315f55;
}

.intro-copy-spaced {
  margin-top: 24px;
}

.services-intro-copy {
  margin-top: 24px;
}

.contact-intro-copy {
  margin-top: 24px;
}

.cream {
  background: var(--cream);
}

.dark {
  background: var(--forest);
  color: var(--white);
}

.why-section {
  background:
    linear-gradient(rgba(7, 86, 69, 0.9), rgba(7, 86, 69, 0.9)),
    url("https://www.greensandesg.co.uk/wp-content/uploads/2026/08/IMG-20260826-WA0002.jpg") center/cover no-repeat;
  position: relative;
}

.challenge-section {
  background:
    linear-gradient(rgba(7, 86, 69, 0.9), rgba(7, 86, 69, 0.9)),
    url("https://www.greensandesg.co.uk/wp-content/uploads/2026/08/IMG-20260826-WA0003.jpg") center/cover no-repeat;
  position: relative;
}

.why-section .container-narrow,
.challenge-section .container-narrow {
  position: relative;
  z-index: 1;
}

.dark .body-copy,
.dark p,
.dark li,
.dark .nav-link {
  color: rgba(255, 255, 255, 0.75);
}

.accent-orange {
  color: var(--orange);
}

.accent-yellow {
  color: var(--yellow);
}

.btn-pill,
.btn,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  padding: 9px 30px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  border: 0;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-pill:hover,
.btn:hover,
.button:hover,
.wp-block-button__link:hover {
  background: #ea6810;
  color: var(--white);
  transform: translateY(-1px);
}

.challenge-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.challenge-list li {
  position: static;
  padding-left: 0;
  margin-bottom: 12px;
  font-weight: 300;
}

.challenge-section .section-title {
  color: #d9ec44;
}

.challenge-word-the {
  color: #ffffff;
}

.solution-image {
  min-height: 620px;
  background: url("https://www.greensandesg.co.uk/wp-content/uploads/2026/08/IMG-20260826-WA0001.jpg") center/cover no-repeat;
}

.solution-copy {
  padding: 85px 8vw 80px 6vw;
  background: var(--white);
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.solution-copy .section-title {
  margin-bottom: 24px;
}

.why-grid {
  align-items: flex-start;
}

.why-title {
  font-size: clamp(44px, 5vw, 72px);
  margin-top: 0;
}

.why-title span {
  display: block;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.why-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
}

.why-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d7eb45;
}

.logo-strip {
  background: #ffffff;
  padding: 30px 0;
  overflow: hidden;
}

.logo-strip-heading {
  position: relative;
  z-index: 1;
}

.logo-strip-heading .section-title {
  color: var(--ink);
  margin-bottom: 30px;
}

.logo-marquee {
  overflow: hidden;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-marquee-scroll 28s linear infinite;
  will-change: transform;
}

.logo-strip:hover .logo-track {
  animation-play-state: paused;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 100px;
  padding-right: 100px;
  flex: 0 0 auto;
}

.logo-placeholder {
  height: 100px;
  width: 144px;
  background: transparent;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.logo-placeholder img {
  display: block;
  width: 100px;
  height: auto;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.logo-strip:hover .logo-placeholder img {
  opacity: 1;
  transform: translateY(-1px);
}

@keyframes logo-marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.services {
  background: var(--lime);
}

.services-intro {
  margin-bottom: 42px;
}

.services-title {
  font-size: clamp(44px, 5vw, 72px);
}

.services-title span {
  display: block;
}

.service-card {
  background: var(--forest);
  color: var(--white);
  border-radius: 22px;
  padding: 34px 34px 24px;
  margin-bottom: 48px;
  box-shadow: 0 10px 20px rgba(3, 51, 42, 0.08);
}

article.service-card.reveal.is-visible {
  padding: 34px 50px 34px;
  border-radius: 40px;
}

@media (min-width: 992px) {
  article.service-card.reveal.is-visible {
    min-height: 520px;
  }
}

.service-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 36px;
  line-height: 1.05;
  font-weight: 800;
  margin: 0;
  color: #d9ec44;
}

.service-badge {
  border: 1px solid #ff7a1a;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 800;
  color: #ff7a1a;
  white-space: nowrap;
}

.service-sub {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 12px;
}

.service-card p,
.service-card li {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.service-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.service-tick-list {
  list-style: none;
  padding-left: 0;
}

.service-tick-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
}

.service-tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  background-color: #d9ec47;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 11.917 9.724 16.5 19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 11.917 9.724 16.5 19 7.5'/%3E%3C/svg%3E") center/contain no-repeat;
}

.price-band {
  margin: 24px -34px -24px auto;
  width: 430px;
  background: var(--orange);
  color: var(--white);
  border-radius: 30px;
  padding: 8px 18px;
  height: 50px;
  font-size: 17px;
  position: absolute;
  font-weight: 800;
  bottom: 2px;
  right: 33px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.contact {
  background: var(--white);
}

.contact-title {
  font-size: clamp(44px, 5vw, 68px);
  margin: 0 0 24px;
}

.form-control {
  border: 0;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 15px 18px;
  font-size: 14px;
}

textarea.form-control {
  border-radius: 18px;
  min-height: 160px;
  resize: vertical;
}

.form-label {
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 7px 8px;
}

.site-footer {
  background: var(--forest-deep);
  color: var(--white);
  padding: 38px 0;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: none;
  line-height: 0;
}

.footer-social-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: #ff7a1a;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 40px 0 20px;
}

.site-footer .brand {
  font-size: 16px;
}

.site-footer .brand-logo {
  display: block;
  height: 40px;
  width: auto;
  margin-top: 20px;
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0;
}

.footer-links {
  display: flex;
  gap: 34px;
  justify-content: flex-end;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--white);
}

.page-hero {
  padding: 72px 0 42px;
  background: linear-gradient(180deg, rgba(251, 245, 229, 0.8), rgba(255, 255, 255, 0));
}

.page-hero h1 {
  color: var(--ink);
  font-size: clamp(44px, 5.8vw, 78px);
  max-width: 12ch;
  margin: 0 0 18px;
}

.page-hero .lead {
  max-width: 760px;
}

.site-main {
  display: block;
}

.entry-content {
  font-size: 20px;
  line-height: 1.7;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-shell .container,
.site-shell .container-fluid,
.site-shell .container-lg,
.site-shell .container-md,
.site-shell .container-sm,
.site-shell .container-xl,
.site-shell .container-xxl {
  padding-inline: 0;
}

.navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.mobile-nav-backdrop,
.mobile-nav-close,
.mobile-nav-footer {
  display: none;
}

@media (max-width: 991.98px) {
  .container-narrow {
    width: min(1180px, calc(100% - 30px));
  }

  .hero {
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero p {
    font-size: 20px;
  }

  .solution-image,
  .solution-copy {
    min-height: 500px;
  }

  .price-band {
    width: 72%;
  }
}

@media (max-width: 767.98px) {
  body {
    font-size: 18px;
  }

  .container-narrow {
    width: min(1180px, calc(100% - 30px));
  }

  .section-pad,
  .about-section,
  .services,
  .contact {
    padding: 70px 0;
  }

  .hero {
    min-height: 540px;
  }

  .hero-copy {
    padding-top: 80px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 19px;
  }

  .navbar {
    position: relative;
    z-index: 31;
  }

  .navbar-toggler {
    position: relative;
    z-index: 31;
  }

  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 340px);
    height: 100vh;
    background:
      linear-gradient(180deg, rgba(2, 65, 54, 0.98), rgba(1, 50, 41, 0.98)),
      var(--forest);
    padding: 84px 22px 28px;
    margin-top: 0;
    border-radius: 0;
    transform: translateX(-102%);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
    overflow-y: auto;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 24px;
    z-index: 30;
  }

  .navbar-collapse.is-open {
    transform: translateX(0);
    box-shadow: 18px 0 50px rgba(0, 0, 0, 0.28);
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    border: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 29;
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav-close {
    display: grid;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 30px;
    line-height: 1;
    z-index: 1;
  }

  .mobile-nav-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
  }

  .mobile-nav-footer-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .mobile-nav-footer-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
  }

  .mobile-nav-footer-text {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
  }

  .mobile-nav-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: none;
  }

  .mobile-nav-social-icon {
    display: block;
    width: 24px;
    height: 24px;
    fill: #ff7a1a;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .navbar .nav-link {
    margin-left: 0;
    padding: 8px 0;
    font-size: 22px;
  }

  .navbar-nav {
    align-items: flex-start;
  }

  .main-nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav-link-contact {
    gap: 18px;
    width: 100%;
    justify-content: space-between;
  }

  .nav-link-badge {
    display: none;
  }

  .solution-image {
    min-height: 360px;
  }

  .solution-copy {
    min-height: auto;
    padding: 62px 24px;
  }

  .service-card {
    border-radius: 14px;
    padding: 26px 22px 20px;
  }

  .service-head {
    display: block;
  }

  .service-badge {
    display: inline-block;
    margin-top: 12px;
  }

  .price-band {
    position: static;
    bottom: auto;
    right: auto;
    margin: 20px 0 0;
    width: 100%;
    height: auto;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 12px;
    line-height: 1.2;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 20px;
    margin-top: 22px;
  }

  .footer-brand-row {
    justify-content: flex-start;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding-top: 56px;
  }
}

/* Greensand structural updates */
.inner-site-header {
  background: var(--forest);
  color: var(--white);
  padding: 20px 0;
}

.site-header-hero {
  min-height: 0;
  padding: 28px 0;
  background: var(--forest);
}

.site-header-hero::before {
  background: none;
}

.site-header-hero::after {
  display: none;
}

.site-header-hero .container-narrow {
  z-index: 1;
}

.inner-site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.inner-site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 600;
}
.inner-site-nav a {
  color: rgba(255,255,255,.82);
}
.inner-site-nav a:hover,
.inner-site-nav .inner-linkedin {
  color: var(--white);
}
.inner-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  line-height: 0;
}
.inner-linkedin__icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: var(--orange);
}
.footer-company {
  margin-top: 28px;
  max-width: 760px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255,255,255,.72);
}
.service-badge {
  text-decoration: none;
}
.service-badge:hover {
  background: var(--orange);
  color: var(--white);
}
.greensand-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.greensand-form-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--forest);
  background: #f3f7f5;
  font-size: 15px;
}
.greensand-form-success { border-left-color: #2f7d5e; }
.greensand-form-error { border-left-color: #b42318; }
.service-detail-content {
  max-width: 860px;
}
.service-detail-content h2 {
  margin-top: 42px;
}
.service-detail-cta {
  margin-top: 64px;
  padding: 36px;
  background: var(--forest);
  color: var(--white);
}
.service-detail-cta p {
  color: rgba(255,255,255,.78);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 24px;
  margin-top: 52px;
}
.blog-card,
.blog-empty {
  padding: 30px;
  border: 1px solid var(--line);
  background: #fff;
}
.blog-card h2 {
  margin: 6px 0 14px;
  font-size: 30px;
}
.blog-card__date {
  color: var(--muted);
  font-size: 14px;
}
.blog-card__link,
.blog-single__back a {
  color: var(--orange);
  font-weight: 700;
}
.blog-single__content {
  max-width: 820px;
}

.article-page {
  background: #fff;
}

.article-hero {
  padding: 78px 0 62px;
  background: linear-gradient(135deg, var(--forest) 0%, #0d6653 100%);
  color: var(--white);
}

.article-hero h1 {
  max-width: 900px;
  margin: 10px 0 24px;
  color: var(--white);
  font-size: clamp(46px, 7vw, 92px);
  letter-spacing: -.04em;
  line-height: .98;
}

.article-hero .eyebrow {
  color: var(--lime);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 700;
}

.article-meta__dot {
  color: var(--yellow);
}

.article-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.article-author--hero {
  margin-top: 30px;
}

.article-author__avatar {
  display: block;
  width: 56px;
  height: 56px;
  border: 3px solid var(--lime);
  border-radius: 50%;
  object-fit: cover;
}

.article-author__label {
  display: block;
  margin-bottom: 3px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-author--hero strong {
  color: var(--white);
  font-size: 16px;
}

.article-author--hero .article-author__label {
  display: block;
  margin: 0 0 2px;
}

.article-author--hero strong {
  display: block;
}

.article-container {
  padding-top: 56px;
  padding-bottom: 78px;
}

.article-featured-image {
  overflow: hidden;
  margin: 0 auto 58px;
  border-radius: 24px;
  background: var(--forest);
  box-shadow: 0 20px 50px rgba(2,65,54,.16);
}

.article-featured-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 86px minmax(0, 820px);
  justify-content: center;
  gap: 34px;
}

.article-share {
  display: flex;
  position: sticky;
  top: 110px;
  align-self: start;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #eef6f1;
  color: var(--forest);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.article-share a:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-2px);
}

.article-page .entry-content {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.8;
}

.article-page .entry-content h2,
.article-page .entry-content h3 {
  margin-top: 2.2em;
  margin-bottom: .55em;
  color: var(--forest);
  letter-spacing: -.025em;
  line-height: 1.1;
}

.article-page .entry-content h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.article-page .entry-content h3 {
  font-size: 30px;
}

.article-page .entry-content p,
.article-page .entry-content ul,
.article-page .entry-content ol {
  margin-bottom: 1.25em;
}

.article-page .entry-content blockquote {
  margin: 2em 0;
  padding: 20px 26px;
  border-left: 5px solid var(--orange);
  background: #f4f8f5;
  color: var(--forest);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.article-page .entry-content img {
  height: auto;
  border-radius: 16px;
}

.article-author--footer {
  margin: 54px 0 0;
  padding: 22px 24px;
  border: 1px solid rgba(17, 79, 66, 0.13);
  border-left: 5px solid var(--orange);
  border-radius: 18px;
  background: linear-gradient(135deg, #f7faf8 0%, #eef6f1 100%);
  box-shadow: 0 14px 34px rgba(2, 65, 54, 0.08);
}

.article-author--footer .article-author__link {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  color: var(--ink);
}

.article-author--footer .article-author__link:hover {
  color: var(--ink);
}

.article-author--footer .article-author__avatar {
  width: 72px;
  height: 72px;
  margin: 0;
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(2, 65, 54, 0.15);
  object-fit: cover;
}

.article-author--footer .article-author__link > span {
  display: block;
  min-width: 0;
}

.article-author--footer .article-author__label {
  display: block;
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-author--footer strong {
  display: block;
  margin: 0;
  color: var(--forest);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}

.article-author__bio {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.article-author__bio p {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.author-page {
  background: var(--cream);
}

.author-hero {
  padding: 84px 0 78px;
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 236, 68, .12), transparent 28%),
    linear-gradient(135deg, var(--forest) 0%, #0d6653 100%);
  color: var(--white);
}

.author-hero__inner {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.author-hero__portrait {
  width: 144px;
  height: 144px;
}

.author-profile__avatar {
  display: block;
  width: 144px;
  height: 144px;
  border: 4px solid var(--lime);
  border-radius: 50%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .18);
  object-fit: cover;
}

.author-hero h1 {
  margin: 0 0 12px;
  color: var(--white);
  font-size: clamp(48px, 7vw, 84px);
  letter-spacing: -.05em;
  line-height: .98;
}

.author-hero .eyebrow {
  margin-bottom: 14px;
  color: var(--lime);
}

.author-hero__intro {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: 22px;
  line-height: 1.35;
}

.author-profile-content {
  padding: 86px 0;
  background: var(--cream);
}

.author-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 72px;
}

.author-profile-bio h2 {
  margin: 0 0 18px;
  color: var(--forest);
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -.04em;
  line-height: 1;
}

.author-profile-bio .eyebrow {
  margin-bottom: 12px;
  color: var(--orange);
}

.author-profile-bio__copy {
  max-width: 720px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.65;
}

.author-profile-bio__copy p {
  margin: 0 0 1em;
}

.author-profile-bio__copy p:last-child {
  margin-bottom: 0;
}

.author-profile-stats {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border-radius: 24px;
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(2, 65, 54, .14);
  text-align: center;
}

.author-profile-stats__number {
  color: var(--lime);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .95;
}

.author-profile-stats__label {
  margin-top: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.related-articles {
  padding: 78px 0 100px;
  background: var(--cream);
}

.author-articles {
  padding: 82px 0 104px;
  background: linear-gradient(180deg, #f7faf7 0%, #eef6f1 100%);
}

.author-articles .related-articles__heading {
  margin-bottom: 34px;
}

.author-articles .related-card {
  box-shadow: 0 12px 30px rgba(2, 65, 54, .06);
}

.homepage-latest-articles {
  padding: 140px 0;
}

.homepage-latest-articles__intro {
  margin-bottom: 52px;
}

.homepage-latest-articles__all {
  color: var(--white);
}

.homepage-latest-articles__grid .related-card {
  box-shadow: 0 16px 34px rgba(2, 65, 54, .08);
}

.blog-index__section {
  min-height: 620px;
}

.blog-index__intro {
  margin-bottom: 52px;
}

.blog-index__grid .related-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.blog-index__grid .related-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blog-index__grid .related-card h2 {
  margin: 8px 0 12px;
  color: var(--forest);
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: -.025em;
}

.blog-index__grid .related-card__excerpt {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.blog-index__grid .related-card__link {
  margin-top: auto;
}

.blog-index__pagination {
  margin-top: 42px;
}

.blog-index__pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.blog-index__pagination .page-numbers {
  display: inline-flex;
  min-width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 800;
}

.blog-index__pagination .page-numbers.current,
.blog-index__pagination .page-numbers:hover {
  background: var(--orange);
  color: var(--white);
}

@media (max-width: 767.98px) {
  .homepage-latest-articles {
    padding: 70px 0;
  }

  .homepage-latest-articles__all {
    display: inline-block;
  }

  .blog-index__intro {
    margin-bottom: 36px;
  }
}

.related-articles__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.related-articles__heading h2 {
  margin: 5px 0 0;
  color: var(--forest);
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -.035em;
}

.related-articles__heading > a {
  color: var(--orange);
  font-weight: 800;
  white-space: nowrap;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
}

.related-card:hover {
  color: var(--ink);
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(2,65,54,.12);
}

.related-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--forest), var(--forest-deep));
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.related-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__body {
  padding: 20px;
}

.related-card__date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.related-card h3 {
  margin: 8px 0 20px;
  color: var(--forest);
  font-size: 22px;
  line-height: 1.15;
}

.related-card__link {
  color: var(--orange);
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .inner-site-header__row,
  .inner-site-nav {
    align-items: flex-start;
  }
  .inner-site-header__row {
    flex-direction: column;
  }
  .inner-site-nav {
    flex-wrap: wrap;
    gap: 14px 18px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .article-hero {
    padding: 54px 0 46px;
  }

  .article-container {
    padding-top: 34px;
  }

  .article-layout {
    display: block;
  }

  .article-share {
    position: static;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 28px;
  }

  .article-featured-image {
    margin-bottom: 34px;
    border-radius: 14px;
  }

  .article-author--footer {
    margin-top: 38px;
    padding: 18px;
  }

  .article-author--footer .article-author__link {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
  }

  .article-author--footer .article-author__avatar {
    width: 58px;
    height: 58px;
  }

  .article-author--footer strong {
    font-size: 18px;
  }

  .article-author__bio {
    font-size: 14px;
  }

  .author-hero {
    padding: 58px 0 54px;
  }

  .author-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .author-hero__portrait,
  .author-profile__avatar {
    width: 112px;
    height: 112px;
  }

  .author-hero h1 {
    font-size: clamp(44px, 13vw, 64px);
  }

  .author-hero__intro {
    font-size: 19px;
  }

  .author-profile-content {
    padding: 62px 0;
  }

  .author-profile-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .author-profile-stats {
    min-height: 150px;
  }

  .related-articles__heading {
    display: block;
  }

  .related-articles__heading > a {
    display: inline-block;
    margin-top: 14px;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the mobile navigation above every page section. */
@media (max-width: 991.98px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  body.mobile-nav-open .hero {
    z-index: 100000;
    overflow: visible;
  }

  body.mobile-nav-open .hero .container-narrow {
    z-index: 100001;
  }

  .navbar,
  .navbar-toggler {
    z-index: 100003;
  }

  .navbar-collapse {
    z-index: 100002;
  }

  .mobile-nav-backdrop {
    z-index: 100001;
  }
}

.greensand-success-modal .modal-dialog {
  max-width: 520px;
  margin: 1rem auto;
}
.greensand-success-modal .modal-content {
  position: relative;
  border: 0;
  border-radius: 22px;
  padding: 34px 34px 28px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(2, 65, 54, 0.22);
}
.greensand-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}
.greensand-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--forest);
  margin-bottom: 18px;
}
.greensand-modal-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.greensand-modal-kicker {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.greensand-success-modal h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
}
.greensand-success-modal p:not(.greensand-modal-kicker) {
  margin: 0;
  color: #52665f;
  font-size: 16px;
  line-height: 1.6;
}
.greensand-success-modal small {
  display: block;
  margin-top: 10px;
  color: #7a8782;
  font-size: 12px;
}
.greensand-modal-progress {
  height: 4px;
  margin-top: 24px;
  background: #eef1ee;
  overflow: hidden;
  border-radius: 999px;
}
.greensand-modal-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--orange);
  transform-origin: left center;
  animation: greensand-modal-countdown 10s linear forwards;
}
@keyframes greensand-modal-countdown {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
.greensand-contact-form button[disabled] {
  opacity: .72;
  cursor: wait;
}
@media (max-width: 575.98px) {
  .greensand-success-modal .modal-dialog {
    margin: 1rem;
  }
  .greensand-success-modal .modal-content {
    padding: 28px 24px 24px;
    border-radius: 18px;
  }
  .greensand-success-modal h2 {
    font-size: 26px;
  }
}

/* Greensand enquiry modal: keep it above Bootstrap's backdrop and fade in without the default slide. */
.greensand-success-modal {
  z-index: 1065 !important;
}
.modal-backdrop {
  z-index: 1060 !important;
}
.greensand-success-modal.fade .modal-dialog,
.greensand-success-modal.show .modal-dialog {
  transform: none !important;
  transition: opacity .2s ease !important;
}
.greensand-success-modal .modal-dialog {
  opacity: 0;
}
.greensand-success-modal.show .modal-dialog {
  opacity: 1;
}

/* Prevent horizontal page movement/scroll while the enquiry modal is open on mobile. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body.modal-open {
  overflow-x: hidden !important;
  padding-right: 0 !important;
}

.greensand-success-modal {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 575.98px) {
  .greensand-success-modal .modal-dialog {
    width: auto;
    max-width: calc(100vw - 24px);
    margin: 12px auto;
  }

  .greensand-success-modal .modal-content {
    width: 100%;
    max-width: 100%;
  }
}
