/* =========================================================
   Poshaw — Nov 2026 additions
   Category chips · FAQ · loading skeletons · extra animation
   (kept separate from style.css so the existing design is untouched)
========================================================= */

/* ---------- Category chips ---------- */
.cat-chips-wrap{
  position:sticky;top:var(--header-h);z-index:50;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px);
  border-bottom:1px solid #eee;
}
.cat-chips{
  max-width:var(--max);margin:0 auto;padding:14px 20px;
  display:flex;gap:10px;justify-content:center;
  overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.cat-chips::-webkit-scrollbar{display:none;}
.cat-chip{
  flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;
  padding:9px 18px;border-radius:999px;
  border:1px solid var(--border);background:var(--white);color:var(--text);
  font-size:13px;font-weight:500;letter-spacing:.02em;white-space:nowrap;
  transition:background .25s ease,color .25s ease,border-color .25s ease,transform .2s ease,box-shadow .25s ease;
}
.cat-chip .chip-ico{width:18px;height:18px;flex:0 0 18px;color:var(--navy);transition:color .25s ease;}
.cat-chip:hover{border-color:var(--navy);transform:translateY(-2px);box-shadow:0 6px 14px rgba(2,25,91,.08);}
.cat-chip.active{background:var(--navy);border-color:var(--navy);color:var(--white);}
.cat-chip.active .chip-ico{color:var(--white);}
@media (max-width:760px){
  .cat-chips{justify-content:flex-start;padding:12px 16px;}
  .cat-chip{padding:8px 14px;font-size:12px;}
}

/* ---------- Listing cards: thumbnails + skeletons ---------- */
.blog-mini-thumb{aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,#eef0f6,#dfe3ee);}
.blog-mini-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
.blog-mini-card:hover .blog-mini-thumb img{transform:scale(1.05);}
.blog-mini-card.is-skeleton{pointer-events:none;}
.sk-block{
  background:linear-gradient(90deg,#f0f1f5 25%,#e6e8ef 37%,#f0f1f5 63%);
  background-size:400% 100%;animation:skShimmer 1.3s ease infinite;border-radius:6px;
}
.sk-img{aspect-ratio:16/9;border-radius:0;}
.sk-line{height:12px;margin:0 0 10px;}
.sk-line.short{width:55%;}
@keyframes skShimmer{0%{background-position:100% 50%;}100%{background-position:0 50%;}}

/* ---------- FAQ ---------- */
.faq-section{padding:64px 20px;background:var(--grey-bg);}
.faq-inner{max-width:860px;margin:0 auto;}
.faq-head{text-align:center;margin-bottom:32px;}
.faq-head .eyebrow{margin-bottom:12px;}
.faq-head h2{font-size:clamp(22px,3vw,30px);font-weight:400;margin:0;line-height:1.4;}
.faq-list{display:flex;flex-direction:column;gap:12px;}
.faq-item{
  background:var(--white);border:1px solid #e4e5ea;border-radius:14px;overflow:hidden;
  transition:border-color .25s ease,box-shadow .25s ease;
}
.faq-item:hover{border-color:#c9ccd6;}
.faq-item[open]{border-color:var(--navy);box-shadow:0 10px 24px rgba(2,25,91,.07);}
.faq-item summary{
  list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 22px;font-size:15px;font-weight:500;color:var(--text);
}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-icon{
  flex:0 0 28px;width:28px;height:28px;border-radius:50%;border:1px solid var(--border);
  position:relative;transition:transform .35s ease,background .25s ease,border-color .25s ease;
}
.faq-icon::before,.faq-icon::after{
  content:"";position:absolute;left:50%;top:50%;width:11px;height:1.5px;background:var(--navy);
  transform:translate(-50%,-50%);transition:transform .35s ease,background .25s ease;
}
.faq-icon::after{transform:translate(-50%,-50%) rotate(90deg);}
.faq-item[open] .faq-icon{background:var(--navy);border-color:var(--navy);transform:rotate(180deg);}
.faq-item[open] .faq-icon::before,.faq-item[open] .faq-icon::after{background:var(--white);}
.faq-item[open] .faq-icon::after{transform:translate(-50%,-50%) rotate(0deg);}
.faq-answer{overflow:hidden;}
.faq-answer p{margin:0;padding:0 22px 20px;color:var(--text-muted);font-size:14px;line-height:1.75;}
.faq-cta{text-align:center;margin-top:28px;font-size:14px;color:var(--text-muted);}
.faq-cta a{color:var(--red);font-weight:500;border-bottom:1px solid currentColor;}
@media (max-width:600px){
  .faq-section{padding:44px 16px;}
  .faq-item summary{padding:16px 18px;font-size:14px;}
  .faq-answer p{padding:0 18px 18px;}
}

/* ---------- Extra animation ---------- */
.site-header{transition:box-shadow .3s ease;}
.site-header.is-scrolled{box-shadow:0 8px 24px rgba(2,25,91,.18);}

@media (prefers-reduced-motion: no-preference){
  /* fix: revealed items return fully to place */
  .reveal.in-view{translate:0 0;}

  /* Hero banner — slow zoom on the visible slide */
  .hero-slide.active{animation:heroKen 9s ease-out forwards;}
  @keyframes heroKen{from{transform:scale(1.08);}to{transform:scale(1);}}

  /* Hero progress dots */
  .hero-dots{position:absolute;left:18px;bottom:26px;display:flex;gap:8px;z-index:2;}
  .hero-dots span{width:22px;height:3px;border-radius:3px;background:rgba(255,255,255,.55);overflow:hidden;position:relative;}
  .hero-dots span.active::after{content:"";position:absolute;inset:0;background:var(--white);transform-origin:left;animation:heroBar 5s linear forwards;}
  @keyframes heroBar{from{transform:scaleX(0);}to{transform:scaleX(1);}}

  /* Page titles fade in */
  .page-hero > *,.svc-hero-inner > *,.et-hero-inner > *{opacity:0;animation:heroUp .7s ease forwards;}
  .page-hero > *:nth-child(2),.svc-hero-inner > *:nth-child(2),.et-hero-inner > *:nth-child(2){animation-delay:.12s;}
  .page-hero > *:nth-child(3),.svc-hero-inner > *:nth-child(3),.et-hero-inner > *:nth-child(3){animation-delay:.24s;}
  .svc-hero-photo div,.et-hero-photo{opacity:0;animation:heroPhoto .9s ease .15s forwards;}

  /* Chips slide in */
  .cat-chip{opacity:0;animation:chipIn .45s ease forwards;}
  .cat-chip:nth-child(2){animation-delay:.06s;}
  .cat-chip:nth-child(3){animation-delay:.12s;}
  .cat-chip:nth-child(4){animation-delay:.18s;}
  .cat-chip:nth-child(5){animation-delay:.24s;}
  .cat-chip:nth-child(6){animation-delay:.30s;}
  @keyframes chipIn{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}

  /* Listing cards rise in one after another */
  .cms-card-in{opacity:0;animation:cardIn .55s ease forwards;}
  .cms-card-in:nth-child(2){animation-delay:.05s;}
  .cms-card-in:nth-child(3){animation-delay:.1s;}
  .cms-card-in:nth-child(4){animation-delay:.15s;}
  .cms-card-in:nth-child(5){animation-delay:.2s;}
  .cms-card-in:nth-child(6){animation-delay:.25s;}
  .cms-card-in:nth-child(n+7){animation-delay:.3s;}
  @keyframes cardIn{from{opacity:0;transform:translateY(18px);}to{opacity:1;transform:translateY(0);}}
  .cms-grid-swap{animation:gridSwap .35s ease;}
  @keyframes gridSwap{from{opacity:.25;}to{opacity:1;}}

  /* FAQ answer opens smoothly */
  .faq-item[open] .faq-answer{animation:faqOpen .35s ease;}
  @keyframes faqOpen{from{opacity:0;transform:translateY(-6px);}to{opacity:1;transform:translateY(0);}}

  /* Buttons — soft lift */
  .btn{transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease;}
  .btn:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(2,25,91,.15);}

  /* WhatsApp button gentle pulse */
  .whatsapp-float{animation:waPulse 2.6s ease-in-out 2s infinite;}
  @keyframes waPulse{0%,100%{transform:scale(1);}50%{transform:scale(1.08);}}

  /* Article page */
  .article,.article-hero-wrap,.like-share-bar{animation:heroUp .7s ease both;}
}

/* ---------- Service page hero: heading + photo side by side on desktop ---------- */
@media (min-width:901px){
  .svc-hero.svc-hero--photo-left,
  .svc-hero.svc-hero--photo-right{
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:56px;
    max-width:var(--max);margin:0 auto;padding:56px 20px 56px;
  }
  .svc-hero--photo-left{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) !important;}
  .svc-hero--photo-left .svc-hero-photo{order:-1;}
  .svc-hero--photo-left .svc-hero-inner,
  .svc-hero--photo-right .svc-hero-inner,
  .svc-hero--photo-left .svc-hero-photo,
  .svc-hero--photo-right .svc-hero-photo{max-width:none;margin:0;padding:0;}
  .svc-hero--photo-left .svc-hero-photo div,
  .svc-hero--photo-right .svc-hero-photo div{max-width:none;margin:0;}
}

/* ---------- Footer credit ---------- */
.footer-bottom .made-by{margin-left:14px;padding-left:14px;border-left:1px solid rgba(255,255,255,.3);}
.footer-bottom .made-by a{color:var(--white);font-weight:500;border-bottom:1px solid rgba(255,255,255,.4);transition:border-color .2s ease;}
.footer-bottom .made-by a:hover{border-color:var(--white);}
@media (max-width:700px){
  .footer-bottom .made-by{display:block;margin:8px 0 0;padding:0;border:0;}
}

/* ---------- Client logos: centre an incomplete last row ---------- */
.clients-grid{display:flex !important;flex-wrap:wrap;justify-content:center;}
.clients-grid .client-logo{flex:0 0 calc((100% - 80px) / 5);}
@media (max-width:1000px){ .clients-grid .client-logo{flex-basis:calc((100% - 40px) / 3);} }
@media (max-width:700px){ .clients-grid .client-logo{flex-basis:calc((100% - 20px) / 2);} }

/* Testimonials intro line */
.testimonial-note{color:var(--text-muted);font-size:14px;margin:-8px auto 28px;max-width:640px;}
