/*
Theme Name: Vesom Consulting
Theme URI: https://vesomconsulting.co.ke
Author: Vesom Consulting Ltd
Description: A custom, responsive consulting theme for Vesom Consulting Ltd with service-led hero sections, project showcases and accessible motion.
Version: 3.7.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: vesom-consulting
*/

:root {
  --vesom-navy: #071d3b;
  --vesom-blue: #1457d9;
  --vesom-green: #176b3a;
  --vesom-green-bright: #159447;
  --vesom-ivory: #f7f5ef;
  --vesom-white: #ffffff;
  --vesom-slate: #637083;
  --vesom-border: rgba(7, 29, 59, 0.14);
  --vesom-shadow: 0 24px 70px rgba(7, 29, 59, 0.16);
  --vesom-radius: 24px;
  --vesom-container: 1220px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--vesom-navy);
  background: var(--vesom-white);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.container {
  width: min(calc(100% - 40px), var(--vesom-container));
  margin-inline: auto;
}

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

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--vesom-white);
  background: var(--vesom-navy);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
}

.custom-logo {
  width: auto;
  max-height: 68px;
}

.brand-fallback {
  display: grid;
}

.brand-fallback strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-fallback span {
  color: var(--vesom-green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-navigation ul {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  position: relative;
  font-size: 0.94rem;
  font-weight: 700;
}

.primary-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--vesom-green-bright);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.primary-navigation a:hover::after,
.primary-navigation a:focus-visible::after,
.primary-navigation .current-menu-item > a::after {
  transform: scaleX(1);
}

.header-contact,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.header-contact {
  color: var(--vesom-green);
  border-color: var(--vesom-green);
}

.header-contact:hover,
.header-contact:focus-visible {
  color: var(--vesom-white);
  background: var(--vesom-green);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--vesom-navy);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--vesom-white);
  background: var(--vesom-navy);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(20, 87, 217, 0.24), transparent 35%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 48px 48px;
  content: "";
  pointer-events: none;
}

.hero-slider {
  position: relative;
  min-height: 670px;
}

.hero-slide {
  display: grid;
  min-height: 670px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  opacity: 0;
  position: absolute;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.hero-slide.is-active .hero-copy > * {
  animation: vesom-hero-copy-in 520ms ease both;
}

.hero-slide.is-active .hero-image img {
  animation: vesom-hero-image-in 700ms ease both;
}

@keyframes vesom-hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes vesom-hero-image-in {
  from {
    opacity: 0.72;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 82px max(44px, calc((100vw - var(--vesom-container)) / 2)) 104px max(20px, calc((100vw - var(--vesom-container)) / 2));
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  color: #72cf81;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::after {
  width: 64px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.1vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-intro {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-services li {
  padding: 7px 11px;
  border: 1px solid rgba(114, 207, 129, 0.42);
  border-radius: 999px;
  color: #e6f7e9;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.button-primary {
  color: var(--vesom-white);
  background: var(--vesom-green-bright);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--vesom-blue);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--vesom-white);
  border-color: rgba(114, 207, 129, 0.8);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(114, 207, 129, 0.13);
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  min-height: 670px;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-image::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--vesom-green-bright);
  content: "";
  transform: rotate(5deg);
  transform-origin: top;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 670px;
  object-fit: cover;
}

.hero-image.presentation img {
  object-position: 58% center;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  bottom: 34px;
  left: max(20px, calc((100vw - var(--vesom-container)) / 2));
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 4px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #72cf81;
}

.credibility-strip {
  background: var(--vesom-ivory);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.credibility-item {
  display: grid;
  min-height: 140px;
  place-content: center;
  padding: 26px;
  text-align: center;
  border-right: 1px solid var(--vesom-border);
}

.credibility-item:last-child {
  border-right: 0;
}

.credibility-item strong {
  color: var(--vesom-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.credibility-item span {
  margin-top: 8px;
  color: var(--vesom-slate);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 104px 0;
}

.section-soft {
  background: #f5f8fc;
}

.section-dark {
  color: var(--vesom-white);
  background: var(--vesom-navy);
}

.section-heading {
  display: grid;
  max-width: 780px;
  gap: 16px;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin: 0;
  color: var(--vesom-green);
}

.section-dark .section-heading .eyebrow {
  color: #72cf81;
}

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
  color: var(--vesom-slate);
  font-size: 1.05rem;
}

.section-dark .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.service-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--vesom-border);
  border-radius: var(--vesom-radius);
  background: var(--vesom-white);
  box-shadow: 0 14px 40px rgba(7, 29, 59, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vesom-shadow);
}

.service-card {
  min-height: 260px;
  padding: 24px;
}

.service-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--vesom-green);
  background: #e5f5e9;
  font-weight: 900;
}

.service-card h3,
.project-card h3 {
  margin: 16px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.15;
}

.service-card p,
.project-card p {
  margin: 0;
  color: var(--vesom-slate);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--vesom-blue);
  font-weight: 800;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-meta {
  color: var(--vesom-green);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-grid,
.contact-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.about-collage {
  position: relative;
  min-height: 560px;
}

.about-collage img {
  position: absolute;
  width: 75%;
  border-radius: var(--vesom-radius);
  box-shadow: var(--vesom-shadow);
}

.about-collage img:first-child {
  top: 0;
  left: 0;
}

.about-collage img:last-child {
  right: 0;
  bottom: 0;
  width: 62%;
  border: 8px solid var(--vesom-white);
}

.content-copy h1,
.content-copy h2 {
  margin: 0 0 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

.content-copy p {
  color: var(--vesom-slate);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.value-list li {
  padding: 16px;
  border-left: 3px solid var(--vesom-green);
  background: #f5f8fc;
  font-weight: 800;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px;
  border-radius: var(--vesom-radius);
  color: var(--vesom-white);
  background: linear-gradient(120deg, var(--vesom-blue), var(--vesom-navy));
  box-shadow: var(--vesom-shadow);
}

.cta-panel h2 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
}

.office-card {
  padding: 28px;
  border: 1px solid var(--vesom-border);
  border-radius: 16px;
  background: var(--vesom-white);
}

.office-card + .office-card {
  margin-top: 18px;
}

.office-card h3 {
  margin: 0 0 10px;
}

.office-card p {
  margin: 0;
}

.contact-form {
  padding: 36px;
  border-radius: var(--vesom-radius);
  background: var(--vesom-white);
  box-shadow: var(--vesom-shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--vesom-border);
  border-radius: 8px;
  background: #fbfcfe;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-notice {
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 8px;
}

.form-notice.success {
  color: #0c5c2b;
  background: #e4f6e9;
}

.form-notice.error {
  color: #8f1d1d;
  background: #fde8e8;
}

.page-hero {
  padding: 100px 0;
  color: var(--vesom-white);
  background: var(--vesom-navy);
}

.page-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
}

.entry-content {
  padding: 80px 0;
}

.entry-content > * {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: #04152d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 64px;
  padding: 74px 0 48px;
}

.footer-grid h2,
.footer-grid h3 {
  color: var(--vesom-white);
}

.footer-grid h2 {
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    top: 89px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 40px 24px;
    background: var(--vesom-white);
  }

  .primary-navigation.is-open {
    display: flex;
  }

  .primary-navigation ul {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-navigation a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
  }

  .header-contact {
    width: 100%;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 620px;
    padding: 72px 40px 96px;
  }

  .hero-image {
    min-height: 500px;
    clip-path: none;
  }

  .hero-image img {
    min-height: 500px;
  }

  .credibility-grid,
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    gap: 48px;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 30px), var(--vesom-container));
  }

  .header-inner {
    min-height: 76px;
  }

  .custom-logo {
    max-width: 210px;
    max-height: 58px;
  }

  .primary-navigation {
    top: 77px;
  }

  .hero-copy {
    min-height: 620px;
    padding: 64px 22px 98px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .hero-intro {
    font-size: 0.96rem;
  }

  .hero-image,
  .hero-image img {
    min-height: 380px;
  }

  .hero-controls {
    bottom: 42px;
  }

  .credibility-grid,
  .service-grid,
  .project-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .credibility-item {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--vesom-border);
  }

  .section {
    padding: 74px 0;
  }

  .about-collage {
    min-height: 430px;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 36px 28px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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

/* Version 3: mission-led homepage and client-approved content. */
.site-topbar {
  background: var(--vesom-navy);
  color: var(--vesom-white);
  font-size: 0.9rem;
}

.site-topbar .container {
  display: flex;
  justify-content: flex-end;
  padding-top: 9px;
  padding-bottom: 9px;
}

.site-topbar a {
  color: inherit;
}
.header-inner {
  min-height: 118px;
}

.site-branding {
  flex: 0 0 auto;
}

.custom-logo,
.site-branding img {
  width: 210px;
  max-width: 210px;
  max-height: 104px;
  object-fit: contain;
}

.mission-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--vesom-white);
  background: var(--vesom-navy);
}

