/* Footer styles for PlantNesto - builds on base.css */

.pn-footer {
  background: radial-gradient(circle at top left, #eef7f0 0, #f5f3ee 45%, #e4ede7 100%);
  color: #1f3227;
  border-top: 1px solid rgba(19, 41, 31, 0.08);
  margin-top: 3rem;
}

.pn-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
}

.pn-footer__brand {
  max-width: 360px;
}

.pn-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.pn-footer__logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #9be1a0, #2f7845);
  color: #f3f7f3;
  box-shadow: 0 6px 18px rgba(23, 68, 46, 0.35);
  font-size: 1.1rem;
}

.pn-footer__logo-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: #103022;
}

.pn-footer__tagline {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #435648;
}

.pn-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.pn-footer__heading {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: #234131;
}

.pn-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.pn-footer__link {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #3b5042;
  text-decoration: none;
}

.pn-footer__link:hover {
  color: #205638;
}

.pn-footer__link:focus-visible {
  outline: 2px solid #2f7845;
  outline-offset: 2px;
  border-radius: 3px;
}

.pn-footer__bottom {
  border-top: 1px solid rgba(19, 41, 31, 0.08);
  padding: 0.9rem 1.25rem 1.1rem;
  text-align: center;
}

.pn-footer__copyright {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #5a6b5d;
}

/* Cookie banner */

.pn-cookie {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 1100;
  max-width: 520px;
  margin-inline: auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(9, 30, 17, 0.35);
  border: 1px solid rgba(27, 70, 44, 0.18);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.pn-cookie--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pn-cookie__inner {
  padding: 1.1rem 1.1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pn-cookie__title {
  margin: 0 0 0.3rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #163725;
}

.pn-cookie__description {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #465a4c;
}

.pn-cookie__more {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #205638;
  text-decoration: underline;
}

.pn-cookie__more:focus-visible {
  outline: 2px solid #2f7845;
  outline-offset: 2px;
  border-radius: 3px;
}

.pn-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.3rem;
}

.pn-cookie__button {
  flex: 1 1 48%;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.4rem 0.9rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}

.pn-cookie__button--reject {
  background: #f3f6f4;
  color: #294233;
  border-color: rgba(32, 78, 50, 0.18);
}

.pn-cookie__button--reject:hover {
  background: #e5ece7;
}

.pn-cookie__button--accept {
  background: linear-gradient(135deg, #2f7845, #4f9b68);
  color: #f5fbf7;
  border-color: #2f7845;
  box-shadow: 0 4px 14px rgba(25, 92, 54, 0.4);
}

.pn-cookie__button--accept:hover {
  filter: brightness(1.03);
}

.pn-cookie__button:focus-visible {
  outline: 2px solid #18472e;
  outline-offset: 2px;
}

@media (min-width: 640px) {
  .pn-cookie__inner {
    padding: 1.1rem 1.3rem 1.15rem;
    flex-direction: row;
    align-items: center;
    gap: 1.1rem;
  }

  .pn-cookie__text {
    flex: 1 1 auto;
  }

  .pn-cookie__actions {
    flex: 0 0 auto;
    flex-direction: column;
    min-width: 170px;
  }

  .pn-cookie__button {
    flex: initial;
  }
}

@media (max-width: 768px) {
  .pn-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-inline: 1.25rem;
  }

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

@media (max-width: 520px) {
  .pn-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pn-cookie {
    inset-inline: 0.5rem;
    bottom: 0.5rem;
  }

  .pn-cookie__actions {
    flex-direction: column-reverse;
  }

  .pn-cookie__button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pn-cookie {
    transition: none !important;
  }
}
