/* =====================================================
   PixyGrid — Shared Mobile Stylesheet
   Applies to ALL pages via <link href="/css/pg-mobile.css">
   Breakpoints: 768px (mobile) and 480px (small mobile)
   All rules use !important to override inline styles.
   ===================================================== */

/* ── GLOBAL: hide decorative 3D dodecahedra ── */
@media(max-width:768px){
  div[style*="perspective:600px"]{display:none!important}
}

/* ── GLOBAL: nav ── */
@media(max-width:768px){
  #pgNav{padding:16px 20px!important}
  #pgNav.scrolled{padding:12px 20px!important}
  #pgNavLinks,#pgNav .pg-nav-cta{display:none!important}
}

/* ── GLOBAL: internal hero banners ── */
@media(max-width:768px){
  .pg-hero{padding-top:64px!important}
  .pg-hero-banner{height:300px!important;border-radius:16px!important}
  .pg-hero-content{padding:24px 20px!important}
  .pg-hero-content h1{font-size:clamp(26px,8vw,44px)!important}
  .pg-hero-content p{display:none!important}
  .pg-hero-breadcrumb{font-size:11px!important}
  .pg-hero-label{font-size:10px!important}
}

/* ── GLOBAL: section padding ── */
@media(max-width:768px){
  .pg-section{padding:60px 0!important}
  .pg-dark-wrap,.pg-soft-wrap{margin:0 10px!important;padding:48px 20px!important;border-radius:20px!important}
}

/* ── GLOBAL: homepage hero ── */
@media(max-width:768px){
  #hero{min-height:100svh!important;padding-bottom:0!important}
  #hero h1{font-size:clamp(38px,10vw,64px)!important;margin-bottom:16px!important}
  #hero>div[style*="right:36px"]{display:none!important}
}

/* ── GLOBAL: work / portfolio grid ── */
@media(max-width:768px){
  .pg-work-grid{grid-template-columns:1fr!important}
  .pg-work-item.pg-work-large{grid-column:auto!important;grid-row:auto!important;min-height:280px!important}
  .pg-work-item.pg-work-sm{min-height:220px!important}
  #work .col-lg-4[style*="text-align"]{text-align:left!important;margin-top:16px!important}
  #work .pg-btn.pg-btn-dark{width:auto!important}
  .pg-proj-frame{height:200px!important}
  .pg-proj-frame.pg-vert{height:240px!important}
  .pg-portfolio-col-right{margin-top:0!important;padding-top:0!important}
}

/* ── GLOBAL: CTA banner ── */
@media(max-width:768px){
  .pg-cta-banner{margin:0 10px!important;border-radius:20px!important;min-height:240px!important}
  .pg-cta-content{padding:36px 24px!important;max-width:100%!important}
  .pg-cta-content h2{font-size:clamp(26px,7vw,36px)!important}
  .pg-cta-content p{font-size:14px!important;margin-bottom:24px!important}
  .pg-cta-img{opacity:.15!important;width:65%!important}
  .pg-cta-pill{padding:7px 7px 7px 18px!important;font-size:12px!important}
  .pg-cta-pill-icon{width:32px!important;height:32px!important;margin-left:12px!important}
}

/* ── GLOBAL: footer ── */
@media(max-width:768px){
  .pg-footer{padding:48px 20px 0!important;border-radius:20px 20px 0 0!important}
  .pg-footer .row>[class*="col-"]{margin-bottom:28px!important;padding-right:0!important}
  .pg-footer-wordmark{font-size:clamp(44px,14vw,72px)!important}
  .pg-sub-row{flex-direction:column!important;gap:8px!important}
  .pg-sub-input{width:100%!important}
}

/* ── GLOBAL: services list ── */
@media(max-width:768px){
  .pg-service-row{padding:18px 0!important;gap:12px!important}
  .pg-service-name{font-size:clamp(15px,4.5vw,20px)!important}
  .pg-service-detail{padding-left:0!important}
  .pg-service-item:hover .pg-service-row{padding:22px 0!important}
}

/* ── GLOBAL: client logos grid ── */
@media(max-width:768px){
  .pg-logos-grid{grid-template-columns:repeat(2,1fr)!important}
  .pg-logo-cell{padding:24px 12px!important}
  .pg-logo-name{font-size:13px!important}
  .pg-logo-icon{width:30px!important;height:30px!important}
  .pg-logo-cell:nth-child(5n){border-right:1px solid rgba(0,0,0,.07)!important}
  .pg-logo-cell:nth-child(2n){border-right:none!important}
}

/* ── SERVICES PAGE: service card grid ── */
@media(max-width:768px){
  .pg-svc-grid{margin:0 10px!important;padding:48px 20px!important;border-radius:24px!important}
  .pg-svc-grid .col-lg-6{padding-right:0!important;padding-left:0!important;border-right:none!important}
  .pg-svc-grid .col-lg-6:first-child{border-bottom:1px solid rgba(255,255,255,.06)!important;padding-bottom:24px!important}
}

/* ── SERVICES PAGE: counter strip ── */
@media(max-width:768px){
  .pg-counter-strip{margin:0 10px!important;padding:40px 24px!important;border-radius:20px!important}
  .pg-counter-strip .col-6{padding:16px 12px 16px 0!important;border-right:none!important;border-bottom:1px solid rgba(255,255,255,.06)!important}
  .pg-counter-strip .col-6:nth-child(even){padding-left:12px!important;padding-right:0!important}
  .pg-counter-strip .col-6:nth-child(odd){border-right:1px solid rgba(255,255,255,.06)!important}
  .pg-counter-strip .col-6:nth-last-child(-n+2){border-bottom:none!important}
}

