/* ==========================================================================
   Footer v2 (Lovable .home-footer)
   Markup: footer.tpl (#footer.site-footer > .site-footer__grid) and the displayFooter blocks of
   themes/tematikjums/modules/{blockmyaccountfooter,blockcms} (section.site-footer__col) and the contact column of the
   elpbusinessdetails module (hook displayFooter; it was the elphomepage module). Brand column + one column per block + the copyright line.
   Selectors start with .footer-container #footer so they win over the generic rules of global.css.
   ========================================================================== */

.footer-container #footer.site-footer {
  padding: 32px max(32px, calc((100vw - 1216px) / 2));
  background: var(--color-secondary);
  border-top: 1px solid var(--color-border);
  font-family: var(--font-body);
  color: var(--color-text-muted);
}

/* ---------- grid: brand column, then one column for every block of the hook (logged in: my account, information, contact; logged out: information, contact) ---------- */
.footer-container #footer .site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 24px;
}

.footer-container #footer .site-footer__col {
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* ---------- brand ---------- */
.footer-container #footer .site-footer__brand {
  display: inline-block;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-primary);
  white-space: nowrap;
  text-decoration: none;
}
.footer-container #footer .site-footer__brand:hover {
  color: var(--color-primary);
}
.footer-container #footer .site-footer__brand span {
  font-weight: 300;
}
.footer-container #footer .site-footer__tagline {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ---------- column title and links ---------- */
.footer-container #footer .site-footer__title {
  margin: 0 0 10px;
  font: 600 13px/1.5 var(--font-body);
  text-transform: none;
  color: var(--color-text);
}
.footer-container #footer .site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-container #footer .site-footer__list li {
  margin: 9px 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-muted);
  background: none;
}
.footer-container #footer .site-footer__list li a {
  display: block;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  transition: color 0.15s;
}
.footer-container #footer .site-footer__list li a:hover {
  color: var(--color-primary);
}
/* the optional text of the CMS block */
.footer-container #footer .site-footer__col > p {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ---------- copyright line ---------- */
.footer-container #footer .site-footer__bottom {
  margin-top: 24px;
  padding-top: 17px;
  font-size: 11px;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
}
.footer-container #footer .site-footer__bottom span {
  padding: 0;
}

/* ---------- phones: two columns, brand on its own row (no accordion) ---------- */
@media (max-width: 760px) {
  .footer-container #footer.site-footer {
    padding: 26px 18px;
  }
  .footer-container #footer .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 20px;
  }
  .footer-container #footer .site-footer__bottom {
    margin-top: 20px;
  }
  .footer-container #footer .site-footer__brand-col {
    grid-column: 1 / -1;
  }
}

/* ---------- print: only the contact block and the copyright line, like before ---------- */
@media print {
  .footer-container #footer .site-footer__grid > * {
    display: none;
  }
  .footer-container #footer .site-footer__grid > #block_contact_infos {
    display: block;
  }
}
