/* Shared public footer for Kabir for Kids. */
.k4k-footer {
  --k4k-footer-bg: #fff3da;
  --k4k-footer-text: #503016;
  --k4k-footer-muted: rgba(80, 48, 22, 0.68);
  --k4k-footer-soft: rgba(80, 48, 22, 0.13);
  --k4k-footer-accent: #d47d36;
  --k4k-footer-aqua: #9ad0d6;
  --k4k-footer-sun: #f6c854;
  --k4k-footer-warm: #d47d36;
  background:
    linear-gradient(90deg, var(--k4k-footer-aqua) 0 30%, var(--k4k-footer-sun) 30% 64%, var(--k4k-footer-warm) 64% 100%) top / 100% 5px no-repeat,
    linear-gradient(135deg, #fff9ea 0%, var(--k4k-footer-bg) 58%, #e8f6f7 100%);
  border-top: 1px solid rgba(80, 48, 22, 0.08);
  color: var(--k4k-footer-text);
  font-family: "DM Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 54px 0 28px;
}

.k4k-footer *,
.k4k-footer *::before,
.k4k-footer *::after {
  box-sizing: border-box;
}

.k4k-footer a {
  color: inherit;
  text-decoration: none;
}

.k4k-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 3.4fr);
  gap: 42px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.k4k-footer__desktop-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 26px;
}

.k4k-footer__mobile-nav {
  display: none;
}

.k4k-footer__brand-name {
  color: var(--k4k-footer-text);
  font-family: "Lora", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
}

.k4k-footer__tagline {
  color: #b65f22;
  font-family: "Baloo 2", "DM Sans", system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  margin: 12px 0 0;
}

