.farm-footer {
  position: relative;
  overflow: hidden;
  background: #0f0f0d;
  color: #fffaf1;
  isolation: isolate;
}

.farm-footer__picture,
.farm-footer__bg,
.farm-footer__overlay {
  position: absolute;
  inset: 0;
}

.farm-footer__picture {
  z-index: -2;
}

.farm-footer__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.05);
  transform: scale(1.02);
}

.farm-footer__overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 9, 0.96) 0%, rgba(13, 13, 12, 0.86) 48%, rgba(13, 13, 12, 0.7) 100%),
    linear-gradient(180deg, rgba(200, 166, 106, 0.1), rgba(0, 0, 0, 0.44));
}

.farm-footer__inner {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 30px;
}

.farm-footer__top {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(150px, 0.72fr) minmax(170px, 0.78fr) minmax(280px, 1.1fr);
  gap: 42px;
  align-items: start;
  padding-bottom: 58px;
}

.farm-footer__col {
  min-width: 0;
}

.farm-footer__eyebrow {
  margin: 0 0 12px;
  color: #c8a66a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.farm-footer__heading {
  margin: 0 0 22px;
  color: #fffaf1;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.farm-footer__logo-link {
  display: inline-flex;
  max-width: 220px;
  margin: 0 0 24px;
}

.farm-footer__logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
}

.farm-footer__info {
  display: grid;
  gap: 10px;
  max-width: 410px;
}

.farm-footer__info p,
.farm-footer__newsletter-text,
.farm-footer__bottom p {
  margin: 0;
  color: rgba(255, 250, 241, 0.76);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.farm-footer__info p {
  padding-left: 14px;
  border-left: 1px solid rgba(200, 166, 106, 0.38);
}

.farm-footer__links {
  display: grid;
  gap: 13px;
}

.farm-footer__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgba(255, 250, 241, 0.78);
  font-size: 14px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.farm-footer__links a::before {
  content: "";
  width: 18px;
  height: 1px;
  margin-right: 10px;
  background: rgba(200, 166, 106, 0.58);
  transition: width 180ms ease, background 180ms ease;
}

.farm-footer__links a:hover,
.farm-footer__links a:focus-visible {
  color: #fffaf1;
  transform: translateX(3px);
}

.farm-footer__links a:hover::before,
.farm-footer__links a:focus-visible::before {
  width: 28px;
  background: #c8a66a;
}

.farm-footer__col--newsletter {
  padding: 32px;
  border: 1px solid rgba(255, 250, 241, 0.12);
  border-top: 3px solid #c8a66a;
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.04);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

.farm-footer__col--newsletter:hover {
  border-color: rgba(200, 166, 106, 0.45);
  box-shadow: 0 28px 80px rgba(200, 166, 106, 0.08);
  transform: translateY(-2px);
}

.farm-footer__newsletter-text {
  margin-bottom: 28px;
}

.farm-footer__col--newsletter form {
  margin: 0;
}

.farm-footer__form {
  display: flex;
  align-items: center;
  width: 100%;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(200, 166, 106, 0.44);
  background: transparent;
  transition: border-color 220ms ease;
}

.farm-footer__form:focus-within {
  border-color: #c8a66a;
}

.farm-footer__form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffaf1;
  font-size: 15px;
  outline: 0;
}

.farm-footer__form input::placeholder {
  color: rgba(255, 250, 241, 0.4);
}

.farm-footer__form button {
  min-width: auto;
  height: 38px;
  padding: 0 0 0 16px;
  border: 0;
  background: transparent;
  color: #c8a66a;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease;
}

.farm-footer__form button:hover,
.farm-footer__form button:focus-visible {
  background: transparent;
  color: #ead6aa;
  transform: translateX(4px);
}

.farm-footer__form button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.farm-footer__socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.farm-footer__socials a {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 241, 0.16);
  background: rgba(255, 250, 241, 0.06);
  color: #fffaf1;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease, background 180ms ease;
}

.farm-footer__socials img {
  display: block;
  width: auto;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
}

.farm-footer__socials span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.farm-footer__socials a:hover,
.farm-footer__socials a:focus-visible {
  border-color: rgba(200, 166, 106, 0.88);
  background: rgba(200, 166, 106, 0.16);
  color: #ead6aa;
  transform: translateY(-3px);
}

.farm-footer__bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(255, 250, 241, 0.12);
  padding: 24px 0 10px;
  text-align: center;
}

.farm-footer__bottom p {
  color: rgba(255, 250, 241, 0.6);
  font-size: 13px;
}

.farm-footer__tax {
  font-size: 12px !important;
  color: rgba(255, 250, 241, 0.5) !important;
  margin-top: 6px !important;
}

.farm-footer-newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 10040;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.farm-footer-newsletter-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.farm-footer-newsletter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 9, 0.66);
  backdrop-filter: blur(6px);
}

.farm-footer-newsletter-modal__dialog {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 38px 32px 32px;
  border: 1px solid rgba(200, 166, 106, 0.24);
  background: #fffaf1;
  color: #171612;
  text-align: center;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  transform: translateY(12px) scale(0.98);
  transition: transform 220ms ease;
}

.farm-footer-newsletter-modal.is-open .farm-footer-newsletter-modal__dialog {
  transform: translateY(0) scale(1);
}

.farm-footer-newsletter-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(23, 22, 18, 0.08);
  color: #171612;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.farm-footer-newsletter-modal__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c8a66a;
  color: #171612;
  font-size: 26px;
  font-weight: 900;
}

.farm-footer-newsletter-modal.is-error .farm-footer-newsletter-modal__icon {
  background: #d06a4f;
  color: #fffaf1;
}

.farm-footer-newsletter-modal__dialog h2 {
  margin: 0;
  color: #171612;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.2;
}

.farm-footer-newsletter-modal__dialog p {
  margin: 0;
  color: #615b4f;
  font-size: 15px;
  line-height: 1.65;
}

.farm-footer-newsletter-modal__button {
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  background: #171612;
  color: #fffaf1;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

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

@media (max-width: 1100px) {
  .farm-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 32px;
  }
}

@media (max-width: 767px) {
  .farm-footer__inner {
    width: min(100% - 30px, 1240px);
    padding: 56px 0 26px;
  }

  .farm-footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }

  .farm-footer__heading {
    margin-bottom: 16px;
  }

  .farm-footer__col--newsletter {
    padding: 22px;
  }
}

@media (max-width: 480px) {
  .farm-footer__inner {
    width: min(100% - 24px, 1240px);
    padding-top: 46px;
  }

  .farm-footer__form {
    grid-template-columns: 1fr;
  }

  .farm-footer__form button {
    width: 100%;
    min-width: 0;
  }

  .farm-footer-newsletter-modal__dialog {
    padding: 34px 22px 26px;
  }
}
