:root {
  --clr-primary: #2d6a4f;
  --clr-primary-dark: #1b4332;
  --clr-primary-light: #52b788;
  --clr-accent: #d4a017;
  --clr-bg: #fafaf5;
  --clr-bg-alt: #f0efe4;
  --clr-text: #2b2b2b;
  --clr-text-light: #555;
  --clr-white: #fff;
  --clr-border: #d8e0d2;
  --max-width: 1200px;
  --header-h: 74px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  /* Vertical rhythm between major bands (sections, header strip, footer) */
  --section-pad-y: 64px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
}

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

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

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-pad-y) 0;
}

.section-alt {
  background: var(--clr-bg-alt);
}

.section--solution {
  background: var(--clr-white);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.15;
  color: var(--clr-primary-dark);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0;
  color: var(--clr-text-light);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 700;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.btn-primary:hover {
  background: var(--clr-primary-dark);
}

.btn-outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--clr-primary);
  color: var(--clr-white);
}

/* Home hero — taller fold on large screens */
.hero {
  padding: 88px 0 120px;
  min-height: min(88vh, 920px);
  display: flex;
  align-items: center;
  background-color: #1a2f24;
  background-image: url("../assets/solution/C6AEDECE-3C3A-410E-9B0D-662A30B8AABF.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(253, 251, 246, 0.94) 0%,
    rgba(253, 251, 246, 0.78) 42%,
    rgba(253, 251, 246, 0.35) 68%,
    rgba(253, 251, 246, 0.12) 100%
  );
  pointer-events: none;
  z-index: 0;
}

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

.hero-content h1 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.15;
  color: var(--clr-primary-dark);
}

.hero-content h1 span {
  color: var(--clr-accent);
}

.hero-content p {
  margin: 0 0 14px;
  color: var(--clr-text-light);
  font-size: 1.08rem;
  max-width: 520px;
}

.hero-content p:last-of-type {
  margin-bottom: 26px;
}

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

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  border-bottom-color: var(--clr-border);
}

.header .container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo picture {
  display: block;
  line-height: 0;
}

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

.footer .logo-mark {
  height: 38px;
}

.nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 30px;
  padding: 0;
  margin: 0;
}

.nav-list a {
  font-weight: 600;
  position: relative;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width 0.22s ease;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--clr-text);
}

.page-header {
  margin-top: 0;
  padding: var(--section-pad-y) 0;
  background: linear-gradient(135deg, #e8f5e9 0%, #f0efe4 50%, #fff8e1 100%);
  border-bottom: 1px solid var(--clr-border);
}

.page-header p {
  max-width: 760px;
}

/* Content blocks */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 30px;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.cards-grid {
  display: grid;
  gap: 16px;
}

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

.info-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  border: 1.5px solid var(--clr-border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.info-card h3 {
  margin: 0 0 8px;
  color: var(--clr-primary-dark);
  font-size: 1.22rem;
}

.info-card p {
  margin: 0;
  color: var(--clr-text-light);
}

.badge-list {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.badge {
  background: #edf7e9;
  border: 1px solid #cfe0cc;
  border-radius: 10px;
  padding: 14px 16px;
}

.badge strong {
  display: block;
  margin-bottom: 4px;
  color: var(--clr-primary-dark);
}

.slide-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--clr-border);
  box-shadow: var(--shadow);
  background: #fff;
}

.slide-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Key benefits: HTML title + full infographic (transparent PNG) */
.section--benefits {
  padding: var(--section-pad-y) 0;
  background: var(--clr-bg-alt);
}

.benefits-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.benefits-single__title {
  margin: 0 0 10px;
  max-width: 40ch;
}

.benefits-single__subtitle {
  margin: 0 0 28px;
  max-width: 44ch;
}

.benefits-single__figure {
  width: 100%;
  max-width: 720px;
  margin: 0;
}

.slide-frame.slide-benefits {
  aspect-ratio: 686 / 342;
  background: transparent;
  border: none;
  box-shadow: none;
}

.slide-frame.slide-benefits picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-frame.slide-benefits img {
  object-fit: contain;
  object-position: center;
}

.section--pilot {
  background: var(--clr-bg);
  padding: var(--section-pad-y) 0;
}

/* Challenge section: full-bleed photo background, copy left, tiles right */
.section-challenge {
  position: relative;
  overflow: hidden;
  padding: var(--section-pad-y) 0;
}

.section-challenge__bg {
  position: absolute;
  inset: 0;
  background-color: #3a332a;
  background-image: url("../assets/slides/challenge-hero-1600.jpg");
  background-size: cover;
  background-position: left center;
  z-index: 0;
}

.section-challenge__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(38, 32, 26, 0.92) 0%,
    rgba(38, 32, 26, 0.72) 42%,
    rgba(38, 32, 26, 0.38) 100%
  );
}