.mission-hero-background,
.mission-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mission-hero-backgrounds {
  position: absolute;
  inset: 0;
}

.mission-hero-background {
  opacity: 0;
  object-fit: cover;
  object-position: center 44%;
  transition: opacity 1.2s ease;
}

.mission-hero-background.is-active {
  opacity: 1;
}

.mission-hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 29, 59, 0.97) 0%, rgba(7, 29, 59, 0.9) 44%, rgba(7, 29, 59, 0.46) 72%, rgba(7, 29, 59, 0.24) 100%),
    linear-gradient(0deg, rgba(7, 29, 59, 0.4), transparent 55%);
}

.mission-hero-content {
  position: relative;
  z-index: 2;
  padding-top: 92px;
  padding-bottom: 118px;
}

.mission-hero-content .eyebrow {
  color: #82dd91;
}

.mission-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4.6vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.mission-statement {
  max-width: 920px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.75;
}

.mission-statement strong {
  color: #82dd91;
}

.mission-hero-arc {
  position: absolute;
  z-index: 1;
  right: -210px;
  bottom: -350px;
  width: 840px;
  height: 840px;
  border: 52px solid rgba(114, 207, 129, 0.32);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-18deg);
}

.agpo-seal {
  position: absolute;
  z-index: 5;
  right: max(30px, calc((100vw - var(--vesom-container)) / 2));
  bottom: 42px;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
  border: 3px solid #82dd91;
  border-radius: 50%;
  color: var(--vesom-white);
  text-align: center;
  background: rgba(7, 29, 59, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.agpo-seal::before,
.agpo-seal::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(130, 221, 145, 0.65);
  border-radius: 50%;
  content: "";
}

.agpo-seal::after {
  inset: -8px;
  border-style: dashed;
  opacity: 0.65;
}

.agpo-seal-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 8px;
  border-radius: 50%;
  color: var(--vesom-navy);
  background: #82dd91;
  font-weight: 900;
}

.agpo-seal strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.agpo-seal > span:last-child {
  margin-top: 4px;
  color: #b9f0c2;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.brand-flow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.brand-flow::after {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  border: 38px solid rgba(20, 87, 217, 0.055);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.story-section::after {
  top: 160px;
  right: -370px;
  transform: rotate(22deg);
}

.services-section::after {
  bottom: -360px;
  left: -360px;
  border-color: rgba(23, 107, 58, 0.065);
  border-right-color: transparent;
}

.projects-section::after {
  top: -330px;
  right: -300px;
  border-color: rgba(114, 207, 129, 0.13);
  border-left-color: transparent;
}

.cta-section::after {
  right: -340px;
  bottom: -370px;
}

.story-section {
  padding-top: 118px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.profile-about-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
  gap: 0;
}

.profile-about-copy {
  columns: 1;
  padding-right: 0;
}

.profile-about-copy p {
  margin: 0 0 20px;
  break-inside: avoid;
  color: #35445a;
  font-size: 1rem;
  line-height: 1.72;
}

.profile-about-copy .about-quote {
  margin: 20px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--vesom-blue);
  color: var(--vesom-blue);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
}

.profile-about-copy .about-quote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.about-quote cite {
  display: block;
  margin-top: 5px;
  font-size: 0.82rem;
  font-weight: 600;
}

.profile-about-visual {
  position: sticky;
  top: 142px;
  overflow: hidden;
  border-radius: var(--vesom-radius);
  background: var(--vesom-white);
  box-shadow: var(--vesom-shadow);
}

