.family-footer {
  position: relative;
  background: linear-gradient(180deg, #eff4f8 0%, #e4eef5 100%);
  color: #142a3e;
  padding-top: 0;
  border-top: 1px solid rgba(20, 42, 62, 0.12);
  overflow: hidden;
  isolation: isolate;
}

.family-footer > .page-shell {
  position: relative;
  z-index: 2;
}

/* Top Call-to-Action Banner inside Footer */
.garden-intro {
  display: block;
  max-width: 1240px;
  padding-top: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(20, 42, 62, 0.14);
}

.garden-intro-copy {
  position: relative;
  z-index: 2;
  padding-block: 6px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: 8%;
  align-items: center;
}

.garden-intro-copy > .eyebrow {
  grid-column: 1 / -1;
}

.garden-intro-copy > h2 {
  grid-column: 1;
  grid-row: 2 / 4;
}

.garden-intro-copy > p:not(.eyebrow),
.garden-intro-copy > .button {
  grid-column: 2;
  justify-self: start;
}

.family-footer .garden-intro-copy .eyebrow {
  color: #b8563d;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.family-footer .garden-intro h2 {
  font-family: var(--display);
  font-size: clamp(38px, 4.3vw, 62px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #122638;
  margin: 0;
}

.family-footer .garden-intro-copy > p:not(.eyebrow) {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 420px;
  color: #29465e;
  margin: 0;
}

.family-footer .garden-intro .button {
  margin-top: 24px;
  background: #142a3e;
  color: #ffffff;
  font-size: 11.5px;
  min-height: 50px;
}

/* Main Footer Columns — High Contrast & Clear Hierarchy */
.family-footer .footer-grid {
  max-width: 1240px;
  padding-block: 48px 42px;
  grid-template-columns: 1.25fr 1.35fr 0.75fr;
  gap: 7%;
  align-items: start;
}

.family-footer .footer-name,
.family-footer .footer-grid > div:first-child > a.footer-name {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #102436;
  display: inline-block;
}

.family-footer .footer-dot {
  color: #c85c42;
}

.family-footer .footer-grid p {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.75;
  color: #23415a;
  margin-top: 10px;
}

.family-footer .footer-grid .footer-tagline {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  max-width: 320px;
  margin-top: 12px;
  color: #2f4d67;
}

.family-footer .footer-grid h2 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b5543c;
  margin: 4px 0 20px;
}

.footer-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}

.family-footer .footer-grid > div > a:not(.footer-name),
.family-footer .footer-grid .footer-navigation > a,
.family-footer .footer-grid .footer-replay {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  color: #142a3e;
  letter-spacing: 0.01em;
  transition: color 0.25s ease, transform 0.25s ease;
}

.family-footer .footer-grid > div > a:not(.footer-name) {
  display: block;
  margin-bottom: 14px;
}

.family-footer .footer-grid .footer-navigation > a {
  display: inline-block;
}

.family-footer .footer-grid .footer-replay {
  margin-bottom: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(20, 42, 62, 0.35);
  text-underline-offset: 4px;
}

.family-footer a:hover,
.family-footer .footer-grid .footer-replay:hover {
  color: #c4573d;
}

.family-footer .footer-grid .footer-navigation > a:hover,
.family-footer .footer-grid > div > a:not(.footer-name):hover {
  transform: translateX(3px);
}

/* Copyright Row — Separated cleanly above the dot-matrix stage */
.family-footer .footer-bottom {
  max-width: 1240px;
  margin-top: 0;
  border-top: 1px solid rgba(20, 42, 62, 0.14);
  color: #2b4963;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.7;
  padding-block: 22px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.family-footer .footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 42, 62, 0.15);
  border-radius: 999px;
  color: #142a3e;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.family-footer .footer-credit strong {
  font-weight: 700;
  color: #b5543c;
  transition: color 0.3s ease;
}

