/* VDMT V37 — Footer mobile parity + readability
   Final override loaded after V34/V36 so Home and all subpages share one footer behavior. */
:root{
  --v37-footer-ivory:#f8f4ec;
  --v37-footer-forest:#1c3932;
  --v37-footer-jade:#4b967e;
}

/* Slightly larger footer typography on all screens for easier reading. */
.footer h3,
body.signature-home .footer h3{
  font-size:10px!important;
  line-height:1.3!important;
  letter-spacing:.20em!important;
}
.footer a,
body.signature-home .footer a{
  font-size:13px!important;
  line-height:1.58!important;
}
.footer p,
body.signature-home .footer p{
  font-size:13px!important;
  line-height:1.72!important;
}
.footer-bottom,
body.signature-home .footer-bottom{
  font-size:10px!important;
}
.footer-link-icon .footer-icon{
  width:16px!important;
  height:16px!important;
  flex-basis:16px!important;
}

/* MOBILE — one behavior for Home + every subpage.
   Lotus remains a background layer under the text, never a separate art band. */
@media(max-width:760px){
  .footer,
  body.signature-home .footer{
    position:relative!important;
    overflow:hidden!important;
    padding:42px 0 0!important;
    background:linear-gradient(180deg,#fbf8f2 0%,var(--v37-footer-ivory) 100%)!important;
  }

  .footer .wrap,
  body.signature-home .footer .wrap{
    position:relative!important;
    z-index:2!important;
  }

  .footer-grid,
  body.signature-home .footer-grid{
    grid-template-columns:1fr 1fr!important;
    gap:30px 20px!important;
    padding-bottom:34px!important;
    position:relative!important;
    z-index:2!important;
  }

  .footer-grid>div:first-child,
  body.signature-home .footer-grid>div:first-child{
    grid-column:1/-1!important;
    display:grid!important;
    grid-template-columns:112px 1fr!important;
    align-items:center!important;
    gap:18px!important;
    padding:0 0 24px!important;
    border-right:0!important;
    border-bottom:1px solid rgba(28,57,50,.12)!important;
  }
  .footer-grid>div:first-child:before,
  body.signature-home .footer-grid>div:first-child:before{display:none!important}

  .footer-brand,
  body.signature-home .footer-brand{margin:0!important}
  .footer-brand img,
  body.signature-home .footer-brand img{width:112px!important}

  .footer-grid>div:first-child p,
  body.signature-home .footer-grid>div:first-child p{
    margin:0!important;
    max-width:340px!important;
    font-size:12px!important;
    line-height:1.62!important;
  }

  .footer h3,
  body.signature-home .footer h3{
    font-size:9.5px!important;
    line-height:1.3!important;
    letter-spacing:.18em!important;
    margin-bottom:16px!important;
  }
  .footer a,
  body.signature-home .footer a{
    font-size:12.5px!important;
    line-height:1.52!important;
    margin-bottom:9px!important;
  }
  .footer p,
  body.signature-home .footer p{
    font-size:12px!important;
    line-height:1.6!important;
  }

  .footer a.footer-link-icon,
  body.signature-home .footer a.footer-link-icon{
    gap:8px!important;
  }
  .footer-link-icon .footer-icon{
    width:15px!important;
    height:15px!important;
    flex-basis:15px!important;
  }

  /* Full painting under the copy. This overrides V34's separate art band on subpages. */
  .footer:before,
  body.signature-home .footer:before{
    content:""!important;
    display:block!important;
    position:absolute!important;
    left:50%!important;
    right:auto!important;
    bottom:30px!important;
    transform:translateX(-50%)!important;
    width:128vw!important;
    height:100%!important;
    max-width:none!important;
    max-height:none!important;
    background-image:url('/assets/lotus-signature-v18.png')!important;
    background-repeat:no-repeat!important;
    background-position:center bottom!important;
    background-size:contain!important;
    opacity:.14!important;
    filter:saturate(.94) contrast(.98)!important;
    mix-blend-mode:multiply!important;
    pointer-events:none!important;
    z-index:0!important;
    -webkit-mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.20) 18%,rgba(0,0,0,.78) 50%,#000 100%)!important;
    mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.20) 18%,rgba(0,0,0,.78) 50%,#000 100%)!important;
  }

  /* Gentle veil keeps type legible while lotus remains visible underneath. */
  .footer .wrap:before,
  body.signature-home .footer .wrap:before{
    content:""!important;
    position:absolute!important;
    inset:-8px -8px 12px!important;
    background:linear-gradient(180deg,rgba(251,248,242,.44) 0%,rgba(251,248,242,.24) 58%,rgba(251,248,242,.10) 100%)!important;
    pointer-events:none!important;
    z-index:-1!important;
  }

  .footer-bottom,
  body.signature-home .footer-bottom{
    font-size:9.5px!important;
    line-height:1.45!important;
    padding:14px 20px calc(14px + env(safe-area-inset-bottom))!important;
  }
}

@media(max-width:420px){
  .footer-grid,
  body.signature-home .footer-grid{gap:28px 18px!important;padding-bottom:30px!important}
  .footer-grid>div:first-child,
  body.signature-home .footer-grid{ }
  .footer:before,
  body.signature-home .footer:before{
    width:138vw!important;
    bottom:26px!important;
    opacity:.145!important;
  }
  .footer a,
  body.signature-home .footer a{font-size:12.25px!important}
  .footer p,
  body.signature-home .footer p{font-size:11.75px!important}
}