/* ── HOMEPAGE: about stats ── */
@media(max-width:768px){
  #about .col-6.col-lg-3{padding:20px 14px 20px 0!important;border-right:none!important;border-bottom:1px solid rgba(0,0,0,.07)!important}
  #about .col-6.col-lg-3:nth-child(even){padding-left:14px!important;padding-right:0!important}
  #about .col-6.col-lg-3:nth-child(odd){border-right:1px solid rgba(0,0,0,.07)!important}
  #about .col-6.col-lg-3:nth-last-child(-n+2){border-bottom:none!important}
}

/* ── HOMEPAGE: stats row ── */
@media(max-width:768px){
  .pg-stats-row{grid-template-columns:1fr 1fr!important;gap:20px 16px!important;padding-top:40px!important;margin-top:40px!important}
  .pg-stat-num{font-size:36px!important}
}

/* ── HOMEPAGE: Why Us (flatten stagger) ── */
@media(max-width:768px){
  .pg-why-card{margin-top:0!important;width:260px!important;margin-right:20px!important}
  .pg-why-track-outer{padding:32px 16px 24px!important}
}

/* ── HOMEPAGE: process (dark section) ── */
@media(max-width:768px){
  .pg-dark-wrap .row{flex-direction:column!important}
  .pg-dark-wrap .col-lg-5{padding-right:0!important;margin-bottom:28px!important}
  .pg-dark-wrap .col-lg-7 .row{flex-direction:column!important}
  .pg-dark-wrap .col-lg-7 .col-lg-6:last-child{display:none!important}
}

/* ── HOMEPAGE: testimonials (flat single-card) ── */
@media(max-width:768px){
  #pgTStack{height:auto!important;min-height:0!important}
  .pg-t-card{position:relative!important;inset:auto!important;padding:24px 20px!important}
  .pg-t-card[data-pos="1"],.pg-t-card[data-pos="2"],.pg-t-card[data-pos="3"],.pg-t-card[data-pos="4"]{display:none!important}
  .pg-t-card[data-pos="0"]{transform:none!important;opacity:1!important}
  .pg-t-quote-text{font-size:12px!important;line-height:1.35!important}
  .pg-t-body-text{font-size:12px!important}
  .pg-t-photo{width:64px!important;height:76px!important}
}

/* ── HOMEPAGE: blog cards ── */
@media(max-width:768px){
  .pg-blog-row{flex-direction:column!important;height:auto!important}
  .pg-blog-card{flex:none!important;height:260px!important}
  .pg-blog-bottom{transform:translateY(0)!important}
}

/* ── ABOUT PAGE ── */
@media(max-width:768px){
  .pg-team-flex{flex-direction:column!important;align-items:center!important;gap:24px!important;padding:0 16px 32px!important}
  .pg-team-flex>div{flex:none!important;width:100%!important;max-width:300px!important;transform:translateY(0)!important}
  .pg-team-flex>div[style*="z-index:2"]{order:-1!important}
  .pg-story-img{height:260px!important}
  .pg-mv-grid{grid-template-columns:1fr!important;gap:16px!important}
  .pg-values-grid{grid-template-columns:1fr!important;gap:12px!important}
}

/* ── CASE STUDY PAGES ── */
@media(max-width:768px){
  .cs-score-grid{grid-template-columns:repeat(2,1fr)!important}
  .cs-score-cell{padding:28px 16px!important}
  .cs-score-num{font-size:32px!important}
  .cs-score-bg{font-size:60px!important}
  .cs-svc-grid,.cs-svc-grid.two-col{grid-template-columns:1fr!important}
  .cs-about-row,.cs-ac-inner{grid-template-columns:1fr!important;gap:28px!important}
  .cs-ac-img{height:240px!important}
  .cs-proc-row{grid-template-columns:1fr!important;border-radius:16px!important}
  .cs-proc-item{border-right:none!important;border-bottom:1px solid rgba(0,0,0,.07)!important;padding:24px 20px!important}
  .cs-proc-item:last-child{border-bottom:none!important}
  .cs-client-facts{grid-template-columns:1fr 1fr!important;gap:8px!important}
  .cs-client-card{padding:32px 24px!important}
  .cs-browser iframe{height:280px!important}
  .cs-browser-url{font-size:10px!important}
  .cs-rel-grid{grid-template-columns:1fr!important}
  .cs-rel-card{height:180px!important}
  .cs-rel-sec{padding:48px 0!important}
  .cs-results-3col{grid-template-columns:1fr!important}
  .jj-vid-grid{grid-template-columns:1fr!important}
  .oli-grid{grid-template-columns:1fr!important}
  .oli-card{height:280px!important}
}

/* ── SMALL MOBILE ≤480px ── */
@media(max-width:480px){
  .cs-score-grid{grid-template-columns:1fr!important}
  .cs-score-cell{border-right:none!important}
  #hero h1{font-size:clamp(32px,9vw,52px)!important}
  .pg-hero-content h1{font-size:clamp(22px,7vw,36px)!important}
  .pg-footer{padding:36px 16px 0!important}
  .cs-client-card{padding:24px 16px!important}
}
