/* VDMT V35 — Unified Lotus Footer
   One footer art direction for Home + all subpages, desktop + mobile. */
:root{
  --v35-footer-ivory:#f8f4ec;
  --v35-footer-forest:#1c3932;
  --v35-footer-jade:#4b967e;
  --v35-footer-line:rgba(28,57,50,.13);
}

/* ---------- ALL DESKTOP/TABLET FOOTERS ---------- */
.footer,
body.signature-home .footer{
  position:relative!important;
  overflow:hidden!important;
  background:linear-gradient(180deg,#fbf8f2 0%,var(--v35-footer-ivory) 100%)!important;
  color:var(--v35-footer-forest)!important;
  padding:68px 0 0!important;
  border-top:1px solid rgba(185,173,153,.30)!important;
}
.footer:after,
body.signature-home .footer:after{display:none!important}
.footer .wrap,
body.signature-home .footer .wrap{position:relative!important;z-index:2!important}

/* Preserve Minh's complete lotus composition. On desktop it sits behind the brand zone,
   with a soft fade before the navigation columns so text remains clear. */
.footer:before,
body.signature-home .footer:before{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:auto!important;
  bottom:56px!important;
  transform:none!important;
  width:min(39vw,700px)!important;
  height:min(30vw,535px)!important;
  aspect-ratio:auto!important;
  background-image:url('/assets/lotus-signature-v18.png')!important;
  background-repeat:no-repeat!important;
  background-position:left bottom!important;
  background-size:contain!important;
  opacity:.20!important;
  filter:saturate(.88) contrast(.98)!important;
  mix-blend-mode:multiply!important;
  pointer-events:none!important;
  z-index:0!important;
  -webkit-mask-image:linear-gradient(90deg,#000 0%,#000 70%,rgba(0,0,0,.58) 84%,transparent 100%)!important;
  mask-image:linear-gradient(90deg,#000 0%,#000 70%,rgba(0,0,0,.58) 84%,transparent 100%)!important;
}

.footer-grid,
body.signature-home .footer-grid{
  grid-template-columns:1.2fr .72fr .82fr 1fr!important;
  gap:clamp(42px,5vw,84px)!important;
  align-items:start!important;
  padding-bottom:54px!important;
}
.footer-grid>div:first-child,
body.signature-home .footer-grid>div:first-child{
  position:relative!important;
  z-index:2!important;
  padding-right:34px!important;
  border-right:1px solid var(--v35-footer-line)!important;
}
/* soft readability veil only under the brand copy; the lotus remains visible around it */
.footer-grid>div:first-child:before,
body.signature-home .footer-grid>div:first-child:before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  inset:-18px -18px -18px -22px!important;
  background:linear-gradient(90deg,rgba(251,248,242,.74),rgba(251,248,242,.50) 68%,rgba(251,248,242,0))!important;
  pointer-events:none!important;
  z-index:-1!important;
}
.footer-brand,
body.signature-home .footer-brand{margin:0 0 20px!important;background:transparent!important;padding:0!important;width:auto!important}
.footer-brand img,
body.signature-home .footer-brand img{width:205px!important;max-width:100%!important;height:auto!important;object-fit:contain!important;filter:none!important}
.footer p,
body.signature-home .footer p{color:#61716a!important;font-size:12.5px!important;line-height:1.78!important;max-width:290px!important}
.footer h3,
body.signature-home .footer h3{color:var(--v35-footer-jade)!important;font-family:var(--sans)!important;font-size:9px!important;font-weight:650!important;letter-spacing:.24em!important;text-transform:uppercase!important;margin:2px 0 24px!important}
.footer a,
body.signature-home .footer a{color:var(--v35-footer-forest)!important;font-size:11.5px!important;line-height:1.55!important;margin-bottom:10px!important;opacity:.94!important}
.footer a:hover,
body.signature-home .footer a:hover{color:var(--v35-footer-jade)!important;opacity:1!important;transform:none!important}

.footer-bottom,
body.signature-home .footer-bottom{
  min-height:56px!important;
  margin:0 calc(50% - 50vw)!important;
  margin-bottom:0!important;
  padding:0 max(calc((100vw - 1480px)/2 + 40px),40px)!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:30px!important;
  background:var(--v35-footer-forest)!important;
  border-top:1px solid rgba(185,173,153,.25)!important;
  color:rgba(250,248,243,.76)!important;
  font-size:9px!important;
  line-height:1.4!important;
}
.footer-bottom a,
body.signature-home .footer-bottom a{color:rgba(250,248,243,.94)!important;opacity:1!important}

@media(max-width:1000px){
  .footer,body.signature-home .footer{padding-top:60px!important}
  .footer-grid,body.signature-home .footer-grid{grid-template-columns:1.1fr .72fr .86fr 1fr!important;gap:34px!important}
  .footer:before,body.signature-home .footer:before{width:min(45vw,590px)!important;height:min(35vw,455px)!important;opacity:.18!important}
}

/* ---------- MOBILE: content first, complete artwork in a dedicated art band ---------- */
@media(max-width:760px){
  .footer,body.signature-home .footer{padding:46px 0 0!important}
  .footer-grid,body.signature-home .footer-grid{
    grid-template-columns:1fr 1fr!important;
    gap:32px 22px!important;
    /* dedicated art band beneath all footer copy */
    padding-bottom:clamp(190px,60vw,270px)!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 var(--v35-footer-line)!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:10.5px!important;line-height:1.7!important}
  .footer h3,body.signature-home .footer h3{font-size:8px!important;margin-bottom:17px!important}
  .footer a,body.signature-home .footer a{font-size:10.5px!important;margin-bottom:9px!important}
  .footer p,body.signature-home .footer p{font-size:10.5px!important}

  /* Full drawing, centered, never covered by links */
  .footer:before,
  body.signature-home .footer:before{
    left:50%!important;
    right:auto!important;
    transform:translateX(-50%)!important;
    bottom:56px!important;
    width:min(94vw,620px)!important;
    height:min(72vw,475px)!important;
    background-position:center bottom!important;
    background-size:contain!important;
    opacity:.24!important;
    filter:saturate(.93) contrast(.99)!important;
    -webkit-mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.42) 9%,#000 22%,#000 100%)!important;
    mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.42) 9%,#000 22%,#000 100%)!important;
  }
  .footer-bottom,
  body.signature-home .footer-bottom{
    min-height:0!important;
    margin:0 calc(50% - 50vw)!important;
    margin-bottom:0!important;
    padding:14px 20px calc(14px + env(safe-area-inset-bottom))!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:6px!important;
    font-size:8px!important;
  }
}

@media(max-width:420px){
  .footer-grid,body.signature-home .footer-grid{padding-bottom:clamp(178px,64vw,238px)!important}
  .footer:before,body.signature-home .footer:before{
    width:96vw!important;
    height:72vw!important;
    max-height:300px!important;
    opacity:.25!important;
  }
}
