/* Hide theme footer — custom #kato-footer replaces it */
footer.footer-wrap:not(.kato-footer),
.footer-bottom-wrap:not(.kato-footer-bottom),
#footer-section:not(.kato-footer) {
  display: none !important;
}

/* Katoikies custom footer */
.kato-footer {
  background: #FAF9F6 !important;
  color: #1A1D20 !important;
  border-top: 1px solid rgba(26, 29, 32, 0.1) !important;
  font-size: 14px;
  line-height: 1.55;
}
.kato-footer a {
  color: #1A1D20 !important;
  text-decoration: none !important;
}
.kato-footer a:hover {
  color: #DB1C32 !important;
}
.kato-footer-top {
  padding: 2.75rem 0 2rem;
}
.kato-footer-brand {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.kato-footer-logo {
  display: inline-block;
  margin-bottom: .85rem;
}
.kato-footer-logo img {
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
}
.kato-footer-blurb {
  margin: 0;
  color: #5C6370 !important;
  font-size: .92rem;
}
.kato-footer-cols {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}
@media (min-width: 700px) {
  .kato-footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}
.kato-footer-col h3,
.kato-footer-contact h3 {
  margin: 0 0 .85rem;
  font-size: .72rem !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1A1D20 !important;
  border: 0 !important;
}
.kato-footer-col ul {
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.kato-footer-col li {
  margin: 0 0 .45rem;
  padding: 0;
}
.kato-footer-col a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.kato-footer-col a::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #DB1C32;
  flex: 0 0 auto;
}
.kato-footer-contact {
  border-top: 1px solid rgba(26, 29, 32, 0.1);
  padding-top: 1.35rem;
}
.kato-footer-contact-list {
  list-style: none !important;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem 1.25rem;
}
@media (min-width: 900px) {
  .kato-footer-contact-list {
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.2fr;
    align-items: start;
  }
}
.kato-footer-contact-list li {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  color: #5C6370 !important;
  margin: 0;
}
.kato-footer-contact-list a {
  color: #1A1D20 !important;
  font-weight: 600;
}
.kato-footer-ico {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: .2rem;
  border: 1.5px solid #DB1C32;
  border-radius: 2px;
  position: relative;
}
.kato-ico-pin { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.kato-ico-phone { border-radius: 3px; }
.kato-ico-mail { border-radius: 2px; }
.kato-ico-mail::after {
  content: "";
  position: absolute;
  left: 2px; right: 2px; top: 3px;
  border-top: 1.5px solid #DB1C32;
}
.kato-footer-bottom {
  background: #F0EFEB !important;
  border-top: 1px solid rgba(26, 29, 32, 0.08) !important;
  padding: 1rem 0;
  color: #5C6370 !important;
  font-size: .82rem;
}
.kato-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .kato-footer-bottom-inner {
    flex-direction: row;
    align-items: center;
  }
}
.kato-footer-copy {
  margin: 0;
}
.kato-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
}
.kato-footer-legal a {
  font-weight: 650;
  font-size: .8rem;
}

/* Legal page readability */
.page .entry-content h2,
.page-content-wrap h2 {
  margin-top: 1.5rem;
}

/* Hide leftover theme footer fragments if replacement fails partially */
body .footer-wrap:not(.kato-footer) .widget-read-more a[href$="/"] {
  /* no-op; full footer is replaced */
}
