/*! Mielovia footer 1.0.0 — one compact, illustrated footer (newsletter, links and logo in one section) */

/* Every rule needs .mlv-foot, which footer.js adds once the theme's footer has been rebuilt.
   Without it (script off, or a different footer markup) the theme's footer shows as before. */

.footer.mlv-foot{
  position:relative;isolation:isolate;overflow:hidden;
  border-top-color:transparent;
  padding-block:clamp(48px,4.8vw,72px) calc(18px + env(safe-area-inset-bottom,0px));
}

/* ---------------------------------------------------------------- the photograph -- */
/* A full-width band behind the section: the blossom and the bee on the left, the comb and the
   chocolate on the right, an empty dark centre for the text. It fades into the page above and
   into the legal line below, so the section has no hard edge. */
.footer.mlv-foot .mlv-foot-art{
  position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 64%,transparent 95%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 24%,#000 64%,transparent 95%);
}
.footer.mlv-foot .mlv-foot-art img{
  position:absolute;left:0;top:46%;display:block;width:100%;max-width:none;height:auto;aspect-ratio:3840/1648;
  translate:0 -50%;scale:1.06;opacity:0;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 82%,transparent 100%);
          mask-image:linear-gradient(to bottom,transparent 0,#000 18%,#000 82%,transparent 100%);
  transition:opacity 1.2s var(--ease,ease),scale 2.8s var(--ease,ease);
}
.footer.mlv-foot .mlv-foot-art.is-ready img{opacity:1}
.footer.mlv-foot.is-in .mlv-foot-art img{scale:1}
/* a soft dark core keeps the words clear of the pollen trail */
.footer.mlv-foot .mlv-foot-art::after{
  content:"";position:absolute;inset:0;
  background:radial-gradient(ellipse 32% 58% at 50% 44%,rgba(11,8,6,.72),rgba(11,8,6,.34) 56%,rgba(11,8,6,0) 100%);
}

/* ------------------------------------------------------------------- the content -- */
.footer.mlv-foot>.wrap{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}

.footer.mlv-foot .mlv-foot-head{display:flex;flex-direction:column;align-items:center;width:100%}
.footer.mlv-foot .mlv-foot-eyebrow{margin:0 0 clamp(14px,1.3vw,20px);font-size:.62rem;letter-spacing:.34em;line-height:1.5}
.footer.mlv-foot .big{
  max-width:24ch;margin:0;
  font-size:clamp(1.65rem,1.05rem + 1.65vw,2.7rem);line-height:1.06;letter-spacing:-.012em;
  text-wrap:balance;text-shadow:0 2px 28px rgba(11,8,6,.7);
}

