.farm-solutions-page {
  min-height: calc(100vh - var(--header-h, 116px));
  display: flex;
  justify-content: center;
  padding: 72px 24px;
  background:
    linear-gradient(
      90deg,
      rgba(36, 95, 79, 0.72),
      rgba(47, 133, 104, 0.28) 38%,
      rgba(245, 251, 248, 0.28) 72%
    ),
    url("https://res.cloudinary.com/urbanagriculture/image/upload/v1760007509/photorealistic-sustainable-garden-with-home-grown-plants_mewazx_qcmnmx.webp")
      center / cover fixed;
}

.farm-solutions-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto auto;
  column-gap: 58px;
  row-gap: 0;
  align-items: start;
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid rgba(221, 233, 223, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 30px 90px rgba(20, 92, 48, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.farm-solutions-content {
  display: contents;
}

.farm-solutions-shell .farm-solutions-content h1 {
  grid-column: 2;
  grid-row: 1;
  margin: 0 0 18px;
  color: #19352b;
  font-family: var(--font-display, "Fraunces", serif);
  font-size: var(--text-3xl, 3rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.farm-solutions-shell .farm-solutions-content h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #56cc9d, #d9a441);
}

.farm-solutions-shell .farm-solutions-content > p {
  grid-column: 2;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #41564a;
  font-size: 0.98rem;
  line-height: 1.54;

  text-align: justify !important;
  text-align-last: justify !important;
  text-justify: inter-word;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;

  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal;
}

.farm-solutions-shell .farm-solutions-content > p:nth-of-type(1) {
  grid-row: 2;
  margin-bottom: 14px;
}

.farm-solutions-shell .farm-solutions-content > p:nth-of-type(2) {
  grid-row: 3;
}

.farm-solutions-messages {
  grid-column: 1 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid rgba(209, 229, 219, 0.9);
}

.farm-message-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(220, 235, 228, 0.95);
  border-radius: 10px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.98),
      rgba(244, 251, 247, 0.94)
    );
  box-shadow: 0 12px 28px rgba(31, 88, 68, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.farm-message-card:hover {
  transform: translateY(-3px);
  border-color: rgba(86, 204, 157, 0.48);
  box-shadow: 0 18px 36px rgba(31, 88, 68, 0.13);
}

.farm-message-card > .material-icons {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #e9f9f2;
  color: #2f8568;
  font-size: 1.25rem;
}

.farm-message-card .farm-message-kicker {
  width: 100%;
  margin: 0 0 7px;
  color: #c58d27;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-align: left !important;
  text-transform: uppercase;
}

.farm-message-card h2 {
  width: 100%;
  margin: 0 0 8px;
  color: #19352b;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 0.97rem;
  font-weight: 900;
  line-height: 1.22;
  text-align: left;
  text-wrap: balance;
}

.farm-solutions-shell
  .farm-message-card
  p:not(.farm-message-kicker) {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #61746a;
  font-size: 0.84rem;
  line-height: 1.46;

  text-align: justify !important;
  text-align-last: justify !important;
  text-justify: inter-word;

  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;

  word-break: normal !important;
  overflow-wrap: normal !important;
  white-space: normal;
}

.farm-solutions-action-row {
  display: contents;
}

.farm-solutions-logo-wrap {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  justify-self: center;
  width: min(320px, 100%);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.farm-solutions-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 2%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.42) 42%,
      rgba(86, 204, 157, 0.18) 64%,
      transparent 78%
    );
  filter: blur(12px);
  pointer-events: none;
}

.farm-solutions-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: 0;
  border: 1px solid rgba(86, 204, 157, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 42px rgba(86, 204, 157, 0.18),
    inset 0 0 28px rgba(255, 255, 255, 0.34);
  pointer-events: none;
}

.farm-solutions-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter:
    drop-shadow(0 28px 46px rgba(20, 92, 48, 0.26))
    drop-shadow(0 7px 16px rgba(86, 204, 157, 0.2));
}

.farm-solutions-button {
  grid-column: 1 / -1;
  grid-row: 5;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  margin-top: 30px;
  padding: 0 34px;
  border: 1px solid #2f8568;
  border-radius: 10px;
  background: #2f8568;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(47, 133, 104, 0.24);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.farm-solutions-button:hover {
  background: #256c55;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(20, 92, 48, 0.3);
}

.farm-solutions-button .material-icons {
  flex: 0 0 auto;
  font-size: 1.15rem;
}

@media (max-width: 1020px) {
  .farm-solutions-shell {
    grid-template-columns: minmax(270px, 320px) minmax(0, 1fr);
    column-gap: 40px;
  }

  .farm-solutions-logo-wrap {
    width: min(300px, 100%);
  }
}

@media (max-width: 820px) {
  .farm-solutions-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    gap: 0;
    padding: 42px 30px;
  }

  .farm-solutions-logo-wrap {
    grid-column: 1;
    grid-row: 1;
    width: min(320px, 100%);
    margin-bottom: 28px;
  }

  .farm-solutions-shell .farm-solutions-content h1 {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }

  .farm-solutions-shell .farm-solutions-content h1::after {
    margin-left: auto;
    margin-right: auto;
  }

  .farm-solutions-shell .farm-solutions-content > p {
    grid-column: 1;
  }

  .farm-solutions-shell
    .farm-solutions-content
    > p:nth-of-type(1) {
    grid-row: 3;
  }

  .farm-solutions-shell
    .farm-solutions-content
    > p:nth-of-type(2) {
    grid-row: 4;
  }

  .farm-solutions-messages {
    grid-column: 1;
    grid-row: 5;
    grid-template-columns: 1fr;
  }

  .farm-solutions-button {
    grid-column: 1;
    grid-row: 6;
  }
}

@media (max-width: 760px) {
  .farm-solutions-page {
    padding: 46px 16px 54px;
    background:
      linear-gradient(
        180deg,
        rgba(245, 251, 248, 0.94),
        rgba(255, 255, 255, 0.98)
      ),
      url("https://res.cloudinary.com/urbanagriculture/image/upload/v1760007509/photorealistic-sustainable-garden-with-home-grown-plants_mewazx_qcmnmx.webp")
        center / cover;
  }

  .farm-solutions-shell {
    padding: 28px 20px;
  }

  .farm-solutions-logo-wrap {
    width: min(250px, 100%);
  }

  .farm-solutions-shell .farm-solutions-content h1 {
    margin-bottom: 17px;
    font-size: var(--text-3xl, 2.35rem);
  }

  .farm-solutions-shell .farm-solutions-content > p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: justify !important;
    text-align-last: justify !important;
  }

  .farm-solutions-messages {
    margin-top: 28px;
    padding-top: 26px;
  }

  .farm-message-card {
    padding: 17px;
  }

  .farm-solutions-button {
    width: 100%;
    min-height: 56px;
  }
}
