/* RESPONSIVE-003 — Padrão global mobile/tablet Skillset */

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.container {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
}

/* Botões */
.btn-primary,
.btn-secondary,
.btn-cta-outline,
button.btn-primary,
button.btn-secondary {
  text-align: center;
  justify-content: center;
}

/* Cards */
.pilar-card,
.srv-card,
.treinamento-card,
.card-sst,
.home-package-card,
.home-blog-card,
.cliente-card,
.faq-item,
.area-login-card,
.contato-card,
.orcamento-card {
  min-width: 0;
  max-width: 100%;
}

/* Tabelas */
.table-card,
.privacidade-table-wrap,
.area-card {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* MOBILE */
@media (max-width: 599px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  section {
    scroll-margin-top: 78px;
  }

  .section-title,
  .page-title,
  .home-packages-title,
  .home-newsletter-title,
  .home-blog-title,
  .home-section-title-tight,
  .home-section-title-default {
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.14;
    text-align: center;
  }

  .section-sub,
  .home-section-subtitle,
  .home-packages-subtitle,
  .home-newsletter-desc,
  .clientes-hero-desc,
  .servicos-hero-desc,
  .treinamentos-hero-desc,
  .contato-hero-desc,
  .orcamento-hero-desc,
  .faq-hero-desc,
  .sobre-hero-desc,
  .privacidade-hero-meta,
  .area-hero-desc {
    text-align: center;
    margin-inline: auto;
  }

  .home-section-header,
  .home-blog-header,
  .home-packages-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }

  .home-section-header > *,
  .home-blog-header > *,
  .home-packages-header > * {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary,
  .btn-cta-outline {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .home-section-header .btn-secondary,
  .home-blog-header .btn-secondary {
    width: 100%;
  }

  .pilares-grid,
  .servicos-grid,
  .treinamentos-grid,
  .clientes-grid,
  .clientes-cases-grid,
  .blog-grid,
  .servicos-categoria-grid,
  .faq-categories,
  .orcamento-grid,
  .contato-grid,
  .form-row-2col,
  .privacidade-index-grid,
  .privacidade-direitos-grid,
  .area-header,
  .home-esocial-grid,
  .home-corp-sst__grid,
  .home-corp-sst__cards {
    grid-template-columns: 1fr;
  }

  .contato-grid,
  .orcamento-grid,
  .home-esocial-grid,
  .home-corp-sst__grid {
    display: grid;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    right: 18px;
    bottom: 18px;
  }

  input,
  textarea,
  select {
    max-width: 100%;
  }
}

/* TABLET */
@media (min-width: 600px) and (max-width: 1023px) {
  .container {
    width: min(100% - 40px, 1200px);
  }

  .pilares-grid,
  .servicos-grid,
  .treinamentos-grid,
  .clientes-grid,
  .clientes-cases-grid,
  .blog-grid,
  .servicos-categoria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contato-grid,
  .orcamento-grid,
  .home-corp-sst__grid,
  .home-esocial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .btn-primary,
  .btn-secondary,
  .btn-cta-outline {
    white-space: normal;
  }
}

/* ESOCIAL-002 — correção emergencial mobile/menu e grid */
.esocial-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 1023px) {
  .esocial-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 599px) {
  .esocial-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}
