/* Kidstoyra Footer Styles */

.kt-footer {
  background: linear-gradient(180deg, #fff7ed 0%, #fef2f2 45%, #e0f2fe 100%);
  border-top: 2px solid #ffe4a3;
  margin-top: 3rem;
  color: #1f2933;
}

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

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

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

.kt-footer__logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, #ffdd57, #60a5fa 55%, #34d399 100%);
}

.kt-footer__logo-text {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0f766e;
}

.kt-footer__tagline {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0.25rem 0 0;
}

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

.kt-footer__column {
  min-width: 0;
}

.kt-footer__heading {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: #1f2937;
}

.kt-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kt-footer__links li + li {
  margin-top: 0.4rem;
}

.kt-footer__links a {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #374151;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.05rem;
}

.kt-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb7185, #f97316);
  transition: width 0.18s ease;
}

.kt-footer__links a:hover::after {
  width: 100%;
}

.kt-footer__links a:hover {
  color: #111827;
}

.kt-footer__links a:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.kt-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.9rem 1rem 1.2rem;
  text-align: center;
}

.kt-footer__copy {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Cookie banner */
.kt-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

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

.kt-cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto 0.75rem;
  background-color: #111827;
  color: #f9fafb;
  border-radius: 1.25rem 1.25rem 0 0;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.5);
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.kt-cookie-banner__content {
  flex: 1 1 auto;
}

.kt-cookie-banner__title {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.kt-cookie-banner__text {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
  color: #e5e7eb;
}

.kt-cookie-banner__link {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #fbbf24;
  text-decoration: underline;
}

.kt-cookie-banner__link:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.kt-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.kt-cookie-banner__btn {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.45rem 1.05rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.kt-cookie-banner__btn:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

.kt-cookie-banner__btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.5);
}

.kt-cookie-banner__btn--primary:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  transform: translateY(-1px);
}

.kt-cookie-banner__btn--secondary {
  background-color: transparent;
  color: #e5e7eb;
  border-color: #6b7280;
}

.kt-cookie-banner__btn--secondary:hover {
  background-color: rgba(249, 250, 251, 0.04);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .kt-cookie-banner,
  .kt-cookie-banner__btn {
    transition: none !important;
  }
}

/* Responsive footer & cookie banner */
@media (max-width: 900px) {
  .kt-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 640px) {
  .kt-footer__inner {
    padding-inline: 1rem;
  }

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

  .kt-cookie-banner__inner {
    border-radius: 1.1rem 1.1rem 0 0;
    margin-inline: 0.35rem;
    padding: 1rem 0.95rem 0.95rem;
    flex-direction: column;
    gap: 0.85rem;
  }

  .kt-cookie-banner__actions {
    justify-content: flex-start;
  }

  .kt-cookie-banner__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

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