/* Keep the home page unchanged. Its document starts at the top of the viewport. */
body.home {
  padding-bottom: 0 !important;
}

/*
 * Internal pages use body as the scroll container while it is shifted down by
 * the fixed 76px header. Reserve the same amount at the end so the footer's
 * copyright and legal navigation can scroll completely into view.
 */
body:not(.home):not(.confidence-scroll-layout) {
  padding-bottom: var(--biofzen-header-height, 76px) !important;
}

body:not(.home):not(.confidence-scroll-layout) .biofzen-site-footer {
  box-shadow: 0 var(--biofzen-header-height, 76px) 0 #050505;
}

/* This standalone page has its own complete document flow and does not need
 * the legacy fixed-header clearance added to mirrored internal pages. */
body.page-aquamarine-product:not(.home):not(.confidence-scroll-layout) {
  padding-bottom: 0 !important;
}

body.page-aquamarine-product:not(.home):not(.confidence-scroll-layout) .biofzen-site-footer {
  box-shadow: none;
}

.biofzen-site-footer,
.biofzen-site-footer * {
  box-sizing: border-box;
}

.biofzen-site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  clear: both;
  padding: 26px 24px 22px;
  background: #050505;
  color: #fff;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  text-align: center;
}

.biofzen-site-footer__inner {
  width: min(100%, 980px);
  margin: 0 auto;
}

.biofzen-site-footer__socials {
  display: flex;
  justify-content: center;
  gap: 17px;
  margin-bottom: 18px;
}

