/* 0.8.24 — mobile heading/column fixes + 100% zoom button wrap. Loaded last. */

/* Home hero caption + slide ticks.
   Phone: 11 ticks ate the row, so the project name was ellipsized and the
   dash track sat flush to the right edge. Stack them so the name can be read.
   Desktop 100%: the cluster was shrink-wrapped to the far right (left:auto),
   away from the left-aligned hero copy. Keep it in the same padded column
   as the heading — name on the left, ticks on the right. */
.hs-meta{
  left:var(--pad);
  right:var(--pad);
  gap:12px;
  min-width:0;
  box-sizing:border-box;
}
.hs-cap{
  min-width:0;
  flex:1 1 auto;
  max-width:100%;
}
@media (min-width:900px){
  .hs-cap{flex:0 1 auto;max-width:none}
}
.hs-pn{min-width:0}
.hs-dots{flex:none}
@media (max-width:899px){
  .hs-meta{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:8px;
  }
  .hs-cap{
    max-width:100%;
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
    line-height:1.35;
  }
  .hs-pn{white-space:normal;overflow:visible;text-overflow:unset}
  .hs-dots{gap:2px}
  .hs-dots button{width:8px}
  .hs-dots button.on{width:16px}
}

/* Home hero CTAs at 360px were hiding the Call button rather than wrapping.
   Book takes the full row; WhatsApp + Call sit as a pair underneath. */
@media (max-width:374px){
  .hero .acts .rbtn.c{display:grid}
  .hero .acts .btn:first-child{flex:1 1 100%;max-width:none}
}

/* Shared CTA rows: keep buttons inside the content column and wrap evenly
   instead of sitting in one nowrap strip with the last control far right. */
@media (max-width:520px){
  .kabt-visit .acts,
  .ksvc-cta .acts,
  .kcar-cta .acts{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .kabt-visit .acts .btn:first-child,
  .ksvc-cta .acts .btn:first-child,
  .kcar-cta .acts .btn:first-child{
    grid-column:1/-1;
  }
  .kabt-visit .acts .btn,
  .ksvc-cta .acts .btn,
  .kcar-cta .acts .btn,
  .enq-s .alt .btn{
    width:100%;
    justify-content:center;
    box-sizing:border-box;
  }
  /* Home / contact enquiry shortcuts are a pair — stack them full width. */
  .enq-s .alt{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
  }
}

/* About + Services story/intro photo columns: the 1.2fr / .8fr stagger
   left a large empty gap on phones. Stack them, same width, no offset. */
@media (max-width:719px){
  .kabt-story .figs,
  .ksvc-intro .figs{
    grid-template-columns:1fr;
    gap:12px;
    align-items:stretch;
  }
  .kabt-story .figs figure:last-child,
  .ksvc-intro .figs figure:last-child{
    aspect-ratio:4/5;
    margin-bottom:0;
  }
}

/* Projects filter chips already wrap under 720px; give the sticky bar
   enough padding and an opaque background so the second row doesn't
   collide with the first project card. */
@media (max-width:720px){
  .fbar{background:rgba(var(--paper-rgb),.98)}
  .fbar .wrap{height:auto;min-height:58px;align-items:flex-start;padding:12px 0 14px;flex-wrap:wrap;gap:8px 16px}
  .chips{flex-wrap:wrap;overflow:visible;margin-left:0;padding-left:0;row-gap:8px}
}