.profile-about-visual img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.objectives-block {
  margin-top: 88px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

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

.objective-card {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  padding: 36px;
  border-radius: var(--vesom-radius);
  color: var(--vesom-white);
  background: linear-gradient(145deg, var(--vesom-blue), var(--vesom-navy));
  box-shadow: var(--vesom-shadow);
}

.objective-card::after {
  position: absolute;
  right: -65px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border: 20px solid rgba(130, 221, 145, 0.16);
  border-left-color: transparent;
  border-radius: 50%;
  content: "";
}

.objective-card > span {
  color: #82dd91;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.objective-card h3 {
  margin: 54px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.12;
}

.objective-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.vision-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.vision-mission-grid article {
  padding: 18px 0 18px 30px;
  border-left: 3px solid #82dd91;
}

.vision-mission-grid .eyebrow {
  color: #82dd91;
}

.profile-statement {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  line-height: 1.24;
}

.services-section {
  background: var(--vesom-white);
}

.service-card-with-image {
  min-height: 0;
  padding: 0;
}

.service-card-image {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.service-card-body {
  padding: 20px 22px 24px;
}

.service-card-with-image h3 {
  margin-top: 20px;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 42px;
}

.button-outline {
  color: var(--vesom-blue);
  border-color: var(--vesom-blue);
}

.button-light-outline {
  color: var(--vesom-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.all-services-grid .service-card:last-child:nth-child(3n + 1) { grid-column: auto; }

.single-service-image {
  width: 100%;
  max-height: 620px;
  margin-bottom: 42px;
  border-radius: var(--vesom-radius);
  object-fit: cover;
}

.cta-panel .eyebrow {
  margin-bottom: 18px;
  color: #b9f0c2;
}

@media (max-width: 1180px) {
  .header-inner {
    min-height: 100px;
  }

  .custom-logo,
  .site-branding img {
    width: 180px;
    max-width: 180px;
    max-height: 88px;
  }

  .primary-navigation ul {
    gap: 19px;
  }

  .profile-about-grid {
    grid-template-columns: 1fr;
  }

  .profile-about-visual {
    position: relative;
    top: auto;
  }
}

@media (max-width: 1024px) {
  .primary-navigation {
    top: 101px;
  }

  .mission-hero {
    min-height: 820px;
  }

  .mission-hero-content {
    padding-bottom: 220px;
  }

  .objective-grid {
    grid-template-columns: 1fr;
  }

  .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .objective-card {
    min-height: 0;
  }

  .all-services-grid .service-card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 86px;
  }

  .custom-logo,
  .site-branding img {
    width: 155px;
    max-width: 155px;
    max-height: 74px;
  }

  .primary-navigation {
    top: 87px;
  }

  .mission-hero {
    min-height: 760px;
  }

  .mission-hero-content {
    padding-top: 76px;
    padding-bottom: 240px;
  }

  .mission-hero h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .mission-statement {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .agpo-seal {
    right: 28px;
    bottom: 36px;
    width: 165px;
    height: 165px;
  }

  .profile-about-copy {
    columns: 1;
  }

  .profile-about-visual img {
    height: auto;
    min-height: 0;
  }

  .service-card-body {
    padding: 26px;
  }
}

/* Mobile quality-control corrections. */
@media (max-width: 720px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    position: relative;
    top: auto;
  }

  .header-inner {
    min-height: 104px;
  }

  .primary-navigation {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none !important;
    min-height: 100vh;
    overflow-y: auto;
    padding: 88px 28px 40px;
    background: #ffffff;
  }

  .primary-navigation.is-open {
    display: flex !important;
  }

  .primary-navigation ul {
    width: 100%;
    gap: 0;
  }

  .primary-navigation a {
    padding: 13px 0;
  }

  .primary-navigation .header-contact {
    width: 100%;
    margin-top: 16px;
    padding: 0 20px;
  }

  .menu-toggle {
    position: relative;
    z-index: 10000;
  }

  .site-topbar {
    font-size: 0.78rem;
  }

  .site-topbar .container {
    justify-content: center;
    text-align: center;
  }

  .mission-hero {
    min-height: 0;
  }

  .mission-hero-content {
    padding-top: 64px;
    padding-bottom: 210px;
  }

  .mission-hero h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10.5vw, 3.25rem);
    letter-spacing: -0.035em;
    line-height: 1.02;
  }

  .mission-statement {
    margin-top: 22px;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .agpo-seal {
    right: 20px;
    bottom: 28px;
    width: 145px;
    height: 145px;
    padding: 19px;
  }

  .page-hero {
    padding: 58px 0;
  }

  .page-hero h1 {
    font-size: clamp(2.65rem, 12vw, 3.8rem);
    line-height: 1.02;
  }

  .story-section {
    padding-top: 70px;
  }

  .profile-about-grid {
    gap: 30px;
  }

  .profile-about-copy p {
    font-size: 0.98rem;
    line-height: 1.68;
  }

  .objectives-block {
    margin-top: 64px;
  }

  .objective-card {
    padding: 30px;
  }

  .objective-card h3 {
    margin-top: 38px;
    font-size: 1.65rem;
  }

  .project-card,
  .service-card {
    min-height: 0;
  }

  .project-content {
    padding: 24px;
  }

  .project-card h3 {
    margin: 14px 0 10px;
  }

  .project-card .text-link {
    margin-top: 18px;
  }

  .footer-grid {
    padding-top: 54px;
  }
}

/* Version 3.2.0: responsive media, branding and project visuals. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }
.site-header-inner { min-height: 128px; }
.custom-logo-link, .custom-logo { width: 235px; max-width: 235px; }
.custom-logo { max-height: 116px; object-fit: contain; }
.project-visual { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 8.5; overflow: hidden; background: linear-gradient(145deg, #0b2954, #1551a7 58%, #128653); }
.project-visual::after { position: absolute; inset: auto -8% -55% 28%; height: 90%; border: 2px solid rgba(118, 229, 145, 0.45); border-radius: 50%; content: ""; }
.project-visual svg { width: 62%; height: 62%; fill: none; stroke: rgba(255,255,255,.94); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.project-visual span { position: absolute; right: 18px; bottom: 14px; z-index: 1; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-card-image, .project-card img { display: block; width: 100%; object-fit: cover; }
.mission-hero h1, .page-hero h1, .project-card h3, .service-card h3 { overflow-wrap: anywhere; }

@media (min-width: 721px) and (max-width: 1180px) {
  .site-header-inner { min-height: 112px; }
  .custom-logo-link, .custom-logo { width: 205px; max-width: 205px; }
  .custom-logo { max-height: 100px; }
  .mission-hero h1 { font-size: clamp(3rem, 6vw, 4.35rem); line-height: 1; }
  .agpo-seal { width: 165px; height: 165px; padding: 20px; }
  .services-grid, .projects-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header-inner { min-height: 106px; }
  .custom-logo-link, .custom-logo { width: 180px; max-width: 180px; }
  .custom-logo { max-height: 94px; }
  .mission-hero-content { padding-top: 58px; padding-bottom: 215px; }
  .mission-hero h1 { max-width: 100%; font-size: clamp(2.15rem, 9.7vw, 3.05rem); line-height: .99; letter-spacing: -.035em; }
  .agpo-seal { right: 18px; bottom: 26px; width: 148px; height: 148px; padding: 16px; }
  .agpo-seal-icon { width: 32px; height: 32px; font-size: .9rem; }
  .agpo-seal strong { font-size: 1rem; line-height: 1.02; }
  .agpo-seal span:last-child { max-width: 96px; font-size: .62rem; line-height: 1.15; letter-spacing: .055em; text-align: center; }
  .services-grid, .projects-grid, .project-grid { grid-template-columns: minmax(0, 1fr); }
  .project-visual { aspect-ratio: 16 / 9; }
  .project-visual span { right: 14px; bottom: 12px; font-size: .62rem; }
}

@media (max-width: 390px) {
  .custom-logo-link, .custom-logo { width: 166px; max-width: 166px; }
  .mission-hero h1 { font-size: clamp(2rem, 9.4vw, 2.65rem); }
  .agpo-seal { width: 136px; height: 136px; padding: 14px; }
}

/* Version 3.3.0: final responsive branding, controls and media system. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.container,
.header-inner,
.services-grid,
.projects-grid,
.project-grid,
.profile-about-grid,
.footer-grid {
  min-width: 0;
}

.site-header .header-inner {
  min-height: 140px;
  gap: clamp(18px, 3vw, 42px);
}

.site-branding {
  flex: 0 1 285px;
  min-width: 0;
}

.custom-logo-link {
  display: block;
  width: 285px;
  max-width: 100%;
}

.custom-logo,
.site-branding img.custom-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 128px;
  object-fit: contain;
  object-position: left center;
}

.menu-toggle {
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
}

.button,
.header-contact,
button,
input[type="button"],
input[type="submit"] {
  min-height: 48px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .button,
.section-action .button,
.cta-panel .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.agpo-seal {
  box-sizing: border-box;
}

.agpo-seal strong,
.agpo-seal > span:last-child {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  text-align: center;
}

.service-card,
.project-card,
.objective-card {
  min-width: 0;
}

.service-card-image,
.project-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.mission-hero h1,
.page-hero h1,
.service-card h3,
.project-card h3,
.objective-card h3 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

@media (min-width: 721px) and (max-width: 1180px) {
  .site-header .header-inner {
    min-height: 120px;
  }

  .site-branding {
    flex-basis: 235px;
  }

  .custom-logo-link {
    width: 235px;
  }

  .custom-logo,
  .site-branding img.custom-logo {
    max-height: 108px;
  }
}

@media (max-width: 1024px) {
  .site-header .header-inner {
    min-height: 116px;
    gap: 16px;
  }

  .site-branding {
    flex: 0 1 min(240px, calc(100% - 72px));
  }

  .custom-logo-link {
    width: 230px;
  }

  .custom-logo,
  .site-branding img.custom-logo {
    max-height: 104px;
  }

  .primary-navigation {
    max-width: 100vw;
  }

  .primary-navigation .header-contact {
    min-height: 50px;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner {
    min-height: 112px;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 12px;
  }

  .site-branding {
    flex: 0 1 calc(100% - 64px);
  }

  .custom-logo-link {
    width: 200px;
  }

  .custom-logo,
  .site-branding img.custom-logo {
    max-height: 96px;
  }

  .mission-hero-content {
    padding-top: 54px;
    padding-bottom: 220px;
  }

  .mission-hero h1 {
    font-size: clamp(2.2rem, 10.1vw, 3.1rem);
    line-height: 1;
  }

  .agpo-seal {
    right: 20px;
    bottom: 30px;
    width: 154px;
    height: 154px;
    padding: 22px 18px 18px;
  }

  .agpo-seal-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
  }

  .agpo-seal strong {
    font-size: 1.02rem;
    line-height: 1.05;
  }

  .agpo-seal > span:last-child {
    width: 94px;
    margin-top: 5px;
    font-size: 0.57rem;
    line-height: 1.15;
    letter-spacing: 0.035em;
  }

  .service-card-image,
  .project-card img {
    aspect-ratio: 4 / 3;
  }

  .button,
  .header-contact,
  button,
  input[type="button"],
  input[type="submit"] {
    min-height: 50px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 52px;
    white-space: normal;
    text-align: center;
  }

  .site-topbar {
    font-size: clamp(0.7rem, 3.4vw, 0.82rem);
  }
}

@media (max-width: 390px) {
  .site-header .header-inner {
    min-height: 108px;
  }

  .custom-logo-link {
    width: 186px;
  }

  .custom-logo,
  .site-branding img.custom-logo {
    max-height: 91px;
  }

  .mission-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.7rem);
  }

  .agpo-seal {
    width: 142px;
    height: 142px;
    padding: 20px 16px 16px;
  }

  .agpo-seal > span:last-child {
    width: 86px;
    font-size: 0.53rem;
  }
}

@media (max-width: 350px) {
  .custom-logo-link {
    width: 168px;
  }

  .agpo-seal {
    right: 14px;
    width: 136px;
    height: 136px;
  }
}

/* Version 3.4.0: authoritative responsive header and navigation system. */
html {
  overflow-x: clip;
  scroll-padding-top: 150px;
}

body {
  overflow-wrap: break-word;
}

.site-topbar {
  position: relative;
  z-index: 1002;
}

.site-topbar .container {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.site-topbar a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}

.site-header {
  isolation: isolate;
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 28px rgba(7, 29, 59, 0.07);
  backdrop-filter: blur(14px);
}

.site-header .header-inner {
  display: flex;
  min-height: 124px;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  flex-wrap: nowrap;
}

.site-branding {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  min-width: 0;
}

.custom-logo-link {
  display: flex;
  width: clamp(245px, 18vw, 310px);
  align-items: center;
}

.custom-logo,
.site-branding img.custom-logo {
  width: 100%;
  max-width: none;
  max-height: 108px;
  object-fit: contain;
  object-position: left center;
}

.primary-navigation {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 30px);
}

.primary-navigation ul {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(3px, 0.45vw, 9px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-navigation li {
  margin: 0;
}

.primary-navigation li a {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 10px clamp(9px, 0.8vw, 14px);
  border-radius: 999px;
  color: var(--vesom-navy);
  font-size: clamp(0.91rem, 0.85vw, 1rem);
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.primary-navigation li a:hover,
.primary-navigation li a:focus-visible,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--vesom-green);
  background: rgba(21, 148, 71, 0.09);
  outline: none;
}

.primary-navigation li a:focus-visible,
.header-contact:focus-visible,
.menu-toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(20, 87, 217, 0.2);
}

.header-contact {
  display: inline-flex;
  min-width: 142px;
  min-height: 50px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--vesom-green);
  border-radius: 999px;
  color: var(--vesom-green);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.header-contact:hover {
  color: #fff;
  background: var(--vesom-green);
  box-shadow: 0 10px 24px rgba(23, 107, 58, 0.2);
  transform: translateY(-1px);
}

.menu-toggle {
  position: relative;
  z-index: 10002;
  display: none;
  width: 52px;
  min-width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(7, 29, 59, 0.14);
  border-radius: 16px;
  place-content: center;
  gap: 5px;
  color: var(--vesom-navy);
  background: #fff;
  box-shadow: 0 10px 28px rgba(7, 29, 59, 0.1);
  cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 220ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] > span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1180px) {
  html {
    scroll-padding-top: 135px;
  }

  body.menu-open::before {
    position: fixed;
    z-index: 9990;
    inset: 0;
    content: "";
    background: rgba(3, 15, 33, 0.58);
    backdrop-filter: blur(3px);
  }

  .site-header .header-inner {
    min-height: 112px;
    justify-content: space-between;
  }

  .custom-logo-link {
    width: clamp(220px, 27vw, 270px);
  }

  .custom-logo,
  .site-branding img.custom-logo {
    max-height: 96px;
  }

  .menu-toggle {
    display: grid !important;
    margin-left: auto;
  }

  .primary-navigation {
    position: fixed !important;
    z-index: 9999;
    inset: 0 0 0 auto !important;
    display: flex !important;
    width: min(88vw, 430px);
    height: 100dvh;
    min-height: 100vh;
    padding: 112px 28px 34px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    overflow-y: auto;
    border-left: 1px solid rgba(7, 29, 59, 0.1);
    background:
      radial-gradient(circle at 100% 0%, rgba(21, 148, 71, 0.12), transparent 36%),
      #fff;
    box-shadow: -28px 0 70px rgba(3, 15, 33, 0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateX(104%);
    pointer-events: none;
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease, visibility 0s linear 280ms;
  }

  .primary-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: 0s;
  }

  .primary-navigation ul {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .primary-navigation li,
  .primary-navigation li a {
    width: 100%;
  }

  .primary-navigation li a {
    min-height: 54px;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 15px;
    font-size: 1.04rem;
  }

  .primary-navigation li a::after {
    content: "\2192";
    color: var(--vesom-green);
    font-size: 1.15em;
    opacity: 0.75;
  }

  .primary-navigation li a:hover,
  .primary-navigation li a:focus-visible,
  .primary-navigation .current-menu-item > a,
  .primary-navigation .current_page_item > a {
    border-color: rgba(23, 107, 58, 0.15);
    background: rgba(21, 148, 71, 0.08);
  }

  .primary-navigation .header-contact {
    width: 100%;
    min-height: 56px;
    margin-top: auto;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--vesom-green-bright), var(--vesom-green));
  }

  .menu-toggle[aria-expanded="true"] {
    position: fixed;
    top: 70px;
    right: max(20px, calc((100vw - var(--vesom-container)) / 2));
  }
}

