/* Wallnuvia Phase 8.5.2b — public mobile hero only.
   Existing slide content, CMS updates and desktop rules remain unchanged. */
@media (max-width:700px) {
  #home > .hero {
    height: clamp(540px, calc(100svh - 50px), 740px) !important;
    min-height: 540px;
    max-height: none;
    isolation: isolate;
  }
  #home > .hero .slide,
  #home > .hero .slide:nth-child(2),
  #home > .hero .slide:nth-child(3) {
    background-position: 61% center;
    background-size: cover;
    /* Dark lower gradient ensures legibility without changing the CMS image. */
    background-image: linear-gradient(90deg,rgba(0,0,0,.70) 0%,rgba(0,0,0,.45) 35%,rgba(0,0,0,.12) 70%,transparent 100%),linear-gradient(180deg,rgba(3,7,12,.12) 0%,rgba(3,7,12,.05) 30%,rgba(3,7,12,.45) 53%,rgba(3,7,12,.86) 100%),var(--bg);
  }
  #home > .hero .slide:nth-child(2) { background-position: 68% center; }
  #home > .hero .slide:nth-child(3) { background-position: 59% center; }
  #home > .hero .heroCopy {
    position:absolute;
    z-index:5;
    left:16px !important;
    right:16px !important;
    top:auto !important;
    bottom:68px !important;
    width:auto !important;
    max-width:none !important;
    transform:none !important;
    box-sizing:border-box;
  }
  #home > .hero .heroCopy p {
    font-size:clamp(9px,2.5vw,11px) !important;
    line-height:1.5;
    letter-spacing:.15em;
    margin:0 0 12px;
  }
  #home > .hero .heroCopy h1 {
    font-size:clamp(35px,10.2vw,53px) !important;
    line-height:1.06 !important;
    max-width:100%;
    margin:0 0 14px;
    overflow-wrap:normal;
  }
  #home > .hero .heroCopy > span {
    display:block;
    font-size:clamp(12px,3.3vw,14px) !important;
    line-height:1.5 !important;
    margin:0 0 20px !important;
    max-width:35ch;
  }
  #home > .hero .heroCopy > div {
    display:flex !important;
    flex-direction:column !important;
    gap:10px;
    width:100%;
  }
  #home > .hero .heroCopy .btn {
    display:flex !important;
    align-items:center;
    justify-content:center;
    width:100% !important;
    min-height:46px;
    margin:0 !important;
    padding:11px 14px !important;
    font-size:12px !important;
    line-height:1.35;
    text-align:center;
    border-radius:13px;
    box-sizing:border-box;
  }
  /* Reuse the existing dot buttons and slider JS; only move the controls. */
  #home > .hero .heroSideNav {
    position:absolute !important;
    z-index:11;
    left:50% !important;
    right:auto !important;
    top:auto !important;
    bottom:20px !important;
    transform:translateX(-50%) !important;
    display:flex !important;
    flex-direction:row !important;
    width:auto;
    padding:0;
    border:0 !important;
    border-radius:0;
    background:transparent !important;
    box-shadow:none !important;
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
    overflow:visible;
  }
  #home > .hero .heroSideNav .heroArrow { display:none !important; }
  #home > .hero .heroSideNav .dots {
    display:flex !important;
    flex-direction:row !important;
    align-items:center;
    justify-content:center;
    gap:9px;
    width:auto !important;
    padding:6px 8px !important;
    border:0 !important;
    transform:none !important;
  }
  #home > .hero .heroSideNav .dot {
    width:8px !important;
    height:8px !important;
    min-width:8px;
    border:0;
    border-radius:999px !important;
    background:rgba(255,255,255,.5);
    padding:0;
    cursor:pointer;
    transition:background .2s ease,width .2s ease;
  }
  #home > .hero .heroSideNav .dot.active {
    width:19px !important;
    background:linear-gradient(90deg,#ffad6d,#f45b91) !important;
  }
  #home > .hero .scrollMouse { display:none !important; }
  #home > .hero .heroGrunge { pointer-events:none; }
}
@media (max-width:360px) {
  #home > .hero .heroCopy h1 { font-size:clamp(32px,10vw,38px) !important; }
  #home > .hero .heroCopy > span { font-size:12px !important; }
}