/* the newsletter: one glass pill, the button inside */
.footer.mlv-foot .newsletter{
  display:flex;align-items:center;gap:6px;
  width:min(440px,100%);max-width:none;margin:clamp(20px,2vw,28px) auto 0;padding:5px;
  border:1px solid var(--line-2,rgba(216,178,110,.3));border-radius:999px;
  background:rgba(18,14,10,.58);
  -webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15);
  box-shadow:0 14px 44px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,236,204,.06);
  transition:border-color .3s var(--ease,ease),box-shadow .3s var(--ease,ease);
}
.footer.mlv-foot .newsletter:hover{border-color:rgba(216,178,110,.45)}
.footer.mlv-foot .newsletter:focus-within{border-color:var(--gold,#d8b26e);box-shadow:0 0 0 3px rgba(240,198,74,.34),0 14px 44px rgba(0,0,0,.38)}
.footer.mlv-foot .newsletter input{flex:1;min-width:0;min-height:42px;padding:0 6px 0 16px;border:0;border-radius:999px;background:transparent;font-size:.92rem}
.footer.mlv-foot .newsletter input::placeholder{color:var(--muted,#a69684);opacity:1}
.footer.mlv-foot .newsletter input:focus,.footer.mlv-foot .newsletter input:focus-visible{outline:none}
.footer.mlv-foot .newsletter .btn{flex:none;min-height:42px;padding-inline:1.3em}

/* the links: three short centred columns */
.footer.mlv-foot .mlv-foot-links{
  display:grid;grid-template-columns:repeat(3,minmax(0,188px));justify-content:center;
  column-gap:clamp(14px,3.2vw,52px);row-gap:28px;width:100%;margin-top:clamp(30px,3.1vw,46px);
}
.footer.mlv-foot .mlv-foot-links>*{min-width:0}
.footer.mlv-foot .mlv-foot-links h4{margin-bottom:10px;font-size:.62rem;letter-spacing:.2em}
.footer.mlv-foot .mlv-foot-links ul{gap:1px}
.footer.mlv-foot .mlv-foot-links a{
  display:inline-block;padding:3px 0;font-size:.9rem;line-height:1.45;color:var(--cream,#e5d6bb);
  background:linear-gradient(var(--amber,#e39b32),var(--amber,#e39b32)) 50% calc(100% - 1px)/0 1px no-repeat;
  transition:color .25s var(--ease,ease),background-size .35s var(--ease,ease);
}
.footer.mlv-foot .mlv-foot-links a:hover{color:var(--amber,#e39b32);background-size:100% 1px}

/* the signature: a fine rule, the logo, the legal line */
.footer.mlv-foot .mlv-foot-sign{display:flex;flex-direction:column;align-items:center;width:100%;margin-top:clamp(30px,3vw,44px)}
.footer.mlv-foot .mlv-foot-sign::before{
  content:"";width:min(560px,74%);height:1px;margin-bottom:clamp(16px,1.6vw,22px);
  background:linear-gradient(90deg,rgba(216,178,110,0),var(--line-2,rgba(216,178,110,.3)) 28%,var(--line-2,rgba(216,178,110,.3)) 72%,rgba(216,178,110,0));
}
.footer.mlv-foot .footer-logo{display:inline-flex;flex-direction:row;align-items:center;gap:11px;padding:4px 6px}
.footer.mlv-foot .footer-mark{width:30px;filter:drop-shadow(0 3px 12px rgba(227,155,50,.3))}
.footer.mlv-foot .footer-logo .brand-word{font-size:1.45rem}
/* a little lighter than the theme's faint grey, so the small print reads (about 5:1 on the ink) */
.footer.mlv-foot .footer-legal{margin-top:12px;padding-top:0;border-top:0;justify-content:center;gap:4px 20px;font-size:.62rem;letter-spacing:.07em;line-height:1.6;color:#8c7f6f}

/* --------------------------------------------- tablets and phones: photo on top -- */
@media (max-width:999px){
  .footer.mlv-foot{padding-top:0}
  .footer.mlv-foot .mlv-foot-art{
    position:relative;inset:auto;height:min(42.86vw,320px);
    -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 20%,#000 58%,transparent 100%);
            mask-image:linear-gradient(to bottom,transparent 0,#000 20%,#000 58%,transparent 100%);
  }
  .footer.mlv-foot .mlv-foot-art img{
    top:0;height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 42%;translate:none;
    -webkit-mask-image:none;mask-image:none;
  }
  .footer.mlv-foot .mlv-foot-art::after{background:radial-gradient(ellipse 30% 72% at 50% 62%,rgba(11,8,6,.6),rgba(11,8,6,0) 100%)}
  .footer.mlv-foot>.wrap{margin-top:calc(min(42.86vw,320px) * -.3)}
}
@media (max-width:560px){
  .footer.mlv-foot .mlv-foot-links{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px}
  .footer.mlv-foot .mlv-foot-links h4{letter-spacing:.12em}
  .footer.mlv-foot .mlv-foot-links a{font-size:.84rem}
  .footer.mlv-foot .newsletter .btn{padding-inline:1.05em}
  .footer.mlv-foot .footer-legal{flex-direction:column;gap:2px}
}
/* the smallest phones: the title keeps one sentence per line, the placeholder stays whole */
@media (max-width:360px){
  .footer.mlv-foot .big{font-size:1.4rem}
  .footer.mlv-foot .newsletter input{padding-left:13px;font-size:.84rem}
  .footer.mlv-foot .newsletter .btn{padding-inline:.85em;font-size:.66rem;letter-spacing:.1em}
  .footer.mlv-foot .mlv-foot-links{column-gap:6px}
  .footer.mlv-foot .mlv-foot-links h4{font-size:.56rem;letter-spacing:.08em}
  .footer.mlv-foot .mlv-foot-links a{font-size:.8rem}
}

@media (prefers-reduced-motion:reduce){
  .footer.mlv-foot .mlv-foot-art img{scale:1;transition:opacity .4s linear}
}