@media (max-width: 900px) {
  .section,
  .page-hero,
  .services-preview,
  .projects-preview,
  .impact-preview {
    overflow: clip;
  }

  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .services-grid,
  .projects-grid,
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .section-heading,
  .section-heading > *,
  .about-copy,
  .about-media {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 124px;
  }

  .container {
    width: min(calc(100% - 32px), var(--vesom-container));
  }

  .site-topbar,
  .site-topbar .container,
  .site-topbar a {
    min-height: 38px;
  }

  .site-topbar a {
    flex-wrap: wrap;
    gap: 0.15em 0.35em;
    padding-block: 5px;
    line-height: 1.25;
  }

  .site-header .header-inner {
    min-height: 104px !important;
    gap: 16px;
  }

  .custom-logo-link {
    width: clamp(198px, 57vw, 232px) !important;
  }

  .custom-logo,
  .site-branding img.custom-logo {
    max-height: 88px !important;
  }

  .menu-toggle {
    width: 50px;
    min-width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .menu-toggle[aria-expanded="true"] {
    top: 58px;
    right: 16px;
  }

  .primary-navigation {
    width: min(94vw, 400px);
    padding: 104px 20px 24px;
  }

  .mission-hero,
  .page-hero {
    min-height: 0;
  }

  .mission-hero h1,
  .page-hero h1,
  .section-heading h2,
  .about-copy h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.5vw, 3.35rem) !important;
    line-height: 0.99;
    overflow-wrap: normal;
    word-break: normal;
  }

  .mission-hero-content,
  .page-hero .container {
    padding-block: clamp(52px, 13vw, 84px);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .hero-actions .button,
  .button,
  .wp-block-button__link,
  button,
  input[type="button"],
  input[type="submit"] {
    min-height: 52px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .services-grid,
  .projects-grid,
  .impact-grid,
  .objectives-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .service-card,
  .project-card,
  .impact-card,
  .objective-card {
    min-width: 0;
    max-width: 100%;
  }

  .service-card-image,
  .project-card img,
  .impact-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .agpo-seal {
    position: relative !important;
    inset: auto !important;
    width: 154px !important;
    height: 154px !important;
    margin: 28px 0 0 auto;
    padding: 22px 17px 17px !important;
    flex: 0 0 auto;
  }

  .agpo-seal > span:last-child {
    width: 92px !important;
    font-size: 0.58rem !important;
    line-height: 1.18 !important;
    letter-spacing: 0.04em !important;
    text-align: center;
  }

  .footer-grid {
    gap: 34px;
  }
}

@media (max-width: 414px) {
  .container {
    width: min(calc(100% - 28px), var(--vesom-container));
  }

  .site-topbar {
    font-size: 0.76rem;
  }

  .site-header .header-inner {
    min-height: 98px !important;
  }

  .custom-logo-link {
    width: clamp(184px, 55vw, 210px) !important;
  }

  .custom-logo,
  .site-branding img.custom-logo {
    max-height: 82px !important;
  }

  .menu-toggle {
    width: 48px;
    min-width: 48px;
    height: 48px;
  }

  .primary-navigation {
    width: 100%;
    padding: 96px 18px 22px;
    border-left: 0;
  }

  .mission-hero h1,
  .page-hero h1,
  .section-heading h2,
  .about-copy h2 {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
  }

  .mission-hero p,
  .page-hero p,
  .about-copy,
  .service-card p,
  .project-card p {
    font-size: clamp(0.96rem, 4.5vw, 1.06rem);
  }
}

@media (max-width: 375px) {
  .custom-logo-link {
    width: 176px !important;
  }

  .menu-toggle {
    width: 46px;
    min-width: 46px;
    height: 46px;
  }

  .mission-hero h1,
  .page-hero h1,
  .section-heading h2,
  .about-copy h2 {
    font-size: clamp(1.9rem, 10.7vw, 2.5rem) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-navigation,
  .menu-toggle > span,
  .primary-navigation a,
  .header-contact {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}

/* Version 3.4.3: one clean, enlarged brand mark; the company name is part of the logo artwork. */
.site-branding {
  display: block;
  flex: 0 1 310px;
  max-width: min(310px, calc(100% - 72px));
}

.site-branding .custom-logo-link {
  display: block;
  width: 310px;
  max-width: 100%;
}

.site-branding .custom-logo,
.site-branding img.custom-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 138px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 720px) {
  .site-branding {
    flex-basis: min(230px, calc(100% - 66px));
    max-width: calc(100% - 66px);
  }

  .site-branding .custom-logo-link {
    width: clamp(205px, 58vw, 230px) !important;
  }

  .site-branding .custom-logo,
  .site-branding img.custom-logo {
    max-height: 102px !important;
  }
}

@media (max-width: 414px) {
  .site-branding .custom-logo-link {
    width: clamp(194px, 57vw, 216px) !important;
  }

  .site-branding .custom-logo,
  .site-branding img.custom-logo {
    max-height: 96px !important;
  }
}

@media (max-width: 375px) {
  .site-branding .custom-logo-link {
    width: 188px !important;
  }
}

/* Version 3.4.4: compact, readable homepage hero typography on phones. */
@media (max-width: 720px) {
  .mission-hero h1 {
    max-width: 100%;
    font-size: clamp(2.05rem, 8.8vw, 2.85rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.025em;
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
    text-wrap: pretty;
  }

  .mission-statement {
    margin-top: 20px;
  }
}

@media (max-width: 414px) {
  .mission-hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.4rem) !important;
  }
}

@media (max-width: 375px) {
  .mission-hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.2rem) !important;
  }
}

