/* SOY PET CARE — mobile layout source of truth.
   Mobile hero intentionally keeps the same two-column information architecture as desktop:
   copy left, approved artwork right. */

@media(max-width:760px){
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  .wrap{width:100%;max-width:100%;padding-left:20px;padding-right:20px}

  .hero{
    width:100%;
    max-width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "copy image"
      "actions actions";
    column-gap:12px;
    row-gap:18px;
    align-items:center;
    padding:28px 18px 26px;
  }
  .hero-copy{display:contents}
  .hero-copy>.eyebrow,
  .hero-copy>h1,
  .hero-copy>.lead{grid-column:1;min-width:0}
  .hero-copy>.eyebrow{grid-row:1;align-self:start;margin:0 0 0;font-size:12px;line-height:1.4}
  .hero-copy>h1{grid-row:1;align-self:center;margin:20px 0 0;font-size:30px;line-height:1.22;letter-spacing:-1.5px}
  .hero-copy>.lead{grid-row:1;align-self:end;margin:0 0 4px;font-size:12px;line-height:1.6}
  .hero-copy>.hero-paths{
    grid-area:actions;
    width:100%;
    display:flex;
    flex-direction:column;
    gap:9px;
    margin:0;
  }
  .hero-paths>.button,
  .hero-paths>.hero-direct{
    width:100%;
    min-width:0;
    min-height:50px;
    margin:0;
    padding:12px 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-radius:9px;
    font-size:14px;
    white-space:nowrap;
  }
  .hero-image-selected{
    grid-area:image;
    width:100%;
    height:270px;
    max-width:100%;
    margin:0;
    padding:0;
    overflow:hidden;
    border-radius:14px;
    background:#efe7dc;
    line-height:0;
    align-self:stretch;
  }
  .hero-image-selected .hero-photo-main{
    display:block;
    width:100%;
    height:100%;
    max-width:100%;
    margin:0;
    object-fit:cover;
    object-position:58% 50%;
    border-radius:14px;
  }

  /* Credentials: rebuild as four equal, conventional rows. */
  .trust{width:100%}
  .trust-inner{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    padding:8px 20px;
    gap:0;
  }
  .trust-inner>.trust-item,
  .trust-inner>.trust-link,
  .trust-inner>.trust-item:first-child,
  .trust-inner>.trust-item:nth-child(3){
    width:100%;
    height:96px;
    min-height:96px;
    margin:0;
    padding:0 8px;
    display:grid;
    grid-template-columns:56px minmax(0,1fr);
    column-gap:16px;
    align-items:center;
    border:0;
    border-bottom:1px solid rgba(174,163,149,.28);
    box-sizing:border-box;
  }
  .trust-inner>.trust-link:last-child{border-bottom:0}
  .trust-inner .trust-icon{
    grid-column:1;
    width:52px;
    height:52px;
    margin:0;
    align-self:center;
    justify-self:center;
  }
  .trust-inner>.trust-item>span:last-child,
  .trust-inner>.trust-link>span:last-child{
    grid-column:2;
    width:auto;
    min-width:0;
    min-height:0;
    margin:0;
    padding:0;
    display:block;
    align-self:center;
    border:0;
  }
  .trust-inner b{display:block;margin:0 0 5px;font-size:17px;line-height:1.35}
  .trust-inner em{display:block;margin:0;font-size:13.5px;line-height:1.45;font-style:normal}

  /* Native service dialog. */
  .service-native-dialog{
    width:100vw;
    max-width:100vw;
    height:min(82dvh,760px);
    max-height:82dvh;
    margin:auto 0 0;
    padding:0;
    border:0;
    border-radius:24px 24px 0 0;
    background:#fffdf9;
    color:#20384d;
    overflow:hidden;
    box-shadow:0 -12px 40px rgba(23,40,64,.18);
  }
  .service-native-dialog::backdrop{background:rgba(23,40,64,.30)}
  .service-native-dialog>form{position:absolute;top:0;right:0;z-index:20;margin:0}
  .native-dialog-close{
    width:36px;
    height:36px;
    margin:14px 14px 0 0;
    padding:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:50%;
    background:#f1eee8;
    color:#52616a;
    font:400 23px/1 system-ui,sans-serif;
    box-shadow:none;
  }
  .native-dialog-scroll{
    position:absolute;
    inset:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:60px 22px 34px;
  }
}

@media(max-width:430px){
  .hero{grid-template-columns:1fr 1fr;column-gap:10px;padding-left:16px;padding-right:16px}
  .hero-copy>h1{font-size:28px}
  .hero-copy>.lead{font-size:11.5px}
  .hero-image-selected{height:260px}
}

@media(max-width:360px){
  .hero-copy>h1{font-size:29px}
  .hero-copy>.lead{font-size:12px}
  .hero-paths>.button,.hero-paths>.hero-direct{font-size:13px;padding-left:11px;padding-right:11px}
}

@media(min-width:761px){
  .service-native-dialog{
    width:min(560px,92vw);
    height:100dvh;
    max-height:100dvh;
    margin:0 0 0 auto;
    padding:0;
    border:0;
    border-radius:0;
    background:#fffdf9;
    overflow:hidden;
  }
  .service-native-dialog::backdrop{background:rgba(23,40,64,.30)}
  .service-native-dialog>form{position:absolute;top:0;right:0;z-index:20;margin:0}
  .native-dialog-close{
    width:36px;height:36px;margin:14px 14px 0 0;border:0;border-radius:50%;
    background:#f1eee8;color:#52616a;font:400 23px/1 system-ui,sans-serif;
  }
  .native-dialog-scroll{position:absolute;inset:0;overflow-y:auto;padding:60px 30px 40px}
}
