/**
 * USSIX — RESPONSIVE DESIGN SYSTEM
 * Resoluções auditadas e validadas:
 * - 1920px (Telas Ultra-Wide / Monitores Grandes)
 * - 1440px (Desktop Padrão)
 * - 1280px (Notebooks e Telas Médias)
 * - 1024px (Tablets Paisagem / Laptops Compactos)
 * - 768px  (Tablets Retrato / Transição Mobile)
 * - 430px  (Smartphones Grandes — iPhone Pro Max)
 * - 390px  (Smartphones Padrão — iPhone 12/13/14/15)
 * - 360px  (Smartphones Compactos — Android Standard)
 */

/* ==========================================================================
   1. NOTEBOOKS E TELAS MÉDIAS (<= 1280px)
   ========================================================================== */
@media (max-width: 1280px) {
  :root {
    --container-gutter: 20px;
  }

  /* Header */
  .nav-desktop-list {
    gap: 16px;
  }

  .nav-desktop-link {
    font-size: 0.875rem;
  }

  .btn-header-cta {
    padding: 10px 18px;
    font-size: 0.875rem;
  }

  /* Hero */
  .hero-grid {
    gap: 40px;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  /* Soluções */
  .solutions-grid {
    gap: 20px;
  }

  .solution-card {
    padding: 30px 22px 28px;
  }

  /* Sobre */
  .about-grid {
    gap: 48px;
  }

  /* PJe */
  .pje-grid {
    gap: 20px;
  }

  /* Infraestrutura */
  .infra-grid {
    gap: 44px;
  }

  /* Downloads */
  .downloads-grid {
    gap: 16px;
  }

  .download-card {
    padding: 22px 18px;
  }

  /* Conteúdos */
  .conteudos-grid {
    gap: 24px;
  }

  .conteudo-img-wrap {
    height: 200px;
  }

  /* CTA Final */
  .cta-final-grid {
    gap: 48px;
  }

  /* Footer */
  .footer-grid {
    gap: 36px;
  }
}

/* ==========================================================================
   2. TABLETS PAISAGEM E TELAS MÉDIAS (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --container-gutter: 20px;
  }

  /* Header */
  .header-container {
    height: 74px;
  }

  .header-logo img {
    height: 32px;
  }

  .nav-desktop-list {
    gap: 10px;
  }

  .nav-desktop-link {
    font-size: 0.8125rem;
    padding: 6px 2px;
    white-space: nowrap;
  }

  .btn-header-cta {
    padding: 8px 14px;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  /* Hero */
  .hero-section {
    padding: 56px 0 64px;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-title {
    font-size: 2.375rem;
  }

  .hero-description {
    font-size: 1.0625rem;
    margin-bottom: var(--space-lg);
  }

  .hero-visual-img {
    max-height: 400px;
  }

  /* Soluções (2x2 Grid) */
  .solutions-section {
    padding: 72px 0;
  }

  .solutions-header-split {
    gap: var(--space-xl);
    margin-bottom: 44px;
  }

  .solutions-title {
    font-size: 2.125rem;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Sobre a USSIX */
  .about-section {
    padding: 80px 0;
  }

  .about-grid {
    gap: 36px;
  }

  .about-title {
    font-size: 2.125rem;
  }

  .about-text {
    font-size: 1.0625rem;
  }

  .about-visual-img {
    max-height: 380px;
  }

  /* Suporte PJe */
  .pje-section {
    padding: 80px 0 88px;
  }

  .pje-title {
    font-size: 2.25rem;
  }

  .pje-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pje-item-card {
    padding: 22px 18px;
  }

  /* Infraestrutura de TI */
  .infra-section {
    padding: 80px 0;
  }

  .infra-grid {
    gap: 36px;
  }

  .infra-title {
    font-size: 2.125rem;
  }

  .infra-description {
    font-size: 1rem;
    margin-bottom: var(--space-lg);
  }

  .infra-visual-img {
    max-height: 420px;
  }

  /* Downloads (2x2 Grid) */
  .downloads-section {
    padding: 72px 0 80px;
  }

  .downloads-title {
    font-size: 2rem;
  }

  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  /* Conteúdos */
  .conteudos-section {
    padding: 76px 0 84px;
  }

  .conteudos-title {
    font-size: 2.125rem;
  }

  .conteudos-grid {
    gap: 20px;
  }

  .conteudo-img-wrap {
    height: 190px;
  }

  .conteudo-card-body {
    padding: 20px 18px 24px;
  }

  .conteudo-card-title {
    font-size: 1.0625rem;
  }

  /* CTA Final */
  .cta-final-section {
    padding: 80px 0 88px;
  }

  .cta-final-grid {
    gap: 40px;
  }

  .cta-final-title {
    font-size: 2.25rem;
  }

  .cta-final-text {
    font-size: 1.0625rem;
  }

  /* Footer (2x2 Grid) */
  .footer-main {
    padding: 60px 0 44px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

/* ==========================================================================
   3. TABLETS RETRATO E TRANSIÇÃO MOBILE (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Header & Mobile Drawer */
  .header-container {
    height: 72px;
  }

  .header-logo img {
    height: 34px;
  }

  .nav-desktop {
    display: none;
  }

  .header-actions .btn-header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-drawer,
  .mobile-backdrop {
    top: 72px;
  }

  .mobile-drawer {
    max-height: calc(100vh - 72px);
  }

  /* Hero */
  .hero-section {
    padding: 48px 0 56px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.125rem;
    line-height: 1.2;
  }

  .hero-description {
    max-width: 100%;
    font-size: 1.0625rem;
  }

  .hero-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-visual-img {
    max-height: 380px;
  }

  /* Soluções (1 Coluna) */
  .solutions-section {
    padding: 64px 0;
  }

  .solutions-header-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 36px;
  }

  .solutions-title {
    font-size: 2rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .solution-card {
    padding: 30px 24px;
  }

  /* Sobre a USSIX (Imagem acima, texto abaixo) */
  .about-section {
    padding: 64px 0;
  }

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 36px;
  }

  .about-visual {
    order: 1;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .about-content {
    order: 2;
    width: 100%;
    text-align: left;
  }

  .about-title {
    font-size: 2rem;
  }

  .about-text {
    font-size: 1.0625rem;
    max-width: 100%;
  }

  .about-visual-img {
    max-height: 360px;
  }

  /* Suporte PJe */
  .pje-section {
    padding: 68px 0 76px;
  }

  .pje-header {
    margin-bottom: 44px;
  }

  .pje-title {
    font-size: 2rem;
  }

  .pje-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
  }

  .pje-cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 28px 24px;
    gap: 20px;
  }

  .btn-pje-cta {
    justify-content: center;
    width: 100%;
  }

  /* Infraestrutura de TI */
  .infra-section {
    padding: 68px 0;
  }

  .infra-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .infra-title {
    font-size: 2rem;
  }

  .infra-description {
    max-width: 100%;
  }

  .infra-pillars-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: var(--space-lg);
  }

  .infra-visual-card {
    max-width: 600px;
    margin: 0 auto;
  }

  .infra-visual-img {
    max-height: 380px;
  }

  /* Downloads */
  .downloads-section {
    padding: 60px 0 68px;
  }

  .downloads-title {
    font-size: 1.875rem;
  }

  .downloads-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Conteúdos (1 Coluna Mobile/Tablet) */
  .conteudos-section {
    padding: 64px 0 72px;
  }

  .conteudos-header {
    margin-bottom: 40px;
  }

  .conteudos-title {
    font-size: 2rem;
  }

  .conteudos-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
    gap: 24px;
  }

  .conteudo-img-wrap {
    height: 220px;
  }

  /* CTA Final */
  .cta-final-section {
    padding: 68px 0 76px;
  }

  .cta-final-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-final-title {
    font-size: 2rem;
  }

  .cta-final-text {
    max-width: 100%;
    margin-bottom: 24px;
  }

  /* Footer (Colunas Empilhadas) */
  .footer-main {
    padding: 52px 0 40px;
  }

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

  .footer-desc {
    max-width: 100%;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   4. SMARTPHONES GRANDES — iPhone Pro Max (<= 430px)
   ========================================================================== */
@media (max-width: 430px) {
  :root {
    --container-gutter: 16px;
  }

  /* Header */
  .header-container {
    height: 68px;
  }

  .header-logo img {
    height: 32px;
  }

  .mobile-drawer,
  .mobile-backdrop {
    top: 68px;
  }

  .mobile-drawer {
    max-height: calc(100vh - 68px);
    padding: var(--space-md) var(--space-md) var(--space-lg);
  }

  /* Hero */
  .hero-section {
    padding: 36px 0 44px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: var(--space-sm);
  }

  .hero-title {
    font-size: 1.875rem;
    line-height: 1.22;
    margin-bottom: var(--space-sm);
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9375rem;
    justify-content: center;
  }

  .hero-scroll-indicator {
    margin-top: 24px;
    justify-content: center;
  }

  .hero-visual-card {
    border-radius: var(--radius-md);
  }

  .hero-visual-img {
    max-height: 250px;
  }

  .hero-visual-badge {
    bottom: 10px;
    right: 10px;
    font-size: 0.625rem;
    padding: 6px 12px;
  }

  /* Soluções (1 Coluna) */
  .solutions-section {
    padding: 48px 0;
  }

  .solutions-eyebrow {
    font-size: 0.75rem;
  }

  .solutions-title {
    font-size: 1.75rem;
  }

  .solutions-subtitle {
    font-size: 0.9375rem;
  }

  .solution-card {
    padding: 26px 20px;
    border-radius: var(--radius-md);
  }

  .solution-card-title {
    font-size: 1.1875rem;
  }

  .solution-card-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  /* Sobre a USSIX */
  .about-section {
    padding: 48px 0;
  }

  .about-grid {
    gap: 28px;
  }

  .about-eyebrow {
    font-size: 0.75rem;
  }

  .about-title {
    font-size: 1.8125rem;
    line-height: 1.25;
    margin-bottom: var(--space-md);
  }

  .about-text {
    font-size: 1rem;
    line-height: 1.68;
  }

  .about-visual-card {
    border-radius: var(--radius-md);
  }

  .about-visual-img {
    max-height: 240px;
  }

  .about-visual-badge {
    bottom: 10px;
    left: 10px;
    font-size: 0.625rem;
    padding: 6px 12px;
  }

  /* Suporte PJe */
  .pje-section {
    padding: 52px 0 60px;
  }

  .pje-header {
    margin-bottom: 36px;
  }

  .pje-eyebrow {
    font-size: 0.75rem;
  }

  .pje-title {
    font-size: 1.8125rem;
    line-height: 1.22;
  }

  .pje-subtitle {
    font-size: 0.9375rem;
  }

  .pje-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }

  .pje-item-card {
    padding: 20px 18px;
  }

  .pje-cta-box {
    padding: 22px 18px;
  }

  .pje-cta-info h3 {
    font-size: 1.125rem;
  }

  .pje-cta-info p {
    font-size: 0.875rem;
  }

  .btn-pje-cta {
    font-size: 0.9rem;
    padding: 13px 20px;
  }

  /* Infraestrutura de TI */
  .infra-section {
    padding: 52px 0 60px;
  }

  .infra-eyebrow {
    font-size: 0.75rem;
  }

  .infra-title {
    font-size: 1.8125rem;
    line-height: 1.22;
  }

  .infra-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
  }

  .infra-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: var(--space-xl);
  }

  .infra-actions {
    width: 100%;
  }

  .infra-actions .btn-hero-primary {
    width: 100%;
    justify-content: center;
  }

  .infra-visual-card {
    border-radius: var(--radius-md);
  }

  .infra-visual-img {
    max-height: 250px;
  }

  .infra-visual-badge {
    bottom: 10px;
    right: 10px;
    font-size: 0.625rem;
    padding: 6px 12px;
  }

  /* Downloads */
  .downloads-section {
    padding: 48px 0 56px;
  }

  .downloads-title {
    font-size: 1.75rem;
  }

  .downloads-subtitle {
    font-size: 0.9375rem;
  }

  .downloads-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }

  .btn-downloads-cta {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  /* Conteúdos */
  .conteudos-section {
    padding: 48px 0 56px;
  }

  .conteudos-header {
    margin-bottom: 32px;
  }

  .conteudos-eyebrow {
    font-size: 0.75rem;
  }

  .conteudos-title {
    font-size: 1.75rem;
  }

  .conteudos-subtitle {
    font-size: 0.9375rem;
  }

  .conteudo-img-wrap {
    height: 180px;
  }

  .conteudo-card-body {
    padding: 18px 16px 20px;
  }

  .conteudo-card-title {
    font-size: 1rem;
    line-height: 1.38;
  }

  .conteudo-card-desc {
    font-size: 0.875rem;
    margin-bottom: 18px;
  }

  /* CTA Final */
  .cta-final-section {
    padding: 56px 0 64px;
  }

  .cta-final-eyebrow {
    font-size: 0.75rem;
  }

  .cta-final-title {
    font-size: 1.8125rem;
  }

  .cta-final-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .btn-cta-final {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 0.9375rem;
  }

  /* Footer */
  .footer-main {
    padding: 44px 0 32px;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-logo img {
    height: 34px;
  }
}

/* ==========================================================================
   5. SMARTPHONES PADRÃO — iPhone 12/13/14/15 (<= 390px)
   ========================================================================== */
@media (max-width: 390px) {
  .header-container {
    height: 66px;
  }

  .header-logo img {
    height: 31px;
  }

  .mobile-drawer,
  .mobile-backdrop {
    top: 66px;
  }

  .mobile-drawer {
    max-height: calc(100vh - 66px);
  }

  .mobile-nav-link {
    font-size: 1rem;
    min-height: 48px;
  }

  /* Hero */
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-visual-img {
    max-height: 230px;
  }

  /* Soluções */
  .solutions-title {
    font-size: 1.625rem;
  }

  /* Sobre */
  .about-title {
    font-size: 1.6875rem;
  }

  .about-visual-img {
    max-height: 220px;
  }

  /* Suporte PJe */
  .pje-title {
    font-size: 1.6875rem;
  }

  /* Infraestrutura */
  .infra-title {
    font-size: 1.6875rem;
  }

  .infra-visual-img {
    max-height: 230px;
  }

  /* Downloads */
  .downloads-title {
    font-size: 1.625rem;
  }

  /* Conteúdos */
  .conteudos-title {
    font-size: 1.625rem;
  }

  .conteudo-img-wrap {
    height: 170px;
  }

  /* CTA Final */
  .cta-final-title {
    font-size: 1.6875rem;
  }

  /* Footer */
  .footer-copy,
  .footer-bottom-link {
    font-size: 0.8125rem;
  }
}

/* ==========================================================================
   6. SMARTPHONES COMPACTOS — Android Compact (<= 360px)
   ========================================================================== */
@media (max-width: 360px) {
  :root {
    --container-gutter: 12px;
  }

  /* Header */
  .header-container {
    height: 64px;
  }

  .header-logo img {
    height: 28px;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .mobile-drawer,
  .mobile-backdrop {
    top: 64px;
  }

  .mobile-drawer {
    max-height: calc(100vh - 64px);
  }

  .btn-mobile-cta {
    font-size: 0.875rem;
    padding: 12px;
  }

  /* Hero */
  .hero-section {
    padding: 28px 0 36px;
  }

  .hero-eyebrow {
    font-size: 0.6875rem;
  }

  .hero-title {
    font-size: 1.5625rem;
  }

  .hero-description {
    font-size: 0.9375rem;
  }

  .hero-visual-img {
    max-height: 200px;
  }

  /* Soluções */
  .solutions-section {
    padding: 40px 0;
  }

  .solutions-title {
    font-size: 1.5rem;
  }

  .solution-card {
    padding: 20px 16px;
  }

  /* Sobre */
  .about-section {
    padding: 40px 0;
  }

  .about-eyebrow {
    font-size: 0.6875rem;
  }

  .about-title {
    font-size: 1.5625rem;
  }

  .about-text {
    font-size: 0.9375rem;
  }

  .about-visual-img {
    max-height: 200px;
  }

  /* Suporte PJe */
  .pje-section {
    padding: 44px 0 52px;
  }

  .pje-title {
    font-size: 1.5625rem;
  }

  .pje-item-card {
    padding: 18px 14px;
  }

  /* Infraestrutura */
  .infra-section {
    padding: 44px 0 52px;
  }

  .infra-eyebrow {
    font-size: 0.6875rem;
  }

  .infra-title {
    font-size: 1.5625rem;
  }

  .infra-description {
    font-size: 0.9375rem;
  }

  .infra-visual-img {
    max-height: 200px;
  }

  /* Downloads */
  .downloads-section {
    padding: 40px 0 48px;
  }

  .downloads-title {
    font-size: 1.5rem;
  }

  /* Conteúdos */
  .conteudos-section {
    padding: 40px 0 48px;
  }

  .conteudos-title {
    font-size: 1.5rem;
  }

  .conteudo-img-wrap {
    height: 160px;
  }

  /* CTA Final */
  .cta-final-section {
    padding: 48px 0 56px;
  }

  .cta-final-title {
    font-size: 1.5625rem;
  }

  .btn-cta-final {
    padding: 14px 20px;
    font-size: 0.875rem;
  }

  /* Footer */
  .footer-main {
    padding: 40px 0 28px;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-logo img {
    height: 30px;
  }
}