/* Version 3.4.5: final mobile navigation, stacking and small-screen polish. */
@media (max-width: 1180px) {
  /* Keep the drawer and close control above the dimmed page layer. */
  body.menu-open::before {
    z-index: 990;
  }

  .site-header {
    z-index: 1000;
  }

  .primary-navigation {
    padding-top: max(112px, calc(92px + env(safe-area-inset-top)));
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  /* Reset the desktop underline before using a single arrow in drawer links. */
  .primary-navigation li a::after {
    position: static;
    inset: auto;
    display: inline-block;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    margin-left: 16px;
    background: none;
    content: "\2192";
    color: var(--vesom-green);
    font-size: 1.12em;
    line-height: 1;
    opacity: 0.72;
    transform: none;
    transform-origin: center;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .primary-navigation li a:hover::after,
  .primary-navigation li a:focus-visible::after,
  .primary-navigation .current-menu-item > a::after,
  .primary-navigation .current_page_item > a::after {
    opacity: 1;
    transform: translateX(4px);
  }
}

@media (max-width: 720px) {
  .section-heading h2,
  .about-copy h2 {
    font-size: clamp(1.85rem, 7.6vw, 2.45rem) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.025em;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9.6vw, 2.9rem) !important;
    line-height: 1.02 !important;
    text-wrap: balance;
  }

  .primary-navigation li a {
    min-height: 56px;
    font-size: 1rem;
  }
}

@media (max-width: 414px) {
  .site-branding .custom-logo-link {
    width: min(216px, 63vw) !important;
  }

  .primary-navigation {
    padding-top: max(96px, calc(78px + env(safe-area-inset-top)));
  }
}

@media (max-width: 375px) {
  .site-branding .custom-logo-link {
    width: min(208px, 63vw) !important;
  }
}

@media (max-width: 350px) {
  .site-branding .custom-logo-link {
    width: min(196px, 61vw) !important;
  }

  .site-header .header-inner {
    gap: 10px;
  }
}

/* Version 3.4.6: mobile homepage hero layout matched to the approved compact reference. */
@media (max-width: 720px) {
  .mission-hero {
    display: block;
    min-height: 0 !important;
    height: auto !important;
  }

  .mission-hero-content {
    width: min(calc(100% - 36px), var(--vesom-container));
    max-width: var(--vesom-container);
    padding-top: clamp(42px, 11vw, 58px) !important;
    padding-bottom: clamp(28px, 7vw, 38px) !important;
  }

  .mission-hero-content .eyebrow {
    display: flex;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 26px;
    font-size: clamp(0.68rem, 3vw, 0.78rem);
    letter-spacing: 0.16em;
    line-height: 1.25;
    white-space: nowrap;
  }

  .mission-hero-content .eyebrow::after {
    width: auto;
    min-width: 38px;
    max-width: 72px;
    flex: 1 1 72px;
  }

  .mission-hero h1 {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: clamp(2.05rem, 9.15vw, 2.62rem) !important;
    line-height: 1.055 !important;
    letter-spacing: -0.035em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-wrap: normal !important;
    word-break: normal !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
    hyphens: none !important;
    text-wrap: pretty;
  }

  .mission-statement {
    width: 100%;
    max-width: none;
    margin-top: 26px;
    font-size: clamp(0.96rem, 4.2vw, 1.04rem);
    line-height: 1.58;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.28fr);
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin-top: 34px;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 10px 12px;
    font-size: clamp(0.78rem, 3.5vw, 0.92rem);
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }

  /* Keep the certification seal visible without allowing it to crowd the headline. */
  .mission-hero > .agpo-seal {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 132px !important;
    height: 132px !important;
    margin: 0 auto clamp(38px, 10vw, 54px) !important;
    padding: 18px 14px 14px !important;
    flex: 0 0 auto;
  }

  .mission-hero > .agpo-seal .agpo-seal-icon {
    width: 29px;
    height: 29px;
    margin-bottom: 5px;
    font-size: 0.82rem;
  }

  .mission-hero > .agpo-seal strong {
    font-size: 0.94rem;
    line-height: 1.02;
  }

  .mission-hero > .agpo-seal > span:last-child {
    width: 84px !important;
    margin-top: 4px;
    font-size: 0.51rem !important;
    line-height: 1.14 !important;
    letter-spacing: 0.035em !important;
  }

  .mission-hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 29, 59, 0.96) 0%, rgba(7, 29, 59, 0.88) 58%, rgba(7, 29, 59, 0.62) 100%),
      linear-gradient(0deg, rgba(7, 29, 59, 0.36), transparent 56%);
  }

  .mission-hero-background {
    object-position: center center;
  }

  .mission-hero-arc {
    right: -330px;
    bottom: -430px;
    width: 760px;
    height: 760px;
    border-width: 44px;
  }
}

