:root {
  --green: #198762;
  --green-dark: #12694b;
  --ink: #111820;
  --muted: #60656d;
  --surface: #f5f5f5;
  --line: #e7e7e7;
  --white: #ffffff;
  --font: "DM Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

/* CSS-only mobile menu controller */
.menu-toggle {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

body:has(.menu-toggle:checked) {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

button,
a,
label {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
  text-decoration: none;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  height: 74px;
  background: #fff;
}

.site-header__inner {
  width: min(calc(100% - 64px), 1760px);
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}

.site-logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: auto;
  height: 21px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
}

.desktop-nav a {
  position: relative;
  color: #1f2933;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.desktop-nav__dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.desktop-nav__dropdown svg {
  width: 13px;
  height: 13px;
}

.site-header__tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

.notification-button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #121b22;
  background: transparent;
}

.notification-button svg {
  width: 21px;
  height: 21px;
}

.login-button {
  min-width: 102px;
  min-height: 42px;
  padding: 11px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #fff;
  background: var(--green);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}

.login-button:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
}

.mobile-menu {
  display: none;
}

/* Hero ------------------------------------------------------------------ */
.blog-hero {
  position: relative;
  min-height: clamp(300px, 31vw, 475px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #1c2421;
}

.blog-hero__image,
.blog-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blog-hero__image {
  z-index: -3;
  object-fit: cover;
  object-position: center 47%;
}

.blog-hero__overlay {
  z-index: -2;
  background: linear-gradient(93deg, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.4) 94%);
}

.blog-hero__content {
  width: min(calc(100% - 96px), 1760px);
  min-height: inherit;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 0 20px 46px;
}

.blog-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: 48px;
  font-weight: 600;
  line-height: 58px;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

.blog-hero__badge {
  position: absolute;
  top: 46%;
  right: max(48px, calc((100vw - 1760px) / 2 + 48px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 400;
}

.blog-hero__badge span {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
}

/* Blog grid -------------------------------------------------------------- */
.blog-listing {
  padding: clamp(54px, 6vw, 92px) 32px clamp(76px, 8vw, 122px);
  background: var(--surface);
}

.blog-grid {
  width: min(100%, 1760px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3vw, 44px) clamp(22px, 2.4vw, 36px);
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(11, 31, 22, .06);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 16px rgba(13, 28, 21, .055);
  transition: transform .25s ease, box-shadow .25s ease;
}

.blog-card:hover {
  /* transform: translateY(-4px); */
  box-shadow: 0 12px 28px rgba(13, 28, 21, .09);
}

.blog-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.9 / 1;
  background: #dfe5e2;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}

.blog-card:hover .blog-card__image img {
  /* transform: scale(1.035); */
}

.blog-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 224px;
  padding: 22px 22px 20px;
}

.blog-card h2 {
  margin: 0;
  color: #101715;
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
}

.blog-card h2 a:hover {
  color: var(--green);
}

.blog-card__body>p {
  margin: 13px 0 22px;
  color: #64686d;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease;
}

.blog-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-card__read {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #18a979;
  font-size: 13px;
  font-weight: 500;
}

.blog-card__read span {
  font-size: 17px;
  line-height: 1;
  transition: transform .2s ease;
}

.blog-card__read:hover span {
  transform: translateX(3px);
}

.blog-card__meta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #787d82;
  font-size: 10px;
  font-weight: 400;
  white-space: nowrap;
}

/* Footer ---------------------------------------------------------------- */
.site-footer {
  background: #fff;
}

