/* ==========================================================================
   Footer - Terra Group layout, Yaritza's identity

   Measured off terragroup.com rather than eyeballed, so the proportions are
   theirs exactly: 200px of air above the rule, a 1px hairline, 40px to the
   columns, columns on a 25% grid with the fourth quarter deliberately empty,
   then 200px down to the wordmark. Body copy is 16px/1.3 with -0.009em
   tracking and 20px paragraph spacing, all straight from their computed
   styles.

   Two deliberate departures:
   1. Terra sets the columns in Moderat, a sans. This site is serif
      throughout (typography.css), so the columns take the brand serif. The
      layout is identical; the voice is Yaritza's.
   2. Terra ships "Creating better." as a fixed SVG image. Ours is live text
      inside an SVG with textLength, so "Living better." spans the container
      exactly at every viewport with no raster to re-export and no font file
      to ship. It is selectable and translatable; the image was neither.
   ========================================================================== */

.yp-footer-wrap {
  /* flow-root, not overflow or padding: the footer's 200px top margin would
     otherwise collapse straight through this wrapper, taking the air above
     the hairline with it and leaving the rule tucked under the section above.
     flow-root establishes the block formatting context that stops it without
     adding any spacing of its own. */
  display: flow-root;
  background: var(--yp-sand);
  padding: 0;
}

/* The Divi footer this replaces. Kept in the markup so _baseline diffs stay
   readable, but never painted. */
.et-l--footer { display: none !important; }

#yp-footer {
  display: flex;
  flex-wrap: wrap;
  margin: 200px 40px 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--yp-ink);
  color: var(--yp-ink);
  font-family: var(--yp-serif, Georgia, serif);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.009em;
}

/* Three columns on a four-column grid. The empty fourth quarter is the whole
   reason the row breathes - filling it would close the composition. */
#yp-footer .yp-col { width: 25%; }

#yp-footer p,
#yp-footer li {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.009em;
  color: var(--yp-ink);
  text-transform: none;
}

#yp-footer ul { margin: 0; padding: 0; list-style: none; }

#yp-footer a {
  color: var(--yp-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: opacity 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

#yp-footer a:hover { opacity: 0.55; }
#yp-footer a:focus-visible { outline: 1px solid var(--yp-ink); outline-offset: 3px; }

/* ---- wordmark ------------------------------------------------------------
   textLength + lengthAdjust pins the line to the full container width, so it
   fills edge to edge at any viewport the way Terra's fixed-width SVG does,
   without the scaling ever breaking the letterforms apart. */

.yp-footer-wordmark {
  width: 100%;
  margin: 200px 0 0;
  line-height: 0;
}

.yp-footer-wordmark svg { display: block; width: 100%; height: auto; overflow: visible; }

.yp-footer-wordmark text {
  font-family: var(--yp-serif, Georgia, serif);
  font-weight: 500;
  font-size: 230px;
  letter-spacing: normal;
  text-transform: none;
  fill: var(--yp-ink);
}

/* ---- responsive ----------------------------------------------------------
   Terra stacks these columns rather than shrinking them; below 900 the 25%
   grid would give each column about 200px, which breaks the addresses onto
   too many lines to read as a block. */

@media (max-width: 900px) {
  #yp-footer { margin: 120px 24px 0; }
  #yp-footer .yp-col { width: 50%; }
  #yp-footer .yp-col.first { width: 100%; }
  .yp-footer-wordmark { margin-top: 120px; }
}

@media (max-width: 560px) {
  #yp-footer { margin: 90px 16px 0; padding-top: 28px; }
  #yp-footer .yp-col { width: 100%; }
  #yp-footer p, #yp-footer li { margin-bottom: 16px; }
  .yp-footer-wordmark { margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  #yp-footer a { transition-duration: 0.01ms; }
}
