/* ==========================================================================
   Footer Section — BuddieSpace Kajabi Theme
   Figma node: 29:137 | Canvas: 1440px
   Navy bg #21254a | 2-col top row | thin bottom bar
   ========================================================================== */

.bs-footer {
  background: #21254a;
  font-family: 'Inter', sans-serif;
  color: #ffffff;
  padding: clamp(60px, 6.94vw, 100px) clamp(24px, 6.67vw, 96px) clamp(24px, 3.33vw, 48px);
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 3.89vw, 56px);
}

/* ── Big brand text ── */
.bs-footer__brand-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 12.3vw, 177px);
  line-height: 1;
  color: #ffffff;
  margin: 0;
  width: 100%;
  text-align: center;
}

/* ── Top row: logo left | right group (support + subscribe) ── */
.bs-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 3.33vw, 48px);
  width: 100%;
}

.bs-footer__right {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 4.44vw, 64px);
  flex-shrink: 0;
}

/* ── Col 1: logo + tagline, ~301px ── */
.bs-footer__left {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.22vw, 24px);
  flex: 0 0 clamp(220px, 23vw, 340px);
  width: clamp(220px, 23vw, 340px);
}

.bs-footer__logo {
  width: clamp(120px, 13.9vw, 200px);
  height: auto;
  border-radius: clamp(32px, 4.5vw, 65px);
  display: block;
  object-fit: cover;
}

/* Tagline — Regular 400, 18px, white */
.bs-footer__tagline {
  font-size: clamp(16px, 1.39vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
}

/* ── Col 2: support ── */
.bs-footer__support-col {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.11vw, 16px);
  flex-shrink: 0;
}

/* Column heading — Inter Bold 700, 18px */
.bs-footer__col-heading {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  line-height: 1.55;
  color: #ffffff;
  margin: 0;
  padding-left: 0;
}

.bs-footer__support-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bs-footer__support-links li a {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 400;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.55;
  transition: opacity 0.2s;
  display: inline-block;
}

.bs-footer__support-links li a:hover {
  opacity: 0.75;
  text-decoration: underline;
}

/* ── Col 3: subscribe + social, gap 48px ── */
.bs-footer__sub-col {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.33vw, 48px);
  flex: 0 0 clamp(200px, 22.9vw, 330px);
  width: clamp(200px, 22.9vw, 330px);
}

/* ── Subscribe group ── */
.bs-footer__subscribe {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.11vw, 16px);
}

.bs-footer__subscribe-text {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.55;
  margin: 0;
}

/* Email input + green send button */
.bs-footer__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  background: #ffffff;
  border-radius: 6.5px;
  overflow: hidden;
}

.bs-footer__input {
  flex: 1;
  min-width: 0;
  height: 42.5px;
  padding: 0 15px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #333333;
  outline: none;
  box-sizing: border-box;
}

.bs-footer__input::placeholder {
  color: #757575;
}

.bs-footer__form-btn {
  width: 43.5px;
  flex-shrink: 0;
  background: #b0f288;
  border: none;
  border-radius: 0 6.5px 6.5px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.bs-footer__form-btn:hover {
  opacity: 0.88;
  color: #ffffff !important;
}

/* ── Social group: follow label + icons + location ── */
.bs-footer__social-group {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.51vw, 21.7px);
}

.bs-footer__social-header {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.11vw, 16px);
}

.bs-footer__social {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.63vw, 9px);
}

.bs-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.bs-footer__social-link:hover {
  opacity: 0.75;
}