.biofzen-site-footer__socials a {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #050505 !important;
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.biofzen-site-footer__socials svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.biofzen-site-footer__socials img {
  display: block;
  width: 29px;
  height: 29px;
  max-width: none;
}

.biofzen-site-footer__socials a:hover,
.biofzen-site-footer__socials a:focus-visible {
  color: #050505 !important;
  opacity: 0.74;
  transform: translateY(-2px);
}

.biofzen-site-footer__socials a:focus-visible,
.biofzen-site-footer__legal a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.biofzen-site-footer__logo {
  display: block;
  width: 260px;
  max-width: 66vw;
  height: auto;
  max-height: 78px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.biofzen-site-footer__divider {
  height: 1px;
  margin: 0 0 15px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0.25;
}

.biofzen-site-footer__copyright {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.biofzen-site-footer__legal {
  display: flex;
  justify-content: center;
  gap: 0;
}

.biofzen-site-footer__legal a {
  padding: 0 20px;
  color: #fff !important;
  font-size: 13px;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.biofzen-site-footer__legal a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.55);
}

.biofzen-site-footer__legal a:hover,
.biofzen-site-footer__legal a:focus-visible {
  color: #fff !important;
  opacity: 0.7;
}

@media (max-width: 767.98px) {
  .biofzen-site-footer {
    padding-top: 30px;
  }
}

@media (max-width: 479.98px) {
  .biofzen-site-footer__legal {
    flex-direction: column;
    gap: 8px;
  }

  .biofzen-site-footer__legal a {
    padding: 0;
  }

  .biofzen-site-footer__legal a + a {
    border-left: 0;
  }
}

/* Shared October footer: ID specificity keeps legacy page CSS from reshaping it. */
#biofzen-site-footer { padding: 26px 24px 22px; text-align: left; font-family: "proxima-nova", "Helvetica Neue", Arial, sans-serif; background: #030303; }
#biofzen-site-footer .biofzen-site-footer__inner { width: min(100%, 980px); }
#biofzen-site-footer .biofzen-site-footer__grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1.1fr); gap: 28px; align-items: start; }
#biofzen-site-footer .biofzen-site-footer__identity { padding-top: 4px; }
#biofzen-site-footer .biofzen-site-footer__logo { width: min(100%, 260px); max-width: 100%; height: auto; max-height: 78px; margin: 0 0 12px; object-position: left; }
#biofzen-site-footer .biofzen-site-footer__tagline { margin: 0; font-size: 11px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
#biofzen-site-footer .biofzen-site-footer__columns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#biofzen-site-footer .biofzen-site-footer__navigation { display: flex; flex-direction: column; align-self: stretch; gap: 16px; }
#biofzen-site-footer .biofzen-site-footer__pages,
#biofzen-site-footer .biofzen-site-footer__legal { display: flex; flex-direction: column; gap: 4px; justify-content: flex-start; }
#biofzen-site-footer a { color: #fff !important; text-decoration: none; }
#biofzen-site-footer .biofzen-site-footer__columns a { display: flex; align-items: center; min-height: 24px; padding: 0; border: 0; font-size: 13px; line-height: 1.4; }
#biofzen-site-footer .biofzen-site-footer__subscribe { position: relative; display: flex; flex-wrap: wrap; align-items: center; margin: auto 0 0; border: 1px solid #888; border-radius: 10px 24px 24px 10px; }
#biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"] { width: 0; min-width: 0; flex: 1 1 0; height: 34px; margin: 0; padding: 7px 12px; border: 0; border-radius: 10px 0 0 10px; background: transparent; color: #fff; box-shadow: none; font: inherit; font-size: 12px; }
#biofzen-site-footer .biofzen-site-footer__subscribe input::placeholder { color: #bcbcbc; opacity: 1; }
#biofzen-site-footer .biofzen-site-footer__subscribe button { min-height: 34px; padding: 7px 14px; margin: -1px; border: 1px solid #fff; border-radius: 999px; background: #fff; color: #080808; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
#biofzen-site-footer .biofzen-site-footer__subscribe button:disabled { opacity: .6; cursor: wait; }
#biofzen-site-footer .biofzen-site-footer__status { flex-basis: 100%; margin: 0; color: #fff; font-size: 14px; line-height: 1.5; }
#biofzen-site-footer .biofzen-site-footer__subscribe:has(.biofzen-site-footer__status:not(:empty)) { border-radius: 10px; }
#biofzen-site-footer .biofzen-site-footer__status:not(:empty) { padding: 8px 18px 14px; }
#biofzen-site-footer .biofzen-site-footer__sr-only,
#biofzen-site-footer .biofzen-site-footer__honeypot { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#biofzen-site-footer .biofzen-site-footer__details { display: grid; gap: 4px; margin: 0; font-style: normal; }
#biofzen-site-footer .biofzen-site-footer__details a { display: grid; grid-template-columns: 18px minmax(0,1fr); align-items: center; gap: 10px; min-height: 24px; font-size: 13px; line-height: 1.5; }
#biofzen-site-footer .biofzen-site-footer__details a:first-child { font-size: 12px; }
#biofzen-site-footer .biofzen-site-footer__details svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#biofzen-site-footer .biofzen-site-footer__socials { display: flex; justify-content: flex-start; gap: 17px; margin: 8px 0; }
#biofzen-site-footer .biofzen-site-footer__socials > * { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; background: none; border-radius: 0; }
#biofzen-site-footer .biofzen-site-footer__socials img { width: 25px; height: 25px; }
#biofzen-site-footer .biofzen-site-footer__socials [aria-disabled] { cursor: default; }
#biofzen-site-footer .biofzen-site-footer__contact-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 34px; padding: 7px 14px; border: 1px solid #fff; border-radius: 999px; font-size: 13px; font-weight: 600; }
#biofzen-site-footer .biofzen-site-footer__divider { height: 1px; margin: 16px 0 15px; background: #ccc; opacity: 1; }
#biofzen-site-footer .biofzen-site-footer__copyright { margin: 0; font-size: 13px; line-height: 1.5; }
#biofzen-site-footer a:hover { opacity: .75; }
#biofzen-site-footer a:focus-visible,
#biofzen-site-footer button:focus-visible,
#biofzen-site-footer input:focus-visible { outline: 2px solid white; outline-offset: 4px; }
/* Keep the email field static; keyboard focus follows the whole rounded form. */
#biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"],
#biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"]:focus,
#biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"]:focus-visible {
  outline: none !important;
  background: #030303 !important;
  color: #fff !important;
  box-shadow: none !important;
  caret-color: #fff;
}
#biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"]:autofill {
  box-shadow: 0 0 0 1000px #030303 inset !important;
  -webkit-text-fill-color: #fff !important;
}
#biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"]:-webkit-autofill {
  box-shadow: 0 0 0 1000px #030303 inset !important;
  -webkit-text-fill-color: #fff !important;
}
#biofzen-site-footer .biofzen-site-footer__subscribe.is-keyboard-focus {
  outline: 2px solid #8fd2c8;
  outline-offset: 3px;
}
@media (max-width: 899.98px) {
  #biofzen-site-footer .biofzen-site-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  #biofzen-site-footer .biofzen-site-footer__identity { grid-column: 1 / -1; }
  #biofzen-site-footer .biofzen-site-footer__logo { width: 230px; }
}
@media (max-width: 639.98px) {
  #biofzen-site-footer { padding: 26px 20px 20px; }
  #biofzen-site-footer .biofzen-site-footer__grid { grid-template-columns: minmax(0,1fr); gap: 18px; }
  #biofzen-site-footer .biofzen-site-footer__logo { width: 230px; margin-bottom: 10px; }
  #biofzen-site-footer .biofzen-site-footer__tagline { font-size: 11px; letter-spacing: .12em; }
  #biofzen-site-footer .biofzen-site-footer__columns { gap: 20px; }
  #biofzen-site-footer .biofzen-site-footer__subscribe { margin-top: 0; }
  #biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"] { padding-left: 12px; }
  #biofzen-site-footer .biofzen-site-footer__subscribe button { padding-right: 16px; padding-left: 16px; font-size: 16px; }
  #biofzen-site-footer .biofzen-site-footer__socials { gap: 12px; }
  #biofzen-site-footer .biofzen-site-footer__divider { margin-top: 16px; }
  #biofzen-site-footer .biofzen-site-footer__copyright { font-size: 12px; }
}