@media (max-width: 390px) {
  .mission-hero-content {
    width: min(calc(100% - 30px), var(--vesom-container));
  }

  .mission-hero h1 {
    font-size: clamp(1.95rem, 8.9vw, 2.18rem) !important;
    line-height: 1.07 !important;
  }

  .mission-statement {
    font-size: 0.95rem;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .button {
    padding-inline: 9px;
    font-size: 0.78rem;
  }
}

@media (max-width: 340px) {
  .mission-hero-content .eyebrow {
    font-size: 0.64rem;
    letter-spacing: 0.13em;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .button {
    font-size: 0.86rem;
  }
}

/* Version 3.4.7: restore the Female-Led AGPO certification seal on mobile. */
@media (max-width: 390px) {
  .mission-hero > .agpo-seal {
    width: 124px !important;
    height: 124px !important;
    padding: 16px 12px 12px !important;
  }

  .mission-hero > .agpo-seal strong {
    font-size: 0.88rem;
  }

  .mission-hero > .agpo-seal > span:last-child {
    width: 78px !important;
    font-size: 0.48rem !important;
  }
}

@media (max-width: 340px) {
  .mission-hero > .agpo-seal {
    width: 116px !important;
    height: 116px !important;
    padding: 14px 10px 10px !important;
  }

  .mission-hero > .agpo-seal .agpo-seal-icon {
    width: 26px;
    height: 26px;
  }

  .mission-hero > .agpo-seal strong {
    font-size: 0.82rem;
  }

  .mission-hero > .agpo-seal > span:last-child {
    width: 72px !important;
    font-size: 0.45rem !important;
  }
}


/* Version 3.5.1: client-approved slogan and partners presentation. */
.site-branding {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.site-branding .brand-slogan {
  display: block;
  max-width: 100%;
  margin-top: -3px;
  color: var(--vesom-green);
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.105em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.footer-slogan {
  margin: -4px 0 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partners-content {
  max-width: 1050px;
}

.partners-intro {
  max-width: 820px;
  margin: 0 0 34px;
  color: var(--vesom-slate);
  font-size: clamp(1.04rem, 1.7vw, 1.24rem);
  line-height: 1.75;
}

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

.partner-card {
  position: relative;
  min-height: 220px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--vesom-border);
  border-radius: var(--vesom-radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 148, 71, 0.12), transparent 42%),
    var(--vesom-white);
  box-shadow: 0 18px 48px rgba(7, 29, 59, 0.1);
}

.partner-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--vesom-white);
  background: var(--vesom-green);
  font-size: 0.78rem;
  font-weight: 800;
}

.partner-card h2 {
  max-width: 260px;
  margin: 54px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

@media (min-width: 1181px) {
  .primary-navigation {
    gap: 12px;
  }

  .primary-navigation ul {
    gap: 2px;
  }

  .primary-navigation li a {
    padding-inline: 8px;
    font-size: 0.88rem;
  }

  .header-contact {
    min-width: 0;
    padding-inline: 16px;
    font-size: 0.88rem;
  }
}

@media (max-width: 1180px) {
  .site-branding .brand-slogan {
    font-size: 0.61rem;
  }
}

@media (max-width: 800px) {
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card {
    min-height: 175px;
  }

  .partner-card h2 {
    margin-top: 34px;
  }
}

@media (max-width: 720px) {
  .site-branding .brand-slogan {
    margin-top: -2px;
    font-size: 0.51rem;
    letter-spacing: 0.075em;
  }
}

@media (max-width: 390px) {
  .site-branding .brand-slogan {
    font-size: 0.47rem;
  }

  .partner-card {
    padding: 26px;
  }
}


/* Version 3.6.0: combined safeguards service, monitoring and impact visuals,
   interactive partners, contact-only navigation and prominent project funding. */

/* The contact page remains in the menu; the separate consultation button is removed. */
.primary-navigation {
  gap: 8px;
}

.project-card-heading {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(7, 29, 59, 0.08);
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 148, 71, 0.12), transparent 44%),
    linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
}

.project-card-heading h3,
.project-card .project-card-heading h3 {
  order: 1;
  margin: 0 0 14px;
  color: var(--vesom-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 1.75vw, 1.62rem);
  font-weight: 800;
  line-height: 1.13;
}

.project-funder-badge {
  order: 2;
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid rgba(20, 87, 217, 0.25);
  border-radius: 999px;
  color: #0b3d9c;
  background: rgba(20, 87, 217, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-funder-badge.is-world-bank {
  color: #ffffff;
  border-color: #1457d9;
  background: linear-gradient(135deg, #1457d9, #0b3d9c);
  box-shadow: 0 8px 18px rgba(20, 87, 217, 0.23);
}

.project-card-heading .project-meta {
  order: 3;
  margin-top: auto;
  color: var(--vesom-green);
}

.project-card > .project-visual {
  border-radius: 0;
}

.project-card > .project-content {
  padding-top: 22px;
}

/* Partners appear immediately after projects on the homepage. */
.homepage-partners-section {
  background:
    radial-gradient(circle at 8% 15%, rgba(20, 87, 217, 0.08), transparent 30%),
    radial-gradient(circle at 94% 90%, rgba(21, 148, 71, 0.1), transparent 34%),
    #f8faf8;
}

.partners-content {
  max-width: var(--vesom-container);
}

.partners-intro {
  max-width: 850px;
  margin-bottom: 34px;
}

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

.partner-card,
a.partner-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--vesom-border);
  border-radius: var(--vesom-radius);
  color: var(--vesom-navy);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(7, 29, 59, 0.09);
  text-align: center;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.partner-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--vesom-blue), var(--vesom-green-bright));
  content: "";
  transform: scaleX(0.3);
  transform-origin: center;
  transition: transform 220ms ease;
}

.partner-card:hover,
.partner-card:focus-visible {
  border-color: rgba(21, 148, 71, 0.36);
  outline: none;
  box-shadow: 0 28px 64px rgba(7, 29, 59, 0.16);
  transform: translateY(-8px);
}

.partner-card:hover::before,
.partner-card:focus-visible::before {
  transform: scaleX(1);
}

.partner-card .partner-card-number {
  position: absolute;
  top: 20px;
  left: 20px;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--vesom-green);
  font-size: 0.72rem;
  font-weight: 900;
}

.partner-logo {
  width: min(100%, 230px);
  height: 142px;
  margin: 18px auto 20px;
  padding: 8px;
  border-radius: 18px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.partner-card:hover .partner-logo,
.partner-card:focus-visible .partner-logo {
  transform: scale(1.045);
}

.partner-card h3,
.partner-card h2 {
  max-width: 100%;
  margin: 0;
  color: var(--vesom-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 1.8vw, 1.62rem);
  font-weight: 800;
  line-height: 1.18;
}

.partner-card .partner-card-action {
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 20px;
  border-radius: 0;
  color: var(--vesom-blue);
  background: transparent;
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.partner-card .partner-card-action span {
  display: inline;
  width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  font-size: 1rem;
}

/* Ensure the new generated photographs fill their cards cleanly. */
.service-card-image,
.project-card img,
.page-template-page-our-impact .project-card img {
  object-position: center center;
}

@media (max-width: 1024px) {
  .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 520px);
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .project-card-heading {
    min-height: 0;
    padding: 22px 22px 18px;
  }

  .project-card-heading h3,
  .project-card .project-card-heading h3 {
    font-size: 1.42rem;
  }

  .partner-grid {
    grid-template-columns: 1fr;
  }

  .partner-card,
  .partner-card:last-child {
    width: 100%;
    min-height: 270px;
    grid-column: auto;
  }

  .partner-logo {
    height: 130px;
  }
}


/* Version 3.6.1: aligned project cards and client-approved partner logos. */
.project-grid {
  align-items: stretch;
}

.project-grid-all {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  display: grid;
  height: 100%;
  grid-template-rows: 284px auto minmax(0, 1fr);
}

.project-card-heading {
  display: grid;
  height: 284px;
  min-height: 284px;
  grid-template-rows: minmax(0, 1fr) 48px auto;
  align-content: stretch;
  gap: 0;
}

.project-card-heading h3,
.project-card .project-card-heading h3 {
  display: block;
  align-self: start;
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 1.55vw, 1.52rem);
  line-height: 1.16;
}

.project-funder-slot {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
}

.project-funder-slot .project-funder-badge {
  margin-bottom: 10px;
}

.project-card-heading .project-meta {
  align-self: end;
  margin-top: 0;
  line-height: 1.45;
}

