/* ============================================================
   FOOTER — shared by every page (injected by components/footer.js)
   ============================================================ */

.site-footer{
  min-height: 220px;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

/* Home variant: snaps as the last panel of the scroll container */
.site-footer--home{
  scroll-snap-align: end;
}

/* Subpage variant: sits at the end of a normally scrolling page */
.site-footer--page{
  border-top: 1px solid rgba(26, 26, 26, 0.14);
}

.footer-inner{
  flex: 1 1 auto;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 0.85fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
  align-content: center;
}

.footer-brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding-right: clamp(24px, 4vw, 56px);
  text-decoration: none;
  width: fit-content;
}

.footer-logo{
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.footer-name{
  font-family: var(--font-wix-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-brand:hover .footer-name,
.footer-brand:focus-visible .footer-name{
  border-color: var(--ink);
}

.footer-address{
  padding-left: 1.6cm;
}

.footer-address p{
  font-family: var(--font-wix-text);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.footer-contact{
  display: flex;
  justify-content: flex-end;
}

.footer-contact a{
  font-family: var(--font-wix-text);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible{
  border-color: var(--ink);
}

/* ---------- Bottom strip: legal link + copyright ---------- */

.footer-strip{
  flex: 0 0 auto;
  width: 100%;
  background: var(--ink-soft);
}

.footer-strip-inner{
  max-width: 1510px;
  margin: 0 auto;
  padding: 0.55rem clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-strip a{
  font-family: var(--font-wix-text);
  font-weight: 500;
  font-size: 0.89rem;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 245, 240, 0.4);
  transition: border-color 0.2s ease;
}

.footer-strip a:hover,
.footer-strip a:focus-visible{
  border-color: var(--paper);
}

.footer-strip p{
  font-family: var(--font-wix-text);
  font-weight: 400;
  font-size: 0.78rem;
  justify-content: flex-end;
  color: var(--paper) /*rgba(245, 245, 240, 0.75)*/;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px){
  .footer-inner{
    grid-template-columns: 1fr;
    gap: 1.4rem;
    text-align: left;
    padding: clamp(18px, 3vh, 28px) clamp(20px, 5vw, 40px);
  }
  .footer-contact{
    justify-content: flex-start;
  }
  .site-footer{
    min-height: 190px;
  }
  .footer-logo{
    width: 38px;
    height: 38px;
  }
  .footer-name{
    font-size: 1.15rem;
    white-space: nowrap;
  }
  .footer-contact a{
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .footer-brand{
    gap: 0.4rem;
    padding-right: 0;
  }
  .footer-address{
    padding-left: 0;
  }
  .footer-strip-inner{
    padding: 0.5rem clamp(20px, 5vw, 40px);
  }
}
