/* Footer — Estelia */
.est-footer{
  --est-footer-bg: var(--est-beige, #EFE7DA);
  --est-footer-ink: var(--est-ink, #131313);
  --est-footer-muted: var(--est-ink-muted, #6A6A68);
  --est-footer-line: var(--est-line, #DFDEDB);
  --est-footer-pad: clamp(1.25rem, 5vw, 4rem);
  --est-footer-ease: cubic-bezier(.22,1,.36,1);

  background: var(--est-footer-bg);
  color: var(--est-footer-ink);
  font-family: var(--est-font-body, "DM Sans", system-ui, sans-serif);
  padding-top: clamp(2.5rem, 7vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding-left: var(--est-footer-pad);
  padding-right: var(--est-footer-pad);
}

/* Top area.
   Two columns on a phone: one link list per column, the brand block across
   both. Five stacked blocks made the footer taller than the page above it. */
.est-footer .est-footer__inner{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 5vw, 3rem) clamp(1.25rem, 5vw, 3rem);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

/* Brand — full width while the grid is two columns; from 48em it is a
   column of its own again (see the tablet block below). */
.est-footer .est-footer__brand{
  grid-column: 1 / -1;
}

.est-footer .est-footer__logo{
  display: block;
  font-family: var(--est-font-display, "Instrument Serif", Georgia, serif);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--est-footer-ink);
  text-decoration: none;
}

/*
  Sized like the header wordmark (height 4.125rem) using the PNG's real
  700x396 ratio, so `mask-size: contain` fills the box instead of leaving
  dead space beside the glyphs.

  The source PNG carries ~10% transparent padding on its left edge, which
  pushed the visible letters right of the tagline below it. translateX
  resolves against the element's own width, so -10% cancels exactly that
  padding and lines the "E" up with the text.
*/
.est-footer .est-footer__logo-mark{
  display: block;
  height: 4.125rem;
  aspect-ratio: 700 / 396;
  transform: translateX(-10%);
  background-color: var(--est-accent, #4A1F45);
  -webkit-mask-image: url('/wp-content/uploads/2026/07/cropped-estelia-wordmark.png.png');
  mask-image: url('/wp-content/uploads/2026/07/cropped-estelia-wordmark.png.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: left center;
  mask-position: left center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.est-footer .est-footer__tagline{
  margin: .9rem 0 0;
  max-width: 26ch;
  font-size: .9rem;
  line-height: 1.6;
  color: var(--est-footer-muted);
}

/* Column titles */
.est-footer .est-footer__title{
  margin: 0 0 1rem;
  font-family: var(--est-font-body, "DM Sans", system-ui, sans-serif);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--est-footer-ink);
}

/* Lists */
.est-footer .est-footer__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.est-footer .est-footer__link{
  display: inline-block;
  font-size: .95rem;
  line-height: 1.5;
  color: var(--est-footer-muted);
  text-decoration: none;
  transition: color 300ms var(--est-footer-ease);
}

.est-footer .est-footer__link:hover,
.est-footer .est-footer__link:focus-visible{
  color: var(--est-footer-ink);
}

.est-footer .est-footer__link--inline{
  display: inline;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Social — larger marks, brand-purple, no boxes */
.est-footer .est-footer__social{
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
}

.est-footer .est-footer__social-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--est-accent, #4A1F45);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 300ms var(--est-footer-ease), opacity 300ms var(--est-footer-ease);
}

.est-footer .est-footer__social-link svg{
  width: 26px;
  height: 26px;
}

.est-footer .est-footer__social-link:hover,
.est-footer .est-footer__social-link:focus-visible{
  color: var(--est-accent-dark, #341530);
  opacity: .8;
}

/* Kontakt column — icon + text rows */
.est-footer .est-footer__contact{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}

.est-footer .est-footer__contact li{
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--est-footer-muted);
}

.est-footer .est-footer__contact svg{
  flex: none;
  margin-top: .15rem;
  color: var(--est-footer-ink);
  opacity: .7;
}

/* Bottom row — copy / badges / payment icons, each group wraps as a whole */
.est-footer .est-footer__bottom{
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-left: 40px;
  padding-right: 40px;
  border-top: 1px solid var(--est-footer-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.est-footer .est-footer__copy{
  margin: 0;
  font-size: .82rem;
  letter-spacing: .02em;
  color: var(--est-footer-muted);
}

.est-footer .est-footer__pay{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
}

.est-footer .est-footer__pay-item{
  display: inline-flex;
  margin: 0;
}

.est-footer .est-footer__pay-item svg{
  display: block;
  width: 44px;
  height: auto;
}

/* Tablet */
@media (min-width: 48em){
  .est-footer .est-footer__inner{
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }
  .est-footer .est-footer__brand{ grid-column: auto; }
  .est-footer .est-footer__pay-item svg{ width: 48px; }
}

/* Desktop */
@media (min-width: 75em){
  .est-footer .est-footer__inner{
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  }

  .est-footer .est-footer__bottom{
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
  .est-footer .est-footer__copy{
    flex: none;
  }
  .est-footer .est-footer__pay{
    flex: none;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce){
  .est-footer .est-footer__link,
  .est-footer .est-footer__social-link{ transition: none; }
}

/* Match .site-content's mobile inner padding (GeneratePress container padding) */
@media (max-width: 768px){
  .est-footer .est-footer__inner,
  .est-footer .est-footer__bottom{
    padding-left: 30px;
    padding-right: 30px;
  }
}