.bs-footer__social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bs-footer__location {
  font-size: clamp(14px, 1.25vw, 18px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.55;
  margin: 0;
}

/* ── Bottom bar ── */
.bs-footer__bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.6);
  padding-top: clamp(20px, 2.22vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

/* Copyright — Regular 400, 18px */
.bs-footer__copyright {
  font-size: clamp(13px, 1.25vw, 18px);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.55;
  white-space: nowrap;
}

/* Credit line — Regular 400, 14px */
.bs-footer__credit {
  font-size: 14px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.55;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

/* Agency name — green */
.bs-footer__credit a {
  color: #b0f288;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.bs-footer__credit a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── Tablet: ≤ 1023px ── */
@media (max-width: 1023px) {
  .bs-footer__top {
    flex-wrap: wrap;
    gap: 32px;
  }

  .bs-footer__left {
    flex: 0 0 100%;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    max-width: 500px;
  }

  .bs-footer__right {
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
    flex-shrink: 1;
  }

  .bs-footer__support-col {
    flex: 1 1 160px;
  }

  .bs-footer__sub-col {
    flex: 1 1 260px;
    width: auto;
  }

  .bs-footer__form {
    max-width: 330px;
  }
}

/* ── Mobile: ≤ 599px ── */
@media (max-width: 599px) {
  .bs-footer {
    padding: 48px 20px 32px;
    gap: 32px;
  }

  .bs-footer__brand-text {
    font-size: clamp(40px, 10vw, 64px);
    word-break: break-word;
  }

  .bs-footer__left {
    flex-direction: column;
    max-width: 100%;
  }

  .bs-footer__support-col,
  .bs-footer__sub-col {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .bs-footer__form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .bs-footer__input {
    min-width: 0;
    box-sizing: border-box;
  }

  .bs-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .bs-footer__copyright {
    white-space: normal;
    font-size: 13px;
  }

  .bs-footer__credit {
    justify-content: flex-start;
  }
}

/* ── Kajabi embed newsletter form — matches original pill design ── */
.bs-footer__form-embed {
  width: 100%;
}

.bs-footer__form-embed .kajabi-form__title,
.bs-footer__form-embed .kajabi-form__subtitle {
  display: none !important;
}

.bs-footer__form-embed form,
.bs-footer__form-embed .kajabi-form--inline,
.bs-footer__form-embed #kajabi-form,
.bs-footer__form-embed .kajabi-form__content {
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bs-footer__form-embed fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  background: #ffffff !important;
  border-radius: 6.5px !important;
  overflow: hidden !important;
  width: 100% !important;
}

.bs-footer__form-embed .kajabi-form__form-item,
.bs-footer__form-embed .email-field {
  flex: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bs-footer__form-embed .kajabi-form__form-item input,
.bs-footer__form-embed .email-field input {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 15px !important;
  border: none !important;
  background: transparent !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  color: #333333 !important;
  outline: none !important;
  box-sizing: border-box !important;
  box-shadow: none !important;
}

.bs-footer__form-embed .kajabi-form__form-item input::placeholder,
.bs-footer__form-embed .email-field input::placeholder {
  color: #757575 !important;
}

.bs-footer__form-embed .kajabi-form__btn {
  flex-shrink: 0 !important;
  width: 43.5px !important;
  height: 42.5px !important;
  background: #b0f288 !important;
  border: none !important;
  border-radius: 0 6.5px 6.5px 0 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: opacity 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  /* Hide injected "Subscribe" text, show envelope icon instead */
  font-size: 0 !important;
  color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg width='19' height='19' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.934 3.268H2.08c-.495 0-.904.161-1.226.483-.322.322-.483.73-.483 1.225v9.136c0 .446.161.842.483 1.188.322.347.731.52 1.226.52h14.854c.495 0 .904-.173 1.225-.52.322-.346.483-.742.483-1.188V4.976c0-.495-.161-.904-.483-1.226-.321-.322-.73-.483-1.225-.483Zm0 1.04c.149 0 .273.025.372.074L9.952 8.913c-.297.148-.594.148-.891 0L1.708 4.382c.149-.05.272-.074.372-.074h14.854Zm0 10.398H2.08c-.198 0-.36-.062-.483-.186-.124-.124-.186-.285-.186-.483V5.422l7.13 4.382c.297.149.607.223.928.223.322 0 .631-.074.929-.223l7.13-4.382v8.716c.049.198.012.359-.112.483-.124.124-.285.186-.483.186Z' fill='%2321254A'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 19px 19px !important;
}

.bs-footer__form-embed .kajabi-form__btn:hover {
  opacity: 0.88 !important;
}