@media (max-width: 899.98px), (pointer: coarse) {
  #biofzen-site-footer .biofzen-site-footer__columns a,
  #biofzen-site-footer .biofzen-site-footer__details a,
  #biofzen-site-footer .biofzen-site-footer__contact-button,
  #biofzen-site-footer .biofzen-site-footer__subscribe button { min-height: 44px; }
  #biofzen-site-footer .biofzen-site-footer__subscribe input[type="email"] { height: 44px; font-size: 16px; }
  #biofzen-site-footer .biofzen-site-footer__socials > * { width: 44px; height: 44px; flex-basis: 44px; }
}

/* Match Contact's main content edges without scaling footer typography. */
@media (min-width: 900px) {
  /* Reference proportions in the approved compact footer: 4:3 control widths.
     Extra desktop space belongs between columns, not inside the buttons. */
  #biofzen-site-footer .biofzen-site-footer__navigation { width: 360px; max-width: 100%; }
  #biofzen-site-footer .biofzen-site-footer__subscribe { width: 360px; max-width: 100%; }
  #biofzen-site-footer .biofzen-site-footer__subscribe button { width: 120px; flex: 0 0 120px; }
  #biofzen-site-footer .biofzen-site-footer__contact-button { width: 270px; max-width: 100%; }
  #biofzen-site-footer .biofzen-site-footer__socials { width: 270px; max-width: 100%; justify-content: space-between; gap: 0; }
}
@media (min-width: 1024px) and (max-width: 1099.98px) {
  #biofzen-site-footer { padding-right: 18px; padding-left: 18px; }
  #biofzen-site-footer .biofzen-site-footer__inner { width: min(100%, 920px); }
}
@media (min-width: 1100px) {
  #biofzen-site-footer { padding-right: 20px; padding-left: 20px; }
  #biofzen-site-footer .biofzen-site-footer__inner { width: min(100%, 1280px); }
  #biofzen-site-footer .biofzen-site-footer__grid { grid-template-columns: minmax(0,1fr) 360px 340px; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .biofzen-site-footer * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
