/* AMAS Sejahtera - mobile-only frontend enhancements V7.
   Keep native hamburger V6 and desktop presentation unchanged. */
.amas-hero-mobile-title,.amas-hero-mobile-desc{display:none}
.amas-mobile-bottom{display:none}
@media(max-width:860px){
  /* Bottom navigation shared across public pages */
  .amas-mobile-bottom{
    position:fixed!important;bottom:0;left:0;right:0;z-index:1050;
    display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:center;gap:1px;
    min-height:66px;padding:7px 6px max(7px,env(safe-area-inset-bottom));
    background:rgba(6,6,8,.96);backdrop-filter:blur(18px);
    border-top:1px solid rgba(238,206,145,.18);
    box-shadow:0 -12px 30px rgba(0,0,0,.25);
  }
  .amas-mobile-bottom a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;
    min-width:0;min-height:50px;padding:4px 1px;border-radius:12px;
    text-align:center;text-decoration:none!important;
    color:rgba(255,255,255,.75)!important;
    font-size:10px;font-weight:700;line-height:1.2;
  }
  .amas-mobile-bottom a:hover,.amas-mobile-bottom a:focus-visible,.amas-mobile-bottom a[aria-current="page"]{background:rgba(238,206,145,.12);color:#eece91!important}
  .amas-mobile-bottom a:nth-child(3) .amas-mobile-bottom-icon{background:rgba(238,206,145,.17);border-radius:12px;width:37px;height:30px}
  .amas-mobile-bottom-icon{display:flex;align-items:center;justify-content:center;width:22px;height:22px;color:#eece91}
  .amas-mobile-bottom-icon svg{width:20px;height:20px}
  .public-site{padding-bottom:calc(66px + env(safe-area-inset-bottom));}
  /* Hide footer link columns, keep branding and copyright only */
  .public-footer{padding:28px 0 18px!important}
  .public-footer .footer-grid{display:block!important}
  .public-footer .footer-grid>div:not(:first-child){display:none!important}
  .public-footer .footer-grid>div:first-child{gap:6px}
  .public-footer .footer-grid p{font-size:12px;line-height:1.6;margin:0;max-width:36ch}
  .public-footer .footer-bottom{margin-top:14px;padding-top:12px}
  /* Hero: product must be in the first screen, not after several cards */
  .public-hero .hero-layout{
    display:flex!important;flex-direction:column!important;gap:10px!important;
    padding-top:18px!important;padding-bottom:16px!important;
    min-height:0!important;align-items:stretch;
  }
  .public-hero .hero-layout>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0;width:100%}
  .public-hero .public-kicker{font-size:9px;letter-spacing:.12em;line-height:1.5}
  .public-hero .amas-hero-desktop-title,.public-hero .amas-hero-desktop-desc{display:none!important}
  .public-hero .amas-hero-mobile-title{
    display:block!important;margin:7px 0 6px!important;
    font-size:clamp(26px,7.7vw,35px)!important;
    line-height:1.04!important;font-weight:850;letter-spacing:-.055em;
  }
  .public-hero .amas-hero-mobile-title span{display:block;color:#eece91}
  .public-hero .amas-hero-mobile-desc{
    display:block!important;max-width:38ch;margin:0!important;
    font-size:clamp(11px,3.05vw,13px)!important;line-height:1.5!important;
    color:#d7d6d9;
  }
  .public-hero .hero-actions{margin:10px 0 0!important;gap:8px;width:100%;flex-wrap:nowrap}
  .public-hero .hero-actions>.public-button{
    min-height:40px;padding:10px 15px!important;border-radius:12px!important;
    font-size:12px!important;line-height:1.15;white-space:nowrap
  }
  .public-hero .hero-actions>.public-outline{
    min-height:40px;padding:9px 11px!important;border-radius:12px;
    font-size:11px!important;line-height:1.2;white-space:nowrap;
    display:inline-flex;align-items:center;justify-content:center
  }
  .public-hero .hero-highlights,.public-hero .hero-mini-grid{display:none!important}
  .public-hero .hero-visual{width:100%;display:block!important;min-width:0}
  .public-hero .hero-visual-card.amas-hero-product-image{
    padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;
    display:flex!important;align-items:center;justify-content:center;
    height:245px!important;height:clamp(175px,calc(100svh - 420px),325px)!important;
    max-height:none!important;margin:0 auto;width:100%;overflow:visible!important;
  }
  .public-hero .hero-visual-card.amas-hero-product-image img{
    height:100%!important;width:100%!important;max-height:100%!important;max-width:100%!important;
    object-fit:contain!important;object-position:center!important;border-radius:0!important;
    filter:drop-shadow(0 12px 22px rgba(0,0,0,.24));
  }
  .public-hero:after{width:170px;height:170px;bottom:-60px;opacity:.6}
  #affiliate{scroll-margin-top:90px}
}
@media(max-width:360px){
  .public-hero .hero-actions>.public-button{padding:9px 10px!important;font-size:11px!important}
  .public-hero .hero-actions>.public-outline{padding:9px 8px!important;font-size:10px!important}
  .public-hero .hero-layout{padding-top:12px!important;gap:6px!important}
  .public-hero .hero-visual-card.amas-hero-product-image{height:clamp(162px,calc(100svh - 385px),285px)!important}
}
@media(max-width:860px) and (max-height:650px){
  .public-hero .amas-hero-mobile-desc{display:none!important}
  .public-hero .hero-visual-card.amas-hero-product-image{height:clamp(150px,calc(100svh - 365px),245px)!important}
}
@media(min-width:861px){.amas-hero-mobile-title,.amas-hero-mobile-desc{display:none!important}}


/* AMAS Mobile Alignment V9 — khusus frontend mobile.
   Membiarkan hamburger V6, mobile bottom V7, hero V8, mode dark, desktop tetap utuh. */
@media (max-width:860px) {
  /* Header: logo lebih menonjol tanpa menggeser kontrol hamburger dan tema. */
  body.public-site .public-header .public-nav {gap:8px;}
  body.public-site .public-header .public-brand {min-width:0;flex:0 1 auto;}
  html body.public-site .public-header .public-brand .brand-icon {
    width:clamp(148px,42vw,178px)!important;
    max-width:52vw!important;
    height:auto!important;
  }
  html body.public-site .public-header .public-brand .brand-icon img {
    width:100%;height:100%;object-fit:contain;
  }
  /* Judul, badge, deskripsi dalam satu sumbu tengah. */
  body.public-site .public-hero .hero-layout > div:first-child {
    align-items:center!important;
    text-align:center!important;
  }
  body.public-site .public-hero .public-kicker {
    justify-content:center!important;
    text-align:center!important;
  }
  body.public-site .public-hero .amas-hero-mobile-title {
    width:100%;max-width:440px;
    text-align:center!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  body.public-site .public-hero .amas-hero-mobile-desc {
    text-align:center!important;
    margin-left:auto!important;margin-right:auto!important;
    max-width:38ch;
  }
  body.public-site .public-hero .hero-actions {
    margin-left:auto!important;margin-right:auto!important;
  }
  /* Footer: tidak tampilkan menu/footer kolom; teks dan copyright rata tengah. */
  body.public-site .public-footer .footer-grid > div:first-child {
    align-items:center!important;
    text-align:center!important;
  }
  body.public-site .public-footer .footer-grid > div:first-child strong {
    display:block;text-align:center!important;width:100%;
  }
  body.public-site .public-footer .footer-grid p {
    max-width:42ch;
    margin-left:auto!important;margin-right:auto!important;
    text-align:center!important;
  }
  body.public-site .public-footer .footer-bottom {
    text-align:center!important;
  }
}
@media (max-width:360px) {
  html body.public-site .public-header .public-brand .brand-icon {
    width:146px!important;max-width:48vw!important;
  }
}
