/*
 * Targeted regression fixes for founder photography, the green production story,
 * footer alignment and small author portraits. Loaded after visual-refresh.
 */

/* Approved founder photographs and one shared label above both cards. */
.founder-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch !important;
}

.founder-duo__note {
  position: static !important;
  grid-column: 1 / -1;
  width: 100%;
  max-width: none !important;
  margin: 0 0 2px;
  padding: 12px 18px !important;
  color: #fff;
  border-radius: 16px !important;
  background: #36552b !important;
  text-align: center;
  font-family: var(--ui);
  font-size: .76rem !important;
  font-weight: 750;
  line-height: 1.45 !important;
  letter-spacing: .01em;
}

.founder-duo__portrait,
.founder-duo__portrait:nth-child(2) {
  align-self: stretch;
  transform: none !important;
}

.founder-duo__portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}

.founder-duo__portrait img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* The supplied group photographs are cropped to the correct founder. */
.founder-duo__portrait--valeria img {
  object-position: 24% 42% !important;
  transform: scale(1.04);
}

.founder-duo__portrait--anna img {
  object-position: 76% 40% !important;
  transform: scale(1.04);
}

/* Production story: no white backing; image, badge and quote form one composition. */
.page-home .farmers-preview__visual {
  position: relative;
  min-width: 0;
  padding: 18px 30px 6px 18px;
}

.page-home .farmers-preview__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  background: transparent !important;
}

.page-home .farmers-preview__figure picture {
  display: block;
  overflow: hidden;
  border-radius: 240px 240px 30px 30px / 175px 175px 30px 30px;
  background: transparent !important;
}

.page-home .farmers-preview__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: none !important;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.page-home .farmers-preview__figure figcaption {
  max-width: 34rem;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .78) !important;
  text-align: center;
  font-family: var(--ui);
  font-size: .76rem;
  line-height: 1.45;
}

