/* Countryseto Footer Styles */

.cs-footer {
  background: #071b10;
  color: #e5f9ef;
  padding-top: 2.5rem;
  padding-bottom: 6rem; /* space for cookie bar */
}

.cs-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  gap: 2rem;
}

.cs-footer__brand {
  max-width: 420px;
}

.cs-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.cs-footer__brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, #9ef2c5 0, #16a34a 45%, #052e16 100%);
  color: #052e16;
  box-shadow: 0 0 0 2px rgba(148, 245, 185, 0.4);
}

.cs-footer__brand-mark i {
  font-size: 1.25rem;
}

.cs-footer__brand-text {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cs-footer__tagline {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.95rem;
  color: #c4f1de;
}

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

.cs-footer__heading {
  margin: 0 0 0.75rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbf7d0;
}

.cs-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-footer__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  color: #d1fae5;
  text-decoration: none;
  font-size: 0.95rem;
}

.cs-footer__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #16a34a;
  margin-right: 0.5rem;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.cs-footer__link:hover,
.cs-footer__link:focus-visible {
  color: #a7f3d0;
}

.cs-footer__link:hover::before,
.cs-footer__link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.cs-footer__link:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.cs-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 1.25rem 2.5rem;
}

.cs-footer__copyright {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Cookie banner */

.cs-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cs-cookie__panel {
  width: 100%;
  max-width: 1200px;
  margin: 0 0.75rem 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.97);
  color: #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  transform: translateY(120%);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cs-cookie__panel--visible {
  transform: translateY(0);
  opacity: 1;
}

.cs-cookie__content {
  flex: 1 1 240px;
}

.cs-cookie__title {
  margin: 0 0 0.25rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  color: #bbf7d0;
}

.cs-cookie__text {
  margin: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.cs-cookie__link {
  color: #6ee7b7;
  text-decoration: underline;
}

.cs-cookie__link:hover,
.cs-cookie__link:focus-visible {
  color: #a7f3d0;
}

.cs-cookie__link:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.cs-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.cs-cookie__btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.cs-cookie__btn--secondary {
  background: transparent;
  border-color: #4b5563;
  color: #e5e7eb;
}

.cs-cookie__btn--secondary:hover {
  background: rgba(31, 41, 55, 0.8);
}

.cs-cookie__btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.5);
}

.cs-cookie__btn--primary:hover {
  filter: brightness(1.03);
}

.cs-cookie__btn:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 2px;
}

.cs-cookie__panel--hidden {
  opacity: 0;
  transform: translateY(120%);
}

@media (max-width: 768px) {
  .cs-footer__inner {
    padding-inline: 1rem;
    gap: 1.5rem;
  }

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

  .cs-cookie__panel {
    margin: 0 0.5rem 0.5rem;
    padding: 0.9rem 1rem;
  }

  .cs-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

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

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

  .cs-cookie__btn {
    width: 100%;
    text-align: center;
  }
}

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