/* Site footer — layout tokens from skeidar.no Emotion CSS.
   Content (labels, links, icons) comes from CMS only. */

.site-footer {
  width: 100%;
  max-width: none;
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: var(--font-mark-ot), Arial, sans-serif;
}

/* Footer must always be full-bleed (edge-to-edge backgrounds), like skeidar.no.
   Override any Base Block "Contained" max-width that may be applied via CMS. */
.site-footer__inner,
.site-footer__inner.skeidar-block,
.site-footer__inner.skeidar-block--contained,
.site-footer.skeidar-block--contained {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

/* -------------------------------------------------------------------------- */
/* USP strip — fixed 160px tiles, centered (not space-between)                */
/* -------------------------------------------------------------------------- */

.site-footer__usp {
  width: 100%;
  background: #ffffff;
}

.site-footer__usp-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 28px;
  margin: 0;
  padding: 0 8px 32px;
  list-style: none;
}

.site-footer__usp-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 160px;
  flex: 0 0 160px;
  text-align: center;
  text-decoration: none;
  color: #000000;
}

.site-footer__usp-item:hover {
  opacity: 0.7;
}

.site-footer__usp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
}

.site-footer__usp-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer__usp-title {
  width: 160px;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: #000000;
}

/* -------------------------------------------------------------------------- */
/* Beige columns panel — padding 48 / 160, gap 32 / 64                        */
/* -------------------------------------------------------------------------- */

.site-footer__main {
  width: 100%;
  background: #e6dfd6;
  padding: 16px 0;
}

.site-footer__columns {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

/* Hide back-to-top — not used on production footer parity */
.site-footer__back-to-top {
  display: none !important;
}

.site-footer__heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  color: #000000;
}

.site-footer__links,
.site-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.site-footer__links li,
.site-footer__social > li {
  margin: 0;
  padding: 0;
}

.site-footer__links a,
.site-footer__social-text {
  margin: 0;
  color: #333333;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.2;
}

.site-footer__links a:hover,
.site-footer__social-link:hover {
  opacity: 0.5;
}

/* Social — 22×22 icons */
.site-footer__social-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-footer__social-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  text-decoration: none;
  color: #333333;
}

.site-footer__social-icon {
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  overflow: hidden;
}

.site-footer__social-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer__social-secondary {
  margin: 0;
  padding-left: 30px;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1;
  color: #333333;
}

.site-footer__membership-body {
  margin: 0;
  color: #333333;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.4;
}

.site-footer__membership-body p {
  margin: 0;
}

.site-footer__membership-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 32px;
  padding: 8px 16px;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-transform: none;
  box-shadow: none;
}

.site-footer__membership-cta:hover {
  opacity: 0.85;
}

/* -------------------------------------------------------------------------- */
/* Legal bar — tiny 169×22 logo, 60×25 payment tiles, 22px beige closer       */
/* -------------------------------------------------------------------------- */

.site-footer__legal {
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  border-bottom: 0 solid transparent;
}

.site-footer__legal-brand {
  /* Live layout:
     row1: [LOGO] [Personvern] [Cookies]
     row2: [© copyright ..............]  (full width under logo) */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  justify-content: start;
  padding: 16px;
  background: #cfd0cd;
  margin-right: auto;
}

.site-footer__logo {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 169px;
  height: 22px;
  object-fit: contain;
}

.site-footer__legal-links {
  grid-column: 2;
  grid-row: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  text-align: left;
}

.site-footer__legal-links a,
.site-footer__copyright,
.site-footer__copyright a,
.site-footer__copyright span {
  margin: 0;
  color: #666666;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.66;
  text-decoration: none;
}

.site-footer__legal-links a:hover {
  opacity: 0.7;
}

.site-footer__payments {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  background: transparent;
}

.site-footer__payment {
  display: block;
  width: 60px;
  height: 25px;
  flex: 0 0 60px;
}

.site-footer__payment img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* -------------------------------------------------------------------------- */
/* Breakpoints — match live 600 / 900 / 1200                                  */
/* -------------------------------------------------------------------------- */

@media (min-width: 600px) {
  .site-footer__usp-icon {
    width: 68px;
    height: 68px;
  }
}

@media (min-width: 900px) {
  .site-footer__usp-list {
    padding-left: 48px;
    padding-right: 48px;
  }

  .site-footer__usp-icon {
    width: 80px;
    height: 80px;
  }

  .site-footer__usp-title {
    font-size: 0.875rem;
  }

  .site-footer__main {
    padding: 48px 0 0;
  }

  .site-footer__columns {
    flex-direction: row;
    gap: 32px;
    padding: 0 48px 48px;
  }

  .site-footer__column {
    padding: 0;
  }

  .site-footer__legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 22px solid #e6dfd6;
  }

  .site-footer__legal-brand {
    flex: 0 0 auto;
    padding: 32px 24px 32px 48px;
    background: transparent;
    margin-right: auto;
  }

  .site-footer__payments {
    flex: 0 0 auto;
    gap: 16px;
    padding: 32px 48px 32px 24px;
    justify-content: flex-end;
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  .site-footer__usp-list {
    padding-left: 160px;
    padding-right: 160px;
  }

  .site-footer__columns {
    gap: 64px;
    padding-left: 160px;
    padding-right: 160px;
  }

  /* Live legal bar stays at 48px inset — logo sits further left than columns */
  .site-footer__legal-brand {
    padding-left: 48px;
  }

  .site-footer__payments {
    padding-right: 48px;
  }
}
