/* AVIX Water v83 mobile refinement layer
   Focus: homepage hero, section sub-navigation, evidence cards, footer, and small-screen balance. */

@media (max-width: 860px){
  .av5-nav{
    width:min(92vw, 400px) !important;
    max-width:calc(100vw - 24px) !important;
    padding:92px 20px 24px !important;
    border-radius:22px !important;
  }
  .av5-nav > a:not(.av5-button),
  .av5-nav > a.av5-nav-contact{
    font-size:15px !important;
    line-height:1.3 !important;
    padding:12px 0 !important;
  }
  .av5-nav .av5-button{
    width:100% !important;
    justify-content:center !important;
  }
}

@media (max-width: 767px){
  :root{ --avix-mobile-gutter:16px; }

  body{ overflow-x:hidden !important; }

  .av5-container,
  .container,
  .sheet,
  .avix-footer-shell{
    width:min(100%, calc(100% - 32px)) !important;
  }

  /* Global mobile text rhythm */
  .av5-button,
  .avix-hero-cta,
  button,
  input,
  select,
  textarea{
    font-size:17px !important;
    line-height:1.25 !important;
  }

  /* Home hero */
  .home-v8.avix-home-page .av5-hero.avix-home-hero{
    padding-top:28px !important;
    padding-bottom:10px !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-grid{
    gap:14px !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-copy{
    padding:22px 0 0 !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-eyebrow,
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-eyebrow--light{
    font-size:11px !important;
    line-height:1.35 !important;
    letter-spacing:.115em !important;
    max-width:24ch !important;
    margin-bottom:14px !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero h1{
    font-size:clamp(36px, 10.5vw, 56px) !important;
    line-height:.98 !important;
    letter-spacing:-.042em !important;
    text-wrap:balance;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-lead,
  .home-v8.avix-home-page .av5-hero.avix-home-hero p{
    font-size:16px !important;
    line-height:1.48 !important;
    max-width:none !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-actions{
    margin-top:18px !important;
    gap:12px !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-button{
    min-height:58px !important;
    border-radius:18px !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-bottle{
    display:flex !important;
    align-items:flex-end !important;
    justify-content:center !important;
    width:100% !important;
    max-width:260px !important;
    min-height:280px !important;
    margin:8px auto 0 !important;
    transform:none !important;
    padding:0 !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-bottle img{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    transform:none !important;
    display:block !important;
    width:min(56vw, 176px) !important;
    max-width:176px !important;
    height:auto !important;
    max-height:none !important;
    margin:0 auto !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-bottle::after{
    left:20% !important;
    right:20% !important;
    bottom:4px !important;
    height:28px !important;
    filter:blur(20px) !important;
  }
  .home-v8.avix-home-page .sr-hero-proof,
  .home-v8.avix-home-page .sr-hero-proof-grid{
    margin-top:6px !important;
  }
  .home-v8.avix-home-page .sr-hero-proof-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:0 !important;
  }
  .home-v8.avix-home-page .sr-hero-proof-grid > div{
    padding:16px 14px !important;
  }
  .home-v8.avix-home-page .sr-hero-proof-grid strong{
    font-size:16px !important;
    line-height:1.15 !important;
  }
  .home-v8.avix-home-page .sr-hero-proof-grid span,
  .home-v8.avix-home-page .sr-hero-proof-grid small{
    font-size:13px !important;
    line-height:1.35 !important;
  }

  /* Section sub-navigation */
  .avix-section-nav{
    top:70px !important;
    min-height:44px !important;
  }
  .avix-section-nav__viewport{
    padding-inline:10px !important;
  }
  .avix-section-nav__inner{
    width:max-content !important;
    min-width:100% !important;
    min-height:44px !important;
    gap:14px !important;
    padding-inline:10px !important;
  }
  .avix-section-nav__link{
    min-height:44px !important;
    font-size:10px !important;
    letter-spacing:.05em !important;
    gap:4px !important;
    white-space:nowrap !important;
  }
  .avix-section-nav__num{
    font-size:11px !important;
    line-height:1 !important;
    font-weight:760 !important;
  }
  .avix-section-nav__label{
    font-size:11px !important;
    line-height:1 !important;
    letter-spacing:.04em !important;
    white-space:nowrap !important;
  }

  /* Bangladesh evidence bars */
  .av5-mineral-panel{
    padding:18px 16px !important;
    border-radius:18px !important;
  }
  .av5-mineral-panel > h3,
  .av5-mineral-panel .av5-card-title{
    font-size:21px !important;
    line-height:1.18 !important;
  }
  .av5-bar-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
    align-items:start !important;
    padding-block:14px !important;
  }
  .av5-bar-row > div:first-child b{
    font-size:18px !important;
    line-height:1.15 !important;
    display:block !important;
  }
  .av5-bar-row > div:first-child small{
    display:block !important;
    margin-top:3px !important;
    font-size:14px !important;
    line-height:1.3 !important;
  }
  .av5-bar{
    width:100% !important;
    min-width:0 !important;
  }
  .av5-bar-row strong{
    width:100% !important;
    display:flex !important;
    align-items:flex-end !important;
    justify-content:space-between !important;
    gap:12px !important;
    font-size:28px !important;
    line-height:1 !important;
  }
  .av5-bar-row strong small{
    max-width:10ch !important;
    font-size:13px !important;
    line-height:1.2 !important;
    text-align:right !important;
  }

  /* Founder strip on home */
  .avix-home-page #scientific-leadership.av5-founder,
  .avix-home-page #scientific-leadership .av5-founder-shell{
    gap:20px !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-copy{
    padding:0 !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-copy .av5-eyebrow,
  .avix-home-page #scientific-leadership .av5-founder-copy .av5-eyebrow--light{
    font-size:11px !important;
    letter-spacing:.11em !important;
    margin-bottom:12px !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-copy h2{
    font-size:clamp(32px, 9.8vw, 48px) !important;
    line-height:1 !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-image{
    width:min(100%, 280px) !important;
    max-width:280px !important;
    min-height:auto !important;
    margin:4px auto 6px !important;
    border-radius:24px !important;
    overflow:hidden !important;
    box-shadow:0 22px 42px rgba(0,0,0,.18) !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-image img{
    width:100% !important;
    height:auto !important;
    aspect-ratio:1 / 1 !important;
    object-fit:cover !important;
    object-position:center top !important;
    display:block !important;
    border-radius:24px !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-stats{
    grid-template-columns:repeat(3, minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-stats div{
    padding:12px 0 !important;
    border-bottom:0 !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-stats strong{
    font-size:28px !important;
    line-height:1 !important;
  }
  .avix-home-page #scientific-leadership .av5-founder-stats span{
    font-size:13px !important;
    line-height:1.3 !important;
  }

  /* Footer */
  .avix-global-footer{
    padding-block:34px 22px !important;
  }
  .avix-footer-top{
    gap:24px !important;
  }
  .avix-footer-brand,
  .avix-footer-column,
  .avix-footer-contact,
  .avix-footer-office{
    padding:0 !important;
    background:none !important;
    box-shadow:none !important;
    border-left:0 !important;
  }
  .avix-footer-logo{
    max-width:170px !important;
    height:auto !important;
  }
  .avix-footer-tagline,
  .avix-footer-proof li,
  .avix-footer-column a,
  .avix-footer-contact a,
  .avix-footer-contact span,
  .avix-footer-office p,
  .avix-footer-office a,
  .avix-footer-office b,
  .avix-footer-disclaimer,
  .avix-footer-bottom p,
  .avix-footer-bottom a{
    font-size:14px !important;
    line-height:1.5 !important;
  }
  .avix-footer-column h2,
  .avix-footer-contact h2,
  .avix-footer-office h2{
    font-size:13px !important;
    line-height:1.2 !important;
    letter-spacing:.09em !important;
    margin-bottom:14px !important;
  }
  .avix-footer-column{
    gap:10px !important;
  }
  .avix-footer-contact-block{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:10px 16px !important;
    padding:12px 0 !important;
  }
  .avix-footer-offices{
    gap:18px !important;
    margin-top:18px !important;
  }
  .avix-footer-office{
    border-top:1px solid rgba(255,255,255,.1) !important;
    padding-top:18px !important;
  }
  .avix-footer-office:first-child{
    border-top:0 !important;
    padding-top:0 !important;
  }
  .avix-footer-phones{
    grid-template-columns:1fr !important;
    gap:12px !important;
    margin-top:12px !important;
  }
  .avix-footer-phones span{
    display:grid !important;
    gap:3px !important;
  }
  .avix-footer-disclaimer{
    margin-top:18px !important;
    font-size:12px !important;
    line-height:1.55 !important;
  }
  .avix-footer-bottom{
    gap:12px !important;
    margin-top:18px !important;
  }
  .avix-footer-bottom nav{
    gap:12px !important;
  }
}

@media (max-width: 420px){
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-bottle{
    max-width:240px !important;
    min-height:250px !important;
  }
  .home-v8.avix-home-page .av5-hero.avix-home-hero .av5-hero-bottle img{
    width:min(60vw, 164px) !important;
    max-width:164px !important;
  }
  .home-v8.avix-home-page .sr-hero-proof-grid,
  .avix-home-page #scientific-leadership .av5-founder-stats{
    grid-template-columns:1fr !important;
  }
  .avix-footer-contact-block{
    grid-template-columns:1fr !important;
  }
  .avix-footer-column h2,
  .avix-footer-contact h2,
  .avix-footer-office h2{
    margin-bottom:10px !important;
  }
}