.site-footer__main {
  width: min(calc(100% - 80px), 1760px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.55fr .62fr 1.05fr .8fr;
  gap: clamp(42px, 6vw, 100px);
  padding: clamp(72px, 7vw, 110px) 0 clamp(68px, 6vw, 96px);
}

.site-footer__brand>a {
  display: inline-flex;
}

.site-footer__brand img {
  width: auto;
  height: 55px;
}

.site-footer__brand p {
  margin: 26px 0 0;
  color: #27313a;
  font-size: 14px;
  line-height: 1.65;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 29px;
}

.social-links a {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #101820;
  transition: color .2s ease, transform .2s ease;
}

.social-links a:hover {
  color: var(--green);
  transform: translateY(-2px);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

.footer-nav {
  display: grid;
  align-content: start;
  gap: 27px;
  padding-top: 5px;
}

.footer-nav a {
  width: fit-content;
  color: #384149;
  font-size: 14px;
  line-height: 1.4;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 39px;
  padding-top: 5px;
}

.footer-contact>div {
  display: grid;
  gap: 13px;
}

.footer-contact span {
  color: #151c20;
  font-size: 14px;
  font-weight: 500;
}

.footer-contact a {
  width: fit-content;
  color: #515860;
  font-size: 14px;
}

.site-footer__bar {
  color: rgba(255, 255, 255, .96);
  background: var(--green);
}

.site-footer__bar-inner {
  width: min(calc(100% - 80px), 1760px);
  min-height: 58px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer__bar p,
.site-footer__bar a {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
}

.site-footer__bar nav {
  display: flex;
  gap: 37px;
}

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1150px) {

  .site-header__inner,
  .blog-hero__content,
  .site-footer__main,
  .site-footer__bar-inner {
    width: calc(100% - 48px);
  }

  .blog-hero__content {
    padding-left: 24px;
  }

  .blog-grid {
    gap: 28px 22px;
  }

  .blog-card__body {
    padding-inline: 18px;
  }

  .site-footer__main {
    gap: 42px;
  }
}

@media (max-width: 900px) {

  .desktop-nav,
  .notification-button,
  .login-button {
    display: none;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 300;
    width: 100%;
    height: 62px;
    box-shadow: 0 1px 0 rgba(12, 34, 25, .08);
  }

  .site-header__inner {
    width: calc(100% - 36px);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-logo img {
    height: 29px;
  }

  .site-header__tools {
    margin-left: auto;
  }

  main {
    padding-top: 62px;
  }

  .menu-toggle:focus-visible~.site-header .menu-button {
    outline: 2px solid var(--green);
    outline-offset: 3px;
  }

  .menu-button {
    position: relative;
    z-index: 130;
    width: 52px;
    height: 38px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 8px;
    /* background: #f3f3f3; */
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .menu-button span {
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: #141c20;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }

  .menu-toggle:checked~.site-header .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:checked~.site-header .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked~.site-header .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    inset: 62px 0 0;
    z-index: 290;
    width: 100%;
    height: calc(100dvh - 62px);
    padding: 26px 20px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
  }

  .menu-toggle:checked~.mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu nav {
    display: grid;
  }

  .mobile-menu nav a {
    min-height: 55px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #edf0ee;
    color: #16201b;
    font-size: 16px;
    font-weight: 500;
  }

  .mobile-menu nav a[aria-current="page"] {
    color: var(--green);
  }

  .mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .mobile-menu__actions a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    border-radius: 7px;
    color: var(--green);
    font-size: 14px;
    font-weight: 500;
  }

  .mobile-menu__actions a:first-child {
    color: #fff;
    background: var(--green);
  }

  .blog-hero {
    min-height: 335px;
  }

  .blog-hero__content {
    padding-left: 12px;
  }

  .blog-hero__badge {
    display: none;
  }

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

  .site-footer__main {
    grid-template-columns: 1.3fr 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .blog-hero {
    min-height: 340px;
  }

  .blog-hero__image {
    object-position: 60% center;
  }

  .blog-hero__overlay {
    background: linear-gradient(90deg, rgba(5, 9, 8, .82), rgba(5, 9, 8, .38));
  }

  .blog-hero__content {
    width: calc(100% - 40px);
    padding: 25px 0 16px;
    justify-content: center;
  }

  .blog-hero h1 {
    font-size: 35px;
  }

  .blog-hero p {
    max-width: 470px;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.45;
  }

  .blog-listing {
    padding: 30px 20px 58px;
  }

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

  .blog-card {
    border-radius: 8px;
  }

  .blog-card__image {
    aspect-ratio: 1.78 / 1;
  }

  .blog-card__body {
    min-height: 0;
    padding: 17px 20px 18px;
  }

  .blog-card h2 {
    font-size: 20px;
    font-weight: 600;
  }

  .blog-card__body>p {
    margin: 8px 0 12px;
    font-size: 13px;
    line-height: 1.35;
  }

  .blog-card__footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .blog-card__read {
    font-size: 15px;
    font-weight: 600;
  }

  .blog-card__read span {
    font-size: 17px;
  }

  .blog-card__meta {
    margin-top: 2px;
    justify-content: flex-start;
    font-size: 13px;
  }

  .site-footer__main {
    width: calc(100% - 40px);
    grid-template-columns: 1fr 1fr;
    gap: 40px 26px;
    padding: 58px 0 55px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__brand img {
    height: 81px;
  }

  .site-footer__brand p {
    margin-top: 22px;
    font-size: 14px;
  }

  .footer-contact span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 129, 90, 1);
    text-transform: uppercase;
    letter-spacing: 2%;
  }

  .social-links {
    gap: 16px;
    margin-top: 24px;
  }

  .footer-nav {
    gap: 21px;
  }

  .footer-nav a {
    font-size: 14px;
  }

  .footer-contact {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .site-footer__bar-inner {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 19px 0 21px;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 15px;
  }

  .site-footer__bar nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-footer__bar p,
  .site-footer__bar a {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .site-header__inner {
    width: calc(100% - 30px);
  }

  .blog-hero {
    min-height: 280px;
  }

  .blog-hero__content {
    width: calc(100% - 34px);
  }

  .blog-hero h1 {
    font-size: 34px;
  }

  .blog-listing {
    padding-inline: 16px;
  }

  .footer-contact {
    grid-template-columns: 1fr;
  }

  .site-footer__bar nav {
    flex-wrap: nowrap;
  }

  .site-footer__bar a {
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   BLOG MOBILE NAV — MATCH CONTACT / GALLERY
   Mobile only (<= 760px). No other page sections are changed.
   ========================================================================== */
@media (max-width: 760px) {

  body:has(.menu-toggle:checked) {
    overflow: hidden;
  }

  /* Header */
  .site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 300;
    width: 100%;
    height: 68px;
    background: #fff;
    box-shadow: none;
  }

  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% - 32px);
    height: 100%;
    margin-inline: auto;
    gap: 18px;
  }

  .site-logo {
    position: relative;
    z-index: 302;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .site-logo img {
    display: block;
    width: auto;
    height: 22px;
  }

  .desktop-nav,
  .notification-button,
  .login-button {
    display: none;
  }

  .site-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
  }

  /* Burger / close button */
  .menu-button {
    position: relative;
    z-index: 302;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #101820;
    /* background: #f3f3f3; */
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 23px;
    height: 2px;
    margin: 0;
    border-radius: 99px;
    background: rgba(10, 20, 47, 1);
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }

  .menu-toggle:checked~.site-header .menu-button span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle:checked~.site-header .menu-button span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked~.site-header .menu-button span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Drawer */
  .mobile-menu {
    position: fixed;
    inset: 68px 0 0;
    z-index: 290;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    height: calc(100dvh - 68px);
    padding: 24px 20px 28px;
    overflow-y: auto;
    color: #101820;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -12px, 0);
    transition:
      opacity .25s ease,
      visibility .25s ease,
      transform .25s ease;
  }

  .menu-toggle:checked~.mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .mobile-menu nav {
    display: grid;
    width: 100%;
  }

  .mobile-menu nav a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 4px;
    border-bottom: 1px solid #ecefed;
    color: #15201b;
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    font-weight: 500;
  }

  .mobile-menu nav a[aria-current="page"] {
    color: var(--green);
  }

  /* Login directly below the menu, matching Contact page */
  .mobile-menu__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
    margin-top: 22px;
  }

  .mobile-menu__actions a,
  .mobile-menu__actions a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--green);
    font-family: "DM Sans", sans-serif;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
  }

  .mobile-menu__actions a:hover {
    color: #fff;
    background: var(--green-dark);
  }

  /* Account only for the mobile header height */
  main {
    padding-top: 68px;
  }
}


/* =========================================================
   DESKTOP STICKY HEADER ONLY
   ========================================================= */

@media (min-width: 901px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
  }
}