/**
 * kb-footer.css — full styling for the rebuilt footer (footer.php).
 *
 * The old footer was a pixel-perfect Figma layout that absolutely-positioned
 * its children and floated a tall phone mockup over the content; it overlapped
 * at virtually every width. This replaces it with a robust flow/grid layout
 * styled entirely here (semantic .kb-footer__* classes) so it does not depend
 * on which Tailwind utilities are compiled into koora-widgets.css.
 */

.kb-footer {
  background: #191919;
  color: #fff;
}

.kb-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

/* ---- Top: CTA + phone ---- */
.kb-footer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.kb-footer__cta {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.3;
  color: rgba(255, 255, 255, .82);
}

.kb-footer__cta .kb-accent {
  color: #a8ff03;
}

.kb-footer__phone {
  display: none; /* decorative; desktop only */
}

/* ---- Middle: brand + columns ---- */
.kb-footer__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 36px;
}

.kb-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 372px;
}

.kb-footer__logo {
  display: inline-block;
}

.kb-footer__about {
  color: rgba(255, 255, 255, .6);
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}

.kb-footer__socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.kb-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
  max-width: 420px;
}

.kb-footer__col h3 {
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 16px;
  color: #fff;
}

.kb-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kb-footer__col a {
  color: rgba(255, 255, 255, .5);
  font-size: 15px;
  text-decoration: none;
  transition: color .15s ease;
}

.kb-footer__col a:hover {
  color: #a8ff03;
}

/* ---- Bottom: copyright capsule ---- */
.kb-footer__copy {
  margin-top: 36px;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255, 255, 255, .4);
  font-size: 14px;
}

/* ---- Desktop (lg) ---- */
@media (min-width: 1024px) {
  .kb-footer__inner {
    padding: 56px 16px 40px;
  }

  .kb-footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    gap: 40px;
    margin-bottom: 48px;
  }

  .kb-footer__cta {
    font-size: 44px;
    line-height: 1.2;
    color: #fff;
    max-width: 640px;
  }

  .kb-footer__phone {
    display: block;
    flex-shrink: 0;
  }

  .kb-footer__phone img {
    width: auto;
    height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 25px 25px rgba(0, 0, 0, .35));
  }

  .kb-footer__mid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    text-align: right;
    gap: 48px;
  }

  .kb-footer__brand {
    align-items: flex-start;
  }

  .kb-footer__socials {
    justify-content: flex-start;
  }

  .kb-footer__cols {
    width: auto;
    max-width: none;
    gap: 72px;
  }
}
