/*
* ----------[PO FOOTER]--------*
* Mirrors the PowerOut app's own footer (src/components/Footer.jsx in the
* Next.js app repo) — brand + tagline, three link columns, a contact card,
* and a bottom bar with copyright + legal links. Markup comes from the
* [po-footer] shortcode in shortcodes.php.
*/
.po-footer {
  /* Gradient "glow line" top border: border-top is transparent, then two
       background layers show through it — a solid fill clipped to the
       padding-box, and a gradient clipped to the border-box (only visible
       where the transparent border has width, i.e. the top 2px). Same
       technique as the app's Footer.jsx. */
  border-top: 2px solid transparent;
  background:
    linear-gradient(var(--bodyBg), var(--bodyBg)) padding-box,
    linear-gradient(90deg, transparent, var(--limeAccent), transparent)
      border-box;
  padding: 48px 16px;
}
.po-footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .po-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .po-footer__grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr;
  }
}
.po-footer__logo {
  display: inline-block;
  line-height: 0;
}
.po-footer__logo img {
  display: block;
  width: 210px;
  height: auto;
}
.po-footer__tagline {
  margin: 12px 0 0;
  max-width: 260px;
  color: var(--textSecondary);
  font-size: 0.875rem;
  line-height: 1.43;
}
.po-footer__col-heading {
  margin-bottom: 12px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}
.po-footer .po-footer__links,
.po-footer .po-footer__links li {
  /* higher specificity than Divi's own ul/li resets */
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
}
.po-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.po-footer__links a,
.po-footer__contact-row a {
  color: var(--textSecondary);
  font-size: 0.875rem;
  text-decoration: none;
}
.po-footer__links a:hover,
.po-footer__contact-row a:hover {
  text-decoration: underline;
}
.po-footer__contact {
  height: fit-content;
  padding: 15px 16px;
  border: 1px solid var(--divider);
  border-radius: 10px;
}
.po-footer__contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.po-footer__contact-row:first-of-type {
  margin-top: 0;
}
.po-footer__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--textSecondary);
}
.po-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}
@media (min-width: 600px) {
  .po-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.po-footer__copyright {
  margin: 0;
  color: var(--textSecondary);
  font-size: 0.75rem;
}
.po-footer__legal {
  display: flex;
  gap: 16px;
}
.po-footer__legal a {
  color: var(--textSecondary);
  font-size: 0.75rem;
  text-decoration: none;
}
.po-footer__legal a:hover {
  text-decoration: underline;
}

/* ----------[PO FOOTER — DIVI BUILDER]---------- */
/* Separate implementation: hand-built Theme Builder footer (nav-row + legal-row). */

.et-l--footer .et_pb_section_0_tb_footer {
  background-color: var(--bodyBg);
  position: relative;
}

/* Gradient glow line, same technique as .po-footer above */
.et-l--footer .et_pb_section_0_tb_footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--limeAccent),
    transparent
  );
}

#nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}

#nav-row .et_pb_column {
  width: auto;
  padding: 0;
  margin: 0;
}

#nav-row .et_pb_column .et_pb_module {
  margin: 0;
}

#nav-row .et_pb_column > .et_pb_text:first-child {
  margin-bottom: 8px;
}

#nav-row .et_pb_column > .et_pb_text:first-child .et_pb_text_inner p {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.57;
  letter-spacing: 0;
  color: var(--white);
  margin: 0;
}

#footer-logo img {
  width: 210px;
  height: auto;
}

.tagline .et_pb_text_inner p {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: 0;
  color: var(--textSecondary);
  max-width: 260px;
  margin: 12px 0 0 0;
}

#nav-row .et_pb_code_inner ul {
  list-style: none;
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#nav-row .et_pb_code_inner ul li a {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: 0;
  color: var(--textSecondary);
  text-decoration: none;
}

#nav-row .et_pb_code_inner ul li a:hover {
  text-decoration: underline;
}

#nav-row #col6 {
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 15px 16px;
  box-sizing: border-box;
  align-self: flex-start;
}

#nav-row #col6 .contact-link .et_pb_blurb_content {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

#nav-row #col6 .contact-link:last-child .et_pb_blurb_content {
  margin-bottom: 0;
}

#nav-row #col6 .et_pb_main_blurb_image {
  flex-shrink: 0;
}

#nav-row #col6 .et_pb_main_blurb_image img {
  width: 16px;
  height: auto;
  display: block;
}

.contact-link .et_pb_main_blurb_image {
  margin-bottom: 0;
}

.contact-link .et_pb_blurb_container {
  padding-left: 0;
}

#nav-row #col6 .et_pb_blurb_container {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

#nav-row #col6 .et_pb_blurb_description {
  min-width: 0;
}

#nav-row #col6 .et_pb_blurb_description p {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.43;
  letter-spacing: 0;
  color: var(--textSecondary);
  margin: 0;
  overflow-wrap: anywhere;
}

#nav-row #col6 .et_pb_blurb_content:hover .et_pb_blurb_description p {
  text-decoration: underline;
}

#legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--divider);
  margin-top: 32px;
  padding-top: 24px;
  width: 100%;
}

#legal-row .et_pb_column {
  width: 50%;
  padding: 0;
  box-sizing: border-box;
}

#legal-row .et_pb_column#col2 {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
}

#legal-row .et_pb_text_inner p {
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 1.66;
  letter-spacing: 0;
  color: var(--textSecondary);
  margin: 0;
}

#legal-row .et_pb_text_inner p:hover {
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 767px) {
  #nav-row {
    flex-direction: column;
  }
  #legal-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  #legal-row .et_pb_column {
    width: 100%;
  }
  #legal-row .et_pb_column#col2 {
    justify-content: flex-start;
  }
}
