/* Footer styles for GreenDoorPL */

.gd-footer {
  background: linear-gradient(180deg, #0f2716 0%, #060e08 100%);
  color: #f5faf6;
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
  position: relative;
}

.gd-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.gd-footer__brand {
  max-width: 380px;
}

.gd-footer__logo-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.gd-footer__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 25% 15%, #daf2de 0, #3f7f4a 45%, #0b2412 100%);
  box-shadow: 0 0 0 2px rgba(161, 216, 173, 0.14);
}

.gd-footer__site-name {
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
}

.gd-footer__tagline {
  margin: 0;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(233, 246, 237, 0.82);
}

.gd-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.gd-footer__heading {
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 0.9rem;
  color: #e9f6ed;
}

.gd-footer__link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.gd-footer__link {
  font-size: 0.9rem;
  color: rgba(223, 244, 228, 0.9);
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0;
}

.gd-footer__link::before {
  content: '\f105';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.gd-footer__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, #6ab07a, #89d29b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease-out;
}

.gd-footer__link:hover,
.gd-footer__link:focus-visible {
  color: #ffffff;
  outline: none;
}

.gd-footer__link:hover::after,
.gd-footer__link:focus-visible::after {
  transform: scaleX(1);
}

.gd-footer__link:hover::before,
.gd-footer__link:focus-visible::before {
  opacity: 1;
  transform: translateX(0);
}

.gd-footer__link:focus-visible {
  box-shadow: 0 0 0 2px #89d29b;
  border-radius: 0.25rem;
  padding-inline: 0.2rem;
}

.gd-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  border-top: 1px solid rgba(175, 207, 184, 0.22);
  padding-top: 1rem;
}

.gd-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(210, 234, 217, 0.8);
}

/* Cookie banner */

.gd-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0.75rem 0.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(7, 20, 11, 0.98), rgba(4, 11, 6, 0.98));
  color: #f5faf6;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.gd-cookie--visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.gd-cookie--hidden {
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
}

.gd-cookie__inner {
  max-width: 1120px;
  margin: 0 auto;
  background: radial-gradient(circle at 0 0, rgba(106, 176, 122, 0.4), transparent 55%), #07140b;
  border-radius: 1.25rem;
  border: 1px solid rgba(137, 210, 155, 0.6);
  padding: 1rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.gd-cookie__text {
  max-width: 700px;
}

.gd-cookie__title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.gd-cookie__description {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(231, 246, 235, 0.9);
}

.gd-cookie__more {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #b9f0c8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.gd-cookie__more:hover,
.gd-cookie__more:focus-visible {
  color: #ffffff;
  outline: none;
}

.gd-cookie__more:focus-visible {
  box-shadow: 0 0 0 2px #89d29b;
  border-radius: 0.25rem;
  padding-inline: 0.1rem;
}

.gd-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.gd-cookie__button {
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gd-cookie__button--accept {
  background: linear-gradient(135deg, #6ab07a, #1b7b3f);
  color: #041008;
  box-shadow: 0 8px 16px rgba(39, 131, 75, 0.6);
}

.gd-cookie__button--accept:hover {
  background: linear-gradient(135deg, #7ec48d, #24944f);
}

.gd-cookie__button--reject {
  background-color: transparent;
  border-color: rgba(185, 240, 200, 0.7);
  color: #e7f6eb;
}

.gd-cookie__button--reject:hover {
  background-color: rgba(234, 250, 238, 0.08);
}

.gd-cookie__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #89d29b;
}

@media (min-width: 720px) {
  .gd-footer {
    padding-bottom: 5rem;
  }

  .gd-cookie__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem 1rem 1.3rem;
  }

  .gd-cookie__actions {
    justify-content: flex-end;
  }
}

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

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

  .gd-cookie__inner {
    padding: 1rem 1rem 0.9rem;
  }
}

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

  .gd-cookie__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .gd-cookie__button {
    width: 100%;
    text-align: center;
  }
}

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