/* ── RESPONSIVE ── */

/* ── TRANSIÇÕES MOBILE ── */
@media (max-width: 768px) {
  /* Scroll reveal: deslocamento menor para não cortar elementos na viewport */
  [data-reveal="up"]    { transform: translateY(28px); }
  [data-reveal="down"]  { transform: translateY(-28px); }
  [data-reveal="left"]  { transform: translateX(-28px); }
  [data-reveal="right"] { transform: translateX(28px); }
  [data-reveal="scale"] { transform: scale(0.94); }

  [data-reveal] {
    transition:
      opacity .5s cubic-bezier(0.22, 1, 0.36, 1),
      transform .5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Stagger mais rápido — delays longos somem abaixo da fold */
  [data-stagger] > * {
    transform: translateY(20px);
    transition:
      opacity .45s cubic-bezier(0.22, 1, 0.36, 1),
      transform .45s cubic-bezier(0.22, 1, 0.36, 1);
  }

  [data-stagger].revealed > *:nth-child(1) { transition-delay: .0s;  }
  [data-stagger].revealed > *:nth-child(2) { transition-delay: .06s; }
  [data-stagger].revealed > *:nth-child(3) { transition-delay: .12s; }
  [data-stagger].revealed > *:nth-child(4) { transition-delay: .18s; }
  [data-stagger].revealed > *:nth-child(5) { transition-delay: .24s; }
  [data-stagger].revealed > *:nth-child(6) { transition-delay: .30s; }
  [data-stagger].revealed > *:nth-child(7) { transition-delay: .36s; }
  [data-stagger].revealed > *:nth-child(8) { transition-delay: .42s; }

  /* Seções entram mais rápido */
  .about-svc, .portfolio, .clients, .stats-bar,
  .testimonials, .contact-section, .bottom {
    transform: translateY(16px);
    transition:
      opacity .5s cubic-bezier(0.22, 1, 0.36, 1),
      transform .5s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Word reveal do hero: delay menor para não demorar em telas lentas */
  .hero-title .word:nth-child(1) .inner { animation-delay: .3s; }
  .hero-title .word:nth-child(2) .inner { animation-delay: .4s; }
  .hero-title .word:nth-child(3) .inner { animation-delay: .5s; }
  .hero-title .word:nth-child(4) .inner { animation-delay: .6s; }
  .hero-title .word:nth-child(5) .inner { animation-delay: .7s; }

  /* Mag-card: sem efeito 3D em touch */
  .mag-card { transform: none !important; }

  /* Parallax: desabilitado (causa jitter em scroll mobile) */
  .parallax-bg { transform: none !important; transition: none; }

  /* Tap feedback em botões e cards — substitui o hover */
  .btn-p:active, .btn-o:active {
    transform: scale(0.97);
    transition: transform .12s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .svc-item:active {
    background: rgba(59,130,246,.08);
    border-left-color: var(--blue);
    transition: background .15s ease, border-color .15s ease;
  }

  .client-cell:active {
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(59,130,246,.14);
    transform: translateY(-2px);
    transition: transform .15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .15s ease;
  }

  /* About images: sem hover translate em touch */
  .about-img-row img:hover { transform: none; box-shadow: 0 8px 24px rgba(15,23,42,.12); }
  .about-img-row img:active { transform: scale(0.98); transition: transform .12s ease; }

  /* Shimmer sweep nos clients: transição mais rápida */
  .client-cell::before { transition: transform .35s cubic-bezier(0.32, 0.08, 0.24, 1); }
  .client-cell::after  { transition: transform .3s cubic-bezier(0.32, 0.08, 0.24, 1); }

  /* Test card tap */
  .test-card:active { transform: scale(0.985); transition: transform .12s ease; }

  /* Form focus sem translateY (não funciona bem com teclado mobile) */
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus { transform: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }

  .site-header nav { height: 62px; padding: 0 16px; }
  .site-header.scrolled nav { height: 56px; }
  .site-header.scrolled:not(.open) { top: 25px; max-width: calc(100% - 24px); margin: 0 12px; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .logo img { height: 4em; }

  .wa-fab { bottom: 20px; right: 20px; width: 50px; height: 50px; }
  .wa-fab svg { width: 24px; height: 24px; }

  .hero { height: 93dvh; min-height: 500px; }
  .hero-accent { top: 8vh; bottom: 10vh; }

  .hero-content {
    justify-content: space-between;
    flex-direction: column;
    padding: clamp(20px, 7vw, 48px);
    gap: 0;
    overflow: visible;
  }

  .hero-main {
    max-width: 100%; margin: 1em; padding: 0;
    flex: 1; display: flex; flex-direction: column; justify-content: space-between;
  }

  .hero-badge { padding: 7px 14px; margin-bottom: clamp(10px, 2vh, 18px); white-space: nowrap; font-size: 10px; }
  .hero-title { font-size: clamp(52px, 13vw, 80px); line-height: .93; margin-bottom: clamp(10px, 1.8vh, 16px);}
  .hero-sub { margin-bottom: clamp(12px, 2vh, 22px); line-height: 1.6; font-size: 15px; }

  .hero-main .btn-row { flex-direction: row; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
  .hero-main .btn-p, .hero-main .btn-o { width: auto; flex: 1; text-align: center; padding: 13px 14px; font-size: 12px; }

  .hero-bottom { margin: 6px; }
  .hero-stats-strip { justify-content: space-between; }
  .hero-stat { padding: clamp(10px, 1.8vh, 18px) 0; text-align: center; flex: 1; }
  .hero-stat-divider { margin-right: 0; height: 28px; }
  .hstat-num { font-size: clamp(32px, 8.5vw, 44px); }
  .hstat-num sup { font-size: clamp(16px, 4.5vw, 22px); }
  .hstat-lbl { font-size: 10px; }
  .hero-scroll { display: none; }

  .about-svc { grid-template-columns: 1fr; }
  .about-col, .svc-col { padding: 36px 20px; border-right: none; border-bottom: 1px solid var(--line); }
  .about-img-row { margin-top: 20px; gap: 10px; }
  .about-img-row img { border-radius: 10px; }

  h2.display { font-size: clamp(32px, 6.5vw, 46px); line-height: 1.1; }
  .sec-label { font-size: 11px; }
  .about-text { font-size: 14px; }
  .svc-item { padding: 14px 0; gap: 12px; }
  .svc-info-title { font-size: 14px; }
  .svc-info-desc { font-size: 15px; }

  /* Portfolio mobile */
  .portfolio { padding: 36px 0 48px; }
  .port-header { flex-direction: column; align-items: flex-start; margin-bottom: 18px; padding: 0 20px; }
  /* Desktop grid: oculto no mobile */
  .psg-desktop { display: none; }

  /* Swiper coverflow: visível no mobile */
  .port-swiper {
    display: block;
    width: 100%;
    padding-bottom: 40px !important;
    overflow: hidden;
  }

  .port-swiper .swiper-slide { width: 72vw; max-width: 280px; }
  .port-swiper .port-item { aspect-ratio: 3/4; border-radius: 16px; }

  .testimonials { padding: 36px 20px; }
  .test-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .test-header-right { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 16px; width: 100%; }
  .test-header-desc { text-align: left; max-width: 100%; order: 2; width: 100%; font-size: 14px; }
  .test-nav-inline { order: 1; margin-top: 1em; }
  .test-card { border-radius: 12px; padding: 16px; }
  .test-quote { font-size: 14px; }
  .test-btn { width: 38px; height: 38px; border-radius: 10px; }

  .clients { padding: 36px 20px; }
  .clients-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px;  }
  .clients-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .client-cell { padding: 16px 14px; }
  .client-cell img { max-width: 100px; max-height: 48px; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-cell { padding: 24px 20px; border-right: 1px solid rgba(0,0,0,.12); border-bottom: 1px solid rgba(0,0,0,.12); }
  .stat-cell:nth-child(even) { border-right: none; }
  .stat-cell:nth-child(3), .stat-cell:nth-child(4) { border-bottom: none; }
  .stat-n { font-size: 44px; }
  .stat-l { font-size: 10px; }

  .contact-section { padding: 36px 20px; }
  .contact-container { max-width: 100%; }
  .contact-header { margin-bottom: 28px; }
  .contact-title { font-size: clamp(28px, 6vw, 40px); }
  .contact-subtitle { font-size: 14px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .form-input-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .form-input-row input[type="text"] { width: 100%; }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 15px; margin-bottom: 6px; }
  .form-group input, .form-group textarea, .form-group select { padding: 12px 14px; font-size: 16px; border-radius: 10px; transition: all .3s cubic-bezier(0.32, 0.08, 0.24, 1); }
  .form-group select { background-position: right 14px center; padding-right: 40px; }
  .form-group input:focus, .form-group textarea:focus, .form-group select:focus { transform: translateY(-2px); }
  .form-submit { padding: 14px 28px; font-size: 12px; margin-top: 6px; }

  .cta-strip-inner { grid-template-columns: 1fr; gap: 28px; padding: 48px 24px; }
  .cta-title { font-size: clamp(28px, 6vw, 42px); }
  .cta-strip-actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .cta-strip-btn { flex: 1; min-width: 160px; justify-content: center; }

  .cta-strip-inner--split { gap: 32px; }
  .cta-strip-divider { display: none; }
  .cta-strip-card { align-items: flex-start; }
  .cta-strip-card .cta-strip-btn { flex: none; width: 100%; }

  .footer-main-inner { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px 32px; }
  .foot-col--brand { grid-column: 1 / -1; }
  .foot-tagline { font-size: 14px; margin-bottom: 16px; }
  .foot-socials { gap: 8px; margin-bottom: 16px; }
  .foot-col-label { font-size: 10px; margin-bottom: 14px; }
  .foot-links { gap: 10px; }
  .foot-links a { font-size: 14px; }
  .foot-bottom { padding: 16px 24px; flex-direction: column; gap: 10px; text-align: center; }
  .foot-copy { font-size: 12px; }
}

@media (max-width: 480px) {
  :root { --nav-h: 54px; }

  .site-header nav { padding: 0 12px; height: 54px; }

  .hero-content { padding-top: clamp(20px, 3.5vh, 40px); padding-left: 16px; padding-right: 16px; padding-bottom: 12px; }
  .hero-title { font-size: clamp(44px, 12vw, 58px); }
  .hero-sub { font-size: 14px; }
  .hero-badge { font-size: 10px; padding: 6px 12px; gap: 7px; }
  .hero-stat { padding: 12px 0; }
  .hero-stat-divider { margin-right: 16px; }
  .hstat-num { font-size: 34px; }
  .hstat-num sup { font-size: 18px; }
  .hero-scroll { padding: 0 14px; }
  .hero-main .btn-p, .hero-main .btn-o { padding: 12px 18px; font-size: 12px; }

  h2.display { font-size: clamp(28px, 7vw, 40px); }
  .sec-label { font-size: 10px; margin-bottom: 10px; }
  .about-text { font-size: 15px; }
  .svc-info-title { font-size: 14px; }
  .svc-info-desc { font-size: 15px; }
  .about-col, .svc-col { padding: 28px 16px; }
  .portfolio { padding: 28px 0 44px; }
  .port-header { padding: 0 16px; }
  .port-swiper .swiper-slide { width: 78vw; max-width: 260px; }
  .port-swiper .port-item { aspect-ratio: 3/4; border-radius: 14px; }
  .testimonials { padding: 28px 16px; }
  .test-card { border-radius: 12px; padding: 14px; }
  .test-quote { font-size: 14px; }
  .clients { padding: 28px 16px; }
  .stat-n { font-size: 40px; }
  .stat-l { font-size: 10px; }
  .contact-section { padding: 28px 16px; }
  .contact-header { margin-bottom: 24px; }
  .contact-title { font-size: clamp(24px, 6vw, 34px); margin-bottom: 8px; }
  .contact-subtitle { font-size: 15px; }
  .form-group input, .form-group textarea, .form-group select { padding: 10px 12px; font-size: 16px; }
  .form-group select { padding-right: 36px; background-position: right 12px center; }
  .form-group label { font-size: 15px; }
  .cta-strip-inner { padding: 36px 16px; }
  .cta-title { font-size: clamp(24px, 7vw, 34px); }
  .cta-strip-actions { flex-direction: column; }
  .cta-strip-btn { min-width: unset; }
  .footer-main-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px; }
  .foot-col--brand { grid-column: auto; }
  .foot-bottom { padding: 14px 16px; }
}