.project-card > .project-content {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.project-card > .project-content .text-link {
  margin-top: auto;
  padding-top: 22px;
}

.partner-logo {
  display: block;
  width: 100%;
  max-width: 270px;
  height: 150px;
  margin: 16px auto 20px;
  padding: 4px;
  object-fit: contain;
  object-position: center;
}

.partner-logo--secure-success-organization {
  max-width: 190px;
  height: 158px;
}

.partner-logo--mokila-consultants-limited {
  max-width: 230px;
  height: 140px;
}

.partner-logo--psychoafrica-solutions {
  max-width: 290px;
  height: 145px;
}

@media (max-width: 1180px) {
  .project-grid-all {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-grid-all {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .project-card {
    display: flex;
    height: auto;
    flex-direction: column;
  }

  .project-card-heading {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .project-funder-slot {
    min-height: 0;
  }

  .project-funder-slot:empty {
    display: none;
  }

  .partner-logo,
  .partner-logo--secure-success-organization,
  .partner-logo--mokila-consultants-limited,
  .partner-logo--psychoafrica-solutions {
    max-width: 260px;
    height: 138px;
  }
}

/* Version 3.6.2: strict project-card alignment across desktop and tablet. */
@media (min-width: 1181px) {
  .page-template-page-projects .project-grid-all {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px !important;
  }

  .home .projects-section .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 26px !important;
  }
}

@media (min-width: 721px) {
  .project-grid .project-card {
    display: grid !important;
    height: 100% !important;
    min-width: 0;
    grid-template-rows: 310px 205px minmax(300px, auto) !important;
    align-self: stretch;
  }

  .project-grid .project-card-heading {
    display: grid !important;
    width: 100%;
    height: 310px !important;
    min-height: 310px !important;
    max-height: 310px !important;
    grid-template-rows: minmax(0, 168px) 58px minmax(0, 1fr) !important;
    align-content: stretch;
    padding: 24px 28px 22px !important;
    overflow: hidden;
  }

  .project-grid .project-card-heading h3,
  .project-grid .project-card .project-card-heading h3 {
    display: -webkit-box;
    align-self: start;
    max-height: 168px;
    margin: 0 !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    color: var(--vesom-navy);
    font-size: clamp(1.30rem, 1.52vw, 1.55rem) !important;
    line-height: 1.18 !important;
  }

  .project-grid .project-funder-slot {
    display: flex !important;
    min-height: 58px !important;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
  }

  .project-grid .project-funder-slot:empty {
    display: block !important;
    min-height: 58px !important;
    visibility: hidden;
  }

  .project-grid .project-funder-slot .project-funder-badge {
    margin: 8px 0 0 !important;
  }

  .project-grid .project-card-heading .project-meta {
    display: flex;
    min-height: 0;
    align-items: flex-end;
    align-self: stretch;
    margin: 0 !important;
    overflow: hidden;
    line-height: 1.45 !important;
  }

  .project-grid .project-card > .project-visual {
    width: 100%;
    height: 205px !important;
    min-height: 205px !important;
    max-height: 205px !important;
    aspect-ratio: auto !important;
  }

  .project-grid .project-card > .project-visual svg {
    width: 58%;
    height: 58%;
  }

  .project-grid .project-card > .project-content {
    display: flex !important;
    min-height: 300px !important;
    flex-direction: column;
    padding: 26px 28px 28px !important;
  }

  .project-grid .project-card > .project-content > p:first-child {
    margin-top: 0 !important;
  }

  .project-grid .project-card > .project-content .text-link {
    margin-top: auto !important;
    padding-top: 24px !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .page-template-page-projects .project-grid-all,
  .home .projects-section .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }

  .project-grid .project-card-heading {
    padding-inline: 24px !important;
  }
}

@media (max-width: 720px) {
  .project-grid .project-card {
    display: flex !important;
    height: auto !important;
    flex-direction: column;
  }

  .project-grid .project-card-heading {
    display: flex !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: column;
    padding: 22px !important;
    overflow: visible;
  }

  .project-grid .project-card-heading h3,
  .project-grid .project-card .project-card-heading h3 {
    display: block;
    max-height: none;
    margin: 0 0 14px !important;
    overflow: visible;
    -webkit-line-clamp: initial;
  }

  .project-grid .project-funder-slot,
  .project-grid .project-funder-slot:empty {
    min-height: 0 !important;
  }

  .project-grid .project-funder-slot:empty {
    display: none !important;
  }

  .project-grid .project-card > .project-visual {
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
  }

  .project-grid .project-card > .project-content {
    min-height: 0 !important;
    padding: 22px !important;
  }
}


/* Version 3.6.3: compact Our Impact gallery and cleaner Projects introduction. */
.page-template-page-our-impact .impact-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.page-template-page-our-impact .impact-gallery-card {
  display: grid;
  grid-template-rows: 240px auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--vesom-border);
  border-radius: var(--vesom-radius);
  background: var(--vesom-white);
  box-shadow: 0 14px 40px rgba(7, 29, 59, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.page-template-page-our-impact .impact-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vesom-shadow);
}

.page-template-page-our-impact .impact-gallery-card img {
  display: block;
  width: 100%;
  height: 240px;
  min-height: 240px;
  max-height: 240px;
  margin: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.page-template-page-our-impact .impact-gallery-caption {
  display: flex;
  min-height: 82px;
  align-items: center;
  padding: 20px 22px;
  color: var(--vesom-navy);
  font-size: 1rem;
  line-height: 1.45;
}

.page-template-page-our-impact .impact-gallery-caption strong {
  display: block;
}

@media (max-width: 1024px) {
  .page-template-page-our-impact .impact-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-template-page-our-impact .impact-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-template-page-our-impact .impact-gallery-card {
    grid-template-rows: auto auto;
  }

  .page-template-page-our-impact .impact-gallery-card img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .page-template-page-our-impact .impact-gallery-caption {
    min-height: 0;
    padding: 18px 20px;
  }
}

/* Version 3.6.4: compact blended header branding and uniform impact imagery. */
.site-header .header-inner {
  min-height: 126px !important;
  padding-block: 6px;
}

.site-branding {
  display: flex !important;
  flex: 0 0 176px !important;
  width: 176px !important;
  max-width: 176px !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}

.site-branding .custom-logo-link,
.site-branding .vesom-compact-logo-link {
  display: block;
  width: 170px !important;
  max-width: 170px !important;
  line-height: 0;
}

.site-branding .custom-logo,
.site-branding img.custom-logo,
.site-branding .vesom-compact-logo {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 112px !important;
  object-fit: contain;
  object-position: left center;
}

.site-branding .brand-slogan {
  margin: 0 !important;
  padding-left: 2px;
  font-size: 0.56rem !important;
  line-height: 1.1;
  letter-spacing: 0.08em;
}

@media (min-width: 1181px) {
  .primary-navigation ul {
    gap: 12px;
  }

  .primary-navigation li a {
    padding-inline: 3px;
    font-size: 0.91rem;
  }
}

/* Apply the impact layout directly to its classes so it works regardless of
   the WordPress body-class variation used for the slug template. */
.impact-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.impact-gallery-card {
  display: flex !important;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid var(--vesom-border);
  border-radius: var(--vesom-radius);
  background: var(--vesom-white);
  box-shadow: 0 14px 40px rgba(7, 29, 59, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.impact-gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vesom-shadow);
}

.impact-gallery-card > img {
  display: block !important;
  width: 100% !important;
  height: 240px !important;
  min-height: 240px !important;
  max-height: 240px !important;
  flex: 0 0 240px;
  margin: 0 !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.impact-gallery-caption {
  display: flex !important;
  min-height: 84px;
  flex: 1 1 auto;
  align-items: center;
  padding: 19px 22px !important;
  color: var(--vesom-navy);
  font-size: 1rem;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .site-header .header-inner {
    min-height: 112px !important;
  }

  .site-branding {
    flex-basis: 156px !important;
    width: 156px !important;
    max-width: 156px !important;
  }

  .site-branding .custom-logo-link,
  .site-branding .vesom-compact-logo-link {
    width: 150px !important;
    max-width: 150px !important;
  }

  .site-branding .custom-logo,
  .site-branding img.custom-logo,
  .site-branding .vesom-compact-logo {
    max-height: 100px !important;
  }

  .site-branding .brand-slogan {
    font-size: 0.5rem !important;
  }
}

@media (max-width: 1024px) {
  .impact-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .site-header .header-inner {
    min-height: 102px !important;
    padding-block: 4px;
  }

  .site-branding {
    flex-basis: min(148px, calc(100% - 64px)) !important;
    width: min(148px, calc(100% - 64px)) !important;
    max-width: calc(100% - 64px) !important;
  }

  .site-branding .custom-logo-link,
  .site-branding .vesom-compact-logo-link {
    width: 142px !important;
    max-width: 142px !important;
  }

  .site-branding .custom-logo,
  .site-branding img.custom-logo,
  .site-branding .vesom-compact-logo {
    max-height: 92px !important;
  }

  .site-branding .brand-slogan {
    padding-left: 1px;
    font-size: 0.45rem !important;
    letter-spacing: 0.065em;
  }

  .impact-gallery-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .impact-gallery-card > img {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-basis: auto;
    aspect-ratio: 16 / 10 !important;
  }

  .impact-gallery-caption {
    min-height: 0;
    padding: 17px 19px !important;
  }
}


/* Version 3.6.5: adds the Nyandiva Beach Fish Landing Site assignment. */


/* Version 3.6.6: correct project-heading grid order and prevent title/location overlap. */
@media (min-width: 721px) {
  .project-grid .project-card-heading {
    grid-template-areas:
      "project-title"
      "project-funder"
      "project-location" !important;
  }

  .project-grid .project-card-heading > h3 {
    grid-area: project-title !important;
    order: 0 !important;
  }

  .project-grid .project-card-heading > .project-funder-slot {
    grid-area: project-funder !important;
    order: 0 !important;
  }

  .project-grid .project-card-heading > .project-meta {
    grid-area: project-location !important;
    order: 0 !important;
  }

  .project-grid .project-funder-slot > .project-funder-badge {
    order: 0 !important;
  }
}

/* Version 3.6.7: more compact project cards while preserving alignment. */
@media (min-width: 1181px) {
  .home .projects-section .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px !important;
  }
}

@media (min-width: 721px) {
  .project-grid .project-card {
    grid-template-rows: 248px 172px minmax(220px, auto) !important;
  }

  .project-grid .project-card-heading {
    height: 248px !important;
    min-height: 248px !important;
    max-height: 248px !important;
    grid-template-rows: minmax(0, 125px) 42px minmax(0, 1fr) !important;
    padding: 20px 22px 18px !important;
  }

  .project-grid .project-card-heading h3,
  .project-grid .project-card .project-card-heading h3 {
    max-height: 125px !important;
    font-size: clamp(1.12rem, 1.28vw, 1.34rem) !important;
    line-height: 1.16 !important;
    -webkit-line-clamp: 5 !important;
  }

  .project-grid .project-funder-slot,
  .project-grid .project-funder-slot:empty {
    min-height: 42px !important;
  }

  .project-grid .project-funder-slot .project-funder-badge {
    margin-top: 5px !important;
    padding: 7px 11px !important;
    font-size: 0.68rem !important;
  }

  .project-grid .project-card-heading .project-meta {
    font-size: 0.71rem !important;
    line-height: 1.35 !important;
  }

  .project-grid .project-card > .project-visual {
    height: 172px !important;
    min-height: 172px !important;
    max-height: 172px !important;
  }

  .project-grid .project-card > .project-visual svg {
    width: 52% !important;
    height: 52% !important;
  }

  .project-grid .project-card > .project-content {
    min-height: 220px !important;
    padding: 21px 22px 23px !important;
  }

  .project-grid .project-card > .project-content p {
    font-size: 0.96rem !important;
    line-height: 1.55 !important;
  }

  .project-grid .project-card > .project-content .text-link {
    padding-top: 18px !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .project-grid .project-card {
    grid-template-rows: 260px 175px minmax(230px, auto) !important;
  }

  .project-grid .project-card-heading {
    height: 260px !important;
    min-height: 260px !important;
    max-height: 260px !important;
    grid-template-rows: minmax(0, 135px) 42px minmax(0, 1fr) !important;
  }
}

/* Version 3.6.8: keep county directly beneath the project title/funder while preserving aligned image positions. */
@media (min-width: 721px) {
  .project-grid .project-card-heading {
    grid-template-rows: auto auto auto !important;
    align-content: start !important;
    row-gap: 8px !important;
  }

  .project-grid .project-card-heading h3,
  .project-grid .project-card .project-card-heading h3 {
    margin: 0 !important;
  }

  .project-grid .project-funder-slot {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  .project-grid .project-funder-slot:empty {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    visibility: visible !important;
  }

  .project-grid .project-funder-slot .project-funder-badge {
    margin: 0 !important;
  }

  .project-grid .project-card-heading .project-meta {
    align-items: flex-start !important;
    align-self: start !important;
    margin: 0 !important;
  }
}



/* Version 3.7.0: reduce unused project-heading whitespace while keeping every image aligned. */
@media (min-width: 1181px) {
  .project-grid .project-card {
    grid-template-rows: 202px 160px minmax(205px, auto) !important;
  }

  .project-grid .project-card-heading {
    height: 202px !important;
    min-height: 202px !important;
    max-height: 202px !important;
    padding: 18px 22px 16px !important;
    row-gap: 7px !important;
    align-content: start !important;
  }

  .project-grid .project-card-heading h3,
  .project-grid .project-card .project-card-heading h3 {
    max-height: 112px !important;
    font-size: clamp(1.08rem, 1.22vw, 1.28rem) !important;
    line-height: 1.14 !important;
    -webkit-line-clamp: 5 !important;
  }

  .project-grid .project-funder-slot .project-funder-badge {
    padding: 6px 10px !important;
    font-size: 0.65rem !important;
  }

  .project-grid .project-card-heading .project-meta {
    font-size: 0.69rem !important;
    line-height: 1.3 !important;
  }

  .project-grid .project-card > .project-visual {
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
  }

  .project-grid .project-card > .project-content {
    min-height: 205px !important;
    padding: 19px 22px 21px !important;
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .project-grid .project-card {
    grid-template-rows: 218px 165px minmax(215px, auto) !important;
  }

  .project-grid .project-card-heading {
    height: 218px !important;
    min-height: 218px !important;
    max-height: 218px !important;
    padding: 18px 20px 16px !important;
    row-gap: 7px !important;
  }

  .project-grid .project-card-heading h3,
  .project-grid .project-card .project-card-heading h3 {
    max-height: 126px !important;
    font-size: 1.12rem !important;
    line-height: 1.15 !important;
  }

  .project-grid .project-card > .project-visual {
    height: 165px !important;
    min-height: 165px !important;
    max-height: 165px !important;
  }

  .project-grid .project-card > .project-content {
    min-height: 215px !important;
    padding: 19px 20px 21px !important;
  }
}

/* Version 3.7.0: smaller project cards with row-aware alignment and less unused space. */
@media (min-width: 721px) {
  .project-grid {
    column-gap: 18px !important;
    row-gap: 18px !important;
  }

  .project-grid .project-card {
    grid-template-rows: 188px 132px minmax(170px, auto) !important;
    border-radius: 22px !important;
  }

  .project-grid .project-card-heading {
    height: 188px !important;
    min-height: 188px !important;
    max-height: 188px !important;
    padding: 15px 18px 13px !important;
    row-gap: 5px !important;
  }

  .project-grid .project-card-heading h3,
  .project-grid .project-card .project-card-heading h3 {
    max-height: 104px !important;
    font-size: clamp(1rem, 1.08vw, 1.16rem) !important;
    line-height: 1.12 !important;
  }

  .project-grid .project-funder-slot .project-funder-badge {
    padding: 5px 9px !important;
    font-size: 0.61rem !important;
  }

  .project-grid .project-card-heading .project-meta {
    font-size: 0.65rem !important;
    line-height: 1.25 !important;
  }

  .project-grid .project-card > .project-visual {
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
  }

  .project-grid .project-card > .project-visual svg {
    width: 46% !important;
    height: 46% !important;
  }

  .project-grid .project-card > .project-content {
    min-height: 170px !important;
    padding: 16px 18px 18px !important;
  }

  .project-grid .project-card > .project-content p {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
  }

  .project-grid .project-card > .project-content .text-link {
    padding-top: 13px !important;
  }
}

/* Modern browsers can size each project row from its actual content while
   keeping the heading, image and description aligned across that row. */
@media (min-width: 721px) {
  @supports (grid-template-rows: subgrid) {
    .project-grid .project-card {
      grid-row: span 3;
      grid-template-rows: subgrid !important;
      row-gap: 0 !important;
      height: auto !important;
    }

    .project-grid .project-card-heading {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
    }

    .project-grid .project-card > .project-content {
      min-height: 0 !important;
    }
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  .project-grid .project-card {
    grid-template-rows: 200px 140px minmax(182px, auto) !important;
  }

  .project-grid .project-card-heading {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    padding: 16px 18px 14px !important;
  }

  .project-grid .project-card > .project-visual {
    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;
  }

  .project-grid .project-card > .project-content {
    min-height: 182px !important;
  }

  @supports (grid-template-rows: subgrid) {
    .project-grid .project-card-heading {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
    }

    .project-grid .project-card > .project-content {
      min-height: 0 !important;
    }
  }
}

@media (max-width: 720px) {
  .project-grid .project-card {
    border-radius: 20px !important;
  }

  .project-grid .project-card-heading {
    padding: 18px 18px 15px !important;
  }

  .project-grid .project-card > .project-visual {
    aspect-ratio: 16 / 7.5 !important;
  }

  .project-grid .project-card > .project-content {
    padding: 18px !important;
  }
}
