/* =========================================================
   EterQR FINAL HERO
   Uses:
   - img/hero-bg-final.png
   - img/hero-product-final.png
   Load AFTER your main stylesheet.
   ========================================================= */

.eterqr-hero-final{
  --hero-bg:#F4F0E8;
  --hero-ink:#202622;
  --hero-muted:#5E6661;
  --hero-line:#CCC5BA;
  --hero-bronze:#9D805D;
  --hero-white:#FFFFFF;
  --hero-dark:#1D2622;
  --hero-shell:1180px;
  --hero-serif:"Source Serif 4", Georgia, serif;
  --hero-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  position:relative;
  overflow:hidden;
  padding:112px 0 58px;
  background:var(--hero-bg);
  border-bottom:1px solid rgba(32,38,34,.07);
  color:var(--hero-ink);
  font-family:var(--hero-sans);
}
.eterqr-hero-final *{box-sizing:border-box}

.eterqr-hero-final__shell{
  width:min(calc(100% - 48px), var(--hero-shell));
  margin-inline:auto;
}

.eterqr-hero-final__grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
  gap:0;
  align-items:center;
}

/* Left copy */
.eterqr-hero-final__copy{
  position:relative;
  z-index:3;
  max-width:595px;
  padding:24px 42px 30px 0;
}
.eterqr-hero-final__eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px;
  color:#7A807B;
  font-size:11px;
  font-weight:600;
  letter-spacing:.145em;
  text-transform:uppercase;
}
.eterqr-hero-final__eyebrow span{
  flex:0 0 24px;
  width:24px;
  height:1px;
  background:var(--hero-bronze);
}
.eterqr-hero-final h1{
  max-width:590px;
  margin:0 0 20px;
  color:var(--hero-ink);
  font:500 clamp(50px,4.8vw,66px)/1.01 var(--hero-serif);
  letter-spacing:-.03em;
  text-wrap:balance;
}
.eterqr-hero-final__lede{
  max-width:560px;
  margin:0 0 24px;
  color:var(--hero-muted);
  font-size:17px;
  line-height:1.68;
}
.eterqr-hero-final__actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:22px;
}
.eterqr-hero-final__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:4px;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  letter-spacing:.01em;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.eterqr-hero-final__btn--dark{
  background:var(--hero-dark);
  color:var(--hero-white);
}
.eterqr-hero-final__btn--dark:hover{
  background:#101613;
}
.eterqr-hero-final__btn--light{
  background:transparent;
  border-color:#C8C1B7;
  color:var(--hero-ink);
}
.eterqr-hero-final__btn--light:hover{
  background:#FBFAF7;
  border-color:#AFA89E;
}
.eterqr-hero-final__facts{
  display:flex;
  flex-wrap:wrap;
  list-style:none;
  margin:0;
  padding:0;
  color:#6B726E;
  font-size:12px;
  font-weight:500;
}
.eterqr-hero-final__facts li{
  padding:0 12px;
  border-right:1px solid var(--hero-line);
}
.eterqr-hero-final__facts li:first-child{padding-left:0}
.eterqr-hero-final__facts li:last-child{border-right:0}

/* Scene */
.eterqr-hero-final__scene{
  position:relative;
  z-index:1;
  min-height:565px;
  margin-top:-8px;
  margin-bottom:-8px;
  overflow:visible;
  isolation:isolate;
}
.eterqr-hero-final__bg{
  position:absolute;
  inset:0 0 0 -142px;
  z-index:0;
  background:url("../img/hero-cemetery-bg.png") 66% center / cover no-repeat;
  -webkit-mask-image:linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,0,0,.10) 7%,
    rgba(0,0,0,.30) 16%,
    rgba(0,0,0,.62) 28%,
    rgba(0,0,0,.90) 40%,
    #000 50%,
    #000 100%
  );
  mask-image:linear-gradient(
    90deg,
    transparent 0%,
    rgba(0,0,0,.10) 7%,
    rgba(0,0,0,.30) 16%,
    rgba(0,0,0,.62) 28%,
    rgba(0,0,0,.90) 40%,
    #000 50%,
    #000 100%
  );
}

/* Product */
.eterqr-hero-final__product{
  position:absolute;
  left:1%;
  bottom:120px;
  z-index:2;
  width:min(66%,510px);
  pointer-events:none;
}
.eterqr-hero-final__product img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 16px 28px rgba(22,28,24,.14));
}