.page-home .farmers-preview__badge {
  position: absolute;
  z-index: 3;
  top: 42px;
  right: -4px;
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  padding: 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: #496c3a;
  box-shadow: 0 16px 38px rgba(20, 38, 16, .24);
  text-align: center;
  font-family: var(--ui);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.page-home .farmers-preview__quote {
  position: absolute;
  z-index: 4;
  left: -34px;
  bottom: 72px;
  max-width: 310px;
  margin: 0;
  padding: 20px 22px;
  color: #293426;
  border: 1px solid rgba(54, 85, 43, .14);
  border-radius: 20px;
  background: #f8f3eb;
  box-shadow: 0 18px 44px rgba(20, 38, 16, .18);
  font-family: var(--display);
  font-size: clamp(1.04rem, 1.45vw, 1.38rem);
  line-height: 1.28;
}

.page-home .farmers-preview__quote::before {
  display: block;
  margin-bottom: 8px;
  color: #496c3a;
  content: "“";
  font-size: 2.2rem;
  line-height: .65;
}

/* Tiny author portraits use the same approved photographs. */
.avatar-pair img.avatar-pair__valeria { object-position: 24% 42% !important; }
.avatar-pair img.avatar-pair__anna { object-position: 76% 40% !important; }

/* One centered copyright line, irrespective of older footer grid rules. */
.site-footer .footer-bottom.container {
  display: grid !important;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  justify-content: stretch !important;
  text-align: center !important;
}

.site-footer .footer-copyright {
  display: block;
  width: 100%;
  margin: 0 auto !important;
  text-align: center !important;
}

@media (max-width: 960px) {
  .page-home .farmers-preview__visual {
    max-width: 620px;
    margin-inline: auto;
    padding: 20px 24px 4px;
  }

  .page-home .farmers-preview__badge {
    right: 0;
    width: 112px;
  }

  .page-home .farmers-preview__quote {
    left: 0;
    bottom: 66px;
    max-width: 270px;
  }
}

@media (max-width: 760px) {
  .founder-duo__note {
    display: block !important;
    padding: 10px 12px !important;
    font-size: .7rem !important;
  }

  .founder-duo__portrait,
  .founder-duo__portrait:nth-child(2) {
    transform: none !important;
  }

  .page-home .farmers-preview__visual {
    margin-top: 30px;
    padding: 0 8px 4px;
  }

  .page-home .farmers-preview__badge {
    top: 18px;
    right: 0;
    width: 96px;
    padding: 12px;
    font-size: .62rem;
  }

  .page-home .farmers-preview__quote {
    position: relative;
    left: auto;
    bottom: auto;
    max-width: none;
    margin: -50px 14px 0;
    padding: 17px 18px;
  }

  .page-home .farmers-preview__figure figcaption {
    padding-inline: 12px;
  }
}

@media (max-width: 480px) {
  .founder-duo { gap: 8px !important; padding: 9px !important; }
  .founder-duo__portrait { border-radius: 16px !important; }
  .founder-duo__portrait figcaption { left: 8px; bottom: 8px; padding: 6px 9px; font-size: .66rem; }
  .page-home .farmers-preview__badge { width: 84px; }
}

/* One approved group photograph; name labels are intentionally absent. */
.founder-duo {
  grid-template-columns: minmax(0, 1fr) !important;
}

.founder-duo__portrait--single {
  grid-column: 1 / -1;
  width: 100%;
  transform: none !important;
}

.founder-duo__portrait--single picture {
  height: auto !important;
}

.founder-duo__portrait--single img {
  display: block;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

.founder-duo__portrait figcaption {
  display: none !important;
}

/* Exact still-life composition from the original static template. */
.page-home .farmers-preview__visual--template {
  position: relative;
  min-height: 650px;
  max-width: none;
  margin: 0;
  padding: 0 !important;
  overflow: visible;
}

.page-home .farmers-preview__visual--template .hero-photo {
  position: absolute;
  inset: 0 0 35px 85px;
  overflow: hidden;
  border-radius: 48% 48% 18% 18% / 24% 24% 12% 12%;
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.page-home .farmers-preview__visual--template .hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.page-home .farmers-preview__visual--template .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 52%;
}

.page-home .farmers-preview__visual--template .hero-botanical {
  position: absolute;
  z-index: 2;
  left: -130px;
  bottom: -160px;
  width: 520px;
  max-width: none;
  filter: drop-shadow(0 18px 25px rgba(38, 58, 30, .18));
  transform: rotate(-10deg);
}

.page-home .farmers-preview__visual--template .hero-note {
  position: absolute;
  z-index: 3;
  top: 80px;
  left: 24px;
  display: flex;
  width: 175px;
  height: 175px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--white);
  border-radius: 50% 48% 52% 47%;
  background: var(--green);
  box-shadow: var(--shadow-md);
  text-align: center;
  transform: rotate(-7deg);
}

.page-home .farmers-preview__visual--template .hero-note img {
  width: 48px;
  height: 55px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.page-home .farmers-preview__visual--template .hero-note span {
  font: 500 .72rem/1.3 var(--ui);
}

.page-home .farmers-preview__visual--template .hero-note strong {
  font-size: .92rem;
}

.page-home .farmers-preview__visual--template .hero-caption {
  position: absolute;
  z-index: 3;
  right: -5px;
  bottom: 0;
  display: grid;
  width: 280px;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  color: var(--green-deep);
  border: 1px solid rgba(61, 89, 46, .12);
  border-radius: 14px 18px 15px 24px;
  background: rgba(251, 247, 240, .94);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.page-home .farmers-preview__visual--template .hero-caption span {
  color: var(--orange);
  font: 700 .69rem/1 var(--ui);
}

.page-home .farmers-preview__visual--template .hero-caption p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.35;
}

@media (max-width: 960px) {
  .page-home .farmers-preview__visual--template {
    min-height: 620px;
    max-width: 620px;
    padding: 0 !important;
  }

  .page-home .farmers-preview__visual--template .hero-photo {
    left: 45px;
  }

  .page-home .farmers-preview__visual--template .hero-botanical {
    left: -120px;
  }
}

@media (max-width: 760px) {
  .page-home .farmers-preview__visual--template {
    min-height: 490px;
    margin-top: 30px;
    padding: 0 !important;
  }

  .page-home .farmers-preview__visual--template .hero-photo {
    inset: 0 2% 25px 9%;
  }

  .page-home .farmers-preview__visual--template .hero-botanical {
    left: -90px;
    bottom: -110px;
    width: 330px;
  }

  .page-home .farmers-preview__visual--template .hero-note {
    top: 30px;
    left: 0;
    width: 115px;
    height: 115px;
  }

  .page-home .farmers-preview__visual--template .hero-note img {
    width: 32px;
    height: 37px;
  }

  .page-home .farmers-preview__visual--template .hero-note span {
    font-size: .56rem;
  }

  .page-home .farmers-preview__visual--template .hero-caption {
    right: 0;
    bottom: 0;
    width: 230px;
    padding: 13px;
  }

  .page-home .farmers-preview__visual--template .hero-caption p {
    font-size: .76rem;
  }
}

@media (max-width: 420px) {
  .page-home .farmers-preview__visual--template {
    min-height: 430px;
  }

  .page-home .farmers-preview__visual--template .hero-note {
    width: 96px;
    height: 96px;
  }

  .page-home .farmers-preview__visual--template .hero-caption {
    width: 205px;
  }
}