.section-challenge__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  min-height: 420px;
}

.section-challenge .section-title {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.section-challenge .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  max-width: 38ch;
}

.section-challenge__tiles {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-challenge__tiles .info-card {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.18);
}

@media (max-width: 640px) {
  .section-challenge__bg {
    background-image: url("../assets/slides/challenge-hero-960.jpg");
  }
}

.slide-lg {
  aspect-ratio: 16 / 9;
}

.slide-frame.slide-lg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-frame.slide-tech-1 {
  aspect-ratio: 16 / 12;
}

.slide-frame.slide-tech-1 picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-frame.slide-tech-1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


/* Constrain standalone infographic images inside split layouts */
.split > .slide-frame.slide-infographic {
  max-height: 420px;
}

/* Irrigation section image */
.slide-frame.slide-irrigation {
  aspect-ratio: 16 / 7;
}

.slide-frame.slide-irrigation picture {
  display: block;
  width: 100%;
  height: 100%;
}

.slide-frame.slide-irrigation img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Diagrams / infographics: avoid 16:9 + cover cropping corners and labels */
.slide-frame.slide-infographic picture {
  display: block;
  width: 100%;
}

.slide-frame.slide-infographic img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Solution: two image + copy cards */
.solution-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.solution-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.solution-tile {
  display: flex;
  flex-direction: column;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.solution-tile__media {
  aspect-ratio: 16 / 10;
  background: #e8ede6;
  overflow: hidden;
}

.solution-tile__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.solution-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.solution-tile__body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-tile__body h3 {
  margin: 0 0 12px;
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--clr-primary-dark);
  letter-spacing: -0.01em;
}

.solution-tile__body p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--clr-text-light);
}

.team-section-stacked {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.team-row .team-person-card {
  width: 190px;
  flex-shrink: 0;
}

.team-person-card {
  background: var(--clr-white);
  border-radius: var(--radius);
  border: 1.5px solid var(--clr-border);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-person-card__photo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #e8ede6;
  border: 1px solid var(--clr-border);
}

img.team-person-card__photo {
  object-fit: cover;
  object-position: center top;
}

.team-person-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--clr-primary-dark);
}

.team-person-card .role {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--clr-text-light);
  line-height: 1.35;
}

/* Contact page compatibility */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
}

.contact-info-card,
.contact-form-card {
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.contact-info-card h3,
.contact-form-card h3 {
  margin: 0 0 22px;
  color: var(--clr-primary-dark);
  font-size: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.info-item h4 {
  margin: 0 0 3px;
  color: var(--clr-primary-dark);
  font-size: 0.95rem;
}

.info-item p {
  margin: 0;
  color: var(--clr-text-light);
  font-size: 0.93rem;
}

.contact-info-link {
  color: inherit;
  text-decoration: none;
}

.contact-info-link:hover {
  color: var(--clr-primary-dark);
  text-decoration: underline;
}

.info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--clr-primary-light), var(--clr-primary));
  color: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--clr-border);
  border-radius: 8px;
  background: #fdfdf9;
  padding: 12px 14px;
  font: inherit;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.map-placeholder {
  margin-top: 34px;
  border-radius: var(--radius);
  border: 2px dashed var(--clr-border);
  background: linear-gradient(135deg, #eef6e8, #fff8e8);
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  margin-top: var(--section-pad-y);
  background: var(--clr-primary-dark);
  color: rgba(255, 255, 255, 0.86);
  padding-top: var(--section-pad-y);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 22px;
  padding-bottom: 28px;
}

.footer h4 {
  margin-top: 0;
  color: #fff;
}

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

.footer li {
  margin: 7px 0;
}

.footer .logo-mark {
  height: 38px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  padding: 16px 0;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
}

.footer-socials svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header .container {
    display: flex;
    justify-content: space-between;
  }

  .hamburger {
    display: inline-block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-h));
    background: #fff;
    border-left: 1px solid var(--clr-border);
    padding: 26px;
    transition: right 0.24s ease;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.08);
  }

  .nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .solution-tiles {
    grid-template-columns: 1fr;
  }

  .split,
  .split.reverse,
  .cards-grid.grid-2,
  .form-row,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-challenge__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 28px;
  }

  .section-challenge__bg {
    background-position: center 35%;
  }

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

  .hero {
    min-height: 0;
    padding: 56px 0 80px;
  }

  .hero .container {
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(253, 251, 246, 0.92) 0%,
      rgba(253, 251, 246, 0.88) 45%,
      rgba(253, 251, 246, 0.55) 100%
    );
  }
}