.k4k-footer__blurb {
  color: var(--k4k-footer-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.62;
  margin: 16px 0 0;
  max-width: 300px;
}

.k4k-footer__heading {
  color: var(--k4k-footer-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.25;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.k4k-footer__list,
.k4k-footer__social,
.k4k-footer__seo,
.k4k-footer__quick,
.k4k-footer__mobile-social,
.k4k-footer__mobile-secondary,
.k4k-footer__more-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.k4k-footer__list {
  display: grid;
  gap: 6px;
}

.k4k-footer__list a {
  align-items: center;
  color: var(--k4k-footer-muted);
  display: inline-flex;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  min-height: 30px;
  transition: color 180ms ease, transform 180ms ease;
}

.k4k-footer__social {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.k4k-footer__social a {
  align-items: center;
  border: 1px solid var(--k4k-footer-soft);
  border-radius: 999px;
  color: var(--k4k-footer-muted);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  line-height: 1;
  min-height: 34px;
  padding: 8px 12px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.k4k-footer__social a::before {
  background:
    radial-gradient(circle at 4px 50%, var(--k4k-footer-sun) 0 4px, transparent 4.5px),
    radial-gradient(circle at 14px 50%, var(--k4k-footer-aqua) 0 4px, transparent 4.5px),
    radial-gradient(circle at 24px 50%, var(--k4k-footer-warm) 0 4px, transparent 4.5px);
  content: "";
  display: inline-block;
  height: 9px;
  width: 28px;
}

.k4k-footer__bottom {
  align-items: center;
  border-top: 1px solid var(--k4k-footer-soft);
  color: rgba(80, 48, 22, 0.52);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px 24px;
  justify-content: space-between;
  line-height: 1.5;
  margin: 34px auto 0;
  max-width: 1180px;
  padding: 18px 24px 0;
}

.k4k-footer__signature {
  color: #b65f22;
  font-family: "Baloo 2", "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.k4k-footer__seo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-end;
}

.k4k-footer__seo a {
  align-items: center;
  color: rgba(80, 48, 22, 0.58);
  display: inline-flex;
  font-weight: 650;
  min-height: 28px;
  transition: color 180ms ease;
}

.k4k-footer__list a:focus-visible,
.k4k-footer__social a:focus-visible,
.k4k-footer__seo a:focus-visible,
.k4k-footer__quick a:focus-visible,
.k4k-footer__contact:focus-visible,
.k4k-footer__mobile-social a:focus-visible,
.k4k-footer__mobile-secondary a:focus-visible,
.k4k-footer__more-list a:focus-visible,
.k4k-footer__more summary:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--k4k-footer-accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .k4k-footer__list a:hover,
  .k4k-footer__seo a:hover,
  .k4k-footer__quick a:hover,
  .k4k-footer__mobile-social a:hover,
  .k4k-footer__mobile-secondary a:hover,
  .k4k-footer__more-list a:hover {
    color: var(--k4k-footer-accent);
  }

  .k4k-footer__list a:hover {
    transform: translateX(2px);
  }

  .k4k-footer__social a:hover {
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(212, 125, 54, 0.32);
    color: var(--k4k-footer-text);
    transform: translateY(-1px);
  }
}

@media (max-width: 980px) {
  .k4k-footer {
    padding-top: 46px;
  }

  .k4k-footer__inner {
    grid-template-columns: 1fr;
  }

  .k4k-footer__desktop-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .k4k-footer {
    padding: 30px 0 20px;
  }

  .k4k-footer__inner {
    gap: 0;
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .k4k-footer__desktop-nav {
    display: none;
  }

  .k4k-footer__mobile-nav {
    display: grid;
    gap: 10px;
    margin-top: 18px;
  }

  .k4k-footer__brand-name {
    font-size: 26px;
  }

  .k4k-footer__tagline {
    font-size: 17px;
  }

  .k4k-footer__blurb {
    display: none;
  }

  .k4k-footer__quick {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k4k-footer__quick a,
  .k4k-footer__contact,
  .k4k-footer__mobile-secondary a {
    align-items: center;
    border: 1px solid var(--k4k-footer-soft);
    border-radius: 999px;
    color: var(--k4k-footer-text);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.1;
    min-height: 46px;
    padding: 12px 14px;
    text-align: center;
  }

  .k4k-footer__contact {
    background: var(--k4k-footer-sun);
    border-color: var(--k4k-footer-sun);
    color: var(--k4k-footer-text);
    width: 100%;
  }

  .k4k-footer__mobile-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .k4k-footer__mobile-secondary a {
    color: var(--k4k-footer-muted);
    font-size: 13px;
    font-weight: 750;
    min-height: 40px;
    padding: 10px 13px;
  }

  .k4k-footer__mobile-social {
    display: none;
  }

  .k4k-footer__more {
    border-bottom: 1px solid var(--k4k-footer-soft);
    border-top: 1px solid var(--k4k-footer-soft);
  }

  .k4k-footer__more summary {
    align-items: center;
    color: var(--k4k-footer-text);
    cursor: pointer;
    display: flex;
    font-size: 12px;
    font-weight: 850;
    justify-content: space-between;
    letter-spacing: 0.12em;
    list-style: none;
    min-height: 48px;
    text-transform: uppercase;
  }

  .k4k-footer__more summary::-webkit-details-marker {
    display: none;
  }

  .k4k-footer__more summary::after {
    color: var(--k4k-footer-warm);
    content: "+";
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
  }

  .k4k-footer__more[open] summary::after {
    content: "-";
  }

  .k4k-footer__more-grid {
    display: grid;
    gap: 18px;
    padding: 0 0 18px;
  }

  .k4k-footer__more:not([open]) .k4k-footer__more-grid {
    display: none;
  }

  .k4k-footer__more-title {
    color: rgba(80, 48, 22, 0.54);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.12em;
    margin: 0 0 6px;
    text-transform: uppercase;
  }

  .k4k-footer__more-list {
    display: grid;
    gap: 2px;
  }

  .k4k-footer__more-list a {
    align-items: center;
    color: var(--k4k-footer-muted);
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    min-height: 44px;
  }

  .k4k-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .k4k-footer__seo {
    display: none;
  }
}
