/* =============================================
   FOOTER — matches Figma design
   ============================================= */

.site-footer {
  background-color: var(--color-brown-alt);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
}

/* -----------------------------------------------
   Main footer area
   ----------------------------------------------- */
.site-footer__main {
  padding-block: var(--space-lg);
}

/* Figma: 4-column grid — brand (wider) + Páginas + Categorias/Conta stack + Suporte */
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1.3fr;
  gap: 40px;
  align-items: start;
}

/* Categorias + Conta stack inside one footer column */
.footer-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* -----------------------------------------------
   Brand column — Figma footer logo composite (116×109)
   3 positioned SVG groups: S mark / SATSANGA wordmark / SPA & WELLNESS tagline
   ----------------------------------------------- */
.footer-brand__logo-link {
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}

/* Defensive: WooCommerce adds .woocommerce to <body> on shop/product pages
   and ships rules like `.woocommerce img { height: auto; max-width: 100% }`
   that collapse our absolute layout. We inline the SVGs (no <img> tags) AND
   use min-height + !important on the container so it can't be squashed. */
.footer-brand__logo {
  position: relative;
  width: 116px;
  height: 109px;
  min-height: 109px;
  display: block;
  flex-shrink: 0;
}

/* Inline SVGs inside the 3 positioned boxes fill the parent div. */
.footer-brand__logo svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Each of the 3 logo boxes is an absolutely positioned <div> wrapping its <svg>. */
.footer-brand__logo-s,
.footer-brand__logo-wordmark,
.footer-brand__logo-tagline {
  position: absolute;
  display: block;
}

.footer-brand__logo-s {
  top: 0;
  left: 36.2%;
  right: 36.2%;
  bottom: 37.68%;
  width: 27.6%;        /* (100% - 36.2% - 36.2%) of the 116px container */
  height: 62.32%;      /* (100% - 0 - 37.68%) of the 109px container */
}

/* SATSANGA wordmark: inset 73.97% 0 12.15% 0 → 116 × 15.14 */
.footer-brand__logo-wordmark {
  top: 73.97%;
  left: 0;
  width: 100%;
  height: 13.88%;
}

/* SPA & WELLNESS tagline: inset 94.26% 17.52% 0 17.52% → 75.36 × 6.26 */
.footer-brand__logo-tagline {
  top: 94.26%;
  left: 17.52%;
  width: 64.96%;       /* 100% - 17.52% - 17.52% */
  height: 5.74%;       /* 100% - 94.26% - 0 */
}

.footer-brand__tagline {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
  max-width: 260px;
  margin-top: 24px;       /* breathing room below the 109px logo */
}

/* -----------------------------------------------
   Nav columns
   ----------------------------------------------- */
.footer-nav__title {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-tan);
  margin-bottom: 20px;
}

.footer-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-nav__list li {
  padding: 0;
  margin: 0;
}

.footer-nav__list a {
  color: var(--color-text-muted);
  line-height: 27px;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: var(--fs-sm);
}

.footer-nav__list a:hover {
  color: var(--color-tan);
}

/* -----------------------------------------------
   Bottom bar — Figma: tan/cream strip with brown text
   ----------------------------------------------- */
.site-footer__bottom {
  background: var(--color-tan);
  padding-block: 16px;
  text-align: center;
}

.site-footer__copyright {
  font-size: var(--fs-xs);
  color: var(--color-brown);
  margin: 0;
}

/* -----------------------------------------------
   Responsive
   ----------------------------------------------- */
@media (max-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-nav-stack { gap: 24px; }
}

@media (max-width: 420px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: auto;
  }
}