/* Card */
.eterqr-hero-final__card{
  position:absolute;
  left:50%;
  margin-left: -185px;
  bottom:22px;
  z-index:3;
  padding:16px 18px 15px;
  border:1px solid rgba(255,255,255,.74);
  border-radius:4px;
  background:rgba(247,244,238,.91);
  box-shadow:0 10px 26px rgba(29,38,34,.06);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.eterqr-hero-final__card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:4px;
}
.eterqr-hero-final__label{
  color:var(--hero-bronze);
  font-size:10px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.eterqr-hero-final__price{
  color:var(--hero-ink);
  font:500 21px/1 var(--hero-serif);
}
.eterqr-hero-final h2{
  margin:0 0 4px;
  color:var(--hero-ink);
  font:500 27px/1.08 var(--hero-serif);
  letter-spacing:-.02em;
}
.eterqr-hero-final__purpose{
  margin:0 0 12px;
  color:#707772;
  font-size:12px;
}
.eterqr-hero-final__card-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.eterqr-hero-final__buy{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-width:156px;
  min-height:41px;
  padding:0 12px;
  border-radius:4px;
  background:var(--hero-dark);
  color:var(--hero-white);
  text-decoration:none;
  font-size:12px;
  font-weight:600;
}
.eterqr-hero-final__buy:hover{
  background:#101613;
}
.eterqr-hero-final__compare{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--hero-ink);
  text-decoration:none;
  font-size:11px;
  font-weight:600;
  line-height:1.45;
  border-bottom:1px solid #B8B1A7;
  padding-bottom:2px;
}
.eterqr-hero-final__compare span:last-child{
  transition:transform .18s ease;
}
.eterqr-hero-final__compare:hover span:last-child{
  transform:translateX(3px);
}

/* Large desktop */
@media (min-width:1200px){
  .eterqr-hero-final__copy{padding-right:52px}
  .eterqr-hero-final__bg{
    inset:0 0 0 -158px;
    background-position:68% center;
  }
  .eterqr-hero-final__product{
    width:min(67%,525px);
    right:1.5%;
  }
}

/* Tablet */
@media (max-width:980px){
  .eterqr-hero-final{
    padding:98px 0 48px;
  }
  .eterqr-hero-final__shell{
    width:min(calc(100% - 36px), var(--hero-shell));
  }
  .eterqr-hero-final__grid{
    grid-template-columns:1fr;
    gap:24px;
  }
  .eterqr-hero-final__copy{
    max-width:760px;
    padding:8px 0 0;
  }
  .eterqr-hero-final__scene{
    min-height:500px;
    margin:0;
  }
  .eterqr-hero-final__bg{
    inset:0;
    border-radius:6px;
    background-position:66% center;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .eterqr-hero-final__product{
    right:4%;
    bottom:90px;
    width:min(64%,500px);
  }
  .eterqr-hero-final__card{
    left:20px;
    bottom:20px;
  }
}

/* Mobile */
@media (max-width:640px){
  .eterqr-hero-final{
    padding:84px 0 38px;
  }
  .eterqr-hero-final__shell{
    width:min(calc(100% - 28px), var(--hero-shell));
  }
  .eterqr-hero-final__grid{
    display:block;
  }
  .eterqr-hero-final__copy{
    max-width:none;
    padding:0 0 26px;
  }
  .eterqr-hero-final h1{
    max-width:none;
    margin-bottom:17px;
    font-size:clamp(39px,11vw,46px);
    line-height:1.02;
  }
  .eterqr-hero-final__lede{
    margin-bottom:20px;
    font-size:16px;
    line-height:1.62;
  }
  .eterqr-hero-final__actions{
    display:grid;
  }
  .eterqr-hero-final__btn{
    width:100%;
  }
  .eterqr-hero-final__facts{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:5px 10px;
    line-height:1.45;
  }
  .eterqr-hero-final__facts li{
    padding:0;
    border:0;
  }
  .eterqr-hero-final__facts li:last-child{
    grid-column:1/-1;
  }

  .eterqr-hero-final__scene{
    min-height:0;
    margin:0;
    overflow:visible;
  }
  .eterqr-hero-final__bg{
    position:relative;
    inset:auto;
    width:calc(100% + 28px);
    margin-left:-14px;
    aspect-ratio:4/3;
    border-radius:0;
    background-position:70% center;
    -webkit-mask-image:none;
    mask-image:none;
  }
  .eterqr-hero-final__product{
    position:relative;
    right:auto;
    bottom:auto;
    width:86%;
    max-width:435px;
    margin:-82px auto 0;
  }
  .eterqr-hero-final__product img{
    filter:drop-shadow(0 14px 22px rgba(22,28,24,.15));
  }
  .eterqr-hero-final__card{
    position:relative;
    left:auto;
    bottom:auto;
    width:100%;
    margin-top:0;
    padding:17px 0 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    backdrop-filter:none;
  	margin-left: unset;
    -webkit-backdrop-filter:none;
  }
  .eterqr-hero-final__price{
    font-size:19px;
  }
  .eterqr-hero-final h2{
    font-size:26px;
  }
  .eterqr-hero-final__card-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .eterqr-hero-final__buy{
    width:100%;
    min-width:0;
    min-height:46px;
    font-size:14px;
  }
  .eterqr-hero-final__compare{
    align-self:flex-start;
    font-size:12px;
  }
}

/* Narrow phones */
@media (max-width:390px){
  .eterqr-hero-final__bg{
    background-position:72% center;
  }
  .eterqr-hero-final__product{
    width:90%;
    margin-top:-70px;
  }
}
@media (max-width:360px){
  .eterqr-hero-final__facts{
    grid-template-columns:1fr;
  }
  .eterqr-hero-final__facts li:last-child{
    grid-column:auto;
  }
  .eterqr-hero-final__product{
    width:93%;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce){
  .eterqr-hero-final *,
  .eterqr-hero-final *::before,
  .eterqr-hero-final *::after{
    transition:none !important;
    animation:none !important;
  }
}
