/* =========================================================
   FOOTER - ONE SHARED FOOTER FOR ALL BIRUBHAI PAGES
   ========================================================= */

.bb-footer,
.bb-footer *,
.bb-footer *::before,
.bb-footer *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bb-footer {
  --f: calc(100vw / 1212);
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: calc(var(--f) * 170);
  overflow: hidden;
  background: linear-gradient(100deg, #5a7a49 0, #628250 55%, #6d8b5b 100%);
  color: #f3e8d0;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 300;
}

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

/* TOP ROW */
.bb-footer__top {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: calc(var(--f) * 290) 1fr calc(var(--f) * 230);
  align-items: center;
  min-height: calc(var(--f) * 92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.bb-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(var(--f) * 56);
  padding: 0 calc(var(--f) * 24);
  border-right: 1px solid rgba(220, 190, 120, 0.55);
}

.bb-brand__name {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: calc(var(--f) * 22);
  letter-spacing: 0.25em;
  line-height: 1;
  color: #c79a45;
}

.bb-brand__tag {
  margin-top: calc(var(--f) * 7);
  font-size: calc(var(--f) * 17);
  line-height: 1;
  color: #c79a45;
  white-space: nowrap;
}

.bb-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.bb-nav a {
  font-size: calc(var(--f) * 17);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.bb-nav a:hover,
.bb-social a:hover {
  color: #fff;
}

.bb-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--f) * 28);
  height: calc(var(--f) * 52);
  border-left: 1px solid rgba(220, 190, 120, 0.55);
  color: rgba(247, 231, 204, 0.6);
}

.bb-social a {
  display: block;
  width: calc(var(--f) * 26);
  height: calc(var(--f) * 26);
}

.bb-social svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* BOTTOM ROW */
.bb-footer__bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: calc(var(--f) * 78);
  padding: 12px calc(var(--f) * 110);
  text-align: center;
}

.bb-legal,
.bb-credit {
  display: block;
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}

.bb-legal {
  font-size: max(11px, calc(var(--f) * 13));
  line-height: 1.3;
}

.bb-credit {
  font-size: max(10.5px, calc(var(--f) * 12));
  line-height: 1.2;
  color: #cfd8d0;
}

.bb-credit a {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}

.bb-credit a:hover,
.bb-legal a:hover {
  text-decoration: underline;
}

/* CORNER SPICES */
.bb-spice {
  position: absolute;
  bottom: 0;
  z-index: 1;
  height: calc(var(--f) * 78);
  pointer-events: none;
  background-image: url("assets/images/enquiry_images/pepper_turmaric.png");
  background-repeat: no-repeat;
}

.bb-spice--l {
  left: 0;
  width: calc(var(--f) * 90);
  height: calc(var(--f) * 78);
  background-size: calc(var(--f) * 171) auto;
  background-position: calc(var(--f) * -3) calc(var(--f) * -10);
  background-repeat: no-repeat;
}

.bb-spice--r {
  right: 0;
  width: calc(var(--f) * 74);
  height: calc(var(--f) * 90);
  background-size: calc(var(--f) * 160) auto;
  background-position: calc(var(--f) * -87) calc(var(--f) * -5);
  background-repeat: no-repeat;
}

/* MOBILE / TABLET */
@media (max-width: 820px) {
  .bb-footer__top {
    grid-template-columns: 1fr;
    height: auto;
    gap: 18px;
    padding: 30px 16px 22px;
    text-align: center;
  }

  .bb-brand {
    align-items: center;
    height: auto;
    padding: 0;
    border-right: 0;
  }

  .bb-brand__name {
    font-size: 26px;
  }

  .bb-brand__tag {
    margin-top: 8px;
    font-size: 16px;
  }

  .bb-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
  }

  .bb-nav a {
    font-size: 16px;
  }

  .bb-social {
    height: auto;
    gap: 26px;
    border-left: 0;
  }

  .bb-social a {
    width: 28px;
    height: 28px;
  }

  .bb-footer__bottom {
    flex-wrap: wrap;
    gap: 8px;
    min-height: auto;
    padding: 20px 16px 24px;
  }

  .bb-legal,
  .bb-credit {
    white-space: normal;
    font-size: 12px;
  }

  .bb-spice {
    display: none;
  }
}

/* separators between the legal links */
.bb-legal i {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin: 0 7px;
  vertical-align: -0.1em;
  background: rgba(243, 232, 208, 0.55);
}

/* DESKTOP: copyright and credit on one line */
@media (min-width: 821px) {
  .bb-footer .bb-footer__bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .bb-footer .bb-footer__bottom .bb-legal,
  .bb-footer .bb-footer__bottom .bb-credit {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex: 0 0 auto;
  }
}

/* PHONE: stacked, centred, fully visible, clear of the WhatsApp button */
@media (max-width: 820px) {
  .bb-footer__bottom {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 16px 16px 22px;
  }
  .bb-legal,
  .bb-credit {
    display: block;
    width: 100%;
    white-space: normal;
    font-size: 11.5px;
    line-height: 1.6;
  }
}

/* ===== WHATSAPP FLOATING BUTTON - ALL PAGES ===== */

.whatsapp-float {
  position: fixed !important;
  right: 22px !important;
  bottom: 75px !important;
  width: 56px !important;
  height: 56px !important;
  border-radius: 50%;
  background: #25d366;
  display: flex !important;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-float img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
}

@media (max-width: 820px) {
  .whatsapp-float {
    width: 52px !important;
    height: 52px !important;
    right: 16px !important;
    bottom: 75px !important;
  }

  .whatsapp-float img {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }
}