.family-footer .footer-credit span[aria-hidden="true"] {
  font-size: 11px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.family-footer .footer-credit:hover {
  background: #142a3e;
  border-color: #142a3e;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(20, 42, 62, 0.28);
}

.family-footer .footer-credit:hover strong {
  color: #f4a48e;
}

.family-footer .footer-credit:hover span[aria-hidden="true"] {
  transform: translate(2px, -2px);
}

/* Dedicated Bottom Stage for Interactive Dot-Matrix Wordmark & Flowers
   (Never overlaps behind footer text!) */
.footer-wordmark {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(150px, 20vw, 275px);
  margin: 0;
  overflow: hidden;
  contain: layout paint;
  pointer-events: none;
  z-index: 1;
}

.footer-wordmark canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  opacity: 0.28;
}

.footer-wordmark-fallback {
  position: absolute;
  left: 50%;
  bottom: -0.22em;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 36vw;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
  color: #19354d;
  white-space: nowrap;
  opacity: 0.28;
}

.footer-wordmark[data-ready="true"] .footer-wordmark-fallback {
  visibility: hidden;
}

.footer-flower {
  position: absolute;
  width: clamp(75px, 11vw, 160px);
  height: auto;
  bottom: -6px;
  z-index: 2;
  pointer-events: none;
  transform-origin: 50% 100%;
}

.flower-left {
  left: 2%;
  transform: rotate(-13deg);
}

.flower-right {
  right: 1.8%;
  transform: rotate(13deg);
  width: clamp(85px, 13vw, 190px);
}

.family-footer:hover .flower-left {
  animation: garden-sway 4s ease-in-out infinite alternate;
}

.family-footer:hover .flower-right {
  animation: garden-sway 4s 1s ease-in-out infinite alternate-reverse;
}

@keyframes garden-sway {
  from { rotate: -4deg; }
  to { rotate: 4deg; }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .garden-intro {
    padding-top: 40px;
  }
  .family-footer .garden-intro h2 {
    font-size: 40px;
  }
  .family-footer .footer-grid {
    gap: 5%;
    grid-template-columns: 1.05fr 1.35fr 0.75fr;
  }
  .footer-navigation {
    gap: 12px 18px;
  }
}

@media (max-width: 700px) {
  .garden-intro {
    padding-top: 36px;
    padding-bottom: 28px;
  }
  .garden-intro-copy {
    display: block;
    padding-block: 6px;
  }
  .family-footer .garden-intro-copy .eyebrow {
    font-size: 9.5px;
    margin-bottom: 14px;
  }
  .family-footer .garden-intro h2 {
    font-size: 36px;
    line-height: 1.18;
    margin-bottom: 16px;
  }
  .family-footer .garden-intro-copy > p:not(.eyebrow) {
    font-size: 14px;
    max-width: 360px;
  }
  .family-footer .garden-intro .button {
    font-size: 11px;
    margin-top: 22px;
  }
  .family-footer .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 28px 24px;
    padding-block: 34px 28px;
  }
  .family-footer .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .family-footer .footer-grid > div:first-child > a.footer-name {
    font-size: 28px;
  }
  .family-footer .footer-grid .footer-tagline {
    max-width: 360px;
    margin-top: 10px;
    font-size: 13.5px;
  }
  .footer-navigation {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .family-footer .footer-grid h2 {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .family-footer .footer-grid > div > a:not(.footer-name),
  .family-footer .footer-grid .footer-navigation > a,
  .family-footer .footer-grid .footer-replay {
    font-size: 13.5px;
    line-height: 1.7;
  }
  .family-footer .footer-bottom {
    font-size: 11.5px;
    align-items: flex-start;
    gap: 12px;
    padding-block: 18px 14px;
  }
  .footer-wordmark {
    height: clamp(110px, 24vw, 165px);
  }
  .footer-wordmark-fallback {
    font-size: 36vw;
    bottom: -0.13em;
  }
  .footer-flower {
    bottom: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-flower {
    animation: none !important;
  }
}
